From d4862a43add2afc82162c9a8c9e721710b10e328 Mon Sep 17 00:00:00 2001 From: David Gamero Date: Fri, 13 Oct 2023 09:48:36 -0400 Subject: [PATCH 1/6] regen with bumped openapi --- examples/patch-example.ts | 65 + settings | 2 +- src/gen/.openapi-generator/COMMIT | 4 +- src/gen/.openapi-generator/VERSION | 2 +- src/gen/apis/AdmissionregistrationApi.ts | 8 +- src/gen/apis/AdmissionregistrationV1Api.ts | 112 +- src/gen/apis/ApiextensionsApi.ts | 8 +- src/gen/apis/ApiextensionsV1Api.ts | 82 +- src/gen/apis/ApiregistrationApi.ts | 8 +- src/gen/apis/ApiregistrationV1Api.ts | 82 +- src/gen/apis/ApisApi.ts | 8 +- src/gen/apis/AppsApi.ts | 8 +- src/gen/apis/AppsV1Api.ts | 452 +- src/gen/apis/AuthenticationApi.ts | 8 +- src/gen/apis/AuthenticationV1Api.ts | 18 +- src/gen/apis/AuthorizationApi.ts | 8 +- src/gen/apis/AuthorizationV1Api.ts | 48 +- src/gen/apis/AutoscalingApi.ts | 8 +- src/gen/apis/AutoscalingV1Api.ts | 88 +- src/gen/apis/AutoscalingV2beta1Api.ts | 88 +- src/gen/apis/AutoscalingV2beta2Api.ts | 88 +- src/gen/apis/BatchApi.ts | 8 +- src/gen/apis/BatchV1Api.ts | 168 +- src/gen/apis/BatchV1beta1Api.ts | 88 +- src/gen/apis/CertificatesApi.ts | 8 +- src/gen/apis/CertificatesV1Api.ts | 104 +- src/gen/apis/CoordinationApi.ts | 8 +- src/gen/apis/CoordinationV1Api.ts | 66 +- src/gen/apis/CoreApi.ts | 8 +- src/gen/apis/CoreV1Api.ts | 1422 +- src/gen/apis/CustomObjectsApi.ts | 172 +- src/gen/apis/DiscoveryApi.ts | 8 +- src/gen/apis/DiscoveryV1Api.ts | 66 +- src/gen/apis/DiscoveryV1beta1Api.ts | 66 +- src/gen/apis/EventsApi.ts | 8 +- src/gen/apis/EventsV1Api.ts | 66 +- src/gen/apis/EventsV1beta1Api.ts | 66 +- src/gen/apis/FlowcontrolApiserverApi.ts | 8 +- .../apis/FlowcontrolApiserverV1beta1Api.ts | 156 +- src/gen/apis/InternalApiserverApi.ts | 8 +- src/gen/apis/InternalApiserverV1alpha1Api.ts | 82 +- src/gen/apis/LogsApi.ts | 10 +- src/gen/apis/NetworkingApi.ts | 8 +- src/gen/apis/NetworkingV1Api.ts | 198 +- src/gen/apis/NodeApi.ts | 8 +- src/gen/apis/NodeV1Api.ts | 60 +- src/gen/apis/NodeV1alpha1Api.ts | 60 +- src/gen/apis/NodeV1beta1Api.ts | 60 +- src/gen/apis/OpenidApi.ts | 8 +- src/gen/apis/PolicyApi.ts | 8 +- src/gen/apis/PolicyV1Api.ts | 88 +- src/gen/apis/PolicyV1beta1Api.ts | 140 +- src/gen/apis/RbacAuthorizationApi.ts | 8 +- src/gen/apis/RbacAuthorizationV1Api.ts | 228 +- src/gen/apis/RbacAuthorizationV1alpha1Api.ts | 228 +- src/gen/apis/SchedulingApi.ts | 8 +- src/gen/apis/SchedulingV1Api.ts | 60 +- src/gen/apis/SchedulingV1alpha1Api.ts | 60 +- src/gen/apis/StorageApi.ts | 8 +- src/gen/apis/StorageV1Api.ts | 238 +- src/gen/apis/StorageV1alpha1Api.ts | 118 +- src/gen/apis/StorageV1beta1Api.ts | 66 +- src/gen/apis/VersionApi.ts | 8 +- src/gen/apis/WellKnownApi.ts | 8 +- src/gen/http/http.ts | 22 +- src/gen/models/ObjectSerializer.ts | 7 +- src/gen/types/ObjectParamAPI.ts | 5936 +++++- src/gen/types/ObservableAPI.ts | 13317 +++++++++++-- src/gen/types/PromiseAPI.ts | 15720 +++++++++++++--- 69 files changed, 33428 insertions(+), 7041 deletions(-) create mode 100644 examples/patch-example.ts diff --git a/examples/patch-example.ts b/examples/patch-example.ts new file mode 100644 index 00000000000..beb02e35503 --- /dev/null +++ b/examples/patch-example.ts @@ -0,0 +1,65 @@ +import cluster from "cluster"; +import { CoreV1Api, Middleware, RequestContext, ResponseContext,KubeConfig, PatchUtils, createConfiguration, AuthMethodsConfiguration, Configuration, ServerConfiguration } from "../dist"; +import { PromiseMiddlewareWrapper } from "../dist/gen/middleware"; + +// const k8s = require('@kubernetes/client-node'); + +const kc = new KubeConfig(); +kc.loadFromDefault(); + +const k8sApi = kc.makeApiClient(CoreV1Api); + +k8sApi.listNamespacedPod({ + namespace: 'default' +}) +.then((res) => { + const patch = [ + { + "op": "replace", + "path":"/metadata/labels", + "value": { + "foo": "bar" + } + } + ]; + const options = { "headers": { "Content-type": PatchUtils.PATCH_FORMAT_JSON_PATCH}}; + const headerPatchMiddleware = new PromiseMiddlewareWrapper({ + pre: async (requestContext: RequestContext) => { + requestContext.setHeaderParam("Content-type", PatchUtils.PATCH_FORMAT_JSON_PATCH); + return requestContext; + }, + post: async (responseContext: ResponseContext) => responseContext + }) + let currentContext = kc.getCurrentContext(); + let currentCluster = kc.getCluster(currentContext); + if (currentCluster === undefined || currentCluster === null) { + throw new Error("Cluster is undefined"); + } + let server = currentCluster.server ; + if (server === undefined) { + throw new Error("Server is undefined"); + } + + const baseServerConfig: ServerConfiguration<{}> = new ServerConfiguration<{}>(server, {}); + const configuration: Configuration = createConfiguration({ + middleware: [headerPatchMiddleware], + baseServer: baseServerConfig, + authMethods: { + default: kc, + }, + }); + + let podName = res.items[0].metadata?.name; + if (podName === undefined) { + throw new Error("Pod name is undefined"); + } + k8sApi.patchNamespacedPod({ + name: podName, + namespace: 'default', + body: patch, + }, + configuration + ) + .then(() => { console.log("Patched.")}) + .catch((err) => { console.log("Error: "); console.log(err)}); +}); diff --git a/settings b/settings index 6a612360405..9c3f67671e8 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=5555137b7926de2f501e091718ff72429b808220 +export OPENAPI_GENERATOR_COMMIT=ba367e60e85392a7fd58cdb374c35c3aaaece872 diff --git a/src/gen/.openapi-generator/COMMIT b/src/gen/.openapi-generator/COMMIT index 3b0ed507077..6d5074a6a2d 100644 --- a/src/gen/.openapi-generator/COMMIT +++ b/src/gen/.openapi-generator/COMMIT @@ -1,2 +1,2 @@ -Requested Commit: 5555137b7926de2f501e091718ff72429b808220 -Actual Commit: 5555137b7926de2f501e091718ff72429b808220 +Requested Commit: ba367e60e85392a7fd58cdb374c35c3aaaece872 +Actual Commit: ba367e60e85392a7fd58cdb374c35c3aaaece872 diff --git a/src/gen/.openapi-generator/VERSION b/src/gen/.openapi-generator/VERSION index 757e6740040..40e36364ab2 100644 --- a/src/gen/.openapi-generator/VERSION +++ b/src/gen/.openapi-generator/VERSION @@ -1 +1 @@ -7.0.0-SNAPSHOT \ No newline at end of file +7.1.0-SNAPSHOT \ No newline at end of file diff --git a/src/gen/apis/AdmissionregistrationApi.ts b/src/gen/apis/AdmissionregistrationApi.ts index da60bc2b6c2..f9ab641661d 100644 --- a/src/gen/apis/AdmissionregistrationApi.ts +++ b/src/gen/apis/AdmissionregistrationApi.ts @@ -1,7 +1,7 @@ // TODO: better import syntax? import {BaseAPIRequestFactory, RequiredError, COLLECTION_FORMATS} from './baseapi'; import {Configuration} from '../configuration'; -import {RequestContext, HttpMethod, ResponseContext, HttpFile} from '../http/http'; +import {RequestContext, HttpMethod, ResponseContext, HttpFile, HttpInfo} from '../http/http'; import FormData from "form-data"; import { URLSearchParams } from 'url'; import {ObjectSerializer} from '../models/ObjectSerializer'; @@ -57,14 +57,14 @@ export class AdmissionregistrationApiResponseProcessor { * @params response Response returned by the server for a request to getAPIGroup * @throws ApiException if the response code was not in [200, 299] */ - public async getAPIGroup(response: ResponseContext): Promise { + public async getAPIGroupWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1APIGroup = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1APIGroup", "" ) as V1APIGroup; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -76,7 +76,7 @@ export class AdmissionregistrationApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1APIGroup", "" ) as V1APIGroup; - return body; + 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/AdmissionregistrationV1Api.ts b/src/gen/apis/AdmissionregistrationV1Api.ts index 179e1c894cd..0988e3f8a28 100644 --- a/src/gen/apis/AdmissionregistrationV1Api.ts +++ b/src/gen/apis/AdmissionregistrationV1Api.ts @@ -1,7 +1,7 @@ // TODO: better import syntax? import {BaseAPIRequestFactory, RequiredError, COLLECTION_FORMATS} from './baseapi'; import {Configuration} from '../configuration'; -import {RequestContext, HttpMethod, ResponseContext, HttpFile} from '../http/http'; +import {RequestContext, HttpMethod, ResponseContext, HttpFile, HttpInfo} from '../http/http'; import FormData from "form-data"; import { URLSearchParams } from 'url'; import {ObjectSerializer} from '../models/ObjectSerializer'; @@ -1221,28 +1221,28 @@ export class AdmissionregistrationV1ApiResponseProcessor { * @params response Response returned by the server for a request to createMutatingWebhookConfiguration * @throws ApiException if the response code was not in [200, 299] */ - public async createMutatingWebhookConfiguration(response: ResponseContext): Promise { + public async createMutatingWebhookConfigurationWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1MutatingWebhookConfiguration = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1MutatingWebhookConfiguration", "" ) as V1MutatingWebhookConfiguration; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1MutatingWebhookConfiguration = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1MutatingWebhookConfiguration", "" ) as V1MutatingWebhookConfiguration; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("202", response.httpStatusCode)) { const body: V1MutatingWebhookConfiguration = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1MutatingWebhookConfiguration", "" ) as V1MutatingWebhookConfiguration; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1254,7 +1254,7 @@ export class AdmissionregistrationV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1MutatingWebhookConfiguration", "" ) as V1MutatingWebhookConfiguration; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1267,28 +1267,28 @@ export class AdmissionregistrationV1ApiResponseProcessor { * @params response Response returned by the server for a request to createValidatingWebhookConfiguration * @throws ApiException if the response code was not in [200, 299] */ - public async createValidatingWebhookConfiguration(response: ResponseContext): Promise { + public async createValidatingWebhookConfigurationWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1ValidatingWebhookConfiguration = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ValidatingWebhookConfiguration", "" ) as V1ValidatingWebhookConfiguration; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1ValidatingWebhookConfiguration = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ValidatingWebhookConfiguration", "" ) as V1ValidatingWebhookConfiguration; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("202", response.httpStatusCode)) { const body: V1ValidatingWebhookConfiguration = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ValidatingWebhookConfiguration", "" ) as V1ValidatingWebhookConfiguration; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1300,7 +1300,7 @@ export class AdmissionregistrationV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1ValidatingWebhookConfiguration", "" ) as V1ValidatingWebhookConfiguration; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1313,14 +1313,14 @@ export class AdmissionregistrationV1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteCollectionMutatingWebhookConfiguration * @throws ApiException if the response code was not in [200, 299] */ - public async deleteCollectionMutatingWebhookConfiguration(response: ResponseContext): Promise { + public async deleteCollectionMutatingWebhookConfigurationWithHttpInfo(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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1332,7 +1332,7 @@ export class AdmissionregistrationV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1345,14 +1345,14 @@ export class AdmissionregistrationV1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteCollectionValidatingWebhookConfiguration * @throws ApiException if the response code was not in [200, 299] */ - public async deleteCollectionValidatingWebhookConfiguration(response: ResponseContext): Promise { + public async deleteCollectionValidatingWebhookConfigurationWithHttpInfo(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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1364,7 +1364,7 @@ export class AdmissionregistrationV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1377,21 +1377,21 @@ export class AdmissionregistrationV1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteMutatingWebhookConfiguration * @throws ApiException if the response code was not in [200, 299] */ - public async deleteMutatingWebhookConfiguration(response: ResponseContext): Promise { + public async deleteMutatingWebhookConfigurationWithHttpInfo(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 body; + 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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1403,7 +1403,7 @@ export class AdmissionregistrationV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1416,21 +1416,21 @@ export class AdmissionregistrationV1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteValidatingWebhookConfiguration * @throws ApiException if the response code was not in [200, 299] */ - public async deleteValidatingWebhookConfiguration(response: ResponseContext): Promise { + public async deleteValidatingWebhookConfigurationWithHttpInfo(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 body; + 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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1442,7 +1442,7 @@ export class AdmissionregistrationV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1455,14 +1455,14 @@ export class AdmissionregistrationV1ApiResponseProcessor { * @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 getAPIResources(response: ResponseContext): Promise { + 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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1474,7 +1474,7 @@ export class AdmissionregistrationV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1APIResourceList", "" ) as V1APIResourceList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1487,14 +1487,14 @@ export class AdmissionregistrationV1ApiResponseProcessor { * @params response Response returned by the server for a request to listMutatingWebhookConfiguration * @throws ApiException if the response code was not in [200, 299] */ - public async listMutatingWebhookConfiguration(response: ResponseContext): Promise { + public async listMutatingWebhookConfigurationWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1MutatingWebhookConfigurationList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1MutatingWebhookConfigurationList", "" ) as V1MutatingWebhookConfigurationList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1506,7 +1506,7 @@ export class AdmissionregistrationV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1MutatingWebhookConfigurationList", "" ) as V1MutatingWebhookConfigurationList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1519,14 +1519,14 @@ export class AdmissionregistrationV1ApiResponseProcessor { * @params response Response returned by the server for a request to listValidatingWebhookConfiguration * @throws ApiException if the response code was not in [200, 299] */ - public async listValidatingWebhookConfiguration(response: ResponseContext): Promise { + public async listValidatingWebhookConfigurationWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1ValidatingWebhookConfigurationList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ValidatingWebhookConfigurationList", "" ) as V1ValidatingWebhookConfigurationList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1538,7 +1538,7 @@ export class AdmissionregistrationV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1ValidatingWebhookConfigurationList", "" ) as V1ValidatingWebhookConfigurationList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1551,21 +1551,21 @@ export class AdmissionregistrationV1ApiResponseProcessor { * @params response Response returned by the server for a request to patchMutatingWebhookConfiguration * @throws ApiException if the response code was not in [200, 299] */ - public async patchMutatingWebhookConfiguration(response: ResponseContext): Promise { + public async patchMutatingWebhookConfigurationWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1MutatingWebhookConfiguration = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1MutatingWebhookConfiguration", "" ) as V1MutatingWebhookConfiguration; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1MutatingWebhookConfiguration = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1MutatingWebhookConfiguration", "" ) as V1MutatingWebhookConfiguration; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1577,7 +1577,7 @@ export class AdmissionregistrationV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1MutatingWebhookConfiguration", "" ) as V1MutatingWebhookConfiguration; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1590,21 +1590,21 @@ export class AdmissionregistrationV1ApiResponseProcessor { * @params response Response returned by the server for a request to patchValidatingWebhookConfiguration * @throws ApiException if the response code was not in [200, 299] */ - public async patchValidatingWebhookConfiguration(response: ResponseContext): Promise { + public async patchValidatingWebhookConfigurationWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1ValidatingWebhookConfiguration = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ValidatingWebhookConfiguration", "" ) as V1ValidatingWebhookConfiguration; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1ValidatingWebhookConfiguration = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ValidatingWebhookConfiguration", "" ) as V1ValidatingWebhookConfiguration; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1616,7 +1616,7 @@ export class AdmissionregistrationV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1ValidatingWebhookConfiguration", "" ) as V1ValidatingWebhookConfiguration; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1629,14 +1629,14 @@ export class AdmissionregistrationV1ApiResponseProcessor { * @params response Response returned by the server for a request to readMutatingWebhookConfiguration * @throws ApiException if the response code was not in [200, 299] */ - public async readMutatingWebhookConfiguration(response: ResponseContext): Promise { + public async readMutatingWebhookConfigurationWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1MutatingWebhookConfiguration = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1MutatingWebhookConfiguration", "" ) as V1MutatingWebhookConfiguration; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1648,7 +1648,7 @@ export class AdmissionregistrationV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1MutatingWebhookConfiguration", "" ) as V1MutatingWebhookConfiguration; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1661,14 +1661,14 @@ export class AdmissionregistrationV1ApiResponseProcessor { * @params response Response returned by the server for a request to readValidatingWebhookConfiguration * @throws ApiException if the response code was not in [200, 299] */ - public async readValidatingWebhookConfiguration(response: ResponseContext): Promise { + public async readValidatingWebhookConfigurationWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1ValidatingWebhookConfiguration = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ValidatingWebhookConfiguration", "" ) as V1ValidatingWebhookConfiguration; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1680,7 +1680,7 @@ export class AdmissionregistrationV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1ValidatingWebhookConfiguration", "" ) as V1ValidatingWebhookConfiguration; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1693,21 +1693,21 @@ export class AdmissionregistrationV1ApiResponseProcessor { * @params response Response returned by the server for a request to replaceMutatingWebhookConfiguration * @throws ApiException if the response code was not in [200, 299] */ - public async replaceMutatingWebhookConfiguration(response: ResponseContext): Promise { + public async replaceMutatingWebhookConfigurationWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1MutatingWebhookConfiguration = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1MutatingWebhookConfiguration", "" ) as V1MutatingWebhookConfiguration; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1MutatingWebhookConfiguration = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1MutatingWebhookConfiguration", "" ) as V1MutatingWebhookConfiguration; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1719,7 +1719,7 @@ export class AdmissionregistrationV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1MutatingWebhookConfiguration", "" ) as V1MutatingWebhookConfiguration; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1732,21 +1732,21 @@ export class AdmissionregistrationV1ApiResponseProcessor { * @params response Response returned by the server for a request to replaceValidatingWebhookConfiguration * @throws ApiException if the response code was not in [200, 299] */ - public async replaceValidatingWebhookConfiguration(response: ResponseContext): Promise { + public async replaceValidatingWebhookConfigurationWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1ValidatingWebhookConfiguration = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ValidatingWebhookConfiguration", "" ) as V1ValidatingWebhookConfiguration; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1ValidatingWebhookConfiguration = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ValidatingWebhookConfiguration", "" ) as V1ValidatingWebhookConfiguration; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1758,7 +1758,7 @@ export class AdmissionregistrationV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1ValidatingWebhookConfiguration", "" ) as V1ValidatingWebhookConfiguration; - return body; + 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/ApiextensionsApi.ts b/src/gen/apis/ApiextensionsApi.ts index 0256d287f39..9f1be7325d3 100644 --- a/src/gen/apis/ApiextensionsApi.ts +++ b/src/gen/apis/ApiextensionsApi.ts @@ -1,7 +1,7 @@ // TODO: better import syntax? import {BaseAPIRequestFactory, RequiredError, COLLECTION_FORMATS} from './baseapi'; import {Configuration} from '../configuration'; -import {RequestContext, HttpMethod, ResponseContext, HttpFile} from '../http/http'; +import {RequestContext, HttpMethod, ResponseContext, HttpFile, HttpInfo} from '../http/http'; import FormData from "form-data"; import { URLSearchParams } from 'url'; import {ObjectSerializer} from '../models/ObjectSerializer'; @@ -57,14 +57,14 @@ export class ApiextensionsApiResponseProcessor { * @params response Response returned by the server for a request to getAPIGroup * @throws ApiException if the response code was not in [200, 299] */ - public async getAPIGroup(response: ResponseContext): Promise { + public async getAPIGroupWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1APIGroup = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1APIGroup", "" ) as V1APIGroup; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -76,7 +76,7 @@ export class ApiextensionsApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1APIGroup", "" ) as V1APIGroup; - return body; + 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/ApiextensionsV1Api.ts b/src/gen/apis/ApiextensionsV1Api.ts index 1792fbedae2..0f2ce616013 100644 --- a/src/gen/apis/ApiextensionsV1Api.ts +++ b/src/gen/apis/ApiextensionsV1Api.ts @@ -1,7 +1,7 @@ // TODO: better import syntax? import {BaseAPIRequestFactory, RequiredError, COLLECTION_FORMATS} from './baseapi'; import {Configuration} from '../configuration'; -import {RequestContext, HttpMethod, ResponseContext, HttpFile} from '../http/http'; +import {RequestContext, HttpMethod, ResponseContext, HttpFile, HttpInfo} from '../http/http'; import FormData from "form-data"; import { URLSearchParams } from 'url'; import {ObjectSerializer} from '../models/ObjectSerializer'; @@ -847,28 +847,28 @@ export class ApiextensionsV1ApiResponseProcessor { * @params response Response returned by the server for a request to createCustomResourceDefinition * @throws ApiException if the response code was not in [200, 299] */ - public async createCustomResourceDefinition(response: ResponseContext): Promise { + public async createCustomResourceDefinitionWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1CustomResourceDefinition = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1CustomResourceDefinition", "" ) as V1CustomResourceDefinition; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1CustomResourceDefinition = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1CustomResourceDefinition", "" ) as V1CustomResourceDefinition; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("202", response.httpStatusCode)) { const body: V1CustomResourceDefinition = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1CustomResourceDefinition", "" ) as V1CustomResourceDefinition; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -880,7 +880,7 @@ export class ApiextensionsV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1CustomResourceDefinition", "" ) as V1CustomResourceDefinition; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -893,14 +893,14 @@ export class ApiextensionsV1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteCollectionCustomResourceDefinition * @throws ApiException if the response code was not in [200, 299] */ - public async deleteCollectionCustomResourceDefinition(response: ResponseContext): Promise { + public async deleteCollectionCustomResourceDefinitionWithHttpInfo(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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -912,7 +912,7 @@ export class ApiextensionsV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -925,21 +925,21 @@ export class ApiextensionsV1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteCustomResourceDefinition * @throws ApiException if the response code was not in [200, 299] */ - public async deleteCustomResourceDefinition(response: ResponseContext): Promise { + public async deleteCustomResourceDefinitionWithHttpInfo(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 body; + 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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -951,7 +951,7 @@ export class ApiextensionsV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -964,14 +964,14 @@ export class ApiextensionsV1ApiResponseProcessor { * @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 getAPIResources(response: ResponseContext): Promise { + 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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -983,7 +983,7 @@ export class ApiextensionsV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1APIResourceList", "" ) as V1APIResourceList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -996,14 +996,14 @@ export class ApiextensionsV1ApiResponseProcessor { * @params response Response returned by the server for a request to listCustomResourceDefinition * @throws ApiException if the response code was not in [200, 299] */ - public async listCustomResourceDefinition(response: ResponseContext): Promise { + public async listCustomResourceDefinitionWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1CustomResourceDefinitionList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1CustomResourceDefinitionList", "" ) as V1CustomResourceDefinitionList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1015,7 +1015,7 @@ export class ApiextensionsV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1CustomResourceDefinitionList", "" ) as V1CustomResourceDefinitionList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1028,21 +1028,21 @@ export class ApiextensionsV1ApiResponseProcessor { * @params response Response returned by the server for a request to patchCustomResourceDefinition * @throws ApiException if the response code was not in [200, 299] */ - public async patchCustomResourceDefinition(response: ResponseContext): Promise { + public async patchCustomResourceDefinitionWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1CustomResourceDefinition = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1CustomResourceDefinition", "" ) as V1CustomResourceDefinition; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1CustomResourceDefinition = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1CustomResourceDefinition", "" ) as V1CustomResourceDefinition; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1054,7 +1054,7 @@ export class ApiextensionsV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1CustomResourceDefinition", "" ) as V1CustomResourceDefinition; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1067,21 +1067,21 @@ export class ApiextensionsV1ApiResponseProcessor { * @params response Response returned by the server for a request to patchCustomResourceDefinitionStatus * @throws ApiException if the response code was not in [200, 299] */ - public async patchCustomResourceDefinitionStatus(response: ResponseContext): Promise { + public async patchCustomResourceDefinitionStatusWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1CustomResourceDefinition = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1CustomResourceDefinition", "" ) as V1CustomResourceDefinition; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1CustomResourceDefinition = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1CustomResourceDefinition", "" ) as V1CustomResourceDefinition; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1093,7 +1093,7 @@ export class ApiextensionsV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1CustomResourceDefinition", "" ) as V1CustomResourceDefinition; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1106,14 +1106,14 @@ export class ApiextensionsV1ApiResponseProcessor { * @params response Response returned by the server for a request to readCustomResourceDefinition * @throws ApiException if the response code was not in [200, 299] */ - public async readCustomResourceDefinition(response: ResponseContext): Promise { + public async readCustomResourceDefinitionWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1CustomResourceDefinition = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1CustomResourceDefinition", "" ) as V1CustomResourceDefinition; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1125,7 +1125,7 @@ export class ApiextensionsV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1CustomResourceDefinition", "" ) as V1CustomResourceDefinition; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1138,14 +1138,14 @@ export class ApiextensionsV1ApiResponseProcessor { * @params response Response returned by the server for a request to readCustomResourceDefinitionStatus * @throws ApiException if the response code was not in [200, 299] */ - public async readCustomResourceDefinitionStatus(response: ResponseContext): Promise { + public async readCustomResourceDefinitionStatusWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1CustomResourceDefinition = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1CustomResourceDefinition", "" ) as V1CustomResourceDefinition; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1157,7 +1157,7 @@ export class ApiextensionsV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1CustomResourceDefinition", "" ) as V1CustomResourceDefinition; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1170,21 +1170,21 @@ export class ApiextensionsV1ApiResponseProcessor { * @params response Response returned by the server for a request to replaceCustomResourceDefinition * @throws ApiException if the response code was not in [200, 299] */ - public async replaceCustomResourceDefinition(response: ResponseContext): Promise { + public async replaceCustomResourceDefinitionWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1CustomResourceDefinition = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1CustomResourceDefinition", "" ) as V1CustomResourceDefinition; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1CustomResourceDefinition = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1CustomResourceDefinition", "" ) as V1CustomResourceDefinition; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1196,7 +1196,7 @@ export class ApiextensionsV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1CustomResourceDefinition", "" ) as V1CustomResourceDefinition; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1209,21 +1209,21 @@ export class ApiextensionsV1ApiResponseProcessor { * @params response Response returned by the server for a request to replaceCustomResourceDefinitionStatus * @throws ApiException if the response code was not in [200, 299] */ - public async replaceCustomResourceDefinitionStatus(response: ResponseContext): Promise { + public async replaceCustomResourceDefinitionStatusWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1CustomResourceDefinition = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1CustomResourceDefinition", "" ) as V1CustomResourceDefinition; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1CustomResourceDefinition = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1CustomResourceDefinition", "" ) as V1CustomResourceDefinition; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1235,7 +1235,7 @@ export class ApiextensionsV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1CustomResourceDefinition", "" ) as V1CustomResourceDefinition; - return body; + 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/ApiregistrationApi.ts b/src/gen/apis/ApiregistrationApi.ts index 13246951fe5..e891f225b8c 100644 --- a/src/gen/apis/ApiregistrationApi.ts +++ b/src/gen/apis/ApiregistrationApi.ts @@ -1,7 +1,7 @@ // TODO: better import syntax? import {BaseAPIRequestFactory, RequiredError, COLLECTION_FORMATS} from './baseapi'; import {Configuration} from '../configuration'; -import {RequestContext, HttpMethod, ResponseContext, HttpFile} from '../http/http'; +import {RequestContext, HttpMethod, ResponseContext, HttpFile, HttpInfo} from '../http/http'; import FormData from "form-data"; import { URLSearchParams } from 'url'; import {ObjectSerializer} from '../models/ObjectSerializer'; @@ -57,14 +57,14 @@ export class ApiregistrationApiResponseProcessor { * @params response Response returned by the server for a request to getAPIGroup * @throws ApiException if the response code was not in [200, 299] */ - public async getAPIGroup(response: ResponseContext): Promise { + public async getAPIGroupWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1APIGroup = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1APIGroup", "" ) as V1APIGroup; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -76,7 +76,7 @@ export class ApiregistrationApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1APIGroup", "" ) as V1APIGroup; - return body; + 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/ApiregistrationV1Api.ts b/src/gen/apis/ApiregistrationV1Api.ts index 4cd23642eb4..9b4dc4470e4 100644 --- a/src/gen/apis/ApiregistrationV1Api.ts +++ b/src/gen/apis/ApiregistrationV1Api.ts @@ -1,7 +1,7 @@ // TODO: better import syntax? import {BaseAPIRequestFactory, RequiredError, COLLECTION_FORMATS} from './baseapi'; import {Configuration} from '../configuration'; -import {RequestContext, HttpMethod, ResponseContext, HttpFile} from '../http/http'; +import {RequestContext, HttpMethod, ResponseContext, HttpFile, HttpInfo} from '../http/http'; import FormData from "form-data"; import { URLSearchParams } from 'url'; import {ObjectSerializer} from '../models/ObjectSerializer'; @@ -847,28 +847,28 @@ export class ApiregistrationV1ApiResponseProcessor { * @params response Response returned by the server for a request to createAPIService * @throws ApiException if the response code was not in [200, 299] */ - public async createAPIService(response: ResponseContext): Promise { + public async createAPIServiceWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1APIService = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1APIService", "" ) as V1APIService; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1APIService = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1APIService", "" ) as V1APIService; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("202", response.httpStatusCode)) { const body: V1APIService = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1APIService", "" ) as V1APIService; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -880,7 +880,7 @@ export class ApiregistrationV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1APIService", "" ) as V1APIService; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -893,21 +893,21 @@ export class ApiregistrationV1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteAPIService * @throws ApiException if the response code was not in [200, 299] */ - public async deleteAPIService(response: ResponseContext): Promise { + public async deleteAPIServiceWithHttpInfo(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 body; + 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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -919,7 +919,7 @@ export class ApiregistrationV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -932,14 +932,14 @@ export class ApiregistrationV1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteCollectionAPIService * @throws ApiException if the response code was not in [200, 299] */ - public async deleteCollectionAPIService(response: ResponseContext): Promise { + public async deleteCollectionAPIServiceWithHttpInfo(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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -951,7 +951,7 @@ export class ApiregistrationV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -964,14 +964,14 @@ export class ApiregistrationV1ApiResponseProcessor { * @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 getAPIResources(response: ResponseContext): Promise { + 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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -983,7 +983,7 @@ export class ApiregistrationV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1APIResourceList", "" ) as V1APIResourceList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -996,14 +996,14 @@ export class ApiregistrationV1ApiResponseProcessor { * @params response Response returned by the server for a request to listAPIService * @throws ApiException if the response code was not in [200, 299] */ - public async listAPIService(response: ResponseContext): Promise { + public async listAPIServiceWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1APIServiceList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1APIServiceList", "" ) as V1APIServiceList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1015,7 +1015,7 @@ export class ApiregistrationV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1APIServiceList", "" ) as V1APIServiceList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1028,21 +1028,21 @@ export class ApiregistrationV1ApiResponseProcessor { * @params response Response returned by the server for a request to patchAPIService * @throws ApiException if the response code was not in [200, 299] */ - public async patchAPIService(response: ResponseContext): Promise { + public async patchAPIServiceWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1APIService = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1APIService", "" ) as V1APIService; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1APIService = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1APIService", "" ) as V1APIService; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1054,7 +1054,7 @@ export class ApiregistrationV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1APIService", "" ) as V1APIService; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1067,21 +1067,21 @@ export class ApiregistrationV1ApiResponseProcessor { * @params response Response returned by the server for a request to patchAPIServiceStatus * @throws ApiException if the response code was not in [200, 299] */ - public async patchAPIServiceStatus(response: ResponseContext): Promise { + public async patchAPIServiceStatusWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1APIService = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1APIService", "" ) as V1APIService; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1APIService = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1APIService", "" ) as V1APIService; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1093,7 +1093,7 @@ export class ApiregistrationV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1APIService", "" ) as V1APIService; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1106,14 +1106,14 @@ export class ApiregistrationV1ApiResponseProcessor { * @params response Response returned by the server for a request to readAPIService * @throws ApiException if the response code was not in [200, 299] */ - public async readAPIService(response: ResponseContext): Promise { + public async readAPIServiceWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1APIService = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1APIService", "" ) as V1APIService; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1125,7 +1125,7 @@ export class ApiregistrationV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1APIService", "" ) as V1APIService; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1138,14 +1138,14 @@ export class ApiregistrationV1ApiResponseProcessor { * @params response Response returned by the server for a request to readAPIServiceStatus * @throws ApiException if the response code was not in [200, 299] */ - public async readAPIServiceStatus(response: ResponseContext): Promise { + public async readAPIServiceStatusWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1APIService = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1APIService", "" ) as V1APIService; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1157,7 +1157,7 @@ export class ApiregistrationV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1APIService", "" ) as V1APIService; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1170,21 +1170,21 @@ export class ApiregistrationV1ApiResponseProcessor { * @params response Response returned by the server for a request to replaceAPIService * @throws ApiException if the response code was not in [200, 299] */ - public async replaceAPIService(response: ResponseContext): Promise { + public async replaceAPIServiceWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1APIService = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1APIService", "" ) as V1APIService; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1APIService = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1APIService", "" ) as V1APIService; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1196,7 +1196,7 @@ export class ApiregistrationV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1APIService", "" ) as V1APIService; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1209,21 +1209,21 @@ export class ApiregistrationV1ApiResponseProcessor { * @params response Response returned by the server for a request to replaceAPIServiceStatus * @throws ApiException if the response code was not in [200, 299] */ - public async replaceAPIServiceStatus(response: ResponseContext): Promise { + public async replaceAPIServiceStatusWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1APIService = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1APIService", "" ) as V1APIService; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1APIService = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1APIService", "" ) as V1APIService; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1235,7 +1235,7 @@ export class ApiregistrationV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1APIService", "" ) as V1APIService; - return body; + 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/ApisApi.ts b/src/gen/apis/ApisApi.ts index 3443a30c6e3..34b7caf3f28 100644 --- a/src/gen/apis/ApisApi.ts +++ b/src/gen/apis/ApisApi.ts @@ -1,7 +1,7 @@ // TODO: better import syntax? import {BaseAPIRequestFactory, RequiredError, COLLECTION_FORMATS} from './baseapi'; import {Configuration} from '../configuration'; -import {RequestContext, HttpMethod, ResponseContext, HttpFile} from '../http/http'; +import {RequestContext, HttpMethod, ResponseContext, HttpFile, HttpInfo} from '../http/http'; import FormData from "form-data"; import { URLSearchParams } from 'url'; import {ObjectSerializer} from '../models/ObjectSerializer'; @@ -57,14 +57,14 @@ export class ApisApiResponseProcessor { * @params response Response returned by the server for a request to getAPIVersions * @throws ApiException if the response code was not in [200, 299] */ - public async getAPIVersions(response: ResponseContext): Promise { + public async getAPIVersionsWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1APIGroupList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1APIGroupList", "" ) as V1APIGroupList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -76,7 +76,7 @@ export class ApisApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1APIGroupList", "" ) as V1APIGroupList; - return body; + 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/AppsApi.ts b/src/gen/apis/AppsApi.ts index ea0b2ba4a90..4f6fc1ab6dd 100644 --- a/src/gen/apis/AppsApi.ts +++ b/src/gen/apis/AppsApi.ts @@ -1,7 +1,7 @@ // TODO: better import syntax? import {BaseAPIRequestFactory, RequiredError, COLLECTION_FORMATS} from './baseapi'; import {Configuration} from '../configuration'; -import {RequestContext, HttpMethod, ResponseContext, HttpFile} from '../http/http'; +import {RequestContext, HttpMethod, ResponseContext, HttpFile, HttpInfo} from '../http/http'; import FormData from "form-data"; import { URLSearchParams } from 'url'; import {ObjectSerializer} from '../models/ObjectSerializer'; @@ -57,14 +57,14 @@ export class AppsApiResponseProcessor { * @params response Response returned by the server for a request to getAPIGroup * @throws ApiException if the response code was not in [200, 299] */ - public async getAPIGroup(response: ResponseContext): Promise { + public async getAPIGroupWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1APIGroup = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1APIGroup", "" ) as V1APIGroup; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -76,7 +76,7 @@ export class AppsApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1APIGroup", "" ) as V1APIGroup; - return body; + 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/AppsV1Api.ts b/src/gen/apis/AppsV1Api.ts index 6d5979c1a24..f3e6cda7fc6 100644 --- a/src/gen/apis/AppsV1Api.ts +++ b/src/gen/apis/AppsV1Api.ts @@ -1,7 +1,7 @@ // TODO: better import syntax? import {BaseAPIRequestFactory, RequiredError, COLLECTION_FORMATS} from './baseapi'; import {Configuration} from '../configuration'; -import {RequestContext, HttpMethod, ResponseContext, HttpFile} from '../http/http'; +import {RequestContext, HttpMethod, ResponseContext, HttpFile, HttpInfo} from '../http/http'; import FormData from "form-data"; import { URLSearchParams } from 'url'; import {ObjectSerializer} from '../models/ObjectSerializer'; @@ -5357,28 +5357,28 @@ export class AppsV1ApiResponseProcessor { * @params response Response returned by the server for a request to createNamespacedControllerRevision * @throws ApiException if the response code was not in [200, 299] */ - public async createNamespacedControllerRevision(response: ResponseContext): Promise { + public async createNamespacedControllerRevisionWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1ControllerRevision = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ControllerRevision", "" ) as V1ControllerRevision; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1ControllerRevision = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ControllerRevision", "" ) as V1ControllerRevision; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("202", response.httpStatusCode)) { const body: V1ControllerRevision = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ControllerRevision", "" ) as V1ControllerRevision; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -5390,7 +5390,7 @@ export class AppsV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1ControllerRevision", "" ) as V1ControllerRevision; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -5403,28 +5403,28 @@ export class AppsV1ApiResponseProcessor { * @params response Response returned by the server for a request to createNamespacedDaemonSet * @throws ApiException if the response code was not in [200, 299] */ - public async createNamespacedDaemonSet(response: ResponseContext): Promise { + public async createNamespacedDaemonSetWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1DaemonSet = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1DaemonSet", "" ) as V1DaemonSet; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1DaemonSet = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1DaemonSet", "" ) as V1DaemonSet; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("202", response.httpStatusCode)) { const body: V1DaemonSet = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1DaemonSet", "" ) as V1DaemonSet; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -5436,7 +5436,7 @@ export class AppsV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1DaemonSet", "" ) as V1DaemonSet; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -5449,28 +5449,28 @@ export class AppsV1ApiResponseProcessor { * @params response Response returned by the server for a request to createNamespacedDeployment * @throws ApiException if the response code was not in [200, 299] */ - public async createNamespacedDeployment(response: ResponseContext): Promise { + public async createNamespacedDeploymentWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1Deployment = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Deployment", "" ) as V1Deployment; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1Deployment = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Deployment", "" ) as V1Deployment; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("202", response.httpStatusCode)) { const body: V1Deployment = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Deployment", "" ) as V1Deployment; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -5482,7 +5482,7 @@ export class AppsV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Deployment", "" ) as V1Deployment; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -5495,28 +5495,28 @@ export class AppsV1ApiResponseProcessor { * @params response Response returned by the server for a request to createNamespacedReplicaSet * @throws ApiException if the response code was not in [200, 299] */ - public async createNamespacedReplicaSet(response: ResponseContext): Promise { + public async createNamespacedReplicaSetWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1ReplicaSet = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ReplicaSet", "" ) as V1ReplicaSet; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1ReplicaSet = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ReplicaSet", "" ) as V1ReplicaSet; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("202", response.httpStatusCode)) { const body: V1ReplicaSet = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ReplicaSet", "" ) as V1ReplicaSet; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -5528,7 +5528,7 @@ export class AppsV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1ReplicaSet", "" ) as V1ReplicaSet; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -5541,28 +5541,28 @@ export class AppsV1ApiResponseProcessor { * @params response Response returned by the server for a request to createNamespacedStatefulSet * @throws ApiException if the response code was not in [200, 299] */ - public async createNamespacedStatefulSet(response: ResponseContext): Promise { + public async createNamespacedStatefulSetWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1StatefulSet = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1StatefulSet", "" ) as V1StatefulSet; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1StatefulSet = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1StatefulSet", "" ) as V1StatefulSet; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("202", response.httpStatusCode)) { const body: V1StatefulSet = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1StatefulSet", "" ) as V1StatefulSet; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -5574,7 +5574,7 @@ export class AppsV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1StatefulSet", "" ) as V1StatefulSet; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -5587,14 +5587,14 @@ export class AppsV1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteCollectionNamespacedControllerRevision * @throws ApiException if the response code was not in [200, 299] */ - public async deleteCollectionNamespacedControllerRevision(response: ResponseContext): Promise { + public async deleteCollectionNamespacedControllerRevisionWithHttpInfo(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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -5606,7 +5606,7 @@ export class AppsV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -5619,14 +5619,14 @@ export class AppsV1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteCollectionNamespacedDaemonSet * @throws ApiException if the response code was not in [200, 299] */ - public async deleteCollectionNamespacedDaemonSet(response: ResponseContext): Promise { + public async deleteCollectionNamespacedDaemonSetWithHttpInfo(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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -5638,7 +5638,7 @@ export class AppsV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -5651,14 +5651,14 @@ export class AppsV1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteCollectionNamespacedDeployment * @throws ApiException if the response code was not in [200, 299] */ - public async deleteCollectionNamespacedDeployment(response: ResponseContext): Promise { + public async deleteCollectionNamespacedDeploymentWithHttpInfo(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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -5670,7 +5670,7 @@ export class AppsV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -5683,14 +5683,14 @@ export class AppsV1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteCollectionNamespacedReplicaSet * @throws ApiException if the response code was not in [200, 299] */ - public async deleteCollectionNamespacedReplicaSet(response: ResponseContext): Promise { + public async deleteCollectionNamespacedReplicaSetWithHttpInfo(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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -5702,7 +5702,7 @@ export class AppsV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -5715,14 +5715,14 @@ export class AppsV1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteCollectionNamespacedStatefulSet * @throws ApiException if the response code was not in [200, 299] */ - public async deleteCollectionNamespacedStatefulSet(response: ResponseContext): Promise { + public async deleteCollectionNamespacedStatefulSetWithHttpInfo(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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -5734,7 +5734,7 @@ export class AppsV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -5747,21 +5747,21 @@ export class AppsV1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteNamespacedControllerRevision * @throws ApiException if the response code was not in [200, 299] */ - public async deleteNamespacedControllerRevision(response: ResponseContext): Promise { + public async deleteNamespacedControllerRevisionWithHttpInfo(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 body; + 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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -5773,7 +5773,7 @@ export class AppsV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -5786,21 +5786,21 @@ export class AppsV1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteNamespacedDaemonSet * @throws ApiException if the response code was not in [200, 299] */ - public async deleteNamespacedDaemonSet(response: ResponseContext): Promise { + public async deleteNamespacedDaemonSetWithHttpInfo(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 body; + 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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -5812,7 +5812,7 @@ export class AppsV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -5825,21 +5825,21 @@ export class AppsV1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteNamespacedDeployment * @throws ApiException if the response code was not in [200, 299] */ - public async deleteNamespacedDeployment(response: ResponseContext): Promise { + public async deleteNamespacedDeploymentWithHttpInfo(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 body; + 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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -5851,7 +5851,7 @@ export class AppsV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -5864,21 +5864,21 @@ export class AppsV1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteNamespacedReplicaSet * @throws ApiException if the response code was not in [200, 299] */ - public async deleteNamespacedReplicaSet(response: ResponseContext): Promise { + public async deleteNamespacedReplicaSetWithHttpInfo(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 body; + 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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -5890,7 +5890,7 @@ export class AppsV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -5903,21 +5903,21 @@ export class AppsV1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteNamespacedStatefulSet * @throws ApiException if the response code was not in [200, 299] */ - public async deleteNamespacedStatefulSet(response: ResponseContext): Promise { + public async deleteNamespacedStatefulSetWithHttpInfo(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 body; + 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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -5929,7 +5929,7 @@ export class AppsV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -5942,14 +5942,14 @@ export class AppsV1ApiResponseProcessor { * @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 getAPIResources(response: ResponseContext): Promise { + 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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -5961,7 +5961,7 @@ export class AppsV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1APIResourceList", "" ) as V1APIResourceList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -5974,14 +5974,14 @@ export class AppsV1ApiResponseProcessor { * @params response Response returned by the server for a request to listControllerRevisionForAllNamespaces * @throws ApiException if the response code was not in [200, 299] */ - public async listControllerRevisionForAllNamespaces(response: ResponseContext): Promise { + public async listControllerRevisionForAllNamespacesWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1ControllerRevisionList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ControllerRevisionList", "" ) as V1ControllerRevisionList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -5993,7 +5993,7 @@ export class AppsV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1ControllerRevisionList", "" ) as V1ControllerRevisionList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -6006,14 +6006,14 @@ export class AppsV1ApiResponseProcessor { * @params response Response returned by the server for a request to listDaemonSetForAllNamespaces * @throws ApiException if the response code was not in [200, 299] */ - public async listDaemonSetForAllNamespaces(response: ResponseContext): Promise { + public async listDaemonSetForAllNamespacesWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1DaemonSetList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1DaemonSetList", "" ) as V1DaemonSetList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -6025,7 +6025,7 @@ export class AppsV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1DaemonSetList", "" ) as V1DaemonSetList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -6038,14 +6038,14 @@ export class AppsV1ApiResponseProcessor { * @params response Response returned by the server for a request to listDeploymentForAllNamespaces * @throws ApiException if the response code was not in [200, 299] */ - public async listDeploymentForAllNamespaces(response: ResponseContext): Promise { + public async listDeploymentForAllNamespacesWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1DeploymentList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1DeploymentList", "" ) as V1DeploymentList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -6057,7 +6057,7 @@ export class AppsV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1DeploymentList", "" ) as V1DeploymentList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -6070,14 +6070,14 @@ export class AppsV1ApiResponseProcessor { * @params response Response returned by the server for a request to listNamespacedControllerRevision * @throws ApiException if the response code was not in [200, 299] */ - public async listNamespacedControllerRevision(response: ResponseContext): Promise { + public async listNamespacedControllerRevisionWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1ControllerRevisionList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ControllerRevisionList", "" ) as V1ControllerRevisionList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -6089,7 +6089,7 @@ export class AppsV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1ControllerRevisionList", "" ) as V1ControllerRevisionList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -6102,14 +6102,14 @@ export class AppsV1ApiResponseProcessor { * @params response Response returned by the server for a request to listNamespacedDaemonSet * @throws ApiException if the response code was not in [200, 299] */ - public async listNamespacedDaemonSet(response: ResponseContext): Promise { + public async listNamespacedDaemonSetWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1DaemonSetList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1DaemonSetList", "" ) as V1DaemonSetList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -6121,7 +6121,7 @@ export class AppsV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1DaemonSetList", "" ) as V1DaemonSetList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -6134,14 +6134,14 @@ export class AppsV1ApiResponseProcessor { * @params response Response returned by the server for a request to listNamespacedDeployment * @throws ApiException if the response code was not in [200, 299] */ - public async listNamespacedDeployment(response: ResponseContext): Promise { + public async listNamespacedDeploymentWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1DeploymentList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1DeploymentList", "" ) as V1DeploymentList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -6153,7 +6153,7 @@ export class AppsV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1DeploymentList", "" ) as V1DeploymentList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -6166,14 +6166,14 @@ export class AppsV1ApiResponseProcessor { * @params response Response returned by the server for a request to listNamespacedReplicaSet * @throws ApiException if the response code was not in [200, 299] */ - public async listNamespacedReplicaSet(response: ResponseContext): Promise { + public async listNamespacedReplicaSetWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1ReplicaSetList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ReplicaSetList", "" ) as V1ReplicaSetList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -6185,7 +6185,7 @@ export class AppsV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1ReplicaSetList", "" ) as V1ReplicaSetList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -6198,14 +6198,14 @@ export class AppsV1ApiResponseProcessor { * @params response Response returned by the server for a request to listNamespacedStatefulSet * @throws ApiException if the response code was not in [200, 299] */ - public async listNamespacedStatefulSet(response: ResponseContext): Promise { + public async listNamespacedStatefulSetWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1StatefulSetList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1StatefulSetList", "" ) as V1StatefulSetList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -6217,7 +6217,7 @@ export class AppsV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1StatefulSetList", "" ) as V1StatefulSetList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -6230,14 +6230,14 @@ export class AppsV1ApiResponseProcessor { * @params response Response returned by the server for a request to listReplicaSetForAllNamespaces * @throws ApiException if the response code was not in [200, 299] */ - public async listReplicaSetForAllNamespaces(response: ResponseContext): Promise { + public async listReplicaSetForAllNamespacesWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1ReplicaSetList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ReplicaSetList", "" ) as V1ReplicaSetList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -6249,7 +6249,7 @@ export class AppsV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1ReplicaSetList", "" ) as V1ReplicaSetList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -6262,14 +6262,14 @@ export class AppsV1ApiResponseProcessor { * @params response Response returned by the server for a request to listStatefulSetForAllNamespaces * @throws ApiException if the response code was not in [200, 299] */ - public async listStatefulSetForAllNamespaces(response: ResponseContext): Promise { + public async listStatefulSetForAllNamespacesWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1StatefulSetList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1StatefulSetList", "" ) as V1StatefulSetList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -6281,7 +6281,7 @@ export class AppsV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1StatefulSetList", "" ) as V1StatefulSetList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -6294,21 +6294,21 @@ export class AppsV1ApiResponseProcessor { * @params response Response returned by the server for a request to patchNamespacedControllerRevision * @throws ApiException if the response code was not in [200, 299] */ - public async patchNamespacedControllerRevision(response: ResponseContext): Promise { + public async patchNamespacedControllerRevisionWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1ControllerRevision = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ControllerRevision", "" ) as V1ControllerRevision; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1ControllerRevision = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ControllerRevision", "" ) as V1ControllerRevision; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -6320,7 +6320,7 @@ export class AppsV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1ControllerRevision", "" ) as V1ControllerRevision; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -6333,21 +6333,21 @@ export class AppsV1ApiResponseProcessor { * @params response Response returned by the server for a request to patchNamespacedDaemonSet * @throws ApiException if the response code was not in [200, 299] */ - public async patchNamespacedDaemonSet(response: ResponseContext): Promise { + public async patchNamespacedDaemonSetWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1DaemonSet = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1DaemonSet", "" ) as V1DaemonSet; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1DaemonSet = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1DaemonSet", "" ) as V1DaemonSet; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -6359,7 +6359,7 @@ export class AppsV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1DaemonSet", "" ) as V1DaemonSet; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -6372,21 +6372,21 @@ export class AppsV1ApiResponseProcessor { * @params response Response returned by the server for a request to patchNamespacedDaemonSetStatus * @throws ApiException if the response code was not in [200, 299] */ - public async patchNamespacedDaemonSetStatus(response: ResponseContext): Promise { + public async patchNamespacedDaemonSetStatusWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1DaemonSet = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1DaemonSet", "" ) as V1DaemonSet; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1DaemonSet = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1DaemonSet", "" ) as V1DaemonSet; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -6398,7 +6398,7 @@ export class AppsV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1DaemonSet", "" ) as V1DaemonSet; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -6411,21 +6411,21 @@ export class AppsV1ApiResponseProcessor { * @params response Response returned by the server for a request to patchNamespacedDeployment * @throws ApiException if the response code was not in [200, 299] */ - public async patchNamespacedDeployment(response: ResponseContext): Promise { + public async patchNamespacedDeploymentWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1Deployment = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Deployment", "" ) as V1Deployment; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1Deployment = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Deployment", "" ) as V1Deployment; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -6437,7 +6437,7 @@ export class AppsV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Deployment", "" ) as V1Deployment; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -6450,21 +6450,21 @@ export class AppsV1ApiResponseProcessor { * @params response Response returned by the server for a request to patchNamespacedDeploymentScale * @throws ApiException if the response code was not in [200, 299] */ - public async patchNamespacedDeploymentScale(response: ResponseContext): Promise { + public async patchNamespacedDeploymentScaleWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1Scale = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Scale", "" ) as V1Scale; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1Scale = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Scale", "" ) as V1Scale; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -6476,7 +6476,7 @@ export class AppsV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Scale", "" ) as V1Scale; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -6489,21 +6489,21 @@ export class AppsV1ApiResponseProcessor { * @params response Response returned by the server for a request to patchNamespacedDeploymentStatus * @throws ApiException if the response code was not in [200, 299] */ - public async patchNamespacedDeploymentStatus(response: ResponseContext): Promise { + public async patchNamespacedDeploymentStatusWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1Deployment = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Deployment", "" ) as V1Deployment; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1Deployment = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Deployment", "" ) as V1Deployment; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -6515,7 +6515,7 @@ export class AppsV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Deployment", "" ) as V1Deployment; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -6528,21 +6528,21 @@ export class AppsV1ApiResponseProcessor { * @params response Response returned by the server for a request to patchNamespacedReplicaSet * @throws ApiException if the response code was not in [200, 299] */ - public async patchNamespacedReplicaSet(response: ResponseContext): Promise { + public async patchNamespacedReplicaSetWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1ReplicaSet = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ReplicaSet", "" ) as V1ReplicaSet; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1ReplicaSet = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ReplicaSet", "" ) as V1ReplicaSet; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -6554,7 +6554,7 @@ export class AppsV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1ReplicaSet", "" ) as V1ReplicaSet; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -6567,21 +6567,21 @@ export class AppsV1ApiResponseProcessor { * @params response Response returned by the server for a request to patchNamespacedReplicaSetScale * @throws ApiException if the response code was not in [200, 299] */ - public async patchNamespacedReplicaSetScale(response: ResponseContext): Promise { + public async patchNamespacedReplicaSetScaleWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1Scale = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Scale", "" ) as V1Scale; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1Scale = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Scale", "" ) as V1Scale; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -6593,7 +6593,7 @@ export class AppsV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Scale", "" ) as V1Scale; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -6606,21 +6606,21 @@ export class AppsV1ApiResponseProcessor { * @params response Response returned by the server for a request to patchNamespacedReplicaSetStatus * @throws ApiException if the response code was not in [200, 299] */ - public async patchNamespacedReplicaSetStatus(response: ResponseContext): Promise { + public async patchNamespacedReplicaSetStatusWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1ReplicaSet = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ReplicaSet", "" ) as V1ReplicaSet; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1ReplicaSet = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ReplicaSet", "" ) as V1ReplicaSet; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -6632,7 +6632,7 @@ export class AppsV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1ReplicaSet", "" ) as V1ReplicaSet; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -6645,21 +6645,21 @@ export class AppsV1ApiResponseProcessor { * @params response Response returned by the server for a request to patchNamespacedStatefulSet * @throws ApiException if the response code was not in [200, 299] */ - public async patchNamespacedStatefulSet(response: ResponseContext): Promise { + public async patchNamespacedStatefulSetWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1StatefulSet = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1StatefulSet", "" ) as V1StatefulSet; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1StatefulSet = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1StatefulSet", "" ) as V1StatefulSet; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -6671,7 +6671,7 @@ export class AppsV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1StatefulSet", "" ) as V1StatefulSet; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -6684,21 +6684,21 @@ export class AppsV1ApiResponseProcessor { * @params response Response returned by the server for a request to patchNamespacedStatefulSetScale * @throws ApiException if the response code was not in [200, 299] */ - public async patchNamespacedStatefulSetScale(response: ResponseContext): Promise { + public async patchNamespacedStatefulSetScaleWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1Scale = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Scale", "" ) as V1Scale; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1Scale = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Scale", "" ) as V1Scale; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -6710,7 +6710,7 @@ export class AppsV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Scale", "" ) as V1Scale; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -6723,21 +6723,21 @@ export class AppsV1ApiResponseProcessor { * @params response Response returned by the server for a request to patchNamespacedStatefulSetStatus * @throws ApiException if the response code was not in [200, 299] */ - public async patchNamespacedStatefulSetStatus(response: ResponseContext): Promise { + public async patchNamespacedStatefulSetStatusWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1StatefulSet = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1StatefulSet", "" ) as V1StatefulSet; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1StatefulSet = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1StatefulSet", "" ) as V1StatefulSet; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -6749,7 +6749,7 @@ export class AppsV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1StatefulSet", "" ) as V1StatefulSet; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -6762,14 +6762,14 @@ export class AppsV1ApiResponseProcessor { * @params response Response returned by the server for a request to readNamespacedControllerRevision * @throws ApiException if the response code was not in [200, 299] */ - public async readNamespacedControllerRevision(response: ResponseContext): Promise { + public async readNamespacedControllerRevisionWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1ControllerRevision = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ControllerRevision", "" ) as V1ControllerRevision; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -6781,7 +6781,7 @@ export class AppsV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1ControllerRevision", "" ) as V1ControllerRevision; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -6794,14 +6794,14 @@ export class AppsV1ApiResponseProcessor { * @params response Response returned by the server for a request to readNamespacedDaemonSet * @throws ApiException if the response code was not in [200, 299] */ - public async readNamespacedDaemonSet(response: ResponseContext): Promise { + public async readNamespacedDaemonSetWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1DaemonSet = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1DaemonSet", "" ) as V1DaemonSet; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -6813,7 +6813,7 @@ export class AppsV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1DaemonSet", "" ) as V1DaemonSet; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -6826,14 +6826,14 @@ export class AppsV1ApiResponseProcessor { * @params response Response returned by the server for a request to readNamespacedDaemonSetStatus * @throws ApiException if the response code was not in [200, 299] */ - public async readNamespacedDaemonSetStatus(response: ResponseContext): Promise { + public async readNamespacedDaemonSetStatusWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1DaemonSet = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1DaemonSet", "" ) as V1DaemonSet; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -6845,7 +6845,7 @@ export class AppsV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1DaemonSet", "" ) as V1DaemonSet; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -6858,14 +6858,14 @@ export class AppsV1ApiResponseProcessor { * @params response Response returned by the server for a request to readNamespacedDeployment * @throws ApiException if the response code was not in [200, 299] */ - public async readNamespacedDeployment(response: ResponseContext): Promise { + public async readNamespacedDeploymentWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1Deployment = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Deployment", "" ) as V1Deployment; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -6877,7 +6877,7 @@ export class AppsV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Deployment", "" ) as V1Deployment; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -6890,14 +6890,14 @@ export class AppsV1ApiResponseProcessor { * @params response Response returned by the server for a request to readNamespacedDeploymentScale * @throws ApiException if the response code was not in [200, 299] */ - public async readNamespacedDeploymentScale(response: ResponseContext): Promise { + public async readNamespacedDeploymentScaleWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1Scale = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Scale", "" ) as V1Scale; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -6909,7 +6909,7 @@ export class AppsV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Scale", "" ) as V1Scale; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -6922,14 +6922,14 @@ export class AppsV1ApiResponseProcessor { * @params response Response returned by the server for a request to readNamespacedDeploymentStatus * @throws ApiException if the response code was not in [200, 299] */ - public async readNamespacedDeploymentStatus(response: ResponseContext): Promise { + public async readNamespacedDeploymentStatusWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1Deployment = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Deployment", "" ) as V1Deployment; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -6941,7 +6941,7 @@ export class AppsV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Deployment", "" ) as V1Deployment; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -6954,14 +6954,14 @@ export class AppsV1ApiResponseProcessor { * @params response Response returned by the server for a request to readNamespacedReplicaSet * @throws ApiException if the response code was not in [200, 299] */ - public async readNamespacedReplicaSet(response: ResponseContext): Promise { + public async readNamespacedReplicaSetWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1ReplicaSet = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ReplicaSet", "" ) as V1ReplicaSet; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -6973,7 +6973,7 @@ export class AppsV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1ReplicaSet", "" ) as V1ReplicaSet; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -6986,14 +6986,14 @@ export class AppsV1ApiResponseProcessor { * @params response Response returned by the server for a request to readNamespacedReplicaSetScale * @throws ApiException if the response code was not in [200, 299] */ - public async readNamespacedReplicaSetScale(response: ResponseContext): Promise { + public async readNamespacedReplicaSetScaleWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1Scale = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Scale", "" ) as V1Scale; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -7005,7 +7005,7 @@ export class AppsV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Scale", "" ) as V1Scale; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -7018,14 +7018,14 @@ export class AppsV1ApiResponseProcessor { * @params response Response returned by the server for a request to readNamespacedReplicaSetStatus * @throws ApiException if the response code was not in [200, 299] */ - public async readNamespacedReplicaSetStatus(response: ResponseContext): Promise { + public async readNamespacedReplicaSetStatusWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1ReplicaSet = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ReplicaSet", "" ) as V1ReplicaSet; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -7037,7 +7037,7 @@ export class AppsV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1ReplicaSet", "" ) as V1ReplicaSet; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -7050,14 +7050,14 @@ export class AppsV1ApiResponseProcessor { * @params response Response returned by the server for a request to readNamespacedStatefulSet * @throws ApiException if the response code was not in [200, 299] */ - public async readNamespacedStatefulSet(response: ResponseContext): Promise { + public async readNamespacedStatefulSetWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1StatefulSet = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1StatefulSet", "" ) as V1StatefulSet; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -7069,7 +7069,7 @@ export class AppsV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1StatefulSet", "" ) as V1StatefulSet; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -7082,14 +7082,14 @@ export class AppsV1ApiResponseProcessor { * @params response Response returned by the server for a request to readNamespacedStatefulSetScale * @throws ApiException if the response code was not in [200, 299] */ - public async readNamespacedStatefulSetScale(response: ResponseContext): Promise { + public async readNamespacedStatefulSetScaleWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1Scale = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Scale", "" ) as V1Scale; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -7101,7 +7101,7 @@ export class AppsV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Scale", "" ) as V1Scale; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -7114,14 +7114,14 @@ export class AppsV1ApiResponseProcessor { * @params response Response returned by the server for a request to readNamespacedStatefulSetStatus * @throws ApiException if the response code was not in [200, 299] */ - public async readNamespacedStatefulSetStatus(response: ResponseContext): Promise { + public async readNamespacedStatefulSetStatusWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1StatefulSet = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1StatefulSet", "" ) as V1StatefulSet; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -7133,7 +7133,7 @@ export class AppsV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1StatefulSet", "" ) as V1StatefulSet; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -7146,21 +7146,21 @@ export class AppsV1ApiResponseProcessor { * @params response Response returned by the server for a request to replaceNamespacedControllerRevision * @throws ApiException if the response code was not in [200, 299] */ - public async replaceNamespacedControllerRevision(response: ResponseContext): Promise { + public async replaceNamespacedControllerRevisionWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1ControllerRevision = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ControllerRevision", "" ) as V1ControllerRevision; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1ControllerRevision = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ControllerRevision", "" ) as V1ControllerRevision; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -7172,7 +7172,7 @@ export class AppsV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1ControllerRevision", "" ) as V1ControllerRevision; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -7185,21 +7185,21 @@ export class AppsV1ApiResponseProcessor { * @params response Response returned by the server for a request to replaceNamespacedDaemonSet * @throws ApiException if the response code was not in [200, 299] */ - public async replaceNamespacedDaemonSet(response: ResponseContext): Promise { + public async replaceNamespacedDaemonSetWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1DaemonSet = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1DaemonSet", "" ) as V1DaemonSet; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1DaemonSet = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1DaemonSet", "" ) as V1DaemonSet; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -7211,7 +7211,7 @@ export class AppsV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1DaemonSet", "" ) as V1DaemonSet; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -7224,21 +7224,21 @@ export class AppsV1ApiResponseProcessor { * @params response Response returned by the server for a request to replaceNamespacedDaemonSetStatus * @throws ApiException if the response code was not in [200, 299] */ - public async replaceNamespacedDaemonSetStatus(response: ResponseContext): Promise { + public async replaceNamespacedDaemonSetStatusWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1DaemonSet = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1DaemonSet", "" ) as V1DaemonSet; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1DaemonSet = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1DaemonSet", "" ) as V1DaemonSet; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -7250,7 +7250,7 @@ export class AppsV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1DaemonSet", "" ) as V1DaemonSet; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -7263,21 +7263,21 @@ export class AppsV1ApiResponseProcessor { * @params response Response returned by the server for a request to replaceNamespacedDeployment * @throws ApiException if the response code was not in [200, 299] */ - public async replaceNamespacedDeployment(response: ResponseContext): Promise { + public async replaceNamespacedDeploymentWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1Deployment = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Deployment", "" ) as V1Deployment; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1Deployment = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Deployment", "" ) as V1Deployment; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -7289,7 +7289,7 @@ export class AppsV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Deployment", "" ) as V1Deployment; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -7302,21 +7302,21 @@ export class AppsV1ApiResponseProcessor { * @params response Response returned by the server for a request to replaceNamespacedDeploymentScale * @throws ApiException if the response code was not in [200, 299] */ - public async replaceNamespacedDeploymentScale(response: ResponseContext): Promise { + public async replaceNamespacedDeploymentScaleWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1Scale = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Scale", "" ) as V1Scale; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1Scale = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Scale", "" ) as V1Scale; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -7328,7 +7328,7 @@ export class AppsV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Scale", "" ) as V1Scale; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -7341,21 +7341,21 @@ export class AppsV1ApiResponseProcessor { * @params response Response returned by the server for a request to replaceNamespacedDeploymentStatus * @throws ApiException if the response code was not in [200, 299] */ - public async replaceNamespacedDeploymentStatus(response: ResponseContext): Promise { + public async replaceNamespacedDeploymentStatusWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1Deployment = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Deployment", "" ) as V1Deployment; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1Deployment = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Deployment", "" ) as V1Deployment; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -7367,7 +7367,7 @@ export class AppsV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Deployment", "" ) as V1Deployment; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -7380,21 +7380,21 @@ export class AppsV1ApiResponseProcessor { * @params response Response returned by the server for a request to replaceNamespacedReplicaSet * @throws ApiException if the response code was not in [200, 299] */ - public async replaceNamespacedReplicaSet(response: ResponseContext): Promise { + public async replaceNamespacedReplicaSetWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1ReplicaSet = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ReplicaSet", "" ) as V1ReplicaSet; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1ReplicaSet = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ReplicaSet", "" ) as V1ReplicaSet; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -7406,7 +7406,7 @@ export class AppsV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1ReplicaSet", "" ) as V1ReplicaSet; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -7419,21 +7419,21 @@ export class AppsV1ApiResponseProcessor { * @params response Response returned by the server for a request to replaceNamespacedReplicaSetScale * @throws ApiException if the response code was not in [200, 299] */ - public async replaceNamespacedReplicaSetScale(response: ResponseContext): Promise { + public async replaceNamespacedReplicaSetScaleWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1Scale = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Scale", "" ) as V1Scale; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1Scale = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Scale", "" ) as V1Scale; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -7445,7 +7445,7 @@ export class AppsV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Scale", "" ) as V1Scale; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -7458,21 +7458,21 @@ export class AppsV1ApiResponseProcessor { * @params response Response returned by the server for a request to replaceNamespacedReplicaSetStatus * @throws ApiException if the response code was not in [200, 299] */ - public async replaceNamespacedReplicaSetStatus(response: ResponseContext): Promise { + public async replaceNamespacedReplicaSetStatusWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1ReplicaSet = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ReplicaSet", "" ) as V1ReplicaSet; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1ReplicaSet = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ReplicaSet", "" ) as V1ReplicaSet; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -7484,7 +7484,7 @@ export class AppsV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1ReplicaSet", "" ) as V1ReplicaSet; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -7497,21 +7497,21 @@ export class AppsV1ApiResponseProcessor { * @params response Response returned by the server for a request to replaceNamespacedStatefulSet * @throws ApiException if the response code was not in [200, 299] */ - public async replaceNamespacedStatefulSet(response: ResponseContext): Promise { + public async replaceNamespacedStatefulSetWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1StatefulSet = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1StatefulSet", "" ) as V1StatefulSet; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1StatefulSet = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1StatefulSet", "" ) as V1StatefulSet; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -7523,7 +7523,7 @@ export class AppsV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1StatefulSet", "" ) as V1StatefulSet; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -7536,21 +7536,21 @@ export class AppsV1ApiResponseProcessor { * @params response Response returned by the server for a request to replaceNamespacedStatefulSetScale * @throws ApiException if the response code was not in [200, 299] */ - public async replaceNamespacedStatefulSetScale(response: ResponseContext): Promise { + public async replaceNamespacedStatefulSetScaleWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1Scale = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Scale", "" ) as V1Scale; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1Scale = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Scale", "" ) as V1Scale; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -7562,7 +7562,7 @@ export class AppsV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Scale", "" ) as V1Scale; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -7575,21 +7575,21 @@ export class AppsV1ApiResponseProcessor { * @params response Response returned by the server for a request to replaceNamespacedStatefulSetStatus * @throws ApiException if the response code was not in [200, 299] */ - public async replaceNamespacedStatefulSetStatus(response: ResponseContext): Promise { + public async replaceNamespacedStatefulSetStatusWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1StatefulSet = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1StatefulSet", "" ) as V1StatefulSet; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1StatefulSet = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1StatefulSet", "" ) as V1StatefulSet; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -7601,7 +7601,7 @@ export class AppsV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1StatefulSet", "" ) as V1StatefulSet; - return body; + 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/AuthenticationApi.ts b/src/gen/apis/AuthenticationApi.ts index 17827f9e777..152772d0b45 100644 --- a/src/gen/apis/AuthenticationApi.ts +++ b/src/gen/apis/AuthenticationApi.ts @@ -1,7 +1,7 @@ // TODO: better import syntax? import {BaseAPIRequestFactory, RequiredError, COLLECTION_FORMATS} from './baseapi'; import {Configuration} from '../configuration'; -import {RequestContext, HttpMethod, ResponseContext, HttpFile} from '../http/http'; +import {RequestContext, HttpMethod, ResponseContext, HttpFile, HttpInfo} from '../http/http'; import FormData from "form-data"; import { URLSearchParams } from 'url'; import {ObjectSerializer} from '../models/ObjectSerializer'; @@ -57,14 +57,14 @@ export class AuthenticationApiResponseProcessor { * @params response Response returned by the server for a request to getAPIGroup * @throws ApiException if the response code was not in [200, 299] */ - public async getAPIGroup(response: ResponseContext): Promise { + public async getAPIGroupWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1APIGroup = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1APIGroup", "" ) as V1APIGroup; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -76,7 +76,7 @@ export class AuthenticationApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1APIGroup", "" ) as V1APIGroup; - return body; + 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/AuthenticationV1Api.ts b/src/gen/apis/AuthenticationV1Api.ts index c4c9b124bcd..ce6f84578b0 100644 --- a/src/gen/apis/AuthenticationV1Api.ts +++ b/src/gen/apis/AuthenticationV1Api.ts @@ -1,7 +1,7 @@ // TODO: better import syntax? import {BaseAPIRequestFactory, RequiredError, COLLECTION_FORMATS} from './baseapi'; import {Configuration} from '../configuration'; -import {RequestContext, HttpMethod, ResponseContext, HttpFile} from '../http/http'; +import {RequestContext, HttpMethod, ResponseContext, HttpFile, HttpInfo} from '../http/http'; import FormData from "form-data"; import { URLSearchParams } from 'url'; import {ObjectSerializer} from '../models/ObjectSerializer'; @@ -124,28 +124,28 @@ export class AuthenticationV1ApiResponseProcessor { * @params response Response returned by the server for a request to createTokenReview * @throws ApiException if the response code was not in [200, 299] */ - public async createTokenReview(response: ResponseContext): Promise { + public async createTokenReviewWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1TokenReview = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1TokenReview", "" ) as V1TokenReview; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1TokenReview = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1TokenReview", "" ) as V1TokenReview; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("202", response.httpStatusCode)) { const body: V1TokenReview = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1TokenReview", "" ) as V1TokenReview; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -157,7 +157,7 @@ export class AuthenticationV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1TokenReview", "" ) as V1TokenReview; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -170,14 +170,14 @@ export class AuthenticationV1ApiResponseProcessor { * @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 getAPIResources(response: ResponseContext): Promise { + 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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -189,7 +189,7 @@ export class AuthenticationV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1APIResourceList", "" ) as V1APIResourceList; - return body; + 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/AuthorizationApi.ts b/src/gen/apis/AuthorizationApi.ts index 0e52d243d41..42d7c6b0033 100644 --- a/src/gen/apis/AuthorizationApi.ts +++ b/src/gen/apis/AuthorizationApi.ts @@ -1,7 +1,7 @@ // TODO: better import syntax? import {BaseAPIRequestFactory, RequiredError, COLLECTION_FORMATS} from './baseapi'; import {Configuration} from '../configuration'; -import {RequestContext, HttpMethod, ResponseContext, HttpFile} from '../http/http'; +import {RequestContext, HttpMethod, ResponseContext, HttpFile, HttpInfo} from '../http/http'; import FormData from "form-data"; import { URLSearchParams } from 'url'; import {ObjectSerializer} from '../models/ObjectSerializer'; @@ -57,14 +57,14 @@ export class AuthorizationApiResponseProcessor { * @params response Response returned by the server for a request to getAPIGroup * @throws ApiException if the response code was not in [200, 299] */ - public async getAPIGroup(response: ResponseContext): Promise { + public async getAPIGroupWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1APIGroup = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1APIGroup", "" ) as V1APIGroup; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -76,7 +76,7 @@ export class AuthorizationApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1APIGroup", "" ) as V1APIGroup; - return body; + 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/AuthorizationV1Api.ts b/src/gen/apis/AuthorizationV1Api.ts index c173f154b3a..410d08b6b47 100644 --- a/src/gen/apis/AuthorizationV1Api.ts +++ b/src/gen/apis/AuthorizationV1Api.ts @@ -1,7 +1,7 @@ // TODO: better import syntax? import {BaseAPIRequestFactory, RequiredError, COLLECTION_FORMATS} from './baseapi'; import {Configuration} from '../configuration'; -import {RequestContext, HttpMethod, ResponseContext, HttpFile} from '../http/http'; +import {RequestContext, HttpMethod, ResponseContext, HttpFile, HttpInfo} from '../http/http'; import FormData from "form-data"; import { URLSearchParams } from 'url'; import {ObjectSerializer} from '../models/ObjectSerializer'; @@ -333,28 +333,28 @@ export class AuthorizationV1ApiResponseProcessor { * @params response Response returned by the server for a request to createNamespacedLocalSubjectAccessReview * @throws ApiException if the response code was not in [200, 299] */ - public async createNamespacedLocalSubjectAccessReview(response: ResponseContext): Promise { + public async createNamespacedLocalSubjectAccessReviewWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1LocalSubjectAccessReview = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1LocalSubjectAccessReview", "" ) as V1LocalSubjectAccessReview; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1LocalSubjectAccessReview = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1LocalSubjectAccessReview", "" ) as V1LocalSubjectAccessReview; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("202", response.httpStatusCode)) { const body: V1LocalSubjectAccessReview = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1LocalSubjectAccessReview", "" ) as V1LocalSubjectAccessReview; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -366,7 +366,7 @@ export class AuthorizationV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1LocalSubjectAccessReview", "" ) as V1LocalSubjectAccessReview; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -379,28 +379,28 @@ export class AuthorizationV1ApiResponseProcessor { * @params response Response returned by the server for a request to createSelfSubjectAccessReview * @throws ApiException if the response code was not in [200, 299] */ - public async createSelfSubjectAccessReview(response: ResponseContext): Promise { + public async createSelfSubjectAccessReviewWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1SelfSubjectAccessReview = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1SelfSubjectAccessReview", "" ) as V1SelfSubjectAccessReview; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1SelfSubjectAccessReview = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1SelfSubjectAccessReview", "" ) as V1SelfSubjectAccessReview; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("202", response.httpStatusCode)) { const body: V1SelfSubjectAccessReview = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1SelfSubjectAccessReview", "" ) as V1SelfSubjectAccessReview; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -412,7 +412,7 @@ export class AuthorizationV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1SelfSubjectAccessReview", "" ) as V1SelfSubjectAccessReview; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -425,28 +425,28 @@ export class AuthorizationV1ApiResponseProcessor { * @params response Response returned by the server for a request to createSelfSubjectRulesReview * @throws ApiException if the response code was not in [200, 299] */ - public async createSelfSubjectRulesReview(response: ResponseContext): Promise { + public async createSelfSubjectRulesReviewWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1SelfSubjectRulesReview = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1SelfSubjectRulesReview", "" ) as V1SelfSubjectRulesReview; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1SelfSubjectRulesReview = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1SelfSubjectRulesReview", "" ) as V1SelfSubjectRulesReview; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("202", response.httpStatusCode)) { const body: V1SelfSubjectRulesReview = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1SelfSubjectRulesReview", "" ) as V1SelfSubjectRulesReview; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -458,7 +458,7 @@ export class AuthorizationV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1SelfSubjectRulesReview", "" ) as V1SelfSubjectRulesReview; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -471,28 +471,28 @@ export class AuthorizationV1ApiResponseProcessor { * @params response Response returned by the server for a request to createSubjectAccessReview * @throws ApiException if the response code was not in [200, 299] */ - public async createSubjectAccessReview(response: ResponseContext): Promise { + public async createSubjectAccessReviewWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1SubjectAccessReview = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1SubjectAccessReview", "" ) as V1SubjectAccessReview; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1SubjectAccessReview = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1SubjectAccessReview", "" ) as V1SubjectAccessReview; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("202", response.httpStatusCode)) { const body: V1SubjectAccessReview = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1SubjectAccessReview", "" ) as V1SubjectAccessReview; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -504,7 +504,7 @@ export class AuthorizationV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1SubjectAccessReview", "" ) as V1SubjectAccessReview; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -517,14 +517,14 @@ export class AuthorizationV1ApiResponseProcessor { * @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 getAPIResources(response: ResponseContext): Promise { + 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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -536,7 +536,7 @@ export class AuthorizationV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1APIResourceList", "" ) as V1APIResourceList; - return body; + 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/AutoscalingApi.ts b/src/gen/apis/AutoscalingApi.ts index 18cd35e3862..91d8dfaef60 100644 --- a/src/gen/apis/AutoscalingApi.ts +++ b/src/gen/apis/AutoscalingApi.ts @@ -1,7 +1,7 @@ // TODO: better import syntax? import {BaseAPIRequestFactory, RequiredError, COLLECTION_FORMATS} from './baseapi'; import {Configuration} from '../configuration'; -import {RequestContext, HttpMethod, ResponseContext, HttpFile} from '../http/http'; +import {RequestContext, HttpMethod, ResponseContext, HttpFile, HttpInfo} from '../http/http'; import FormData from "form-data"; import { URLSearchParams } from 'url'; import {ObjectSerializer} from '../models/ObjectSerializer'; @@ -57,14 +57,14 @@ export class AutoscalingApiResponseProcessor { * @params response Response returned by the server for a request to getAPIGroup * @throws ApiException if the response code was not in [200, 299] */ - public async getAPIGroup(response: ResponseContext): Promise { + public async getAPIGroupWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1APIGroup = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1APIGroup", "" ) as V1APIGroup; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -76,7 +76,7 @@ export class AutoscalingApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1APIGroup", "" ) as V1APIGroup; - return body; + 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/AutoscalingV1Api.ts b/src/gen/apis/AutoscalingV1Api.ts index 180ad03f916..a3076394bb1 100644 --- a/src/gen/apis/AutoscalingV1Api.ts +++ b/src/gen/apis/AutoscalingV1Api.ts @@ -1,7 +1,7 @@ // TODO: better import syntax? import {BaseAPIRequestFactory, RequiredError, COLLECTION_FORMATS} from './baseapi'; import {Configuration} from '../configuration'; -import {RequestContext, HttpMethod, ResponseContext, HttpFile} from '../http/http'; +import {RequestContext, HttpMethod, ResponseContext, HttpFile, HttpInfo} from '../http/http'; import FormData from "form-data"; import { URLSearchParams } from 'url'; import {ObjectSerializer} from '../models/ObjectSerializer'; @@ -1026,28 +1026,28 @@ export class AutoscalingV1ApiResponseProcessor { * @params response Response returned by the server for a request to createNamespacedHorizontalPodAutoscaler * @throws ApiException if the response code was not in [200, 299] */ - public async createNamespacedHorizontalPodAutoscaler(response: ResponseContext): Promise { + public async createNamespacedHorizontalPodAutoscalerWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1HorizontalPodAutoscaler = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1HorizontalPodAutoscaler", "" ) as V1HorizontalPodAutoscaler; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1HorizontalPodAutoscaler = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1HorizontalPodAutoscaler", "" ) as V1HorizontalPodAutoscaler; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("202", response.httpStatusCode)) { const body: V1HorizontalPodAutoscaler = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1HorizontalPodAutoscaler", "" ) as V1HorizontalPodAutoscaler; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1059,7 +1059,7 @@ export class AutoscalingV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1HorizontalPodAutoscaler", "" ) as V1HorizontalPodAutoscaler; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1072,14 +1072,14 @@ export class AutoscalingV1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteCollectionNamespacedHorizontalPodAutoscaler * @throws ApiException if the response code was not in [200, 299] */ - public async deleteCollectionNamespacedHorizontalPodAutoscaler(response: ResponseContext): Promise { + public async deleteCollectionNamespacedHorizontalPodAutoscalerWithHttpInfo(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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1091,7 +1091,7 @@ export class AutoscalingV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1104,21 +1104,21 @@ export class AutoscalingV1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteNamespacedHorizontalPodAutoscaler * @throws ApiException if the response code was not in [200, 299] */ - public async deleteNamespacedHorizontalPodAutoscaler(response: ResponseContext): Promise { + public async deleteNamespacedHorizontalPodAutoscalerWithHttpInfo(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 body; + 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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1130,7 +1130,7 @@ export class AutoscalingV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1143,14 +1143,14 @@ export class AutoscalingV1ApiResponseProcessor { * @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 getAPIResources(response: ResponseContext): Promise { + 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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1162,7 +1162,7 @@ export class AutoscalingV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1APIResourceList", "" ) as V1APIResourceList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1175,14 +1175,14 @@ export class AutoscalingV1ApiResponseProcessor { * @params response Response returned by the server for a request to listHorizontalPodAutoscalerForAllNamespaces * @throws ApiException if the response code was not in [200, 299] */ - public async listHorizontalPodAutoscalerForAllNamespaces(response: ResponseContext): Promise { + public async listHorizontalPodAutoscalerForAllNamespacesWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1HorizontalPodAutoscalerList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1HorizontalPodAutoscalerList", "" ) as V1HorizontalPodAutoscalerList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1194,7 +1194,7 @@ export class AutoscalingV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1HorizontalPodAutoscalerList", "" ) as V1HorizontalPodAutoscalerList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1207,14 +1207,14 @@ export class AutoscalingV1ApiResponseProcessor { * @params response Response returned by the server for a request to listNamespacedHorizontalPodAutoscaler * @throws ApiException if the response code was not in [200, 299] */ - public async listNamespacedHorizontalPodAutoscaler(response: ResponseContext): Promise { + public async listNamespacedHorizontalPodAutoscalerWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1HorizontalPodAutoscalerList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1HorizontalPodAutoscalerList", "" ) as V1HorizontalPodAutoscalerList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1226,7 +1226,7 @@ export class AutoscalingV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1HorizontalPodAutoscalerList", "" ) as V1HorizontalPodAutoscalerList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1239,21 +1239,21 @@ export class AutoscalingV1ApiResponseProcessor { * @params response Response returned by the server for a request to patchNamespacedHorizontalPodAutoscaler * @throws ApiException if the response code was not in [200, 299] */ - public async patchNamespacedHorizontalPodAutoscaler(response: ResponseContext): Promise { + public async patchNamespacedHorizontalPodAutoscalerWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1HorizontalPodAutoscaler = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1HorizontalPodAutoscaler", "" ) as V1HorizontalPodAutoscaler; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1HorizontalPodAutoscaler = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1HorizontalPodAutoscaler", "" ) as V1HorizontalPodAutoscaler; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1265,7 +1265,7 @@ export class AutoscalingV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1HorizontalPodAutoscaler", "" ) as V1HorizontalPodAutoscaler; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1278,21 +1278,21 @@ export class AutoscalingV1ApiResponseProcessor { * @params response Response returned by the server for a request to patchNamespacedHorizontalPodAutoscalerStatus * @throws ApiException if the response code was not in [200, 299] */ - public async patchNamespacedHorizontalPodAutoscalerStatus(response: ResponseContext): Promise { + public async patchNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1HorizontalPodAutoscaler = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1HorizontalPodAutoscaler", "" ) as V1HorizontalPodAutoscaler; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1HorizontalPodAutoscaler = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1HorizontalPodAutoscaler", "" ) as V1HorizontalPodAutoscaler; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1304,7 +1304,7 @@ export class AutoscalingV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1HorizontalPodAutoscaler", "" ) as V1HorizontalPodAutoscaler; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1317,14 +1317,14 @@ export class AutoscalingV1ApiResponseProcessor { * @params response Response returned by the server for a request to readNamespacedHorizontalPodAutoscaler * @throws ApiException if the response code was not in [200, 299] */ - public async readNamespacedHorizontalPodAutoscaler(response: ResponseContext): Promise { + public async readNamespacedHorizontalPodAutoscalerWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1HorizontalPodAutoscaler = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1HorizontalPodAutoscaler", "" ) as V1HorizontalPodAutoscaler; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1336,7 +1336,7 @@ export class AutoscalingV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1HorizontalPodAutoscaler", "" ) as V1HorizontalPodAutoscaler; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1349,14 +1349,14 @@ export class AutoscalingV1ApiResponseProcessor { * @params response Response returned by the server for a request to readNamespacedHorizontalPodAutoscalerStatus * @throws ApiException if the response code was not in [200, 299] */ - public async readNamespacedHorizontalPodAutoscalerStatus(response: ResponseContext): Promise { + public async readNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1HorizontalPodAutoscaler = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1HorizontalPodAutoscaler", "" ) as V1HorizontalPodAutoscaler; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1368,7 +1368,7 @@ export class AutoscalingV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1HorizontalPodAutoscaler", "" ) as V1HorizontalPodAutoscaler; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1381,21 +1381,21 @@ export class AutoscalingV1ApiResponseProcessor { * @params response Response returned by the server for a request to replaceNamespacedHorizontalPodAutoscaler * @throws ApiException if the response code was not in [200, 299] */ - public async replaceNamespacedHorizontalPodAutoscaler(response: ResponseContext): Promise { + public async replaceNamespacedHorizontalPodAutoscalerWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1HorizontalPodAutoscaler = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1HorizontalPodAutoscaler", "" ) as V1HorizontalPodAutoscaler; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1HorizontalPodAutoscaler = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1HorizontalPodAutoscaler", "" ) as V1HorizontalPodAutoscaler; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1407,7 +1407,7 @@ export class AutoscalingV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1HorizontalPodAutoscaler", "" ) as V1HorizontalPodAutoscaler; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1420,21 +1420,21 @@ export class AutoscalingV1ApiResponseProcessor { * @params response Response returned by the server for a request to replaceNamespacedHorizontalPodAutoscalerStatus * @throws ApiException if the response code was not in [200, 299] */ - public async replaceNamespacedHorizontalPodAutoscalerStatus(response: ResponseContext): Promise { + public async replaceNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1HorizontalPodAutoscaler = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1HorizontalPodAutoscaler", "" ) as V1HorizontalPodAutoscaler; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1HorizontalPodAutoscaler = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1HorizontalPodAutoscaler", "" ) as V1HorizontalPodAutoscaler; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1446,7 +1446,7 @@ export class AutoscalingV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1HorizontalPodAutoscaler", "" ) as V1HorizontalPodAutoscaler; - return body; + 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/AutoscalingV2beta1Api.ts b/src/gen/apis/AutoscalingV2beta1Api.ts index f0af012606e..8c35092c652 100644 --- a/src/gen/apis/AutoscalingV2beta1Api.ts +++ b/src/gen/apis/AutoscalingV2beta1Api.ts @@ -1,7 +1,7 @@ // TODO: better import syntax? import {BaseAPIRequestFactory, RequiredError, COLLECTION_FORMATS} from './baseapi'; import {Configuration} from '../configuration'; -import {RequestContext, HttpMethod, ResponseContext, HttpFile} from '../http/http'; +import {RequestContext, HttpMethod, ResponseContext, HttpFile, HttpInfo} from '../http/http'; import FormData from "form-data"; import { URLSearchParams } from 'url'; import {ObjectSerializer} from '../models/ObjectSerializer'; @@ -1026,28 +1026,28 @@ export class AutoscalingV2beta1ApiResponseProcessor { * @params response Response returned by the server for a request to createNamespacedHorizontalPodAutoscaler * @throws ApiException if the response code was not in [200, 299] */ - public async createNamespacedHorizontalPodAutoscaler(response: ResponseContext): Promise { + public async createNamespacedHorizontalPodAutoscalerWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V2beta1HorizontalPodAutoscaler = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V2beta1HorizontalPodAutoscaler", "" ) as V2beta1HorizontalPodAutoscaler; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V2beta1HorizontalPodAutoscaler = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V2beta1HorizontalPodAutoscaler", "" ) as V2beta1HorizontalPodAutoscaler; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("202", response.httpStatusCode)) { const body: V2beta1HorizontalPodAutoscaler = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V2beta1HorizontalPodAutoscaler", "" ) as V2beta1HorizontalPodAutoscaler; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1059,7 +1059,7 @@ export class AutoscalingV2beta1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V2beta1HorizontalPodAutoscaler", "" ) as V2beta1HorizontalPodAutoscaler; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1072,14 +1072,14 @@ export class AutoscalingV2beta1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteCollectionNamespacedHorizontalPodAutoscaler * @throws ApiException if the response code was not in [200, 299] */ - public async deleteCollectionNamespacedHorizontalPodAutoscaler(response: ResponseContext): Promise { + public async deleteCollectionNamespacedHorizontalPodAutoscalerWithHttpInfo(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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1091,7 +1091,7 @@ export class AutoscalingV2beta1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1104,21 +1104,21 @@ export class AutoscalingV2beta1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteNamespacedHorizontalPodAutoscaler * @throws ApiException if the response code was not in [200, 299] */ - public async deleteNamespacedHorizontalPodAutoscaler(response: ResponseContext): Promise { + public async deleteNamespacedHorizontalPodAutoscalerWithHttpInfo(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 body; + 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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1130,7 +1130,7 @@ export class AutoscalingV2beta1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1143,14 +1143,14 @@ export class AutoscalingV2beta1ApiResponseProcessor { * @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 getAPIResources(response: ResponseContext): Promise { + 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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1162,7 +1162,7 @@ export class AutoscalingV2beta1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1APIResourceList", "" ) as V1APIResourceList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1175,14 +1175,14 @@ export class AutoscalingV2beta1ApiResponseProcessor { * @params response Response returned by the server for a request to listHorizontalPodAutoscalerForAllNamespaces * @throws ApiException if the response code was not in [200, 299] */ - public async listHorizontalPodAutoscalerForAllNamespaces(response: ResponseContext): Promise { + public async listHorizontalPodAutoscalerForAllNamespacesWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V2beta1HorizontalPodAutoscalerList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V2beta1HorizontalPodAutoscalerList", "" ) as V2beta1HorizontalPodAutoscalerList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1194,7 +1194,7 @@ export class AutoscalingV2beta1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V2beta1HorizontalPodAutoscalerList", "" ) as V2beta1HorizontalPodAutoscalerList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1207,14 +1207,14 @@ export class AutoscalingV2beta1ApiResponseProcessor { * @params response Response returned by the server for a request to listNamespacedHorizontalPodAutoscaler * @throws ApiException if the response code was not in [200, 299] */ - public async listNamespacedHorizontalPodAutoscaler(response: ResponseContext): Promise { + public async listNamespacedHorizontalPodAutoscalerWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V2beta1HorizontalPodAutoscalerList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V2beta1HorizontalPodAutoscalerList", "" ) as V2beta1HorizontalPodAutoscalerList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1226,7 +1226,7 @@ export class AutoscalingV2beta1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V2beta1HorizontalPodAutoscalerList", "" ) as V2beta1HorizontalPodAutoscalerList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1239,21 +1239,21 @@ export class AutoscalingV2beta1ApiResponseProcessor { * @params response Response returned by the server for a request to patchNamespacedHorizontalPodAutoscaler * @throws ApiException if the response code was not in [200, 299] */ - public async patchNamespacedHorizontalPodAutoscaler(response: ResponseContext): Promise { + public async patchNamespacedHorizontalPodAutoscalerWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V2beta1HorizontalPodAutoscaler = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V2beta1HorizontalPodAutoscaler", "" ) as V2beta1HorizontalPodAutoscaler; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V2beta1HorizontalPodAutoscaler = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V2beta1HorizontalPodAutoscaler", "" ) as V2beta1HorizontalPodAutoscaler; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1265,7 +1265,7 @@ export class AutoscalingV2beta1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V2beta1HorizontalPodAutoscaler", "" ) as V2beta1HorizontalPodAutoscaler; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1278,21 +1278,21 @@ export class AutoscalingV2beta1ApiResponseProcessor { * @params response Response returned by the server for a request to patchNamespacedHorizontalPodAutoscalerStatus * @throws ApiException if the response code was not in [200, 299] */ - public async patchNamespacedHorizontalPodAutoscalerStatus(response: ResponseContext): Promise { + public async patchNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V2beta1HorizontalPodAutoscaler = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V2beta1HorizontalPodAutoscaler", "" ) as V2beta1HorizontalPodAutoscaler; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V2beta1HorizontalPodAutoscaler = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V2beta1HorizontalPodAutoscaler", "" ) as V2beta1HorizontalPodAutoscaler; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1304,7 +1304,7 @@ export class AutoscalingV2beta1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V2beta1HorizontalPodAutoscaler", "" ) as V2beta1HorizontalPodAutoscaler; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1317,14 +1317,14 @@ export class AutoscalingV2beta1ApiResponseProcessor { * @params response Response returned by the server for a request to readNamespacedHorizontalPodAutoscaler * @throws ApiException if the response code was not in [200, 299] */ - public async readNamespacedHorizontalPodAutoscaler(response: ResponseContext): Promise { + public async readNamespacedHorizontalPodAutoscalerWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V2beta1HorizontalPodAutoscaler = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V2beta1HorizontalPodAutoscaler", "" ) as V2beta1HorizontalPodAutoscaler; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1336,7 +1336,7 @@ export class AutoscalingV2beta1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V2beta1HorizontalPodAutoscaler", "" ) as V2beta1HorizontalPodAutoscaler; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1349,14 +1349,14 @@ export class AutoscalingV2beta1ApiResponseProcessor { * @params response Response returned by the server for a request to readNamespacedHorizontalPodAutoscalerStatus * @throws ApiException if the response code was not in [200, 299] */ - public async readNamespacedHorizontalPodAutoscalerStatus(response: ResponseContext): Promise { + public async readNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V2beta1HorizontalPodAutoscaler = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V2beta1HorizontalPodAutoscaler", "" ) as V2beta1HorizontalPodAutoscaler; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1368,7 +1368,7 @@ export class AutoscalingV2beta1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V2beta1HorizontalPodAutoscaler", "" ) as V2beta1HorizontalPodAutoscaler; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1381,21 +1381,21 @@ export class AutoscalingV2beta1ApiResponseProcessor { * @params response Response returned by the server for a request to replaceNamespacedHorizontalPodAutoscaler * @throws ApiException if the response code was not in [200, 299] */ - public async replaceNamespacedHorizontalPodAutoscaler(response: ResponseContext): Promise { + public async replaceNamespacedHorizontalPodAutoscalerWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V2beta1HorizontalPodAutoscaler = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V2beta1HorizontalPodAutoscaler", "" ) as V2beta1HorizontalPodAutoscaler; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V2beta1HorizontalPodAutoscaler = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V2beta1HorizontalPodAutoscaler", "" ) as V2beta1HorizontalPodAutoscaler; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1407,7 +1407,7 @@ export class AutoscalingV2beta1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V2beta1HorizontalPodAutoscaler", "" ) as V2beta1HorizontalPodAutoscaler; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1420,21 +1420,21 @@ export class AutoscalingV2beta1ApiResponseProcessor { * @params response Response returned by the server for a request to replaceNamespacedHorizontalPodAutoscalerStatus * @throws ApiException if the response code was not in [200, 299] */ - public async replaceNamespacedHorizontalPodAutoscalerStatus(response: ResponseContext): Promise { + public async replaceNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V2beta1HorizontalPodAutoscaler = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V2beta1HorizontalPodAutoscaler", "" ) as V2beta1HorizontalPodAutoscaler; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V2beta1HorizontalPodAutoscaler = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V2beta1HorizontalPodAutoscaler", "" ) as V2beta1HorizontalPodAutoscaler; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1446,7 +1446,7 @@ export class AutoscalingV2beta1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V2beta1HorizontalPodAutoscaler", "" ) as V2beta1HorizontalPodAutoscaler; - return body; + 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/AutoscalingV2beta2Api.ts b/src/gen/apis/AutoscalingV2beta2Api.ts index af1fb17cecb..6f540cfd8aa 100644 --- a/src/gen/apis/AutoscalingV2beta2Api.ts +++ b/src/gen/apis/AutoscalingV2beta2Api.ts @@ -1,7 +1,7 @@ // TODO: better import syntax? import {BaseAPIRequestFactory, RequiredError, COLLECTION_FORMATS} from './baseapi'; import {Configuration} from '../configuration'; -import {RequestContext, HttpMethod, ResponseContext, HttpFile} from '../http/http'; +import {RequestContext, HttpMethod, ResponseContext, HttpFile, HttpInfo} from '../http/http'; import FormData from "form-data"; import { URLSearchParams } from 'url'; import {ObjectSerializer} from '../models/ObjectSerializer'; @@ -1026,28 +1026,28 @@ export class AutoscalingV2beta2ApiResponseProcessor { * @params response Response returned by the server for a request to createNamespacedHorizontalPodAutoscaler * @throws ApiException if the response code was not in [200, 299] */ - public async createNamespacedHorizontalPodAutoscaler(response: ResponseContext): Promise { + public async createNamespacedHorizontalPodAutoscalerWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V2beta2HorizontalPodAutoscaler = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V2beta2HorizontalPodAutoscaler", "" ) as V2beta2HorizontalPodAutoscaler; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V2beta2HorizontalPodAutoscaler = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V2beta2HorizontalPodAutoscaler", "" ) as V2beta2HorizontalPodAutoscaler; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("202", response.httpStatusCode)) { const body: V2beta2HorizontalPodAutoscaler = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V2beta2HorizontalPodAutoscaler", "" ) as V2beta2HorizontalPodAutoscaler; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1059,7 +1059,7 @@ export class AutoscalingV2beta2ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V2beta2HorizontalPodAutoscaler", "" ) as V2beta2HorizontalPodAutoscaler; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1072,14 +1072,14 @@ export class AutoscalingV2beta2ApiResponseProcessor { * @params response Response returned by the server for a request to deleteCollectionNamespacedHorizontalPodAutoscaler * @throws ApiException if the response code was not in [200, 299] */ - public async deleteCollectionNamespacedHorizontalPodAutoscaler(response: ResponseContext): Promise { + public async deleteCollectionNamespacedHorizontalPodAutoscalerWithHttpInfo(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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1091,7 +1091,7 @@ export class AutoscalingV2beta2ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1104,21 +1104,21 @@ export class AutoscalingV2beta2ApiResponseProcessor { * @params response Response returned by the server for a request to deleteNamespacedHorizontalPodAutoscaler * @throws ApiException if the response code was not in [200, 299] */ - public async deleteNamespacedHorizontalPodAutoscaler(response: ResponseContext): Promise { + public async deleteNamespacedHorizontalPodAutoscalerWithHttpInfo(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 body; + 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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1130,7 +1130,7 @@ export class AutoscalingV2beta2ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1143,14 +1143,14 @@ export class AutoscalingV2beta2ApiResponseProcessor { * @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 getAPIResources(response: ResponseContext): Promise { + 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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1162,7 +1162,7 @@ export class AutoscalingV2beta2ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1APIResourceList", "" ) as V1APIResourceList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1175,14 +1175,14 @@ export class AutoscalingV2beta2ApiResponseProcessor { * @params response Response returned by the server for a request to listHorizontalPodAutoscalerForAllNamespaces * @throws ApiException if the response code was not in [200, 299] */ - public async listHorizontalPodAutoscalerForAllNamespaces(response: ResponseContext): Promise { + public async listHorizontalPodAutoscalerForAllNamespacesWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V2beta2HorizontalPodAutoscalerList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V2beta2HorizontalPodAutoscalerList", "" ) as V2beta2HorizontalPodAutoscalerList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1194,7 +1194,7 @@ export class AutoscalingV2beta2ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V2beta2HorizontalPodAutoscalerList", "" ) as V2beta2HorizontalPodAutoscalerList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1207,14 +1207,14 @@ export class AutoscalingV2beta2ApiResponseProcessor { * @params response Response returned by the server for a request to listNamespacedHorizontalPodAutoscaler * @throws ApiException if the response code was not in [200, 299] */ - public async listNamespacedHorizontalPodAutoscaler(response: ResponseContext): Promise { + public async listNamespacedHorizontalPodAutoscalerWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V2beta2HorizontalPodAutoscalerList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V2beta2HorizontalPodAutoscalerList", "" ) as V2beta2HorizontalPodAutoscalerList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1226,7 +1226,7 @@ export class AutoscalingV2beta2ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V2beta2HorizontalPodAutoscalerList", "" ) as V2beta2HorizontalPodAutoscalerList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1239,21 +1239,21 @@ export class AutoscalingV2beta2ApiResponseProcessor { * @params response Response returned by the server for a request to patchNamespacedHorizontalPodAutoscaler * @throws ApiException if the response code was not in [200, 299] */ - public async patchNamespacedHorizontalPodAutoscaler(response: ResponseContext): Promise { + public async patchNamespacedHorizontalPodAutoscalerWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V2beta2HorizontalPodAutoscaler = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V2beta2HorizontalPodAutoscaler", "" ) as V2beta2HorizontalPodAutoscaler; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V2beta2HorizontalPodAutoscaler = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V2beta2HorizontalPodAutoscaler", "" ) as V2beta2HorizontalPodAutoscaler; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1265,7 +1265,7 @@ export class AutoscalingV2beta2ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V2beta2HorizontalPodAutoscaler", "" ) as V2beta2HorizontalPodAutoscaler; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1278,21 +1278,21 @@ export class AutoscalingV2beta2ApiResponseProcessor { * @params response Response returned by the server for a request to patchNamespacedHorizontalPodAutoscalerStatus * @throws ApiException if the response code was not in [200, 299] */ - public async patchNamespacedHorizontalPodAutoscalerStatus(response: ResponseContext): Promise { + public async patchNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V2beta2HorizontalPodAutoscaler = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V2beta2HorizontalPodAutoscaler", "" ) as V2beta2HorizontalPodAutoscaler; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V2beta2HorizontalPodAutoscaler = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V2beta2HorizontalPodAutoscaler", "" ) as V2beta2HorizontalPodAutoscaler; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1304,7 +1304,7 @@ export class AutoscalingV2beta2ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V2beta2HorizontalPodAutoscaler", "" ) as V2beta2HorizontalPodAutoscaler; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1317,14 +1317,14 @@ export class AutoscalingV2beta2ApiResponseProcessor { * @params response Response returned by the server for a request to readNamespacedHorizontalPodAutoscaler * @throws ApiException if the response code was not in [200, 299] */ - public async readNamespacedHorizontalPodAutoscaler(response: ResponseContext): Promise { + public async readNamespacedHorizontalPodAutoscalerWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V2beta2HorizontalPodAutoscaler = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V2beta2HorizontalPodAutoscaler", "" ) as V2beta2HorizontalPodAutoscaler; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1336,7 +1336,7 @@ export class AutoscalingV2beta2ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V2beta2HorizontalPodAutoscaler", "" ) as V2beta2HorizontalPodAutoscaler; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1349,14 +1349,14 @@ export class AutoscalingV2beta2ApiResponseProcessor { * @params response Response returned by the server for a request to readNamespacedHorizontalPodAutoscalerStatus * @throws ApiException if the response code was not in [200, 299] */ - public async readNamespacedHorizontalPodAutoscalerStatus(response: ResponseContext): Promise { + public async readNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V2beta2HorizontalPodAutoscaler = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V2beta2HorizontalPodAutoscaler", "" ) as V2beta2HorizontalPodAutoscaler; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1368,7 +1368,7 @@ export class AutoscalingV2beta2ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V2beta2HorizontalPodAutoscaler", "" ) as V2beta2HorizontalPodAutoscaler; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1381,21 +1381,21 @@ export class AutoscalingV2beta2ApiResponseProcessor { * @params response Response returned by the server for a request to replaceNamespacedHorizontalPodAutoscaler * @throws ApiException if the response code was not in [200, 299] */ - public async replaceNamespacedHorizontalPodAutoscaler(response: ResponseContext): Promise { + public async replaceNamespacedHorizontalPodAutoscalerWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V2beta2HorizontalPodAutoscaler = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V2beta2HorizontalPodAutoscaler", "" ) as V2beta2HorizontalPodAutoscaler; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V2beta2HorizontalPodAutoscaler = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V2beta2HorizontalPodAutoscaler", "" ) as V2beta2HorizontalPodAutoscaler; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1407,7 +1407,7 @@ export class AutoscalingV2beta2ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V2beta2HorizontalPodAutoscaler", "" ) as V2beta2HorizontalPodAutoscaler; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1420,21 +1420,21 @@ export class AutoscalingV2beta2ApiResponseProcessor { * @params response Response returned by the server for a request to replaceNamespacedHorizontalPodAutoscalerStatus * @throws ApiException if the response code was not in [200, 299] */ - public async replaceNamespacedHorizontalPodAutoscalerStatus(response: ResponseContext): Promise { + public async replaceNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V2beta2HorizontalPodAutoscaler = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V2beta2HorizontalPodAutoscaler", "" ) as V2beta2HorizontalPodAutoscaler; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V2beta2HorizontalPodAutoscaler = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V2beta2HorizontalPodAutoscaler", "" ) as V2beta2HorizontalPodAutoscaler; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1446,7 +1446,7 @@ export class AutoscalingV2beta2ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V2beta2HorizontalPodAutoscaler", "" ) as V2beta2HorizontalPodAutoscaler; - return body; + 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/BatchApi.ts b/src/gen/apis/BatchApi.ts index a3868007b57..f656b4921de 100644 --- a/src/gen/apis/BatchApi.ts +++ b/src/gen/apis/BatchApi.ts @@ -1,7 +1,7 @@ // TODO: better import syntax? import {BaseAPIRequestFactory, RequiredError, COLLECTION_FORMATS} from './baseapi'; import {Configuration} from '../configuration'; -import {RequestContext, HttpMethod, ResponseContext, HttpFile} from '../http/http'; +import {RequestContext, HttpMethod, ResponseContext, HttpFile, HttpInfo} from '../http/http'; import FormData from "form-data"; import { URLSearchParams } from 'url'; import {ObjectSerializer} from '../models/ObjectSerializer'; @@ -57,14 +57,14 @@ export class BatchApiResponseProcessor { * @params response Response returned by the server for a request to getAPIGroup * @throws ApiException if the response code was not in [200, 299] */ - public async getAPIGroup(response: ResponseContext): Promise { + public async getAPIGroupWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1APIGroup = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1APIGroup", "" ) as V1APIGroup; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -76,7 +76,7 @@ export class BatchApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1APIGroup", "" ) as V1APIGroup; - return body; + 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/BatchV1Api.ts b/src/gen/apis/BatchV1Api.ts index 9c44cf5ac7e..a17d56dab5f 100644 --- a/src/gen/apis/BatchV1Api.ts +++ b/src/gen/apis/BatchV1Api.ts @@ -1,7 +1,7 @@ // TODO: better import syntax? import {BaseAPIRequestFactory, RequiredError, COLLECTION_FORMATS} from './baseapi'; import {Configuration} from '../configuration'; -import {RequestContext, HttpMethod, ResponseContext, HttpFile} from '../http/http'; +import {RequestContext, HttpMethod, ResponseContext, HttpFile, HttpInfo} from '../http/http'; import FormData from "form-data"; import { URLSearchParams } from 'url'; import {ObjectSerializer} from '../models/ObjectSerializer'; @@ -1993,28 +1993,28 @@ export class BatchV1ApiResponseProcessor { * @params response Response returned by the server for a request to createNamespacedCronJob * @throws ApiException if the response code was not in [200, 299] */ - public async createNamespacedCronJob(response: ResponseContext): Promise { + public async createNamespacedCronJobWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1CronJob = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1CronJob", "" ) as V1CronJob; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1CronJob = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1CronJob", "" ) as V1CronJob; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("202", response.httpStatusCode)) { const body: V1CronJob = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1CronJob", "" ) as V1CronJob; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -2026,7 +2026,7 @@ export class BatchV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1CronJob", "" ) as V1CronJob; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -2039,28 +2039,28 @@ export class BatchV1ApiResponseProcessor { * @params response Response returned by the server for a request to createNamespacedJob * @throws ApiException if the response code was not in [200, 299] */ - public async createNamespacedJob(response: ResponseContext): Promise { + public async createNamespacedJobWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1Job = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Job", "" ) as V1Job; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1Job = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Job", "" ) as V1Job; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("202", response.httpStatusCode)) { const body: V1Job = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Job", "" ) as V1Job; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -2072,7 +2072,7 @@ export class BatchV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Job", "" ) as V1Job; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -2085,14 +2085,14 @@ export class BatchV1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteCollectionNamespacedCronJob * @throws ApiException if the response code was not in [200, 299] */ - public async deleteCollectionNamespacedCronJob(response: ResponseContext): Promise { + public async deleteCollectionNamespacedCronJobWithHttpInfo(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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -2104,7 +2104,7 @@ export class BatchV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -2117,14 +2117,14 @@ export class BatchV1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteCollectionNamespacedJob * @throws ApiException if the response code was not in [200, 299] */ - public async deleteCollectionNamespacedJob(response: ResponseContext): Promise { + public async deleteCollectionNamespacedJobWithHttpInfo(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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -2136,7 +2136,7 @@ export class BatchV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -2149,21 +2149,21 @@ export class BatchV1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteNamespacedCronJob * @throws ApiException if the response code was not in [200, 299] */ - public async deleteNamespacedCronJob(response: ResponseContext): Promise { + public async deleteNamespacedCronJobWithHttpInfo(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 body; + 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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -2175,7 +2175,7 @@ export class BatchV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -2188,21 +2188,21 @@ export class BatchV1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteNamespacedJob * @throws ApiException if the response code was not in [200, 299] */ - public async deleteNamespacedJob(response: ResponseContext): Promise { + public async deleteNamespacedJobWithHttpInfo(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 body; + 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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -2214,7 +2214,7 @@ export class BatchV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -2227,14 +2227,14 @@ export class BatchV1ApiResponseProcessor { * @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 getAPIResources(response: ResponseContext): Promise { + 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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -2246,7 +2246,7 @@ export class BatchV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1APIResourceList", "" ) as V1APIResourceList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -2259,14 +2259,14 @@ export class BatchV1ApiResponseProcessor { * @params response Response returned by the server for a request to listCronJobForAllNamespaces * @throws ApiException if the response code was not in [200, 299] */ - public async listCronJobForAllNamespaces(response: ResponseContext): Promise { + public async listCronJobForAllNamespacesWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1CronJobList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1CronJobList", "" ) as V1CronJobList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -2278,7 +2278,7 @@ export class BatchV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1CronJobList", "" ) as V1CronJobList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -2291,14 +2291,14 @@ export class BatchV1ApiResponseProcessor { * @params response Response returned by the server for a request to listJobForAllNamespaces * @throws ApiException if the response code was not in [200, 299] */ - public async listJobForAllNamespaces(response: ResponseContext): Promise { + public async listJobForAllNamespacesWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1JobList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1JobList", "" ) as V1JobList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -2310,7 +2310,7 @@ export class BatchV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1JobList", "" ) as V1JobList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -2323,14 +2323,14 @@ export class BatchV1ApiResponseProcessor { * @params response Response returned by the server for a request to listNamespacedCronJob * @throws ApiException if the response code was not in [200, 299] */ - public async listNamespacedCronJob(response: ResponseContext): Promise { + public async listNamespacedCronJobWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1CronJobList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1CronJobList", "" ) as V1CronJobList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -2342,7 +2342,7 @@ export class BatchV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1CronJobList", "" ) as V1CronJobList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -2355,14 +2355,14 @@ export class BatchV1ApiResponseProcessor { * @params response Response returned by the server for a request to listNamespacedJob * @throws ApiException if the response code was not in [200, 299] */ - public async listNamespacedJob(response: ResponseContext): Promise { + public async listNamespacedJobWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1JobList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1JobList", "" ) as V1JobList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -2374,7 +2374,7 @@ export class BatchV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1JobList", "" ) as V1JobList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -2387,21 +2387,21 @@ export class BatchV1ApiResponseProcessor { * @params response Response returned by the server for a request to patchNamespacedCronJob * @throws ApiException if the response code was not in [200, 299] */ - public async patchNamespacedCronJob(response: ResponseContext): Promise { + public async patchNamespacedCronJobWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1CronJob = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1CronJob", "" ) as V1CronJob; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1CronJob = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1CronJob", "" ) as V1CronJob; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -2413,7 +2413,7 @@ export class BatchV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1CronJob", "" ) as V1CronJob; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -2426,21 +2426,21 @@ export class BatchV1ApiResponseProcessor { * @params response Response returned by the server for a request to patchNamespacedCronJobStatus * @throws ApiException if the response code was not in [200, 299] */ - public async patchNamespacedCronJobStatus(response: ResponseContext): Promise { + public async patchNamespacedCronJobStatusWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1CronJob = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1CronJob", "" ) as V1CronJob; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1CronJob = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1CronJob", "" ) as V1CronJob; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -2452,7 +2452,7 @@ export class BatchV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1CronJob", "" ) as V1CronJob; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -2465,21 +2465,21 @@ export class BatchV1ApiResponseProcessor { * @params response Response returned by the server for a request to patchNamespacedJob * @throws ApiException if the response code was not in [200, 299] */ - public async patchNamespacedJob(response: ResponseContext): Promise { + public async patchNamespacedJobWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1Job = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Job", "" ) as V1Job; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1Job = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Job", "" ) as V1Job; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -2491,7 +2491,7 @@ export class BatchV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Job", "" ) as V1Job; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -2504,21 +2504,21 @@ export class BatchV1ApiResponseProcessor { * @params response Response returned by the server for a request to patchNamespacedJobStatus * @throws ApiException if the response code was not in [200, 299] */ - public async patchNamespacedJobStatus(response: ResponseContext): Promise { + public async patchNamespacedJobStatusWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1Job = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Job", "" ) as V1Job; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1Job = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Job", "" ) as V1Job; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -2530,7 +2530,7 @@ export class BatchV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Job", "" ) as V1Job; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -2543,14 +2543,14 @@ export class BatchV1ApiResponseProcessor { * @params response Response returned by the server for a request to readNamespacedCronJob * @throws ApiException if the response code was not in [200, 299] */ - public async readNamespacedCronJob(response: ResponseContext): Promise { + public async readNamespacedCronJobWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1CronJob = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1CronJob", "" ) as V1CronJob; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -2562,7 +2562,7 @@ export class BatchV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1CronJob", "" ) as V1CronJob; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -2575,14 +2575,14 @@ export class BatchV1ApiResponseProcessor { * @params response Response returned by the server for a request to readNamespacedCronJobStatus * @throws ApiException if the response code was not in [200, 299] */ - public async readNamespacedCronJobStatus(response: ResponseContext): Promise { + public async readNamespacedCronJobStatusWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1CronJob = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1CronJob", "" ) as V1CronJob; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -2594,7 +2594,7 @@ export class BatchV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1CronJob", "" ) as V1CronJob; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -2607,14 +2607,14 @@ export class BatchV1ApiResponseProcessor { * @params response Response returned by the server for a request to readNamespacedJob * @throws ApiException if the response code was not in [200, 299] */ - public async readNamespacedJob(response: ResponseContext): Promise { + public async readNamespacedJobWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1Job = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Job", "" ) as V1Job; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -2626,7 +2626,7 @@ export class BatchV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Job", "" ) as V1Job; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -2639,14 +2639,14 @@ export class BatchV1ApiResponseProcessor { * @params response Response returned by the server for a request to readNamespacedJobStatus * @throws ApiException if the response code was not in [200, 299] */ - public async readNamespacedJobStatus(response: ResponseContext): Promise { + public async readNamespacedJobStatusWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1Job = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Job", "" ) as V1Job; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -2658,7 +2658,7 @@ export class BatchV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Job", "" ) as V1Job; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -2671,21 +2671,21 @@ export class BatchV1ApiResponseProcessor { * @params response Response returned by the server for a request to replaceNamespacedCronJob * @throws ApiException if the response code was not in [200, 299] */ - public async replaceNamespacedCronJob(response: ResponseContext): Promise { + public async replaceNamespacedCronJobWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1CronJob = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1CronJob", "" ) as V1CronJob; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1CronJob = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1CronJob", "" ) as V1CronJob; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -2697,7 +2697,7 @@ export class BatchV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1CronJob", "" ) as V1CronJob; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -2710,21 +2710,21 @@ export class BatchV1ApiResponseProcessor { * @params response Response returned by the server for a request to replaceNamespacedCronJobStatus * @throws ApiException if the response code was not in [200, 299] */ - public async replaceNamespacedCronJobStatus(response: ResponseContext): Promise { + public async replaceNamespacedCronJobStatusWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1CronJob = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1CronJob", "" ) as V1CronJob; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1CronJob = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1CronJob", "" ) as V1CronJob; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -2736,7 +2736,7 @@ export class BatchV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1CronJob", "" ) as V1CronJob; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -2749,21 +2749,21 @@ export class BatchV1ApiResponseProcessor { * @params response Response returned by the server for a request to replaceNamespacedJob * @throws ApiException if the response code was not in [200, 299] */ - public async replaceNamespacedJob(response: ResponseContext): Promise { + public async replaceNamespacedJobWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1Job = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Job", "" ) as V1Job; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1Job = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Job", "" ) as V1Job; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -2775,7 +2775,7 @@ export class BatchV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Job", "" ) as V1Job; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -2788,21 +2788,21 @@ export class BatchV1ApiResponseProcessor { * @params response Response returned by the server for a request to replaceNamespacedJobStatus * @throws ApiException if the response code was not in [200, 299] */ - public async replaceNamespacedJobStatus(response: ResponseContext): Promise { + public async replaceNamespacedJobStatusWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1Job = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Job", "" ) as V1Job; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1Job = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Job", "" ) as V1Job; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -2814,7 +2814,7 @@ export class BatchV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Job", "" ) as V1Job; - return body; + 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/BatchV1beta1Api.ts b/src/gen/apis/BatchV1beta1Api.ts index 8a7fa90a86e..610be37e62e 100644 --- a/src/gen/apis/BatchV1beta1Api.ts +++ b/src/gen/apis/BatchV1beta1Api.ts @@ -1,7 +1,7 @@ // TODO: better import syntax? import {BaseAPIRequestFactory, RequiredError, COLLECTION_FORMATS} from './baseapi'; import {Configuration} from '../configuration'; -import {RequestContext, HttpMethod, ResponseContext, HttpFile} from '../http/http'; +import {RequestContext, HttpMethod, ResponseContext, HttpFile, HttpInfo} from '../http/http'; import FormData from "form-data"; import { URLSearchParams } from 'url'; import {ObjectSerializer} from '../models/ObjectSerializer'; @@ -1026,28 +1026,28 @@ export class BatchV1beta1ApiResponseProcessor { * @params response Response returned by the server for a request to createNamespacedCronJob * @throws ApiException if the response code was not in [200, 299] */ - public async createNamespacedCronJob(response: ResponseContext): Promise { + public async createNamespacedCronJobWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1beta1CronJob = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1CronJob", "" ) as V1beta1CronJob; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1beta1CronJob = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1CronJob", "" ) as V1beta1CronJob; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("202", response.httpStatusCode)) { const body: V1beta1CronJob = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1CronJob", "" ) as V1beta1CronJob; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1059,7 +1059,7 @@ export class BatchV1beta1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1CronJob", "" ) as V1beta1CronJob; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1072,14 +1072,14 @@ export class BatchV1beta1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteCollectionNamespacedCronJob * @throws ApiException if the response code was not in [200, 299] */ - public async deleteCollectionNamespacedCronJob(response: ResponseContext): Promise { + public async deleteCollectionNamespacedCronJobWithHttpInfo(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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1091,7 +1091,7 @@ export class BatchV1beta1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1104,21 +1104,21 @@ export class BatchV1beta1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteNamespacedCronJob * @throws ApiException if the response code was not in [200, 299] */ - public async deleteNamespacedCronJob(response: ResponseContext): Promise { + public async deleteNamespacedCronJobWithHttpInfo(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 body; + 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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1130,7 +1130,7 @@ export class BatchV1beta1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1143,14 +1143,14 @@ export class BatchV1beta1ApiResponseProcessor { * @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 getAPIResources(response: ResponseContext): Promise { + 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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1162,7 +1162,7 @@ export class BatchV1beta1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1APIResourceList", "" ) as V1APIResourceList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1175,14 +1175,14 @@ export class BatchV1beta1ApiResponseProcessor { * @params response Response returned by the server for a request to listCronJobForAllNamespaces * @throws ApiException if the response code was not in [200, 299] */ - public async listCronJobForAllNamespaces(response: ResponseContext): Promise { + public async listCronJobForAllNamespacesWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1beta1CronJobList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1CronJobList", "" ) as V1beta1CronJobList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1194,7 +1194,7 @@ export class BatchV1beta1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1CronJobList", "" ) as V1beta1CronJobList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1207,14 +1207,14 @@ export class BatchV1beta1ApiResponseProcessor { * @params response Response returned by the server for a request to listNamespacedCronJob * @throws ApiException if the response code was not in [200, 299] */ - public async listNamespacedCronJob(response: ResponseContext): Promise { + public async listNamespacedCronJobWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1beta1CronJobList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1CronJobList", "" ) as V1beta1CronJobList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1226,7 +1226,7 @@ export class BatchV1beta1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1CronJobList", "" ) as V1beta1CronJobList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1239,21 +1239,21 @@ export class BatchV1beta1ApiResponseProcessor { * @params response Response returned by the server for a request to patchNamespacedCronJob * @throws ApiException if the response code was not in [200, 299] */ - public async patchNamespacedCronJob(response: ResponseContext): Promise { + public async patchNamespacedCronJobWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1beta1CronJob = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1CronJob", "" ) as V1beta1CronJob; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1beta1CronJob = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1CronJob", "" ) as V1beta1CronJob; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1265,7 +1265,7 @@ export class BatchV1beta1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1CronJob", "" ) as V1beta1CronJob; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1278,21 +1278,21 @@ export class BatchV1beta1ApiResponseProcessor { * @params response Response returned by the server for a request to patchNamespacedCronJobStatus * @throws ApiException if the response code was not in [200, 299] */ - public async patchNamespacedCronJobStatus(response: ResponseContext): Promise { + public async patchNamespacedCronJobStatusWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1beta1CronJob = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1CronJob", "" ) as V1beta1CronJob; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1beta1CronJob = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1CronJob", "" ) as V1beta1CronJob; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1304,7 +1304,7 @@ export class BatchV1beta1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1CronJob", "" ) as V1beta1CronJob; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1317,14 +1317,14 @@ export class BatchV1beta1ApiResponseProcessor { * @params response Response returned by the server for a request to readNamespacedCronJob * @throws ApiException if the response code was not in [200, 299] */ - public async readNamespacedCronJob(response: ResponseContext): Promise { + public async readNamespacedCronJobWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1beta1CronJob = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1CronJob", "" ) as V1beta1CronJob; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1336,7 +1336,7 @@ export class BatchV1beta1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1CronJob", "" ) as V1beta1CronJob; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1349,14 +1349,14 @@ export class BatchV1beta1ApiResponseProcessor { * @params response Response returned by the server for a request to readNamespacedCronJobStatus * @throws ApiException if the response code was not in [200, 299] */ - public async readNamespacedCronJobStatus(response: ResponseContext): Promise { + public async readNamespacedCronJobStatusWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1beta1CronJob = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1CronJob", "" ) as V1beta1CronJob; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1368,7 +1368,7 @@ export class BatchV1beta1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1CronJob", "" ) as V1beta1CronJob; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1381,21 +1381,21 @@ export class BatchV1beta1ApiResponseProcessor { * @params response Response returned by the server for a request to replaceNamespacedCronJob * @throws ApiException if the response code was not in [200, 299] */ - public async replaceNamespacedCronJob(response: ResponseContext): Promise { + public async replaceNamespacedCronJobWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1beta1CronJob = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1CronJob", "" ) as V1beta1CronJob; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1beta1CronJob = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1CronJob", "" ) as V1beta1CronJob; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1407,7 +1407,7 @@ export class BatchV1beta1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1CronJob", "" ) as V1beta1CronJob; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1420,21 +1420,21 @@ export class BatchV1beta1ApiResponseProcessor { * @params response Response returned by the server for a request to replaceNamespacedCronJobStatus * @throws ApiException if the response code was not in [200, 299] */ - public async replaceNamespacedCronJobStatus(response: ResponseContext): Promise { + public async replaceNamespacedCronJobStatusWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1beta1CronJob = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1CronJob", "" ) as V1beta1CronJob; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1beta1CronJob = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1CronJob", "" ) as V1beta1CronJob; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1446,7 +1446,7 @@ export class BatchV1beta1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1CronJob", "" ) as V1beta1CronJob; - return body; + 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/CertificatesApi.ts b/src/gen/apis/CertificatesApi.ts index 8758fc5b8b5..edd7f7bb29b 100644 --- a/src/gen/apis/CertificatesApi.ts +++ b/src/gen/apis/CertificatesApi.ts @@ -1,7 +1,7 @@ // TODO: better import syntax? import {BaseAPIRequestFactory, RequiredError, COLLECTION_FORMATS} from './baseapi'; import {Configuration} from '../configuration'; -import {RequestContext, HttpMethod, ResponseContext, HttpFile} from '../http/http'; +import {RequestContext, HttpMethod, ResponseContext, HttpFile, HttpInfo} from '../http/http'; import FormData from "form-data"; import { URLSearchParams } from 'url'; import {ObjectSerializer} from '../models/ObjectSerializer'; @@ -57,14 +57,14 @@ export class CertificatesApiResponseProcessor { * @params response Response returned by the server for a request to getAPIGroup * @throws ApiException if the response code was not in [200, 299] */ - public async getAPIGroup(response: ResponseContext): Promise { + public async getAPIGroupWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1APIGroup = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1APIGroup", "" ) as V1APIGroup; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -76,7 +76,7 @@ export class CertificatesApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1APIGroup", "" ) as V1APIGroup; - return body; + 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/CertificatesV1Api.ts b/src/gen/apis/CertificatesV1Api.ts index 064bbe4f0e3..34517ef0325 100644 --- a/src/gen/apis/CertificatesV1Api.ts +++ b/src/gen/apis/CertificatesV1Api.ts @@ -1,7 +1,7 @@ // TODO: better import syntax? import {BaseAPIRequestFactory, RequiredError, COLLECTION_FORMATS} from './baseapi'; import {Configuration} from '../configuration'; -import {RequestContext, HttpMethod, ResponseContext, HttpFile} from '../http/http'; +import {RequestContext, HttpMethod, ResponseContext, HttpFile, HttpInfo} from '../http/http'; import FormData from "form-data"; import { URLSearchParams } from 'url'; import {ObjectSerializer} from '../models/ObjectSerializer'; @@ -1054,28 +1054,28 @@ export class CertificatesV1ApiResponseProcessor { * @params response Response returned by the server for a request to createCertificateSigningRequest * @throws ApiException if the response code was not in [200, 299] */ - public async createCertificateSigningRequest(response: ResponseContext): Promise { + public async createCertificateSigningRequestWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1CertificateSigningRequest = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1CertificateSigningRequest", "" ) as V1CertificateSigningRequest; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1CertificateSigningRequest = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1CertificateSigningRequest", "" ) as V1CertificateSigningRequest; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("202", response.httpStatusCode)) { const body: V1CertificateSigningRequest = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1CertificateSigningRequest", "" ) as V1CertificateSigningRequest; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1087,7 +1087,7 @@ export class CertificatesV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1CertificateSigningRequest", "" ) as V1CertificateSigningRequest; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1100,21 +1100,21 @@ export class CertificatesV1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteCertificateSigningRequest * @throws ApiException if the response code was not in [200, 299] */ - public async deleteCertificateSigningRequest(response: ResponseContext): Promise { + public async deleteCertificateSigningRequestWithHttpInfo(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 body; + 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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1126,7 +1126,7 @@ export class CertificatesV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1139,14 +1139,14 @@ export class CertificatesV1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteCollectionCertificateSigningRequest * @throws ApiException if the response code was not in [200, 299] */ - public async deleteCollectionCertificateSigningRequest(response: ResponseContext): Promise { + public async deleteCollectionCertificateSigningRequestWithHttpInfo(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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1158,7 +1158,7 @@ export class CertificatesV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1171,14 +1171,14 @@ export class CertificatesV1ApiResponseProcessor { * @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 getAPIResources(response: ResponseContext): Promise { + 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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1190,7 +1190,7 @@ export class CertificatesV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1APIResourceList", "" ) as V1APIResourceList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1203,14 +1203,14 @@ export class CertificatesV1ApiResponseProcessor { * @params response Response returned by the server for a request to listCertificateSigningRequest * @throws ApiException if the response code was not in [200, 299] */ - public async listCertificateSigningRequest(response: ResponseContext): Promise { + public async listCertificateSigningRequestWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1CertificateSigningRequestList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1CertificateSigningRequestList", "" ) as V1CertificateSigningRequestList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1222,7 +1222,7 @@ export class CertificatesV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1CertificateSigningRequestList", "" ) as V1CertificateSigningRequestList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1235,21 +1235,21 @@ export class CertificatesV1ApiResponseProcessor { * @params response Response returned by the server for a request to patchCertificateSigningRequest * @throws ApiException if the response code was not in [200, 299] */ - public async patchCertificateSigningRequest(response: ResponseContext): Promise { + public async patchCertificateSigningRequestWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1CertificateSigningRequest = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1CertificateSigningRequest", "" ) as V1CertificateSigningRequest; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1CertificateSigningRequest = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1CertificateSigningRequest", "" ) as V1CertificateSigningRequest; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1261,7 +1261,7 @@ export class CertificatesV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1CertificateSigningRequest", "" ) as V1CertificateSigningRequest; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1274,21 +1274,21 @@ export class CertificatesV1ApiResponseProcessor { * @params response Response returned by the server for a request to patchCertificateSigningRequestApproval * @throws ApiException if the response code was not in [200, 299] */ - public async patchCertificateSigningRequestApproval(response: ResponseContext): Promise { + public async patchCertificateSigningRequestApprovalWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1CertificateSigningRequest = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1CertificateSigningRequest", "" ) as V1CertificateSigningRequest; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1CertificateSigningRequest = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1CertificateSigningRequest", "" ) as V1CertificateSigningRequest; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1300,7 +1300,7 @@ export class CertificatesV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1CertificateSigningRequest", "" ) as V1CertificateSigningRequest; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1313,21 +1313,21 @@ export class CertificatesV1ApiResponseProcessor { * @params response Response returned by the server for a request to patchCertificateSigningRequestStatus * @throws ApiException if the response code was not in [200, 299] */ - public async patchCertificateSigningRequestStatus(response: ResponseContext): Promise { + public async patchCertificateSigningRequestStatusWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1CertificateSigningRequest = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1CertificateSigningRequest", "" ) as V1CertificateSigningRequest; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1CertificateSigningRequest = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1CertificateSigningRequest", "" ) as V1CertificateSigningRequest; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1339,7 +1339,7 @@ export class CertificatesV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1CertificateSigningRequest", "" ) as V1CertificateSigningRequest; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1352,14 +1352,14 @@ export class CertificatesV1ApiResponseProcessor { * @params response Response returned by the server for a request to readCertificateSigningRequest * @throws ApiException if the response code was not in [200, 299] */ - public async readCertificateSigningRequest(response: ResponseContext): Promise { + public async readCertificateSigningRequestWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1CertificateSigningRequest = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1CertificateSigningRequest", "" ) as V1CertificateSigningRequest; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1371,7 +1371,7 @@ export class CertificatesV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1CertificateSigningRequest", "" ) as V1CertificateSigningRequest; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1384,14 +1384,14 @@ export class CertificatesV1ApiResponseProcessor { * @params response Response returned by the server for a request to readCertificateSigningRequestApproval * @throws ApiException if the response code was not in [200, 299] */ - public async readCertificateSigningRequestApproval(response: ResponseContext): Promise { + public async readCertificateSigningRequestApprovalWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1CertificateSigningRequest = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1CertificateSigningRequest", "" ) as V1CertificateSigningRequest; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1403,7 +1403,7 @@ export class CertificatesV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1CertificateSigningRequest", "" ) as V1CertificateSigningRequest; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1416,14 +1416,14 @@ export class CertificatesV1ApiResponseProcessor { * @params response Response returned by the server for a request to readCertificateSigningRequestStatus * @throws ApiException if the response code was not in [200, 299] */ - public async readCertificateSigningRequestStatus(response: ResponseContext): Promise { + public async readCertificateSigningRequestStatusWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1CertificateSigningRequest = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1CertificateSigningRequest", "" ) as V1CertificateSigningRequest; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1435,7 +1435,7 @@ export class CertificatesV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1CertificateSigningRequest", "" ) as V1CertificateSigningRequest; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1448,21 +1448,21 @@ export class CertificatesV1ApiResponseProcessor { * @params response Response returned by the server for a request to replaceCertificateSigningRequest * @throws ApiException if the response code was not in [200, 299] */ - public async replaceCertificateSigningRequest(response: ResponseContext): Promise { + public async replaceCertificateSigningRequestWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1CertificateSigningRequest = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1CertificateSigningRequest", "" ) as V1CertificateSigningRequest; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1CertificateSigningRequest = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1CertificateSigningRequest", "" ) as V1CertificateSigningRequest; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1474,7 +1474,7 @@ export class CertificatesV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1CertificateSigningRequest", "" ) as V1CertificateSigningRequest; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1487,21 +1487,21 @@ export class CertificatesV1ApiResponseProcessor { * @params response Response returned by the server for a request to replaceCertificateSigningRequestApproval * @throws ApiException if the response code was not in [200, 299] */ - public async replaceCertificateSigningRequestApproval(response: ResponseContext): Promise { + public async replaceCertificateSigningRequestApprovalWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1CertificateSigningRequest = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1CertificateSigningRequest", "" ) as V1CertificateSigningRequest; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1CertificateSigningRequest = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1CertificateSigningRequest", "" ) as V1CertificateSigningRequest; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1513,7 +1513,7 @@ export class CertificatesV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1CertificateSigningRequest", "" ) as V1CertificateSigningRequest; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1526,21 +1526,21 @@ export class CertificatesV1ApiResponseProcessor { * @params response Response returned by the server for a request to replaceCertificateSigningRequestStatus * @throws ApiException if the response code was not in [200, 299] */ - public async replaceCertificateSigningRequestStatus(response: ResponseContext): Promise { + public async replaceCertificateSigningRequestStatusWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1CertificateSigningRequest = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1CertificateSigningRequest", "" ) as V1CertificateSigningRequest; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1CertificateSigningRequest = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1CertificateSigningRequest", "" ) as V1CertificateSigningRequest; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1552,7 +1552,7 @@ export class CertificatesV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1CertificateSigningRequest", "" ) as V1CertificateSigningRequest; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); diff --git a/src/gen/apis/CoordinationApi.ts b/src/gen/apis/CoordinationApi.ts index 77409eb5edc..08395612dd6 100644 --- a/src/gen/apis/CoordinationApi.ts +++ b/src/gen/apis/CoordinationApi.ts @@ -1,7 +1,7 @@ // TODO: better import syntax? import {BaseAPIRequestFactory, RequiredError, COLLECTION_FORMATS} from './baseapi'; import {Configuration} from '../configuration'; -import {RequestContext, HttpMethod, ResponseContext, HttpFile} from '../http/http'; +import {RequestContext, HttpMethod, ResponseContext, HttpFile, HttpInfo} from '../http/http'; import FormData from "form-data"; import { URLSearchParams } from 'url'; import {ObjectSerializer} from '../models/ObjectSerializer'; @@ -57,14 +57,14 @@ export class CoordinationApiResponseProcessor { * @params response Response returned by the server for a request to getAPIGroup * @throws ApiException if the response code was not in [200, 299] */ - public async getAPIGroup(response: ResponseContext): Promise { + public async getAPIGroupWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1APIGroup = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1APIGroup", "" ) as V1APIGroup; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -76,7 +76,7 @@ export class CoordinationApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1APIGroup", "" ) as V1APIGroup; - return body; + 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/CoordinationV1Api.ts b/src/gen/apis/CoordinationV1Api.ts index 0d63784205e..61b26262216 100644 --- a/src/gen/apis/CoordinationV1Api.ts +++ b/src/gen/apis/CoordinationV1Api.ts @@ -1,7 +1,7 @@ // TODO: better import syntax? import {BaseAPIRequestFactory, RequiredError, COLLECTION_FORMATS} from './baseapi'; import {Configuration} from '../configuration'; -import {RequestContext, HttpMethod, ResponseContext, HttpFile} from '../http/http'; +import {RequestContext, HttpMethod, ResponseContext, HttpFile, HttpInfo} from '../http/http'; import FormData from "form-data"; import { URLSearchParams } from 'url'; import {ObjectSerializer} from '../models/ObjectSerializer'; @@ -795,28 +795,28 @@ export class CoordinationV1ApiResponseProcessor { * @params response Response returned by the server for a request to createNamespacedLease * @throws ApiException if the response code was not in [200, 299] */ - public async createNamespacedLease(response: ResponseContext): Promise { + public async createNamespacedLeaseWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1Lease = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Lease", "" ) as V1Lease; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1Lease = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Lease", "" ) as V1Lease; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("202", response.httpStatusCode)) { const body: V1Lease = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Lease", "" ) as V1Lease; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -828,7 +828,7 @@ export class CoordinationV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Lease", "" ) as V1Lease; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -841,14 +841,14 @@ export class CoordinationV1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteCollectionNamespacedLease * @throws ApiException if the response code was not in [200, 299] */ - public async deleteCollectionNamespacedLease(response: ResponseContext): Promise { + public async deleteCollectionNamespacedLeaseWithHttpInfo(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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -860,7 +860,7 @@ export class CoordinationV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -873,21 +873,21 @@ export class CoordinationV1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteNamespacedLease * @throws ApiException if the response code was not in [200, 299] */ - public async deleteNamespacedLease(response: ResponseContext): Promise { + public async deleteNamespacedLeaseWithHttpInfo(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 body; + 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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -899,7 +899,7 @@ export class CoordinationV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -912,14 +912,14 @@ export class CoordinationV1ApiResponseProcessor { * @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 getAPIResources(response: ResponseContext): Promise { + 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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -931,7 +931,7 @@ export class CoordinationV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1APIResourceList", "" ) as V1APIResourceList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -944,14 +944,14 @@ export class CoordinationV1ApiResponseProcessor { * @params response Response returned by the server for a request to listLeaseForAllNamespaces * @throws ApiException if the response code was not in [200, 299] */ - public async listLeaseForAllNamespaces(response: ResponseContext): Promise { + public async listLeaseForAllNamespacesWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1LeaseList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1LeaseList", "" ) as V1LeaseList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -963,7 +963,7 @@ export class CoordinationV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1LeaseList", "" ) as V1LeaseList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -976,14 +976,14 @@ export class CoordinationV1ApiResponseProcessor { * @params response Response returned by the server for a request to listNamespacedLease * @throws ApiException if the response code was not in [200, 299] */ - public async listNamespacedLease(response: ResponseContext): Promise { + public async listNamespacedLeaseWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1LeaseList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1LeaseList", "" ) as V1LeaseList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -995,7 +995,7 @@ export class CoordinationV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1LeaseList", "" ) as V1LeaseList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1008,21 +1008,21 @@ export class CoordinationV1ApiResponseProcessor { * @params response Response returned by the server for a request to patchNamespacedLease * @throws ApiException if the response code was not in [200, 299] */ - public async patchNamespacedLease(response: ResponseContext): Promise { + public async patchNamespacedLeaseWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1Lease = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Lease", "" ) as V1Lease; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1Lease = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Lease", "" ) as V1Lease; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1034,7 +1034,7 @@ export class CoordinationV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Lease", "" ) as V1Lease; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1047,14 +1047,14 @@ export class CoordinationV1ApiResponseProcessor { * @params response Response returned by the server for a request to readNamespacedLease * @throws ApiException if the response code was not in [200, 299] */ - public async readNamespacedLease(response: ResponseContext): Promise { + public async readNamespacedLeaseWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1Lease = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Lease", "" ) as V1Lease; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1066,7 +1066,7 @@ export class CoordinationV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Lease", "" ) as V1Lease; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1079,21 +1079,21 @@ export class CoordinationV1ApiResponseProcessor { * @params response Response returned by the server for a request to replaceNamespacedLease * @throws ApiException if the response code was not in [200, 299] */ - public async replaceNamespacedLease(response: ResponseContext): Promise { + public async replaceNamespacedLeaseWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1Lease = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Lease", "" ) as V1Lease; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1Lease = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Lease", "" ) as V1Lease; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1105,7 +1105,7 @@ export class CoordinationV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Lease", "" ) as V1Lease; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); diff --git a/src/gen/apis/CoreApi.ts b/src/gen/apis/CoreApi.ts index 647c64077c3..8fb24f58924 100644 --- a/src/gen/apis/CoreApi.ts +++ b/src/gen/apis/CoreApi.ts @@ -1,7 +1,7 @@ // TODO: better import syntax? import {BaseAPIRequestFactory, RequiredError, COLLECTION_FORMATS} from './baseapi'; import {Configuration} from '../configuration'; -import {RequestContext, HttpMethod, ResponseContext, HttpFile} from '../http/http'; +import {RequestContext, HttpMethod, ResponseContext, HttpFile, HttpInfo} from '../http/http'; import FormData from "form-data"; import { URLSearchParams } from 'url'; import {ObjectSerializer} from '../models/ObjectSerializer'; @@ -57,14 +57,14 @@ export class CoreApiResponseProcessor { * @params response Response returned by the server for a request to getAPIVersions * @throws ApiException if the response code was not in [200, 299] */ - public async getAPIVersions(response: ResponseContext): Promise { + public async getAPIVersionsWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1APIVersions = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1APIVersions", "" ) as V1APIVersions; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -76,7 +76,7 @@ export class CoreApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1APIVersions", "" ) as V1APIVersions; - return body; + 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/CoreV1Api.ts b/src/gen/apis/CoreV1Api.ts index 3afbefd98b6..4ebf65a8fbd 100644 --- a/src/gen/apis/CoreV1Api.ts +++ b/src/gen/apis/CoreV1Api.ts @@ -1,7 +1,7 @@ // TODO: better import syntax? import {BaseAPIRequestFactory, RequiredError, COLLECTION_FORMATS} from './baseapi'; import {Configuration} from '../configuration'; -import {RequestContext, HttpMethod, ResponseContext, HttpFile} from '../http/http'; +import {RequestContext, HttpMethod, ResponseContext, HttpFile, HttpInfo} from '../http/http'; import FormData from "form-data"; import { URLSearchParams } from 'url'; import {ObjectSerializer} from '../models/ObjectSerializer'; @@ -15945,14 +15945,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to connectDeleteNamespacedPodProxy * @throws ApiException if the response code was not in [200, 299] */ - public async connectDeleteNamespacedPodProxy(response: ResponseContext): Promise { + public async connectDeleteNamespacedPodProxyWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: string = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "string", "" ) as string; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -15964,7 +15964,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "string", "" ) as string; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -15977,14 +15977,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to connectDeleteNamespacedPodProxyWithPath * @throws ApiException if the response code was not in [200, 299] */ - public async connectDeleteNamespacedPodProxyWithPath(response: ResponseContext): Promise { + public async connectDeleteNamespacedPodProxyWithPathWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: string = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "string", "" ) as string; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -15996,7 +15996,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "string", "" ) as string; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -16009,14 +16009,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to connectDeleteNamespacedServiceProxy * @throws ApiException if the response code was not in [200, 299] */ - public async connectDeleteNamespacedServiceProxy(response: ResponseContext): Promise { + public async connectDeleteNamespacedServiceProxyWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: string = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "string", "" ) as string; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -16028,7 +16028,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "string", "" ) as string; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -16041,14 +16041,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to connectDeleteNamespacedServiceProxyWithPath * @throws ApiException if the response code was not in [200, 299] */ - public async connectDeleteNamespacedServiceProxyWithPath(response: ResponseContext): Promise { + public async connectDeleteNamespacedServiceProxyWithPathWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: string = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "string", "" ) as string; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -16060,7 +16060,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "string", "" ) as string; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -16073,14 +16073,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to connectDeleteNodeProxy * @throws ApiException if the response code was not in [200, 299] */ - public async connectDeleteNodeProxy(response: ResponseContext): Promise { + public async connectDeleteNodeProxyWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: string = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "string", "" ) as string; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -16092,7 +16092,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "string", "" ) as string; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -16105,14 +16105,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to connectDeleteNodeProxyWithPath * @throws ApiException if the response code was not in [200, 299] */ - public async connectDeleteNodeProxyWithPath(response: ResponseContext): Promise { + public async connectDeleteNodeProxyWithPathWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: string = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "string", "" ) as string; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -16124,7 +16124,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "string", "" ) as string; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -16137,14 +16137,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to connectGetNamespacedPodAttach * @throws ApiException if the response code was not in [200, 299] */ - public async connectGetNamespacedPodAttach(response: ResponseContext): Promise { + public async connectGetNamespacedPodAttachWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: string = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "string", "" ) as string; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -16156,7 +16156,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "string", "" ) as string; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -16169,14 +16169,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to connectGetNamespacedPodExec * @throws ApiException if the response code was not in [200, 299] */ - public async connectGetNamespacedPodExec(response: ResponseContext): Promise { + public async connectGetNamespacedPodExecWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: string = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "string", "" ) as string; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -16188,7 +16188,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "string", "" ) as string; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -16201,14 +16201,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to connectGetNamespacedPodPortforward * @throws ApiException if the response code was not in [200, 299] */ - public async connectGetNamespacedPodPortforward(response: ResponseContext): Promise { + public async connectGetNamespacedPodPortforwardWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: string = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "string", "" ) as string; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -16220,7 +16220,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "string", "" ) as string; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -16233,14 +16233,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to connectGetNamespacedPodProxy * @throws ApiException if the response code was not in [200, 299] */ - public async connectGetNamespacedPodProxy(response: ResponseContext): Promise { + public async connectGetNamespacedPodProxyWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: string = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "string", "" ) as string; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -16252,7 +16252,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "string", "" ) as string; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -16265,14 +16265,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to connectGetNamespacedPodProxyWithPath * @throws ApiException if the response code was not in [200, 299] */ - public async connectGetNamespacedPodProxyWithPath(response: ResponseContext): Promise { + public async connectGetNamespacedPodProxyWithPathWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: string = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "string", "" ) as string; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -16284,7 +16284,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "string", "" ) as string; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -16297,14 +16297,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to connectGetNamespacedServiceProxy * @throws ApiException if the response code was not in [200, 299] */ - public async connectGetNamespacedServiceProxy(response: ResponseContext): Promise { + public async connectGetNamespacedServiceProxyWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: string = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "string", "" ) as string; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -16316,7 +16316,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "string", "" ) as string; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -16329,14 +16329,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to connectGetNamespacedServiceProxyWithPath * @throws ApiException if the response code was not in [200, 299] */ - public async connectGetNamespacedServiceProxyWithPath(response: ResponseContext): Promise { + public async connectGetNamespacedServiceProxyWithPathWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: string = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "string", "" ) as string; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -16348,7 +16348,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "string", "" ) as string; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -16361,14 +16361,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to connectGetNodeProxy * @throws ApiException if the response code was not in [200, 299] */ - public async connectGetNodeProxy(response: ResponseContext): Promise { + public async connectGetNodeProxyWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: string = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "string", "" ) as string; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -16380,7 +16380,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "string", "" ) as string; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -16393,14 +16393,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to connectGetNodeProxyWithPath * @throws ApiException if the response code was not in [200, 299] */ - public async connectGetNodeProxyWithPath(response: ResponseContext): Promise { + public async connectGetNodeProxyWithPathWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: string = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "string", "" ) as string; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -16412,7 +16412,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "string", "" ) as string; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -16425,14 +16425,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to connectHeadNamespacedPodProxy * @throws ApiException if the response code was not in [200, 299] */ - public async connectHeadNamespacedPodProxy(response: ResponseContext): Promise { + public async connectHeadNamespacedPodProxyWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: string = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "string", "" ) as string; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -16444,7 +16444,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "string", "" ) as string; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -16457,14 +16457,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to connectHeadNamespacedPodProxyWithPath * @throws ApiException if the response code was not in [200, 299] */ - public async connectHeadNamespacedPodProxyWithPath(response: ResponseContext): Promise { + public async connectHeadNamespacedPodProxyWithPathWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: string = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "string", "" ) as string; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -16476,7 +16476,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "string", "" ) as string; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -16489,14 +16489,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to connectHeadNamespacedServiceProxy * @throws ApiException if the response code was not in [200, 299] */ - public async connectHeadNamespacedServiceProxy(response: ResponseContext): Promise { + public async connectHeadNamespacedServiceProxyWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: string = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "string", "" ) as string; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -16508,7 +16508,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "string", "" ) as string; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -16521,14 +16521,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to connectHeadNamespacedServiceProxyWithPath * @throws ApiException if the response code was not in [200, 299] */ - public async connectHeadNamespacedServiceProxyWithPath(response: ResponseContext): Promise { + public async connectHeadNamespacedServiceProxyWithPathWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: string = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "string", "" ) as string; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -16540,7 +16540,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "string", "" ) as string; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -16553,14 +16553,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to connectHeadNodeProxy * @throws ApiException if the response code was not in [200, 299] */ - public async connectHeadNodeProxy(response: ResponseContext): Promise { + public async connectHeadNodeProxyWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: string = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "string", "" ) as string; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -16572,7 +16572,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "string", "" ) as string; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -16585,14 +16585,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to connectHeadNodeProxyWithPath * @throws ApiException if the response code was not in [200, 299] */ - public async connectHeadNodeProxyWithPath(response: ResponseContext): Promise { + public async connectHeadNodeProxyWithPathWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: string = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "string", "" ) as string; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -16604,7 +16604,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "string", "" ) as string; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -16617,14 +16617,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to connectOptionsNamespacedPodProxy * @throws ApiException if the response code was not in [200, 299] */ - public async connectOptionsNamespacedPodProxy(response: ResponseContext): Promise { + public async connectOptionsNamespacedPodProxyWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: string = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "string", "" ) as string; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -16636,7 +16636,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "string", "" ) as string; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -16649,14 +16649,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to connectOptionsNamespacedPodProxyWithPath * @throws ApiException if the response code was not in [200, 299] */ - public async connectOptionsNamespacedPodProxyWithPath(response: ResponseContext): Promise { + public async connectOptionsNamespacedPodProxyWithPathWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: string = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "string", "" ) as string; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -16668,7 +16668,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "string", "" ) as string; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -16681,14 +16681,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to connectOptionsNamespacedServiceProxy * @throws ApiException if the response code was not in [200, 299] */ - public async connectOptionsNamespacedServiceProxy(response: ResponseContext): Promise { + public async connectOptionsNamespacedServiceProxyWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: string = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "string", "" ) as string; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -16700,7 +16700,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "string", "" ) as string; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -16713,14 +16713,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to connectOptionsNamespacedServiceProxyWithPath * @throws ApiException if the response code was not in [200, 299] */ - public async connectOptionsNamespacedServiceProxyWithPath(response: ResponseContext): Promise { + public async connectOptionsNamespacedServiceProxyWithPathWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: string = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "string", "" ) as string; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -16732,7 +16732,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "string", "" ) as string; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -16745,14 +16745,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to connectOptionsNodeProxy * @throws ApiException if the response code was not in [200, 299] */ - public async connectOptionsNodeProxy(response: ResponseContext): Promise { + public async connectOptionsNodeProxyWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: string = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "string", "" ) as string; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -16764,7 +16764,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "string", "" ) as string; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -16777,14 +16777,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to connectOptionsNodeProxyWithPath * @throws ApiException if the response code was not in [200, 299] */ - public async connectOptionsNodeProxyWithPath(response: ResponseContext): Promise { + public async connectOptionsNodeProxyWithPathWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: string = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "string", "" ) as string; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -16796,7 +16796,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "string", "" ) as string; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -16809,14 +16809,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to connectPatchNamespacedPodProxy * @throws ApiException if the response code was not in [200, 299] */ - public async connectPatchNamespacedPodProxy(response: ResponseContext): Promise { + public async connectPatchNamespacedPodProxyWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: string = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "string", "" ) as string; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -16828,7 +16828,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "string", "" ) as string; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -16841,14 +16841,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to connectPatchNamespacedPodProxyWithPath * @throws ApiException if the response code was not in [200, 299] */ - public async connectPatchNamespacedPodProxyWithPath(response: ResponseContext): Promise { + public async connectPatchNamespacedPodProxyWithPathWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: string = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "string", "" ) as string; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -16860,7 +16860,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "string", "" ) as string; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -16873,14 +16873,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to connectPatchNamespacedServiceProxy * @throws ApiException if the response code was not in [200, 299] */ - public async connectPatchNamespacedServiceProxy(response: ResponseContext): Promise { + public async connectPatchNamespacedServiceProxyWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: string = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "string", "" ) as string; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -16892,7 +16892,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "string", "" ) as string; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -16905,14 +16905,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to connectPatchNamespacedServiceProxyWithPath * @throws ApiException if the response code was not in [200, 299] */ - public async connectPatchNamespacedServiceProxyWithPath(response: ResponseContext): Promise { + public async connectPatchNamespacedServiceProxyWithPathWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: string = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "string", "" ) as string; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -16924,7 +16924,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "string", "" ) as string; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -16937,14 +16937,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to connectPatchNodeProxy * @throws ApiException if the response code was not in [200, 299] */ - public async connectPatchNodeProxy(response: ResponseContext): Promise { + public async connectPatchNodeProxyWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: string = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "string", "" ) as string; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -16956,7 +16956,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "string", "" ) as string; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -16969,14 +16969,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to connectPatchNodeProxyWithPath * @throws ApiException if the response code was not in [200, 299] */ - public async connectPatchNodeProxyWithPath(response: ResponseContext): Promise { + public async connectPatchNodeProxyWithPathWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: string = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "string", "" ) as string; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -16988,7 +16988,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "string", "" ) as string; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -17001,14 +17001,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to connectPostNamespacedPodAttach * @throws ApiException if the response code was not in [200, 299] */ - public async connectPostNamespacedPodAttach(response: ResponseContext): Promise { + public async connectPostNamespacedPodAttachWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: string = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "string", "" ) as string; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -17020,7 +17020,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "string", "" ) as string; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -17033,14 +17033,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to connectPostNamespacedPodExec * @throws ApiException if the response code was not in [200, 299] */ - public async connectPostNamespacedPodExec(response: ResponseContext): Promise { + public async connectPostNamespacedPodExecWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: string = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "string", "" ) as string; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -17052,7 +17052,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "string", "" ) as string; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -17065,14 +17065,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to connectPostNamespacedPodPortforward * @throws ApiException if the response code was not in [200, 299] */ - public async connectPostNamespacedPodPortforward(response: ResponseContext): Promise { + public async connectPostNamespacedPodPortforwardWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: string = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "string", "" ) as string; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -17084,7 +17084,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "string", "" ) as string; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -17097,14 +17097,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to connectPostNamespacedPodProxy * @throws ApiException if the response code was not in [200, 299] */ - public async connectPostNamespacedPodProxy(response: ResponseContext): Promise { + public async connectPostNamespacedPodProxyWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: string = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "string", "" ) as string; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -17116,7 +17116,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "string", "" ) as string; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -17129,14 +17129,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to connectPostNamespacedPodProxyWithPath * @throws ApiException if the response code was not in [200, 299] */ - public async connectPostNamespacedPodProxyWithPath(response: ResponseContext): Promise { + public async connectPostNamespacedPodProxyWithPathWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: string = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "string", "" ) as string; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -17148,7 +17148,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "string", "" ) as string; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -17161,14 +17161,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to connectPostNamespacedServiceProxy * @throws ApiException if the response code was not in [200, 299] */ - public async connectPostNamespacedServiceProxy(response: ResponseContext): Promise { + public async connectPostNamespacedServiceProxyWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: string = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "string", "" ) as string; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -17180,7 +17180,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "string", "" ) as string; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -17193,14 +17193,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to connectPostNamespacedServiceProxyWithPath * @throws ApiException if the response code was not in [200, 299] */ - public async connectPostNamespacedServiceProxyWithPath(response: ResponseContext): Promise { + public async connectPostNamespacedServiceProxyWithPathWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: string = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "string", "" ) as string; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -17212,7 +17212,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "string", "" ) as string; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -17225,14 +17225,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to connectPostNodeProxy * @throws ApiException if the response code was not in [200, 299] */ - public async connectPostNodeProxy(response: ResponseContext): Promise { + public async connectPostNodeProxyWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: string = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "string", "" ) as string; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -17244,7 +17244,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "string", "" ) as string; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -17257,14 +17257,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to connectPostNodeProxyWithPath * @throws ApiException if the response code was not in [200, 299] */ - public async connectPostNodeProxyWithPath(response: ResponseContext): Promise { + public async connectPostNodeProxyWithPathWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: string = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "string", "" ) as string; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -17276,7 +17276,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "string", "" ) as string; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -17289,14 +17289,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to connectPutNamespacedPodProxy * @throws ApiException if the response code was not in [200, 299] */ - public async connectPutNamespacedPodProxy(response: ResponseContext): Promise { + public async connectPutNamespacedPodProxyWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: string = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "string", "" ) as string; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -17308,7 +17308,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "string", "" ) as string; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -17321,14 +17321,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to connectPutNamespacedPodProxyWithPath * @throws ApiException if the response code was not in [200, 299] */ - public async connectPutNamespacedPodProxyWithPath(response: ResponseContext): Promise { + public async connectPutNamespacedPodProxyWithPathWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: string = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "string", "" ) as string; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -17340,7 +17340,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "string", "" ) as string; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -17353,14 +17353,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to connectPutNamespacedServiceProxy * @throws ApiException if the response code was not in [200, 299] */ - public async connectPutNamespacedServiceProxy(response: ResponseContext): Promise { + public async connectPutNamespacedServiceProxyWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: string = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "string", "" ) as string; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -17372,7 +17372,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "string", "" ) as string; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -17385,14 +17385,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to connectPutNamespacedServiceProxyWithPath * @throws ApiException if the response code was not in [200, 299] */ - public async connectPutNamespacedServiceProxyWithPath(response: ResponseContext): Promise { + public async connectPutNamespacedServiceProxyWithPathWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: string = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "string", "" ) as string; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -17404,7 +17404,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "string", "" ) as string; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -17417,14 +17417,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to connectPutNodeProxy * @throws ApiException if the response code was not in [200, 299] */ - public async connectPutNodeProxy(response: ResponseContext): Promise { + public async connectPutNodeProxyWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: string = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "string", "" ) as string; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -17436,7 +17436,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "string", "" ) as string; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -17449,14 +17449,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to connectPutNodeProxyWithPath * @throws ApiException if the response code was not in [200, 299] */ - public async connectPutNodeProxyWithPath(response: ResponseContext): Promise { + public async connectPutNodeProxyWithPathWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: string = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "string", "" ) as string; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -17468,7 +17468,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "string", "" ) as string; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -17481,28 +17481,28 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to createNamespace * @throws ApiException if the response code was not in [200, 299] */ - public async createNamespace(response: ResponseContext): Promise { + public async createNamespaceWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1Namespace = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Namespace", "" ) as V1Namespace; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1Namespace = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Namespace", "" ) as V1Namespace; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("202", response.httpStatusCode)) { const body: V1Namespace = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Namespace", "" ) as V1Namespace; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -17514,7 +17514,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Namespace", "" ) as V1Namespace; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -17527,28 +17527,28 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to createNamespacedBinding * @throws ApiException if the response code was not in [200, 299] */ - public async createNamespacedBinding(response: ResponseContext): Promise { + public async createNamespacedBindingWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1Binding = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Binding", "" ) as V1Binding; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1Binding = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Binding", "" ) as V1Binding; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("202", response.httpStatusCode)) { const body: V1Binding = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Binding", "" ) as V1Binding; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -17560,7 +17560,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Binding", "" ) as V1Binding; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -17573,28 +17573,28 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to createNamespacedConfigMap * @throws ApiException if the response code was not in [200, 299] */ - public async createNamespacedConfigMap(response: ResponseContext): Promise { + public async createNamespacedConfigMapWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1ConfigMap = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ConfigMap", "" ) as V1ConfigMap; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1ConfigMap = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ConfigMap", "" ) as V1ConfigMap; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("202", response.httpStatusCode)) { const body: V1ConfigMap = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ConfigMap", "" ) as V1ConfigMap; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -17606,7 +17606,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1ConfigMap", "" ) as V1ConfigMap; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -17619,28 +17619,28 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to createNamespacedEndpoints * @throws ApiException if the response code was not in [200, 299] */ - public async createNamespacedEndpoints(response: ResponseContext): Promise { + public async createNamespacedEndpointsWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1Endpoints = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Endpoints", "" ) as V1Endpoints; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1Endpoints = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Endpoints", "" ) as V1Endpoints; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("202", response.httpStatusCode)) { const body: V1Endpoints = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Endpoints", "" ) as V1Endpoints; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -17652,7 +17652,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Endpoints", "" ) as V1Endpoints; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -17665,28 +17665,28 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to createNamespacedEvent * @throws ApiException if the response code was not in [200, 299] */ - public async createNamespacedEvent(response: ResponseContext): Promise { + public async createNamespacedEventWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: CoreV1Event = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "CoreV1Event", "" ) as CoreV1Event; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: CoreV1Event = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "CoreV1Event", "" ) as CoreV1Event; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("202", response.httpStatusCode)) { const body: CoreV1Event = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "CoreV1Event", "" ) as CoreV1Event; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -17698,7 +17698,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "CoreV1Event", "" ) as CoreV1Event; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -17711,28 +17711,28 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to createNamespacedLimitRange * @throws ApiException if the response code was not in [200, 299] */ - public async createNamespacedLimitRange(response: ResponseContext): Promise { + public async createNamespacedLimitRangeWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1LimitRange = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1LimitRange", "" ) as V1LimitRange; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1LimitRange = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1LimitRange", "" ) as V1LimitRange; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("202", response.httpStatusCode)) { const body: V1LimitRange = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1LimitRange", "" ) as V1LimitRange; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -17744,7 +17744,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1LimitRange", "" ) as V1LimitRange; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -17757,28 +17757,28 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to createNamespacedPersistentVolumeClaim * @throws ApiException if the response code was not in [200, 299] */ - public async createNamespacedPersistentVolumeClaim(response: ResponseContext): Promise { + public async createNamespacedPersistentVolumeClaimWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1PersistentVolumeClaim = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1PersistentVolumeClaim", "" ) as V1PersistentVolumeClaim; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1PersistentVolumeClaim = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1PersistentVolumeClaim", "" ) as V1PersistentVolumeClaim; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("202", response.httpStatusCode)) { const body: V1PersistentVolumeClaim = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1PersistentVolumeClaim", "" ) as V1PersistentVolumeClaim; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -17790,7 +17790,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1PersistentVolumeClaim", "" ) as V1PersistentVolumeClaim; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -17803,28 +17803,28 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to createNamespacedPod * @throws ApiException if the response code was not in [200, 299] */ - public async createNamespacedPod(response: ResponseContext): Promise { + public async createNamespacedPodWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1Pod = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Pod", "" ) as V1Pod; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1Pod = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Pod", "" ) as V1Pod; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("202", response.httpStatusCode)) { const body: V1Pod = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Pod", "" ) as V1Pod; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -17836,7 +17836,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Pod", "" ) as V1Pod; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -17849,28 +17849,28 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to createNamespacedPodBinding * @throws ApiException if the response code was not in [200, 299] */ - public async createNamespacedPodBinding(response: ResponseContext): Promise { + public async createNamespacedPodBindingWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1Binding = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Binding", "" ) as V1Binding; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1Binding = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Binding", "" ) as V1Binding; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("202", response.httpStatusCode)) { const body: V1Binding = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Binding", "" ) as V1Binding; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -17882,7 +17882,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Binding", "" ) as V1Binding; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -17895,28 +17895,28 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to createNamespacedPodEviction * @throws ApiException if the response code was not in [200, 299] */ - public async createNamespacedPodEviction(response: ResponseContext): Promise { + public async createNamespacedPodEvictionWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1Eviction = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Eviction", "" ) as V1Eviction; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1Eviction = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Eviction", "" ) as V1Eviction; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("202", response.httpStatusCode)) { const body: V1Eviction = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Eviction", "" ) as V1Eviction; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -17928,7 +17928,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Eviction", "" ) as V1Eviction; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -17941,28 +17941,28 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to createNamespacedPodTemplate * @throws ApiException if the response code was not in [200, 299] */ - public async createNamespacedPodTemplate(response: ResponseContext): Promise { + public async createNamespacedPodTemplateWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1PodTemplate = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1PodTemplate", "" ) as V1PodTemplate; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1PodTemplate = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1PodTemplate", "" ) as V1PodTemplate; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("202", response.httpStatusCode)) { const body: V1PodTemplate = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1PodTemplate", "" ) as V1PodTemplate; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -17974,7 +17974,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1PodTemplate", "" ) as V1PodTemplate; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -17987,28 +17987,28 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to createNamespacedReplicationController * @throws ApiException if the response code was not in [200, 299] */ - public async createNamespacedReplicationController(response: ResponseContext): Promise { + public async createNamespacedReplicationControllerWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1ReplicationController = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ReplicationController", "" ) as V1ReplicationController; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1ReplicationController = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ReplicationController", "" ) as V1ReplicationController; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("202", response.httpStatusCode)) { const body: V1ReplicationController = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ReplicationController", "" ) as V1ReplicationController; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -18020,7 +18020,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1ReplicationController", "" ) as V1ReplicationController; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -18033,28 +18033,28 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to createNamespacedResourceQuota * @throws ApiException if the response code was not in [200, 299] */ - public async createNamespacedResourceQuota(response: ResponseContext): Promise { + public async createNamespacedResourceQuotaWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1ResourceQuota = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ResourceQuota", "" ) as V1ResourceQuota; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1ResourceQuota = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ResourceQuota", "" ) as V1ResourceQuota; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("202", response.httpStatusCode)) { const body: V1ResourceQuota = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ResourceQuota", "" ) as V1ResourceQuota; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -18066,7 +18066,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1ResourceQuota", "" ) as V1ResourceQuota; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -18079,28 +18079,28 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to createNamespacedSecret * @throws ApiException if the response code was not in [200, 299] */ - public async createNamespacedSecret(response: ResponseContext): Promise { + public async createNamespacedSecretWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1Secret = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Secret", "" ) as V1Secret; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1Secret = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Secret", "" ) as V1Secret; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("202", response.httpStatusCode)) { const body: V1Secret = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Secret", "" ) as V1Secret; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -18112,7 +18112,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Secret", "" ) as V1Secret; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -18125,28 +18125,28 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to createNamespacedService * @throws ApiException if the response code was not in [200, 299] */ - public async createNamespacedService(response: ResponseContext): Promise { + public async createNamespacedServiceWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1Service = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Service", "" ) as V1Service; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1Service = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Service", "" ) as V1Service; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("202", response.httpStatusCode)) { const body: V1Service = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Service", "" ) as V1Service; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -18158,7 +18158,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Service", "" ) as V1Service; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -18171,28 +18171,28 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to createNamespacedServiceAccount * @throws ApiException if the response code was not in [200, 299] */ - public async createNamespacedServiceAccount(response: ResponseContext): Promise { + public async createNamespacedServiceAccountWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1ServiceAccount = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ServiceAccount", "" ) as V1ServiceAccount; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1ServiceAccount = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ServiceAccount", "" ) as V1ServiceAccount; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("202", response.httpStatusCode)) { const body: V1ServiceAccount = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ServiceAccount", "" ) as V1ServiceAccount; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -18204,7 +18204,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1ServiceAccount", "" ) as V1ServiceAccount; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -18217,28 +18217,28 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to createNamespacedServiceAccountToken * @throws ApiException if the response code was not in [200, 299] */ - public async createNamespacedServiceAccountToken(response: ResponseContext): Promise { + public async createNamespacedServiceAccountTokenWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: AuthenticationV1TokenRequest = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "AuthenticationV1TokenRequest", "" ) as AuthenticationV1TokenRequest; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: AuthenticationV1TokenRequest = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "AuthenticationV1TokenRequest", "" ) as AuthenticationV1TokenRequest; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("202", response.httpStatusCode)) { const body: AuthenticationV1TokenRequest = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "AuthenticationV1TokenRequest", "" ) as AuthenticationV1TokenRequest; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -18250,7 +18250,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "AuthenticationV1TokenRequest", "" ) as AuthenticationV1TokenRequest; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -18263,28 +18263,28 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to createNode * @throws ApiException if the response code was not in [200, 299] */ - public async createNode(response: ResponseContext): Promise { + public async createNodeWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1Node = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Node", "" ) as V1Node; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1Node = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Node", "" ) as V1Node; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("202", response.httpStatusCode)) { const body: V1Node = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Node", "" ) as V1Node; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -18296,7 +18296,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Node", "" ) as V1Node; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -18309,28 +18309,28 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to createPersistentVolume * @throws ApiException if the response code was not in [200, 299] */ - public async createPersistentVolume(response: ResponseContext): Promise { + public async createPersistentVolumeWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1PersistentVolume = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1PersistentVolume", "" ) as V1PersistentVolume; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1PersistentVolume = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1PersistentVolume", "" ) as V1PersistentVolume; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("202", response.httpStatusCode)) { const body: V1PersistentVolume = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1PersistentVolume", "" ) as V1PersistentVolume; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -18342,7 +18342,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1PersistentVolume", "" ) as V1PersistentVolume; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -18355,14 +18355,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteCollectionNamespacedConfigMap * @throws ApiException if the response code was not in [200, 299] */ - public async deleteCollectionNamespacedConfigMap(response: ResponseContext): Promise { + public async deleteCollectionNamespacedConfigMapWithHttpInfo(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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -18374,7 +18374,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -18387,14 +18387,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteCollectionNamespacedEndpoints * @throws ApiException if the response code was not in [200, 299] */ - public async deleteCollectionNamespacedEndpoints(response: ResponseContext): Promise { + public async deleteCollectionNamespacedEndpointsWithHttpInfo(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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -18406,7 +18406,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -18419,14 +18419,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteCollectionNamespacedEvent * @throws ApiException if the response code was not in [200, 299] */ - public async deleteCollectionNamespacedEvent(response: ResponseContext): Promise { + public async deleteCollectionNamespacedEventWithHttpInfo(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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -18438,7 +18438,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -18451,14 +18451,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteCollectionNamespacedLimitRange * @throws ApiException if the response code was not in [200, 299] */ - public async deleteCollectionNamespacedLimitRange(response: ResponseContext): Promise { + public async deleteCollectionNamespacedLimitRangeWithHttpInfo(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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -18470,7 +18470,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -18483,14 +18483,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteCollectionNamespacedPersistentVolumeClaim * @throws ApiException if the response code was not in [200, 299] */ - public async deleteCollectionNamespacedPersistentVolumeClaim(response: ResponseContext): Promise { + public async deleteCollectionNamespacedPersistentVolumeClaimWithHttpInfo(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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -18502,7 +18502,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -18515,14 +18515,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteCollectionNamespacedPod * @throws ApiException if the response code was not in [200, 299] */ - public async deleteCollectionNamespacedPod(response: ResponseContext): Promise { + public async deleteCollectionNamespacedPodWithHttpInfo(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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -18534,7 +18534,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -18547,14 +18547,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteCollectionNamespacedPodTemplate * @throws ApiException if the response code was not in [200, 299] */ - public async deleteCollectionNamespacedPodTemplate(response: ResponseContext): Promise { + public async deleteCollectionNamespacedPodTemplateWithHttpInfo(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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -18566,7 +18566,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -18579,14 +18579,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteCollectionNamespacedReplicationController * @throws ApiException if the response code was not in [200, 299] */ - public async deleteCollectionNamespacedReplicationController(response: ResponseContext): Promise { + public async deleteCollectionNamespacedReplicationControllerWithHttpInfo(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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -18598,7 +18598,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -18611,14 +18611,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteCollectionNamespacedResourceQuota * @throws ApiException if the response code was not in [200, 299] */ - public async deleteCollectionNamespacedResourceQuota(response: ResponseContext): Promise { + public async deleteCollectionNamespacedResourceQuotaWithHttpInfo(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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -18630,7 +18630,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -18643,14 +18643,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteCollectionNamespacedSecret * @throws ApiException if the response code was not in [200, 299] */ - public async deleteCollectionNamespacedSecret(response: ResponseContext): Promise { + public async deleteCollectionNamespacedSecretWithHttpInfo(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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -18662,7 +18662,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -18675,14 +18675,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteCollectionNamespacedServiceAccount * @throws ApiException if the response code was not in [200, 299] */ - public async deleteCollectionNamespacedServiceAccount(response: ResponseContext): Promise { + public async deleteCollectionNamespacedServiceAccountWithHttpInfo(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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -18694,7 +18694,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -18707,14 +18707,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteCollectionNode * @throws ApiException if the response code was not in [200, 299] */ - public async deleteCollectionNode(response: ResponseContext): Promise { + public async deleteCollectionNodeWithHttpInfo(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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -18726,7 +18726,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -18739,14 +18739,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteCollectionPersistentVolume * @throws ApiException if the response code was not in [200, 299] */ - public async deleteCollectionPersistentVolume(response: ResponseContext): Promise { + public async deleteCollectionPersistentVolumeWithHttpInfo(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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -18758,7 +18758,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -18771,21 +18771,21 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteNamespace * @throws ApiException if the response code was not in [200, 299] */ - public async deleteNamespace(response: ResponseContext): Promise { + public async deleteNamespaceWithHttpInfo(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 body; + 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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -18797,7 +18797,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -18810,21 +18810,21 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteNamespacedConfigMap * @throws ApiException if the response code was not in [200, 299] */ - public async deleteNamespacedConfigMap(response: ResponseContext): Promise { + public async deleteNamespacedConfigMapWithHttpInfo(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 body; + 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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -18836,7 +18836,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -18849,21 +18849,21 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteNamespacedEndpoints * @throws ApiException if the response code was not in [200, 299] */ - public async deleteNamespacedEndpoints(response: ResponseContext): Promise { + public async deleteNamespacedEndpointsWithHttpInfo(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 body; + 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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -18875,7 +18875,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -18888,21 +18888,21 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteNamespacedEvent * @throws ApiException if the response code was not in [200, 299] */ - public async deleteNamespacedEvent(response: ResponseContext): Promise { + public async deleteNamespacedEventWithHttpInfo(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 body; + 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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -18914,7 +18914,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -18927,21 +18927,21 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteNamespacedLimitRange * @throws ApiException if the response code was not in [200, 299] */ - public async deleteNamespacedLimitRange(response: ResponseContext): Promise { + public async deleteNamespacedLimitRangeWithHttpInfo(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 body; + 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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -18953,7 +18953,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -18966,21 +18966,21 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteNamespacedPersistentVolumeClaim * @throws ApiException if the response code was not in [200, 299] */ - public async deleteNamespacedPersistentVolumeClaim(response: ResponseContext): Promise { + public async deleteNamespacedPersistentVolumeClaimWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1PersistentVolumeClaim = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1PersistentVolumeClaim", "" ) as V1PersistentVolumeClaim; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("202", response.httpStatusCode)) { const body: V1PersistentVolumeClaim = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1PersistentVolumeClaim", "" ) as V1PersistentVolumeClaim; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -18992,7 +18992,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1PersistentVolumeClaim", "" ) as V1PersistentVolumeClaim; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -19005,21 +19005,21 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteNamespacedPod * @throws ApiException if the response code was not in [200, 299] */ - public async deleteNamespacedPod(response: ResponseContext): Promise { + public async deleteNamespacedPodWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1Pod = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Pod", "" ) as V1Pod; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("202", response.httpStatusCode)) { const body: V1Pod = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Pod", "" ) as V1Pod; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -19031,7 +19031,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Pod", "" ) as V1Pod; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -19044,21 +19044,21 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteNamespacedPodTemplate * @throws ApiException if the response code was not in [200, 299] */ - public async deleteNamespacedPodTemplate(response: ResponseContext): Promise { + public async deleteNamespacedPodTemplateWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1PodTemplate = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1PodTemplate", "" ) as V1PodTemplate; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("202", response.httpStatusCode)) { const body: V1PodTemplate = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1PodTemplate", "" ) as V1PodTemplate; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -19070,7 +19070,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1PodTemplate", "" ) as V1PodTemplate; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -19083,21 +19083,21 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteNamespacedReplicationController * @throws ApiException if the response code was not in [200, 299] */ - public async deleteNamespacedReplicationController(response: ResponseContext): Promise { + public async deleteNamespacedReplicationControllerWithHttpInfo(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 body; + 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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -19109,7 +19109,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -19122,21 +19122,21 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteNamespacedResourceQuota * @throws ApiException if the response code was not in [200, 299] */ - public async deleteNamespacedResourceQuota(response: ResponseContext): Promise { + public async deleteNamespacedResourceQuotaWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1ResourceQuota = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ResourceQuota", "" ) as V1ResourceQuota; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("202", response.httpStatusCode)) { const body: V1ResourceQuota = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ResourceQuota", "" ) as V1ResourceQuota; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -19148,7 +19148,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1ResourceQuota", "" ) as V1ResourceQuota; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -19161,21 +19161,21 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteNamespacedSecret * @throws ApiException if the response code was not in [200, 299] */ - public async deleteNamespacedSecret(response: ResponseContext): Promise { + public async deleteNamespacedSecretWithHttpInfo(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 body; + 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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -19187,7 +19187,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -19200,21 +19200,21 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteNamespacedService * @throws ApiException if the response code was not in [200, 299] */ - public async deleteNamespacedService(response: ResponseContext): Promise { + public async deleteNamespacedServiceWithHttpInfo(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 body; + 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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -19226,7 +19226,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -19239,21 +19239,21 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteNamespacedServiceAccount * @throws ApiException if the response code was not in [200, 299] */ - public async deleteNamespacedServiceAccount(response: ResponseContext): Promise { + public async deleteNamespacedServiceAccountWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1ServiceAccount = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ServiceAccount", "" ) as V1ServiceAccount; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("202", response.httpStatusCode)) { const body: V1ServiceAccount = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ServiceAccount", "" ) as V1ServiceAccount; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -19265,7 +19265,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1ServiceAccount", "" ) as V1ServiceAccount; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -19278,21 +19278,21 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteNode * @throws ApiException if the response code was not in [200, 299] */ - public async deleteNode(response: ResponseContext): Promise { + public async deleteNodeWithHttpInfo(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 body; + 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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -19304,7 +19304,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -19317,21 +19317,21 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to deletePersistentVolume * @throws ApiException if the response code was not in [200, 299] */ - public async deletePersistentVolume(response: ResponseContext): Promise { + public async deletePersistentVolumeWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1PersistentVolume = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1PersistentVolume", "" ) as V1PersistentVolume; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("202", response.httpStatusCode)) { const body: V1PersistentVolume = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1PersistentVolume", "" ) as V1PersistentVolume; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -19343,7 +19343,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1PersistentVolume", "" ) as V1PersistentVolume; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -19356,14 +19356,14 @@ export class CoreV1ApiResponseProcessor { * @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 getAPIResources(response: ResponseContext): Promise { + 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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -19375,7 +19375,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1APIResourceList", "" ) as V1APIResourceList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -19388,14 +19388,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to listComponentStatus * @throws ApiException if the response code was not in [200, 299] */ - public async listComponentStatus(response: ResponseContext): Promise { + public async listComponentStatusWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1ComponentStatusList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ComponentStatusList", "" ) as V1ComponentStatusList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -19407,7 +19407,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1ComponentStatusList", "" ) as V1ComponentStatusList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -19420,14 +19420,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to listConfigMapForAllNamespaces * @throws ApiException if the response code was not in [200, 299] */ - public async listConfigMapForAllNamespaces(response: ResponseContext): Promise { + public async listConfigMapForAllNamespacesWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1ConfigMapList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ConfigMapList", "" ) as V1ConfigMapList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -19439,7 +19439,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1ConfigMapList", "" ) as V1ConfigMapList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -19452,14 +19452,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to listEndpointsForAllNamespaces * @throws ApiException if the response code was not in [200, 299] */ - public async listEndpointsForAllNamespaces(response: ResponseContext): Promise { + public async listEndpointsForAllNamespacesWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1EndpointsList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1EndpointsList", "" ) as V1EndpointsList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -19471,7 +19471,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1EndpointsList", "" ) as V1EndpointsList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -19484,14 +19484,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to listEventForAllNamespaces * @throws ApiException if the response code was not in [200, 299] */ - public async listEventForAllNamespaces(response: ResponseContext): Promise { + public async listEventForAllNamespacesWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: CoreV1EventList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "CoreV1EventList", "" ) as CoreV1EventList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -19503,7 +19503,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "CoreV1EventList", "" ) as CoreV1EventList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -19516,14 +19516,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to listLimitRangeForAllNamespaces * @throws ApiException if the response code was not in [200, 299] */ - public async listLimitRangeForAllNamespaces(response: ResponseContext): Promise { + public async listLimitRangeForAllNamespacesWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1LimitRangeList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1LimitRangeList", "" ) as V1LimitRangeList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -19535,7 +19535,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1LimitRangeList", "" ) as V1LimitRangeList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -19548,14 +19548,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to listNamespace * @throws ApiException if the response code was not in [200, 299] */ - public async listNamespace(response: ResponseContext): Promise { + public async listNamespaceWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1NamespaceList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1NamespaceList", "" ) as V1NamespaceList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -19567,7 +19567,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1NamespaceList", "" ) as V1NamespaceList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -19580,14 +19580,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to listNamespacedConfigMap * @throws ApiException if the response code was not in [200, 299] */ - public async listNamespacedConfigMap(response: ResponseContext): Promise { + public async listNamespacedConfigMapWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1ConfigMapList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ConfigMapList", "" ) as V1ConfigMapList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -19599,7 +19599,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1ConfigMapList", "" ) as V1ConfigMapList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -19612,14 +19612,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to listNamespacedEndpoints * @throws ApiException if the response code was not in [200, 299] */ - public async listNamespacedEndpoints(response: ResponseContext): Promise { + public async listNamespacedEndpointsWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1EndpointsList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1EndpointsList", "" ) as V1EndpointsList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -19631,7 +19631,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1EndpointsList", "" ) as V1EndpointsList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -19644,14 +19644,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to listNamespacedEvent * @throws ApiException if the response code was not in [200, 299] */ - public async listNamespacedEvent(response: ResponseContext): Promise { + public async listNamespacedEventWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: CoreV1EventList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "CoreV1EventList", "" ) as CoreV1EventList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -19663,7 +19663,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "CoreV1EventList", "" ) as CoreV1EventList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -19676,14 +19676,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to listNamespacedLimitRange * @throws ApiException if the response code was not in [200, 299] */ - public async listNamespacedLimitRange(response: ResponseContext): Promise { + public async listNamespacedLimitRangeWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1LimitRangeList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1LimitRangeList", "" ) as V1LimitRangeList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -19695,7 +19695,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1LimitRangeList", "" ) as V1LimitRangeList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -19708,14 +19708,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to listNamespacedPersistentVolumeClaim * @throws ApiException if the response code was not in [200, 299] */ - public async listNamespacedPersistentVolumeClaim(response: ResponseContext): Promise { + public async listNamespacedPersistentVolumeClaimWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1PersistentVolumeClaimList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1PersistentVolumeClaimList", "" ) as V1PersistentVolumeClaimList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -19727,7 +19727,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1PersistentVolumeClaimList", "" ) as V1PersistentVolumeClaimList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -19740,14 +19740,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to listNamespacedPod * @throws ApiException if the response code was not in [200, 299] */ - public async listNamespacedPod(response: ResponseContext): Promise { + public async listNamespacedPodWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1PodList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1PodList", "" ) as V1PodList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -19759,7 +19759,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1PodList", "" ) as V1PodList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -19772,14 +19772,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to listNamespacedPodTemplate * @throws ApiException if the response code was not in [200, 299] */ - public async listNamespacedPodTemplate(response: ResponseContext): Promise { + public async listNamespacedPodTemplateWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1PodTemplateList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1PodTemplateList", "" ) as V1PodTemplateList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -19791,7 +19791,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1PodTemplateList", "" ) as V1PodTemplateList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -19804,14 +19804,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to listNamespacedReplicationController * @throws ApiException if the response code was not in [200, 299] */ - public async listNamespacedReplicationController(response: ResponseContext): Promise { + public async listNamespacedReplicationControllerWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1ReplicationControllerList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ReplicationControllerList", "" ) as V1ReplicationControllerList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -19823,7 +19823,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1ReplicationControllerList", "" ) as V1ReplicationControllerList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -19836,14 +19836,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to listNamespacedResourceQuota * @throws ApiException if the response code was not in [200, 299] */ - public async listNamespacedResourceQuota(response: ResponseContext): Promise { + public async listNamespacedResourceQuotaWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1ResourceQuotaList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ResourceQuotaList", "" ) as V1ResourceQuotaList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -19855,7 +19855,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1ResourceQuotaList", "" ) as V1ResourceQuotaList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -19868,14 +19868,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to listNamespacedSecret * @throws ApiException if the response code was not in [200, 299] */ - public async listNamespacedSecret(response: ResponseContext): Promise { + public async listNamespacedSecretWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1SecretList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1SecretList", "" ) as V1SecretList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -19887,7 +19887,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1SecretList", "" ) as V1SecretList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -19900,14 +19900,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to listNamespacedService * @throws ApiException if the response code was not in [200, 299] */ - public async listNamespacedService(response: ResponseContext): Promise { + public async listNamespacedServiceWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1ServiceList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ServiceList", "" ) as V1ServiceList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -19919,7 +19919,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1ServiceList", "" ) as V1ServiceList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -19932,14 +19932,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to listNamespacedServiceAccount * @throws ApiException if the response code was not in [200, 299] */ - public async listNamespacedServiceAccount(response: ResponseContext): Promise { + public async listNamespacedServiceAccountWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1ServiceAccountList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ServiceAccountList", "" ) as V1ServiceAccountList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -19951,7 +19951,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1ServiceAccountList", "" ) as V1ServiceAccountList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -19964,14 +19964,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to listNode * @throws ApiException if the response code was not in [200, 299] */ - public async listNode(response: ResponseContext): Promise { + public async listNodeWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1NodeList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1NodeList", "" ) as V1NodeList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -19983,7 +19983,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1NodeList", "" ) as V1NodeList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -19996,14 +19996,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to listPersistentVolume * @throws ApiException if the response code was not in [200, 299] */ - public async listPersistentVolume(response: ResponseContext): Promise { + public async listPersistentVolumeWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1PersistentVolumeList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1PersistentVolumeList", "" ) as V1PersistentVolumeList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -20015,7 +20015,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1PersistentVolumeList", "" ) as V1PersistentVolumeList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -20028,14 +20028,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to listPersistentVolumeClaimForAllNamespaces * @throws ApiException if the response code was not in [200, 299] */ - public async listPersistentVolumeClaimForAllNamespaces(response: ResponseContext): Promise { + public async listPersistentVolumeClaimForAllNamespacesWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1PersistentVolumeClaimList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1PersistentVolumeClaimList", "" ) as V1PersistentVolumeClaimList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -20047,7 +20047,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1PersistentVolumeClaimList", "" ) as V1PersistentVolumeClaimList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -20060,14 +20060,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to listPodForAllNamespaces * @throws ApiException if the response code was not in [200, 299] */ - public async listPodForAllNamespaces(response: ResponseContext): Promise { + public async listPodForAllNamespacesWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1PodList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1PodList", "" ) as V1PodList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -20079,7 +20079,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1PodList", "" ) as V1PodList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -20092,14 +20092,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to listPodTemplateForAllNamespaces * @throws ApiException if the response code was not in [200, 299] */ - public async listPodTemplateForAllNamespaces(response: ResponseContext): Promise { + public async listPodTemplateForAllNamespacesWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1PodTemplateList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1PodTemplateList", "" ) as V1PodTemplateList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -20111,7 +20111,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1PodTemplateList", "" ) as V1PodTemplateList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -20124,14 +20124,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to listReplicationControllerForAllNamespaces * @throws ApiException if the response code was not in [200, 299] */ - public async listReplicationControllerForAllNamespaces(response: ResponseContext): Promise { + public async listReplicationControllerForAllNamespacesWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1ReplicationControllerList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ReplicationControllerList", "" ) as V1ReplicationControllerList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -20143,7 +20143,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1ReplicationControllerList", "" ) as V1ReplicationControllerList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -20156,14 +20156,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to listResourceQuotaForAllNamespaces * @throws ApiException if the response code was not in [200, 299] */ - public async listResourceQuotaForAllNamespaces(response: ResponseContext): Promise { + public async listResourceQuotaForAllNamespacesWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1ResourceQuotaList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ResourceQuotaList", "" ) as V1ResourceQuotaList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -20175,7 +20175,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1ResourceQuotaList", "" ) as V1ResourceQuotaList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -20188,14 +20188,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to listSecretForAllNamespaces * @throws ApiException if the response code was not in [200, 299] */ - public async listSecretForAllNamespaces(response: ResponseContext): Promise { + public async listSecretForAllNamespacesWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1SecretList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1SecretList", "" ) as V1SecretList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -20207,7 +20207,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1SecretList", "" ) as V1SecretList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -20220,14 +20220,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to listServiceAccountForAllNamespaces * @throws ApiException if the response code was not in [200, 299] */ - public async listServiceAccountForAllNamespaces(response: ResponseContext): Promise { + public async listServiceAccountForAllNamespacesWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1ServiceAccountList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ServiceAccountList", "" ) as V1ServiceAccountList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -20239,7 +20239,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1ServiceAccountList", "" ) as V1ServiceAccountList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -20252,14 +20252,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to listServiceForAllNamespaces * @throws ApiException if the response code was not in [200, 299] */ - public async listServiceForAllNamespaces(response: ResponseContext): Promise { + public async listServiceForAllNamespacesWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1ServiceList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ServiceList", "" ) as V1ServiceList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -20271,7 +20271,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1ServiceList", "" ) as V1ServiceList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -20284,21 +20284,21 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to patchNamespace * @throws ApiException if the response code was not in [200, 299] */ - public async patchNamespace(response: ResponseContext): Promise { + public async patchNamespaceWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1Namespace = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Namespace", "" ) as V1Namespace; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1Namespace = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Namespace", "" ) as V1Namespace; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -20310,7 +20310,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Namespace", "" ) as V1Namespace; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -20323,21 +20323,21 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to patchNamespaceStatus * @throws ApiException if the response code was not in [200, 299] */ - public async patchNamespaceStatus(response: ResponseContext): Promise { + public async patchNamespaceStatusWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1Namespace = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Namespace", "" ) as V1Namespace; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1Namespace = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Namespace", "" ) as V1Namespace; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -20349,7 +20349,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Namespace", "" ) as V1Namespace; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -20362,21 +20362,21 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to patchNamespacedConfigMap * @throws ApiException if the response code was not in [200, 299] */ - public async patchNamespacedConfigMap(response: ResponseContext): Promise { + public async patchNamespacedConfigMapWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1ConfigMap = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ConfigMap", "" ) as V1ConfigMap; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1ConfigMap = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ConfigMap", "" ) as V1ConfigMap; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -20388,7 +20388,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1ConfigMap", "" ) as V1ConfigMap; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -20401,21 +20401,21 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to patchNamespacedEndpoints * @throws ApiException if the response code was not in [200, 299] */ - public async patchNamespacedEndpoints(response: ResponseContext): Promise { + public async patchNamespacedEndpointsWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1Endpoints = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Endpoints", "" ) as V1Endpoints; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1Endpoints = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Endpoints", "" ) as V1Endpoints; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -20427,7 +20427,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Endpoints", "" ) as V1Endpoints; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -20440,21 +20440,21 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to patchNamespacedEvent * @throws ApiException if the response code was not in [200, 299] */ - public async patchNamespacedEvent(response: ResponseContext): Promise { + public async patchNamespacedEventWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: CoreV1Event = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "CoreV1Event", "" ) as CoreV1Event; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: CoreV1Event = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "CoreV1Event", "" ) as CoreV1Event; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -20466,7 +20466,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "CoreV1Event", "" ) as CoreV1Event; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -20479,21 +20479,21 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to patchNamespacedLimitRange * @throws ApiException if the response code was not in [200, 299] */ - public async patchNamespacedLimitRange(response: ResponseContext): Promise { + public async patchNamespacedLimitRangeWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1LimitRange = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1LimitRange", "" ) as V1LimitRange; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1LimitRange = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1LimitRange", "" ) as V1LimitRange; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -20505,7 +20505,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1LimitRange", "" ) as V1LimitRange; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -20518,21 +20518,21 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to patchNamespacedPersistentVolumeClaim * @throws ApiException if the response code was not in [200, 299] */ - public async patchNamespacedPersistentVolumeClaim(response: ResponseContext): Promise { + public async patchNamespacedPersistentVolumeClaimWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1PersistentVolumeClaim = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1PersistentVolumeClaim", "" ) as V1PersistentVolumeClaim; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1PersistentVolumeClaim = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1PersistentVolumeClaim", "" ) as V1PersistentVolumeClaim; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -20544,7 +20544,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1PersistentVolumeClaim", "" ) as V1PersistentVolumeClaim; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -20557,21 +20557,21 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to patchNamespacedPersistentVolumeClaimStatus * @throws ApiException if the response code was not in [200, 299] */ - public async patchNamespacedPersistentVolumeClaimStatus(response: ResponseContext): Promise { + public async patchNamespacedPersistentVolumeClaimStatusWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1PersistentVolumeClaim = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1PersistentVolumeClaim", "" ) as V1PersistentVolumeClaim; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1PersistentVolumeClaim = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1PersistentVolumeClaim", "" ) as V1PersistentVolumeClaim; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -20583,7 +20583,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1PersistentVolumeClaim", "" ) as V1PersistentVolumeClaim; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -20596,21 +20596,21 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to patchNamespacedPod * @throws ApiException if the response code was not in [200, 299] */ - public async patchNamespacedPod(response: ResponseContext): Promise { + public async patchNamespacedPodWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1Pod = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Pod", "" ) as V1Pod; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1Pod = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Pod", "" ) as V1Pod; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -20622,7 +20622,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Pod", "" ) as V1Pod; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -20635,21 +20635,21 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to patchNamespacedPodEphemeralcontainers * @throws ApiException if the response code was not in [200, 299] */ - public async patchNamespacedPodEphemeralcontainers(response: ResponseContext): Promise { + public async patchNamespacedPodEphemeralcontainersWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1Pod = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Pod", "" ) as V1Pod; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1Pod = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Pod", "" ) as V1Pod; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -20661,7 +20661,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Pod", "" ) as V1Pod; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -20674,21 +20674,21 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to patchNamespacedPodStatus * @throws ApiException if the response code was not in [200, 299] */ - public async patchNamespacedPodStatus(response: ResponseContext): Promise { + public async patchNamespacedPodStatusWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1Pod = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Pod", "" ) as V1Pod; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1Pod = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Pod", "" ) as V1Pod; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -20700,7 +20700,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Pod", "" ) as V1Pod; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -20713,21 +20713,21 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to patchNamespacedPodTemplate * @throws ApiException if the response code was not in [200, 299] */ - public async patchNamespacedPodTemplate(response: ResponseContext): Promise { + public async patchNamespacedPodTemplateWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1PodTemplate = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1PodTemplate", "" ) as V1PodTemplate; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1PodTemplate = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1PodTemplate", "" ) as V1PodTemplate; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -20739,7 +20739,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1PodTemplate", "" ) as V1PodTemplate; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -20752,21 +20752,21 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to patchNamespacedReplicationController * @throws ApiException if the response code was not in [200, 299] */ - public async patchNamespacedReplicationController(response: ResponseContext): Promise { + public async patchNamespacedReplicationControllerWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1ReplicationController = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ReplicationController", "" ) as V1ReplicationController; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1ReplicationController = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ReplicationController", "" ) as V1ReplicationController; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -20778,7 +20778,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1ReplicationController", "" ) as V1ReplicationController; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -20791,21 +20791,21 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to patchNamespacedReplicationControllerScale * @throws ApiException if the response code was not in [200, 299] */ - public async patchNamespacedReplicationControllerScale(response: ResponseContext): Promise { + public async patchNamespacedReplicationControllerScaleWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1Scale = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Scale", "" ) as V1Scale; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1Scale = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Scale", "" ) as V1Scale; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -20817,7 +20817,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Scale", "" ) as V1Scale; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -20830,21 +20830,21 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to patchNamespacedReplicationControllerStatus * @throws ApiException if the response code was not in [200, 299] */ - public async patchNamespacedReplicationControllerStatus(response: ResponseContext): Promise { + public async patchNamespacedReplicationControllerStatusWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1ReplicationController = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ReplicationController", "" ) as V1ReplicationController; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1ReplicationController = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ReplicationController", "" ) as V1ReplicationController; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -20856,7 +20856,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1ReplicationController", "" ) as V1ReplicationController; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -20869,21 +20869,21 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to patchNamespacedResourceQuota * @throws ApiException if the response code was not in [200, 299] */ - public async patchNamespacedResourceQuota(response: ResponseContext): Promise { + public async patchNamespacedResourceQuotaWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1ResourceQuota = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ResourceQuota", "" ) as V1ResourceQuota; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1ResourceQuota = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ResourceQuota", "" ) as V1ResourceQuota; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -20895,7 +20895,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1ResourceQuota", "" ) as V1ResourceQuota; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -20908,21 +20908,21 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to patchNamespacedResourceQuotaStatus * @throws ApiException if the response code was not in [200, 299] */ - public async patchNamespacedResourceQuotaStatus(response: ResponseContext): Promise { + public async patchNamespacedResourceQuotaStatusWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1ResourceQuota = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ResourceQuota", "" ) as V1ResourceQuota; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1ResourceQuota = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ResourceQuota", "" ) as V1ResourceQuota; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -20934,7 +20934,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1ResourceQuota", "" ) as V1ResourceQuota; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -20947,21 +20947,21 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to patchNamespacedSecret * @throws ApiException if the response code was not in [200, 299] */ - public async patchNamespacedSecret(response: ResponseContext): Promise { + public async patchNamespacedSecretWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1Secret = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Secret", "" ) as V1Secret; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1Secret = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Secret", "" ) as V1Secret; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -20973,7 +20973,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Secret", "" ) as V1Secret; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -20986,21 +20986,21 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to patchNamespacedService * @throws ApiException if the response code was not in [200, 299] */ - public async patchNamespacedService(response: ResponseContext): Promise { + public async patchNamespacedServiceWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1Service = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Service", "" ) as V1Service; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1Service = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Service", "" ) as V1Service; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -21012,7 +21012,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Service", "" ) as V1Service; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -21025,21 +21025,21 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to patchNamespacedServiceAccount * @throws ApiException if the response code was not in [200, 299] */ - public async patchNamespacedServiceAccount(response: ResponseContext): Promise { + public async patchNamespacedServiceAccountWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1ServiceAccount = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ServiceAccount", "" ) as V1ServiceAccount; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1ServiceAccount = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ServiceAccount", "" ) as V1ServiceAccount; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -21051,7 +21051,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1ServiceAccount", "" ) as V1ServiceAccount; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -21064,21 +21064,21 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to patchNamespacedServiceStatus * @throws ApiException if the response code was not in [200, 299] */ - public async patchNamespacedServiceStatus(response: ResponseContext): Promise { + public async patchNamespacedServiceStatusWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1Service = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Service", "" ) as V1Service; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1Service = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Service", "" ) as V1Service; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -21090,7 +21090,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Service", "" ) as V1Service; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -21103,21 +21103,21 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to patchNode * @throws ApiException if the response code was not in [200, 299] */ - public async patchNode(response: ResponseContext): Promise { + public async patchNodeWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1Node = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Node", "" ) as V1Node; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1Node = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Node", "" ) as V1Node; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -21129,7 +21129,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Node", "" ) as V1Node; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -21142,21 +21142,21 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to patchNodeStatus * @throws ApiException if the response code was not in [200, 299] */ - public async patchNodeStatus(response: ResponseContext): Promise { + public async patchNodeStatusWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1Node = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Node", "" ) as V1Node; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1Node = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Node", "" ) as V1Node; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -21168,7 +21168,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Node", "" ) as V1Node; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -21181,21 +21181,21 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to patchPersistentVolume * @throws ApiException if the response code was not in [200, 299] */ - public async patchPersistentVolume(response: ResponseContext): Promise { + public async patchPersistentVolumeWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1PersistentVolume = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1PersistentVolume", "" ) as V1PersistentVolume; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1PersistentVolume = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1PersistentVolume", "" ) as V1PersistentVolume; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -21207,7 +21207,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1PersistentVolume", "" ) as V1PersistentVolume; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -21220,21 +21220,21 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to patchPersistentVolumeStatus * @throws ApiException if the response code was not in [200, 299] */ - public async patchPersistentVolumeStatus(response: ResponseContext): Promise { + public async patchPersistentVolumeStatusWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1PersistentVolume = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1PersistentVolume", "" ) as V1PersistentVolume; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1PersistentVolume = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1PersistentVolume", "" ) as V1PersistentVolume; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -21246,7 +21246,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1PersistentVolume", "" ) as V1PersistentVolume; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -21259,14 +21259,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to readComponentStatus * @throws ApiException if the response code was not in [200, 299] */ - public async readComponentStatus(response: ResponseContext): Promise { + public async readComponentStatusWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1ComponentStatus = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ComponentStatus", "" ) as V1ComponentStatus; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -21278,7 +21278,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1ComponentStatus", "" ) as V1ComponentStatus; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -21291,14 +21291,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to readNamespace * @throws ApiException if the response code was not in [200, 299] */ - public async readNamespace(response: ResponseContext): Promise { + public async readNamespaceWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1Namespace = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Namespace", "" ) as V1Namespace; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -21310,7 +21310,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Namespace", "" ) as V1Namespace; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -21323,14 +21323,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to readNamespaceStatus * @throws ApiException if the response code was not in [200, 299] */ - public async readNamespaceStatus(response: ResponseContext): Promise { + public async readNamespaceStatusWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1Namespace = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Namespace", "" ) as V1Namespace; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -21342,7 +21342,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Namespace", "" ) as V1Namespace; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -21355,14 +21355,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to readNamespacedConfigMap * @throws ApiException if the response code was not in [200, 299] */ - public async readNamespacedConfigMap(response: ResponseContext): Promise { + public async readNamespacedConfigMapWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1ConfigMap = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ConfigMap", "" ) as V1ConfigMap; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -21374,7 +21374,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1ConfigMap", "" ) as V1ConfigMap; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -21387,14 +21387,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to readNamespacedEndpoints * @throws ApiException if the response code was not in [200, 299] */ - public async readNamespacedEndpoints(response: ResponseContext): Promise { + public async readNamespacedEndpointsWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1Endpoints = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Endpoints", "" ) as V1Endpoints; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -21406,7 +21406,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Endpoints", "" ) as V1Endpoints; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -21419,14 +21419,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to readNamespacedEvent * @throws ApiException if the response code was not in [200, 299] */ - public async readNamespacedEvent(response: ResponseContext): Promise { + public async readNamespacedEventWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: CoreV1Event = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "CoreV1Event", "" ) as CoreV1Event; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -21438,7 +21438,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "CoreV1Event", "" ) as CoreV1Event; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -21451,14 +21451,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to readNamespacedLimitRange * @throws ApiException if the response code was not in [200, 299] */ - public async readNamespacedLimitRange(response: ResponseContext): Promise { + public async readNamespacedLimitRangeWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1LimitRange = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1LimitRange", "" ) as V1LimitRange; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -21470,7 +21470,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1LimitRange", "" ) as V1LimitRange; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -21483,14 +21483,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to readNamespacedPersistentVolumeClaim * @throws ApiException if the response code was not in [200, 299] */ - public async readNamespacedPersistentVolumeClaim(response: ResponseContext): Promise { + public async readNamespacedPersistentVolumeClaimWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1PersistentVolumeClaim = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1PersistentVolumeClaim", "" ) as V1PersistentVolumeClaim; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -21502,7 +21502,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1PersistentVolumeClaim", "" ) as V1PersistentVolumeClaim; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -21515,14 +21515,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to readNamespacedPersistentVolumeClaimStatus * @throws ApiException if the response code was not in [200, 299] */ - public async readNamespacedPersistentVolumeClaimStatus(response: ResponseContext): Promise { + public async readNamespacedPersistentVolumeClaimStatusWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1PersistentVolumeClaim = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1PersistentVolumeClaim", "" ) as V1PersistentVolumeClaim; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -21534,7 +21534,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1PersistentVolumeClaim", "" ) as V1PersistentVolumeClaim; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -21547,14 +21547,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to readNamespacedPod * @throws ApiException if the response code was not in [200, 299] */ - public async readNamespacedPod(response: ResponseContext): Promise { + public async readNamespacedPodWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1Pod = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Pod", "" ) as V1Pod; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -21566,7 +21566,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Pod", "" ) as V1Pod; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -21579,14 +21579,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to readNamespacedPodEphemeralcontainers * @throws ApiException if the response code was not in [200, 299] */ - public async readNamespacedPodEphemeralcontainers(response: ResponseContext): Promise { + public async readNamespacedPodEphemeralcontainersWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1Pod = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Pod", "" ) as V1Pod; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -21598,7 +21598,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Pod", "" ) as V1Pod; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -21611,14 +21611,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to readNamespacedPodLog * @throws ApiException if the response code was not in [200, 299] */ - public async readNamespacedPodLog(response: ResponseContext): Promise { + public async readNamespacedPodLogWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: string = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "string", "" ) as string; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -21630,7 +21630,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "string", "" ) as string; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -21643,14 +21643,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to readNamespacedPodStatus * @throws ApiException if the response code was not in [200, 299] */ - public async readNamespacedPodStatus(response: ResponseContext): Promise { + public async readNamespacedPodStatusWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1Pod = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Pod", "" ) as V1Pod; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -21662,7 +21662,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Pod", "" ) as V1Pod; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -21675,14 +21675,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to readNamespacedPodTemplate * @throws ApiException if the response code was not in [200, 299] */ - public async readNamespacedPodTemplate(response: ResponseContext): Promise { + public async readNamespacedPodTemplateWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1PodTemplate = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1PodTemplate", "" ) as V1PodTemplate; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -21694,7 +21694,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1PodTemplate", "" ) as V1PodTemplate; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -21707,14 +21707,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to readNamespacedReplicationController * @throws ApiException if the response code was not in [200, 299] */ - public async readNamespacedReplicationController(response: ResponseContext): Promise { + public async readNamespacedReplicationControllerWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1ReplicationController = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ReplicationController", "" ) as V1ReplicationController; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -21726,7 +21726,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1ReplicationController", "" ) as V1ReplicationController; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -21739,14 +21739,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to readNamespacedReplicationControllerScale * @throws ApiException if the response code was not in [200, 299] */ - public async readNamespacedReplicationControllerScale(response: ResponseContext): Promise { + public async readNamespacedReplicationControllerScaleWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1Scale = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Scale", "" ) as V1Scale; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -21758,7 +21758,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Scale", "" ) as V1Scale; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -21771,14 +21771,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to readNamespacedReplicationControllerStatus * @throws ApiException if the response code was not in [200, 299] */ - public async readNamespacedReplicationControllerStatus(response: ResponseContext): Promise { + public async readNamespacedReplicationControllerStatusWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1ReplicationController = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ReplicationController", "" ) as V1ReplicationController; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -21790,7 +21790,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1ReplicationController", "" ) as V1ReplicationController; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -21803,14 +21803,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to readNamespacedResourceQuota * @throws ApiException if the response code was not in [200, 299] */ - public async readNamespacedResourceQuota(response: ResponseContext): Promise { + public async readNamespacedResourceQuotaWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1ResourceQuota = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ResourceQuota", "" ) as V1ResourceQuota; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -21822,7 +21822,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1ResourceQuota", "" ) as V1ResourceQuota; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -21835,14 +21835,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to readNamespacedResourceQuotaStatus * @throws ApiException if the response code was not in [200, 299] */ - public async readNamespacedResourceQuotaStatus(response: ResponseContext): Promise { + public async readNamespacedResourceQuotaStatusWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1ResourceQuota = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ResourceQuota", "" ) as V1ResourceQuota; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -21854,7 +21854,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1ResourceQuota", "" ) as V1ResourceQuota; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -21867,14 +21867,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to readNamespacedSecret * @throws ApiException if the response code was not in [200, 299] */ - public async readNamespacedSecret(response: ResponseContext): Promise { + public async readNamespacedSecretWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1Secret = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Secret", "" ) as V1Secret; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -21886,7 +21886,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Secret", "" ) as V1Secret; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -21899,14 +21899,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to readNamespacedService * @throws ApiException if the response code was not in [200, 299] */ - public async readNamespacedService(response: ResponseContext): Promise { + public async readNamespacedServiceWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1Service = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Service", "" ) as V1Service; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -21918,7 +21918,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Service", "" ) as V1Service; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -21931,14 +21931,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to readNamespacedServiceAccount * @throws ApiException if the response code was not in [200, 299] */ - public async readNamespacedServiceAccount(response: ResponseContext): Promise { + public async readNamespacedServiceAccountWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1ServiceAccount = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ServiceAccount", "" ) as V1ServiceAccount; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -21950,7 +21950,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1ServiceAccount", "" ) as V1ServiceAccount; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -21963,14 +21963,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to readNamespacedServiceStatus * @throws ApiException if the response code was not in [200, 299] */ - public async readNamespacedServiceStatus(response: ResponseContext): Promise { + public async readNamespacedServiceStatusWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1Service = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Service", "" ) as V1Service; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -21982,7 +21982,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Service", "" ) as V1Service; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -21995,14 +21995,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to readNode * @throws ApiException if the response code was not in [200, 299] */ - public async readNode(response: ResponseContext): Promise { + public async readNodeWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1Node = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Node", "" ) as V1Node; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -22014,7 +22014,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Node", "" ) as V1Node; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -22027,14 +22027,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to readNodeStatus * @throws ApiException if the response code was not in [200, 299] */ - public async readNodeStatus(response: ResponseContext): Promise { + public async readNodeStatusWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1Node = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Node", "" ) as V1Node; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -22046,7 +22046,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Node", "" ) as V1Node; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -22059,14 +22059,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to readPersistentVolume * @throws ApiException if the response code was not in [200, 299] */ - public async readPersistentVolume(response: ResponseContext): Promise { + public async readPersistentVolumeWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1PersistentVolume = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1PersistentVolume", "" ) as V1PersistentVolume; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -22078,7 +22078,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1PersistentVolume", "" ) as V1PersistentVolume; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -22091,14 +22091,14 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to readPersistentVolumeStatus * @throws ApiException if the response code was not in [200, 299] */ - public async readPersistentVolumeStatus(response: ResponseContext): Promise { + public async readPersistentVolumeStatusWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1PersistentVolume = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1PersistentVolume", "" ) as V1PersistentVolume; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -22110,7 +22110,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1PersistentVolume", "" ) as V1PersistentVolume; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -22123,21 +22123,21 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to replaceNamespace * @throws ApiException if the response code was not in [200, 299] */ - public async replaceNamespace(response: ResponseContext): Promise { + public async replaceNamespaceWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1Namespace = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Namespace", "" ) as V1Namespace; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1Namespace = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Namespace", "" ) as V1Namespace; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -22149,7 +22149,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Namespace", "" ) as V1Namespace; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -22162,21 +22162,21 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to replaceNamespaceFinalize * @throws ApiException if the response code was not in [200, 299] */ - public async replaceNamespaceFinalize(response: ResponseContext): Promise { + public async replaceNamespaceFinalizeWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1Namespace = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Namespace", "" ) as V1Namespace; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1Namespace = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Namespace", "" ) as V1Namespace; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -22188,7 +22188,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Namespace", "" ) as V1Namespace; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -22201,21 +22201,21 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to replaceNamespaceStatus * @throws ApiException if the response code was not in [200, 299] */ - public async replaceNamespaceStatus(response: ResponseContext): Promise { + public async replaceNamespaceStatusWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1Namespace = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Namespace", "" ) as V1Namespace; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1Namespace = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Namespace", "" ) as V1Namespace; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -22227,7 +22227,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Namespace", "" ) as V1Namespace; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -22240,21 +22240,21 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to replaceNamespacedConfigMap * @throws ApiException if the response code was not in [200, 299] */ - public async replaceNamespacedConfigMap(response: ResponseContext): Promise { + public async replaceNamespacedConfigMapWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1ConfigMap = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ConfigMap", "" ) as V1ConfigMap; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1ConfigMap = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ConfigMap", "" ) as V1ConfigMap; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -22266,7 +22266,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1ConfigMap", "" ) as V1ConfigMap; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -22279,21 +22279,21 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to replaceNamespacedEndpoints * @throws ApiException if the response code was not in [200, 299] */ - public async replaceNamespacedEndpoints(response: ResponseContext): Promise { + public async replaceNamespacedEndpointsWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1Endpoints = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Endpoints", "" ) as V1Endpoints; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1Endpoints = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Endpoints", "" ) as V1Endpoints; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -22305,7 +22305,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Endpoints", "" ) as V1Endpoints; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -22318,21 +22318,21 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to replaceNamespacedEvent * @throws ApiException if the response code was not in [200, 299] */ - public async replaceNamespacedEvent(response: ResponseContext): Promise { + public async replaceNamespacedEventWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: CoreV1Event = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "CoreV1Event", "" ) as CoreV1Event; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: CoreV1Event = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "CoreV1Event", "" ) as CoreV1Event; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -22344,7 +22344,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "CoreV1Event", "" ) as CoreV1Event; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -22357,21 +22357,21 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to replaceNamespacedLimitRange * @throws ApiException if the response code was not in [200, 299] */ - public async replaceNamespacedLimitRange(response: ResponseContext): Promise { + public async replaceNamespacedLimitRangeWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1LimitRange = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1LimitRange", "" ) as V1LimitRange; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1LimitRange = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1LimitRange", "" ) as V1LimitRange; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -22383,7 +22383,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1LimitRange", "" ) as V1LimitRange; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -22396,21 +22396,21 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to replaceNamespacedPersistentVolumeClaim * @throws ApiException if the response code was not in [200, 299] */ - public async replaceNamespacedPersistentVolumeClaim(response: ResponseContext): Promise { + public async replaceNamespacedPersistentVolumeClaimWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1PersistentVolumeClaim = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1PersistentVolumeClaim", "" ) as V1PersistentVolumeClaim; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1PersistentVolumeClaim = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1PersistentVolumeClaim", "" ) as V1PersistentVolumeClaim; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -22422,7 +22422,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1PersistentVolumeClaim", "" ) as V1PersistentVolumeClaim; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -22435,21 +22435,21 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to replaceNamespacedPersistentVolumeClaimStatus * @throws ApiException if the response code was not in [200, 299] */ - public async replaceNamespacedPersistentVolumeClaimStatus(response: ResponseContext): Promise { + public async replaceNamespacedPersistentVolumeClaimStatusWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1PersistentVolumeClaim = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1PersistentVolumeClaim", "" ) as V1PersistentVolumeClaim; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1PersistentVolumeClaim = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1PersistentVolumeClaim", "" ) as V1PersistentVolumeClaim; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -22461,7 +22461,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1PersistentVolumeClaim", "" ) as V1PersistentVolumeClaim; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -22474,21 +22474,21 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to replaceNamespacedPod * @throws ApiException if the response code was not in [200, 299] */ - public async replaceNamespacedPod(response: ResponseContext): Promise { + public async replaceNamespacedPodWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1Pod = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Pod", "" ) as V1Pod; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1Pod = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Pod", "" ) as V1Pod; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -22500,7 +22500,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Pod", "" ) as V1Pod; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -22513,21 +22513,21 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to replaceNamespacedPodEphemeralcontainers * @throws ApiException if the response code was not in [200, 299] */ - public async replaceNamespacedPodEphemeralcontainers(response: ResponseContext): Promise { + public async replaceNamespacedPodEphemeralcontainersWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1Pod = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Pod", "" ) as V1Pod; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1Pod = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Pod", "" ) as V1Pod; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -22539,7 +22539,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Pod", "" ) as V1Pod; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -22552,21 +22552,21 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to replaceNamespacedPodStatus * @throws ApiException if the response code was not in [200, 299] */ - public async replaceNamespacedPodStatus(response: ResponseContext): Promise { + public async replaceNamespacedPodStatusWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1Pod = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Pod", "" ) as V1Pod; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1Pod = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Pod", "" ) as V1Pod; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -22578,7 +22578,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Pod", "" ) as V1Pod; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -22591,21 +22591,21 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to replaceNamespacedPodTemplate * @throws ApiException if the response code was not in [200, 299] */ - public async replaceNamespacedPodTemplate(response: ResponseContext): Promise { + public async replaceNamespacedPodTemplateWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1PodTemplate = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1PodTemplate", "" ) as V1PodTemplate; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1PodTemplate = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1PodTemplate", "" ) as V1PodTemplate; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -22617,7 +22617,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1PodTemplate", "" ) as V1PodTemplate; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -22630,21 +22630,21 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to replaceNamespacedReplicationController * @throws ApiException if the response code was not in [200, 299] */ - public async replaceNamespacedReplicationController(response: ResponseContext): Promise { + public async replaceNamespacedReplicationControllerWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1ReplicationController = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ReplicationController", "" ) as V1ReplicationController; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1ReplicationController = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ReplicationController", "" ) as V1ReplicationController; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -22656,7 +22656,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1ReplicationController", "" ) as V1ReplicationController; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -22669,21 +22669,21 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to replaceNamespacedReplicationControllerScale * @throws ApiException if the response code was not in [200, 299] */ - public async replaceNamespacedReplicationControllerScale(response: ResponseContext): Promise { + public async replaceNamespacedReplicationControllerScaleWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1Scale = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Scale", "" ) as V1Scale; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1Scale = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Scale", "" ) as V1Scale; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -22695,7 +22695,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Scale", "" ) as V1Scale; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -22708,21 +22708,21 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to replaceNamespacedReplicationControllerStatus * @throws ApiException if the response code was not in [200, 299] */ - public async replaceNamespacedReplicationControllerStatus(response: ResponseContext): Promise { + public async replaceNamespacedReplicationControllerStatusWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1ReplicationController = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ReplicationController", "" ) as V1ReplicationController; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1ReplicationController = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ReplicationController", "" ) as V1ReplicationController; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -22734,7 +22734,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1ReplicationController", "" ) as V1ReplicationController; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -22747,21 +22747,21 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to replaceNamespacedResourceQuota * @throws ApiException if the response code was not in [200, 299] */ - public async replaceNamespacedResourceQuota(response: ResponseContext): Promise { + public async replaceNamespacedResourceQuotaWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1ResourceQuota = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ResourceQuota", "" ) as V1ResourceQuota; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1ResourceQuota = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ResourceQuota", "" ) as V1ResourceQuota; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -22773,7 +22773,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1ResourceQuota", "" ) as V1ResourceQuota; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -22786,21 +22786,21 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to replaceNamespacedResourceQuotaStatus * @throws ApiException if the response code was not in [200, 299] */ - public async replaceNamespacedResourceQuotaStatus(response: ResponseContext): Promise { + public async replaceNamespacedResourceQuotaStatusWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1ResourceQuota = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ResourceQuota", "" ) as V1ResourceQuota; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1ResourceQuota = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ResourceQuota", "" ) as V1ResourceQuota; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -22812,7 +22812,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1ResourceQuota", "" ) as V1ResourceQuota; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -22825,21 +22825,21 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to replaceNamespacedSecret * @throws ApiException if the response code was not in [200, 299] */ - public async replaceNamespacedSecret(response: ResponseContext): Promise { + public async replaceNamespacedSecretWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1Secret = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Secret", "" ) as V1Secret; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1Secret = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Secret", "" ) as V1Secret; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -22851,7 +22851,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Secret", "" ) as V1Secret; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -22864,21 +22864,21 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to replaceNamespacedService * @throws ApiException if the response code was not in [200, 299] */ - public async replaceNamespacedService(response: ResponseContext): Promise { + public async replaceNamespacedServiceWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1Service = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Service", "" ) as V1Service; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1Service = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Service", "" ) as V1Service; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -22890,7 +22890,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Service", "" ) as V1Service; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -22903,21 +22903,21 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to replaceNamespacedServiceAccount * @throws ApiException if the response code was not in [200, 299] */ - public async replaceNamespacedServiceAccount(response: ResponseContext): Promise { + public async replaceNamespacedServiceAccountWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1ServiceAccount = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ServiceAccount", "" ) as V1ServiceAccount; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1ServiceAccount = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ServiceAccount", "" ) as V1ServiceAccount; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -22929,7 +22929,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1ServiceAccount", "" ) as V1ServiceAccount; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -22942,21 +22942,21 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to replaceNamespacedServiceStatus * @throws ApiException if the response code was not in [200, 299] */ - public async replaceNamespacedServiceStatus(response: ResponseContext): Promise { + public async replaceNamespacedServiceStatusWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1Service = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Service", "" ) as V1Service; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1Service = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Service", "" ) as V1Service; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -22968,7 +22968,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Service", "" ) as V1Service; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -22981,21 +22981,21 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to replaceNode * @throws ApiException if the response code was not in [200, 299] */ - public async replaceNode(response: ResponseContext): Promise { + public async replaceNodeWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1Node = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Node", "" ) as V1Node; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1Node = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Node", "" ) as V1Node; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -23007,7 +23007,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Node", "" ) as V1Node; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -23020,21 +23020,21 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to replaceNodeStatus * @throws ApiException if the response code was not in [200, 299] */ - public async replaceNodeStatus(response: ResponseContext): Promise { + public async replaceNodeStatusWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1Node = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Node", "" ) as V1Node; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1Node = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Node", "" ) as V1Node; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -23046,7 +23046,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Node", "" ) as V1Node; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -23059,21 +23059,21 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to replacePersistentVolume * @throws ApiException if the response code was not in [200, 299] */ - public async replacePersistentVolume(response: ResponseContext): Promise { + public async replacePersistentVolumeWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1PersistentVolume = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1PersistentVolume", "" ) as V1PersistentVolume; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1PersistentVolume = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1PersistentVolume", "" ) as V1PersistentVolume; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -23085,7 +23085,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1PersistentVolume", "" ) as V1PersistentVolume; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -23098,21 +23098,21 @@ export class CoreV1ApiResponseProcessor { * @params response Response returned by the server for a request to replacePersistentVolumeStatus * @throws ApiException if the response code was not in [200, 299] */ - public async replacePersistentVolumeStatus(response: ResponseContext): Promise { + public async replacePersistentVolumeStatusWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1PersistentVolume = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1PersistentVolume", "" ) as V1PersistentVolume; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1PersistentVolume = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1PersistentVolume", "" ) as V1PersistentVolume; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -23124,7 +23124,7 @@ export class CoreV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1PersistentVolume", "" ) as V1PersistentVolume; - return body; + 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/CustomObjectsApi.ts b/src/gen/apis/CustomObjectsApi.ts index db3ee6bcb73..9f16755ea5d 100644 --- a/src/gen/apis/CustomObjectsApi.ts +++ b/src/gen/apis/CustomObjectsApi.ts @@ -1,7 +1,7 @@ // TODO: better import syntax? import {BaseAPIRequestFactory, RequiredError, COLLECTION_FORMATS} from './baseapi'; import {Configuration} from '../configuration'; -import {RequestContext, HttpMethod, ResponseContext, HttpFile} from '../http/http'; +import {RequestContext, HttpMethod, ResponseContext, HttpFile, HttpInfo} from '../http/http'; import FormData from "form-data"; import { URLSearchParams } from 'url'; import {ObjectSerializer} from '../models/ObjectSerializer'; @@ -2530,14 +2530,14 @@ export class CustomObjectsApiResponseProcessor { * @params response Response returned by the server for a request to createClusterCustomObject * @throws ApiException if the response code was not in [200, 299] */ - public async createClusterCustomObject(response: ResponseContext): Promise { + public async createClusterCustomObjectWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("201", response.httpStatusCode)) { const body: any = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "any", "" ) as any; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -2549,7 +2549,7 @@ export class CustomObjectsApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "any", "" ) as any; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -2562,14 +2562,14 @@ export class CustomObjectsApiResponseProcessor { * @params response Response returned by the server for a request to createNamespacedCustomObject * @throws ApiException if the response code was not in [200, 299] */ - public async createNamespacedCustomObject(response: ResponseContext): Promise { + public async createNamespacedCustomObjectWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("201", response.httpStatusCode)) { const body: any = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "any", "" ) as any; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -2581,7 +2581,7 @@ export class CustomObjectsApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "any", "" ) as any; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -2594,14 +2594,14 @@ export class CustomObjectsApiResponseProcessor { * @params response Response returned by the server for a request to deleteClusterCustomObject * @throws ApiException if the response code was not in [200, 299] */ - public async deleteClusterCustomObject(response: ResponseContext): Promise { + public async deleteClusterCustomObjectWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: any = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "any", "" ) as any; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -2613,7 +2613,7 @@ export class CustomObjectsApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "any", "" ) as any; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -2626,14 +2626,14 @@ export class CustomObjectsApiResponseProcessor { * @params response Response returned by the server for a request to deleteCollectionClusterCustomObject * @throws ApiException if the response code was not in [200, 299] */ - public async deleteCollectionClusterCustomObject(response: ResponseContext): Promise { + public async deleteCollectionClusterCustomObjectWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: any = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "any", "" ) as any; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -2645,7 +2645,7 @@ export class CustomObjectsApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "any", "" ) as any; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -2658,14 +2658,14 @@ export class CustomObjectsApiResponseProcessor { * @params response Response returned by the server for a request to deleteCollectionNamespacedCustomObject * @throws ApiException if the response code was not in [200, 299] */ - public async deleteCollectionNamespacedCustomObject(response: ResponseContext): Promise { + public async deleteCollectionNamespacedCustomObjectWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: any = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "any", "" ) as any; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -2677,7 +2677,7 @@ export class CustomObjectsApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "any", "" ) as any; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -2690,14 +2690,14 @@ export class CustomObjectsApiResponseProcessor { * @params response Response returned by the server for a request to deleteNamespacedCustomObject * @throws ApiException if the response code was not in [200, 299] */ - public async deleteNamespacedCustomObject(response: ResponseContext): Promise { + public async deleteNamespacedCustomObjectWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: any = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "any", "" ) as any; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -2709,7 +2709,7 @@ export class CustomObjectsApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "any", "" ) as any; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -2722,14 +2722,14 @@ export class CustomObjectsApiResponseProcessor { * @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 getAPIResources(response: ResponseContext): Promise { + 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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -2741,7 +2741,7 @@ export class CustomObjectsApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1APIResourceList", "" ) as V1APIResourceList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -2754,14 +2754,14 @@ export class CustomObjectsApiResponseProcessor { * @params response Response returned by the server for a request to getClusterCustomObject * @throws ApiException if the response code was not in [200, 299] */ - public async getClusterCustomObject(response: ResponseContext): Promise { + public async getClusterCustomObjectWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: any = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "any", "" ) as any; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -2773,7 +2773,7 @@ export class CustomObjectsApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "any", "" ) as any; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -2786,14 +2786,14 @@ export class CustomObjectsApiResponseProcessor { * @params response Response returned by the server for a request to getClusterCustomObjectScale * @throws ApiException if the response code was not in [200, 299] */ - public async getClusterCustomObjectScale(response: ResponseContext): Promise { + public async getClusterCustomObjectScaleWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: any = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "any", "" ) as any; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -2805,7 +2805,7 @@ export class CustomObjectsApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "any", "" ) as any; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -2818,14 +2818,14 @@ export class CustomObjectsApiResponseProcessor { * @params response Response returned by the server for a request to getClusterCustomObjectStatus * @throws ApiException if the response code was not in [200, 299] */ - public async getClusterCustomObjectStatus(response: ResponseContext): Promise { + public async getClusterCustomObjectStatusWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: any = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "any", "" ) as any; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -2837,7 +2837,7 @@ export class CustomObjectsApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "any", "" ) as any; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -2850,14 +2850,14 @@ export class CustomObjectsApiResponseProcessor { * @params response Response returned by the server for a request to getNamespacedCustomObject * @throws ApiException if the response code was not in [200, 299] */ - public async getNamespacedCustomObject(response: ResponseContext): Promise { + public async getNamespacedCustomObjectWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: any = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "any", "" ) as any; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -2869,7 +2869,7 @@ export class CustomObjectsApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "any", "" ) as any; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -2882,14 +2882,14 @@ export class CustomObjectsApiResponseProcessor { * @params response Response returned by the server for a request to getNamespacedCustomObjectScale * @throws ApiException if the response code was not in [200, 299] */ - public async getNamespacedCustomObjectScale(response: ResponseContext): Promise { + public async getNamespacedCustomObjectScaleWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: any = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "any", "" ) as any; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -2901,7 +2901,7 @@ export class CustomObjectsApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "any", "" ) as any; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -2914,14 +2914,14 @@ export class CustomObjectsApiResponseProcessor { * @params response Response returned by the server for a request to getNamespacedCustomObjectStatus * @throws ApiException if the response code was not in [200, 299] */ - public async getNamespacedCustomObjectStatus(response: ResponseContext): Promise { + public async getNamespacedCustomObjectStatusWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: any = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "any", "" ) as any; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -2933,7 +2933,7 @@ export class CustomObjectsApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "any", "" ) as any; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -2946,14 +2946,14 @@ export class CustomObjectsApiResponseProcessor { * @params response Response returned by the server for a request to listClusterCustomObject * @throws ApiException if the response code was not in [200, 299] */ - public async listClusterCustomObject(response: ResponseContext): Promise { + public async listClusterCustomObjectWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: any = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "any", "" ) as any; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -2965,7 +2965,7 @@ export class CustomObjectsApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "any", "" ) as any; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -2978,14 +2978,14 @@ export class CustomObjectsApiResponseProcessor { * @params response Response returned by the server for a request to listNamespacedCustomObject * @throws ApiException if the response code was not in [200, 299] */ - public async listNamespacedCustomObject(response: ResponseContext): Promise { + public async listNamespacedCustomObjectWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: any = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "any", "" ) as any; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -2997,7 +2997,7 @@ export class CustomObjectsApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "any", "" ) as any; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -3010,14 +3010,14 @@ export class CustomObjectsApiResponseProcessor { * @params response Response returned by the server for a request to patchClusterCustomObject * @throws ApiException if the response code was not in [200, 299] */ - public async patchClusterCustomObject(response: ResponseContext): Promise { + public async patchClusterCustomObjectWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: any = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "any", "" ) as any; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -3029,7 +3029,7 @@ export class CustomObjectsApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "any", "" ) as any; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -3042,14 +3042,14 @@ export class CustomObjectsApiResponseProcessor { * @params response Response returned by the server for a request to patchClusterCustomObjectScale * @throws ApiException if the response code was not in [200, 299] */ - public async patchClusterCustomObjectScale(response: ResponseContext): Promise { + public async patchClusterCustomObjectScaleWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: any = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "any", "" ) as any; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -3061,7 +3061,7 @@ export class CustomObjectsApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "any", "" ) as any; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -3074,14 +3074,14 @@ export class CustomObjectsApiResponseProcessor { * @params response Response returned by the server for a request to patchClusterCustomObjectStatus * @throws ApiException if the response code was not in [200, 299] */ - public async patchClusterCustomObjectStatus(response: ResponseContext): Promise { + public async patchClusterCustomObjectStatusWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: any = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "any", "" ) as any; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -3093,7 +3093,7 @@ export class CustomObjectsApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "any", "" ) as any; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -3106,14 +3106,14 @@ export class CustomObjectsApiResponseProcessor { * @params response Response returned by the server for a request to patchNamespacedCustomObject * @throws ApiException if the response code was not in [200, 299] */ - public async patchNamespacedCustomObject(response: ResponseContext): Promise { + public async patchNamespacedCustomObjectWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: any = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "any", "" ) as any; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -3125,7 +3125,7 @@ export class CustomObjectsApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "any", "" ) as any; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -3138,14 +3138,14 @@ export class CustomObjectsApiResponseProcessor { * @params response Response returned by the server for a request to patchNamespacedCustomObjectScale * @throws ApiException if the response code was not in [200, 299] */ - public async patchNamespacedCustomObjectScale(response: ResponseContext): Promise { + public async patchNamespacedCustomObjectScaleWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: any = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "any", "" ) as any; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -3157,7 +3157,7 @@ export class CustomObjectsApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "any", "" ) as any; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -3170,14 +3170,14 @@ export class CustomObjectsApiResponseProcessor { * @params response Response returned by the server for a request to patchNamespacedCustomObjectStatus * @throws ApiException if the response code was not in [200, 299] */ - public async patchNamespacedCustomObjectStatus(response: ResponseContext): Promise { + public async patchNamespacedCustomObjectStatusWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: any = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "any", "" ) as any; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -3189,7 +3189,7 @@ export class CustomObjectsApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "any", "" ) as any; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -3202,14 +3202,14 @@ export class CustomObjectsApiResponseProcessor { * @params response Response returned by the server for a request to replaceClusterCustomObject * @throws ApiException if the response code was not in [200, 299] */ - public async replaceClusterCustomObject(response: ResponseContext): Promise { + public async replaceClusterCustomObjectWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: any = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "any", "" ) as any; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -3221,7 +3221,7 @@ export class CustomObjectsApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "any", "" ) as any; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -3234,21 +3234,21 @@ export class CustomObjectsApiResponseProcessor { * @params response Response returned by the server for a request to replaceClusterCustomObjectScale * @throws ApiException if the response code was not in [200, 299] */ - public async replaceClusterCustomObjectScale(response: ResponseContext): Promise { + public async replaceClusterCustomObjectScaleWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: any = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "any", "" ) as any; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: any = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "any", "" ) as any; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -3260,7 +3260,7 @@ export class CustomObjectsApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "any", "" ) as any; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -3273,21 +3273,21 @@ export class CustomObjectsApiResponseProcessor { * @params response Response returned by the server for a request to replaceClusterCustomObjectStatus * @throws ApiException if the response code was not in [200, 299] */ - public async replaceClusterCustomObjectStatus(response: ResponseContext): Promise { + public async replaceClusterCustomObjectStatusWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: any = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "any", "" ) as any; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: any = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "any", "" ) as any; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -3299,7 +3299,7 @@ export class CustomObjectsApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "any", "" ) as any; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -3312,14 +3312,14 @@ export class CustomObjectsApiResponseProcessor { * @params response Response returned by the server for a request to replaceNamespacedCustomObject * @throws ApiException if the response code was not in [200, 299] */ - public async replaceNamespacedCustomObject(response: ResponseContext): Promise { + public async replaceNamespacedCustomObjectWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: any = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "any", "" ) as any; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -3331,7 +3331,7 @@ export class CustomObjectsApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "any", "" ) as any; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -3344,21 +3344,21 @@ export class CustomObjectsApiResponseProcessor { * @params response Response returned by the server for a request to replaceNamespacedCustomObjectScale * @throws ApiException if the response code was not in [200, 299] */ - public async replaceNamespacedCustomObjectScale(response: ResponseContext): Promise { + public async replaceNamespacedCustomObjectScaleWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: any = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "any", "" ) as any; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: any = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "any", "" ) as any; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -3370,7 +3370,7 @@ export class CustomObjectsApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "any", "" ) as any; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -3383,21 +3383,21 @@ export class CustomObjectsApiResponseProcessor { * @params response Response returned by the server for a request to replaceNamespacedCustomObjectStatus * @throws ApiException if the response code was not in [200, 299] */ - public async replaceNamespacedCustomObjectStatus(response: ResponseContext): Promise { + public async replaceNamespacedCustomObjectStatusWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: any = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "any", "" ) as any; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: any = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "any", "" ) as any; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -3409,7 +3409,7 @@ export class CustomObjectsApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "any", "" ) as any; - return body; + 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/DiscoveryApi.ts b/src/gen/apis/DiscoveryApi.ts index 140702183b3..d9218e9c786 100644 --- a/src/gen/apis/DiscoveryApi.ts +++ b/src/gen/apis/DiscoveryApi.ts @@ -1,7 +1,7 @@ // TODO: better import syntax? import {BaseAPIRequestFactory, RequiredError, COLLECTION_FORMATS} from './baseapi'; import {Configuration} from '../configuration'; -import {RequestContext, HttpMethod, ResponseContext, HttpFile} from '../http/http'; +import {RequestContext, HttpMethod, ResponseContext, HttpFile, HttpInfo} from '../http/http'; import FormData from "form-data"; import { URLSearchParams } from 'url'; import {ObjectSerializer} from '../models/ObjectSerializer'; @@ -57,14 +57,14 @@ export class DiscoveryApiResponseProcessor { * @params response Response returned by the server for a request to getAPIGroup * @throws ApiException if the response code was not in [200, 299] */ - public async getAPIGroup(response: ResponseContext): Promise { + public async getAPIGroupWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1APIGroup = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1APIGroup", "" ) as V1APIGroup; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -76,7 +76,7 @@ export class DiscoveryApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1APIGroup", "" ) as V1APIGroup; - return body; + 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/DiscoveryV1Api.ts b/src/gen/apis/DiscoveryV1Api.ts index ea83c23b2a2..7880c137b3e 100644 --- a/src/gen/apis/DiscoveryV1Api.ts +++ b/src/gen/apis/DiscoveryV1Api.ts @@ -1,7 +1,7 @@ // TODO: better import syntax? import {BaseAPIRequestFactory, RequiredError, COLLECTION_FORMATS} from './baseapi'; import {Configuration} from '../configuration'; -import {RequestContext, HttpMethod, ResponseContext, HttpFile} from '../http/http'; +import {RequestContext, HttpMethod, ResponseContext, HttpFile, HttpInfo} from '../http/http'; import FormData from "form-data"; import { URLSearchParams } from 'url'; import {ObjectSerializer} from '../models/ObjectSerializer'; @@ -795,28 +795,28 @@ export class DiscoveryV1ApiResponseProcessor { * @params response Response returned by the server for a request to createNamespacedEndpointSlice * @throws ApiException if the response code was not in [200, 299] */ - public async createNamespacedEndpointSlice(response: ResponseContext): Promise { + public async createNamespacedEndpointSliceWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1EndpointSlice = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1EndpointSlice", "" ) as V1EndpointSlice; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1EndpointSlice = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1EndpointSlice", "" ) as V1EndpointSlice; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("202", response.httpStatusCode)) { const body: V1EndpointSlice = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1EndpointSlice", "" ) as V1EndpointSlice; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -828,7 +828,7 @@ export class DiscoveryV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1EndpointSlice", "" ) as V1EndpointSlice; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -841,14 +841,14 @@ export class DiscoveryV1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteCollectionNamespacedEndpointSlice * @throws ApiException if the response code was not in [200, 299] */ - public async deleteCollectionNamespacedEndpointSlice(response: ResponseContext): Promise { + public async deleteCollectionNamespacedEndpointSliceWithHttpInfo(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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -860,7 +860,7 @@ export class DiscoveryV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -873,21 +873,21 @@ export class DiscoveryV1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteNamespacedEndpointSlice * @throws ApiException if the response code was not in [200, 299] */ - public async deleteNamespacedEndpointSlice(response: ResponseContext): Promise { + public async deleteNamespacedEndpointSliceWithHttpInfo(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 body; + 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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -899,7 +899,7 @@ export class DiscoveryV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -912,14 +912,14 @@ export class DiscoveryV1ApiResponseProcessor { * @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 getAPIResources(response: ResponseContext): Promise { + 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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -931,7 +931,7 @@ export class DiscoveryV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1APIResourceList", "" ) as V1APIResourceList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -944,14 +944,14 @@ export class DiscoveryV1ApiResponseProcessor { * @params response Response returned by the server for a request to listEndpointSliceForAllNamespaces * @throws ApiException if the response code was not in [200, 299] */ - public async listEndpointSliceForAllNamespaces(response: ResponseContext): Promise { + public async listEndpointSliceForAllNamespacesWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1EndpointSliceList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1EndpointSliceList", "" ) as V1EndpointSliceList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -963,7 +963,7 @@ export class DiscoveryV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1EndpointSliceList", "" ) as V1EndpointSliceList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -976,14 +976,14 @@ export class DiscoveryV1ApiResponseProcessor { * @params response Response returned by the server for a request to listNamespacedEndpointSlice * @throws ApiException if the response code was not in [200, 299] */ - public async listNamespacedEndpointSlice(response: ResponseContext): Promise { + public async listNamespacedEndpointSliceWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1EndpointSliceList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1EndpointSliceList", "" ) as V1EndpointSliceList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -995,7 +995,7 @@ export class DiscoveryV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1EndpointSliceList", "" ) as V1EndpointSliceList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1008,21 +1008,21 @@ export class DiscoveryV1ApiResponseProcessor { * @params response Response returned by the server for a request to patchNamespacedEndpointSlice * @throws ApiException if the response code was not in [200, 299] */ - public async patchNamespacedEndpointSlice(response: ResponseContext): Promise { + public async patchNamespacedEndpointSliceWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1EndpointSlice = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1EndpointSlice", "" ) as V1EndpointSlice; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1EndpointSlice = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1EndpointSlice", "" ) as V1EndpointSlice; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1034,7 +1034,7 @@ export class DiscoveryV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1EndpointSlice", "" ) as V1EndpointSlice; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1047,14 +1047,14 @@ export class DiscoveryV1ApiResponseProcessor { * @params response Response returned by the server for a request to readNamespacedEndpointSlice * @throws ApiException if the response code was not in [200, 299] */ - public async readNamespacedEndpointSlice(response: ResponseContext): Promise { + public async readNamespacedEndpointSliceWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1EndpointSlice = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1EndpointSlice", "" ) as V1EndpointSlice; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1066,7 +1066,7 @@ export class DiscoveryV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1EndpointSlice", "" ) as V1EndpointSlice; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1079,21 +1079,21 @@ export class DiscoveryV1ApiResponseProcessor { * @params response Response returned by the server for a request to replaceNamespacedEndpointSlice * @throws ApiException if the response code was not in [200, 299] */ - public async replaceNamespacedEndpointSlice(response: ResponseContext): Promise { + public async replaceNamespacedEndpointSliceWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1EndpointSlice = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1EndpointSlice", "" ) as V1EndpointSlice; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1EndpointSlice = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1EndpointSlice", "" ) as V1EndpointSlice; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1105,7 +1105,7 @@ export class DiscoveryV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1EndpointSlice", "" ) as V1EndpointSlice; - return body; + 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/DiscoveryV1beta1Api.ts b/src/gen/apis/DiscoveryV1beta1Api.ts index 4891bb37b40..7f2c33593f2 100644 --- a/src/gen/apis/DiscoveryV1beta1Api.ts +++ b/src/gen/apis/DiscoveryV1beta1Api.ts @@ -1,7 +1,7 @@ // TODO: better import syntax? import {BaseAPIRequestFactory, RequiredError, COLLECTION_FORMATS} from './baseapi'; import {Configuration} from '../configuration'; -import {RequestContext, HttpMethod, ResponseContext, HttpFile} from '../http/http'; +import {RequestContext, HttpMethod, ResponseContext, HttpFile, HttpInfo} from '../http/http'; import FormData from "form-data"; import { URLSearchParams } from 'url'; import {ObjectSerializer} from '../models/ObjectSerializer'; @@ -795,28 +795,28 @@ export class DiscoveryV1beta1ApiResponseProcessor { * @params response Response returned by the server for a request to createNamespacedEndpointSlice * @throws ApiException if the response code was not in [200, 299] */ - public async createNamespacedEndpointSlice(response: ResponseContext): Promise { + public async createNamespacedEndpointSliceWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1beta1EndpointSlice = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1EndpointSlice", "" ) as V1beta1EndpointSlice; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1beta1EndpointSlice = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1EndpointSlice", "" ) as V1beta1EndpointSlice; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("202", response.httpStatusCode)) { const body: V1beta1EndpointSlice = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1EndpointSlice", "" ) as V1beta1EndpointSlice; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -828,7 +828,7 @@ export class DiscoveryV1beta1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1EndpointSlice", "" ) as V1beta1EndpointSlice; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -841,14 +841,14 @@ export class DiscoveryV1beta1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteCollectionNamespacedEndpointSlice * @throws ApiException if the response code was not in [200, 299] */ - public async deleteCollectionNamespacedEndpointSlice(response: ResponseContext): Promise { + public async deleteCollectionNamespacedEndpointSliceWithHttpInfo(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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -860,7 +860,7 @@ export class DiscoveryV1beta1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -873,21 +873,21 @@ export class DiscoveryV1beta1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteNamespacedEndpointSlice * @throws ApiException if the response code was not in [200, 299] */ - public async deleteNamespacedEndpointSlice(response: ResponseContext): Promise { + public async deleteNamespacedEndpointSliceWithHttpInfo(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 body; + 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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -899,7 +899,7 @@ export class DiscoveryV1beta1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -912,14 +912,14 @@ export class DiscoveryV1beta1ApiResponseProcessor { * @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 getAPIResources(response: ResponseContext): Promise { + 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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -931,7 +931,7 @@ export class DiscoveryV1beta1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1APIResourceList", "" ) as V1APIResourceList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -944,14 +944,14 @@ export class DiscoveryV1beta1ApiResponseProcessor { * @params response Response returned by the server for a request to listEndpointSliceForAllNamespaces * @throws ApiException if the response code was not in [200, 299] */ - public async listEndpointSliceForAllNamespaces(response: ResponseContext): Promise { + public async listEndpointSliceForAllNamespacesWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1beta1EndpointSliceList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1EndpointSliceList", "" ) as V1beta1EndpointSliceList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -963,7 +963,7 @@ export class DiscoveryV1beta1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1EndpointSliceList", "" ) as V1beta1EndpointSliceList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -976,14 +976,14 @@ export class DiscoveryV1beta1ApiResponseProcessor { * @params response Response returned by the server for a request to listNamespacedEndpointSlice * @throws ApiException if the response code was not in [200, 299] */ - public async listNamespacedEndpointSlice(response: ResponseContext): Promise { + public async listNamespacedEndpointSliceWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1beta1EndpointSliceList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1EndpointSliceList", "" ) as V1beta1EndpointSliceList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -995,7 +995,7 @@ export class DiscoveryV1beta1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1EndpointSliceList", "" ) as V1beta1EndpointSliceList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1008,21 +1008,21 @@ export class DiscoveryV1beta1ApiResponseProcessor { * @params response Response returned by the server for a request to patchNamespacedEndpointSlice * @throws ApiException if the response code was not in [200, 299] */ - public async patchNamespacedEndpointSlice(response: ResponseContext): Promise { + public async patchNamespacedEndpointSliceWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1beta1EndpointSlice = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1EndpointSlice", "" ) as V1beta1EndpointSlice; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1beta1EndpointSlice = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1EndpointSlice", "" ) as V1beta1EndpointSlice; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1034,7 +1034,7 @@ export class DiscoveryV1beta1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1EndpointSlice", "" ) as V1beta1EndpointSlice; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1047,14 +1047,14 @@ export class DiscoveryV1beta1ApiResponseProcessor { * @params response Response returned by the server for a request to readNamespacedEndpointSlice * @throws ApiException if the response code was not in [200, 299] */ - public async readNamespacedEndpointSlice(response: ResponseContext): Promise { + public async readNamespacedEndpointSliceWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1beta1EndpointSlice = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1EndpointSlice", "" ) as V1beta1EndpointSlice; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1066,7 +1066,7 @@ export class DiscoveryV1beta1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1EndpointSlice", "" ) as V1beta1EndpointSlice; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1079,21 +1079,21 @@ export class DiscoveryV1beta1ApiResponseProcessor { * @params response Response returned by the server for a request to replaceNamespacedEndpointSlice * @throws ApiException if the response code was not in [200, 299] */ - public async replaceNamespacedEndpointSlice(response: ResponseContext): Promise { + public async replaceNamespacedEndpointSliceWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1beta1EndpointSlice = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1EndpointSlice", "" ) as V1beta1EndpointSlice; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1beta1EndpointSlice = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1EndpointSlice", "" ) as V1beta1EndpointSlice; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1105,7 +1105,7 @@ export class DiscoveryV1beta1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1EndpointSlice", "" ) as V1beta1EndpointSlice; - return body; + 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/EventsApi.ts b/src/gen/apis/EventsApi.ts index d82d13e0229..31fae8cf8d8 100644 --- a/src/gen/apis/EventsApi.ts +++ b/src/gen/apis/EventsApi.ts @@ -1,7 +1,7 @@ // TODO: better import syntax? import {BaseAPIRequestFactory, RequiredError, COLLECTION_FORMATS} from './baseapi'; import {Configuration} from '../configuration'; -import {RequestContext, HttpMethod, ResponseContext, HttpFile} from '../http/http'; +import {RequestContext, HttpMethod, ResponseContext, HttpFile, HttpInfo} from '../http/http'; import FormData from "form-data"; import { URLSearchParams } from 'url'; import {ObjectSerializer} from '../models/ObjectSerializer'; @@ -57,14 +57,14 @@ export class EventsApiResponseProcessor { * @params response Response returned by the server for a request to getAPIGroup * @throws ApiException if the response code was not in [200, 299] */ - public async getAPIGroup(response: ResponseContext): Promise { + public async getAPIGroupWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1APIGroup = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1APIGroup", "" ) as V1APIGroup; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -76,7 +76,7 @@ export class EventsApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1APIGroup", "" ) as V1APIGroup; - return body; + 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/EventsV1Api.ts b/src/gen/apis/EventsV1Api.ts index 4c1b760d127..451f688f2d8 100644 --- a/src/gen/apis/EventsV1Api.ts +++ b/src/gen/apis/EventsV1Api.ts @@ -1,7 +1,7 @@ // TODO: better import syntax? import {BaseAPIRequestFactory, RequiredError, COLLECTION_FORMATS} from './baseapi'; import {Configuration} from '../configuration'; -import {RequestContext, HttpMethod, ResponseContext, HttpFile} from '../http/http'; +import {RequestContext, HttpMethod, ResponseContext, HttpFile, HttpInfo} from '../http/http'; import FormData from "form-data"; import { URLSearchParams } from 'url'; import {ObjectSerializer} from '../models/ObjectSerializer'; @@ -795,28 +795,28 @@ export class EventsV1ApiResponseProcessor { * @params response Response returned by the server for a request to createNamespacedEvent * @throws ApiException if the response code was not in [200, 299] */ - public async createNamespacedEvent(response: ResponseContext): Promise { + public async createNamespacedEventWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: EventsV1Event = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "EventsV1Event", "" ) as EventsV1Event; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: EventsV1Event = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "EventsV1Event", "" ) as EventsV1Event; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("202", response.httpStatusCode)) { const body: EventsV1Event = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "EventsV1Event", "" ) as EventsV1Event; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -828,7 +828,7 @@ export class EventsV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "EventsV1Event", "" ) as EventsV1Event; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -841,14 +841,14 @@ export class EventsV1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteCollectionNamespacedEvent * @throws ApiException if the response code was not in [200, 299] */ - public async deleteCollectionNamespacedEvent(response: ResponseContext): Promise { + public async deleteCollectionNamespacedEventWithHttpInfo(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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -860,7 +860,7 @@ export class EventsV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -873,21 +873,21 @@ export class EventsV1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteNamespacedEvent * @throws ApiException if the response code was not in [200, 299] */ - public async deleteNamespacedEvent(response: ResponseContext): Promise { + public async deleteNamespacedEventWithHttpInfo(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 body; + 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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -899,7 +899,7 @@ export class EventsV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -912,14 +912,14 @@ export class EventsV1ApiResponseProcessor { * @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 getAPIResources(response: ResponseContext): Promise { + 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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -931,7 +931,7 @@ export class EventsV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1APIResourceList", "" ) as V1APIResourceList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -944,14 +944,14 @@ export class EventsV1ApiResponseProcessor { * @params response Response returned by the server for a request to listEventForAllNamespaces * @throws ApiException if the response code was not in [200, 299] */ - public async listEventForAllNamespaces(response: ResponseContext): Promise { + public async listEventForAllNamespacesWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: EventsV1EventList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "EventsV1EventList", "" ) as EventsV1EventList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -963,7 +963,7 @@ export class EventsV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "EventsV1EventList", "" ) as EventsV1EventList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -976,14 +976,14 @@ export class EventsV1ApiResponseProcessor { * @params response Response returned by the server for a request to listNamespacedEvent * @throws ApiException if the response code was not in [200, 299] */ - public async listNamespacedEvent(response: ResponseContext): Promise { + public async listNamespacedEventWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: EventsV1EventList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "EventsV1EventList", "" ) as EventsV1EventList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -995,7 +995,7 @@ export class EventsV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "EventsV1EventList", "" ) as EventsV1EventList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1008,21 +1008,21 @@ export class EventsV1ApiResponseProcessor { * @params response Response returned by the server for a request to patchNamespacedEvent * @throws ApiException if the response code was not in [200, 299] */ - public async patchNamespacedEvent(response: ResponseContext): Promise { + public async patchNamespacedEventWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: EventsV1Event = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "EventsV1Event", "" ) as EventsV1Event; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: EventsV1Event = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "EventsV1Event", "" ) as EventsV1Event; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1034,7 +1034,7 @@ export class EventsV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "EventsV1Event", "" ) as EventsV1Event; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1047,14 +1047,14 @@ export class EventsV1ApiResponseProcessor { * @params response Response returned by the server for a request to readNamespacedEvent * @throws ApiException if the response code was not in [200, 299] */ - public async readNamespacedEvent(response: ResponseContext): Promise { + public async readNamespacedEventWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: EventsV1Event = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "EventsV1Event", "" ) as EventsV1Event; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1066,7 +1066,7 @@ export class EventsV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "EventsV1Event", "" ) as EventsV1Event; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1079,21 +1079,21 @@ export class EventsV1ApiResponseProcessor { * @params response Response returned by the server for a request to replaceNamespacedEvent * @throws ApiException if the response code was not in [200, 299] */ - public async replaceNamespacedEvent(response: ResponseContext): Promise { + public async replaceNamespacedEventWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: EventsV1Event = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "EventsV1Event", "" ) as EventsV1Event; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: EventsV1Event = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "EventsV1Event", "" ) as EventsV1Event; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1105,7 +1105,7 @@ export class EventsV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "EventsV1Event", "" ) as EventsV1Event; - return body; + 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/EventsV1beta1Api.ts b/src/gen/apis/EventsV1beta1Api.ts index 520c4534374..267873fbd5c 100644 --- a/src/gen/apis/EventsV1beta1Api.ts +++ b/src/gen/apis/EventsV1beta1Api.ts @@ -1,7 +1,7 @@ // TODO: better import syntax? import {BaseAPIRequestFactory, RequiredError, COLLECTION_FORMATS} from './baseapi'; import {Configuration} from '../configuration'; -import {RequestContext, HttpMethod, ResponseContext, HttpFile} from '../http/http'; +import {RequestContext, HttpMethod, ResponseContext, HttpFile, HttpInfo} from '../http/http'; import FormData from "form-data"; import { URLSearchParams } from 'url'; import {ObjectSerializer} from '../models/ObjectSerializer'; @@ -795,28 +795,28 @@ export class EventsV1beta1ApiResponseProcessor { * @params response Response returned by the server for a request to createNamespacedEvent * @throws ApiException if the response code was not in [200, 299] */ - public async createNamespacedEvent(response: ResponseContext): Promise { + public async createNamespacedEventWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1beta1Event = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1Event", "" ) as V1beta1Event; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1beta1Event = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1Event", "" ) as V1beta1Event; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("202", response.httpStatusCode)) { const body: V1beta1Event = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1Event", "" ) as V1beta1Event; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -828,7 +828,7 @@ export class EventsV1beta1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1Event", "" ) as V1beta1Event; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -841,14 +841,14 @@ export class EventsV1beta1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteCollectionNamespacedEvent * @throws ApiException if the response code was not in [200, 299] */ - public async deleteCollectionNamespacedEvent(response: ResponseContext): Promise { + public async deleteCollectionNamespacedEventWithHttpInfo(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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -860,7 +860,7 @@ export class EventsV1beta1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -873,21 +873,21 @@ export class EventsV1beta1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteNamespacedEvent * @throws ApiException if the response code was not in [200, 299] */ - public async deleteNamespacedEvent(response: ResponseContext): Promise { + public async deleteNamespacedEventWithHttpInfo(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 body; + 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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -899,7 +899,7 @@ export class EventsV1beta1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -912,14 +912,14 @@ export class EventsV1beta1ApiResponseProcessor { * @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 getAPIResources(response: ResponseContext): Promise { + 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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -931,7 +931,7 @@ export class EventsV1beta1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1APIResourceList", "" ) as V1APIResourceList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -944,14 +944,14 @@ export class EventsV1beta1ApiResponseProcessor { * @params response Response returned by the server for a request to listEventForAllNamespaces * @throws ApiException if the response code was not in [200, 299] */ - public async listEventForAllNamespaces(response: ResponseContext): Promise { + public async listEventForAllNamespacesWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1beta1EventList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1EventList", "" ) as V1beta1EventList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -963,7 +963,7 @@ export class EventsV1beta1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1EventList", "" ) as V1beta1EventList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -976,14 +976,14 @@ export class EventsV1beta1ApiResponseProcessor { * @params response Response returned by the server for a request to listNamespacedEvent * @throws ApiException if the response code was not in [200, 299] */ - public async listNamespacedEvent(response: ResponseContext): Promise { + public async listNamespacedEventWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1beta1EventList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1EventList", "" ) as V1beta1EventList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -995,7 +995,7 @@ export class EventsV1beta1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1EventList", "" ) as V1beta1EventList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1008,21 +1008,21 @@ export class EventsV1beta1ApiResponseProcessor { * @params response Response returned by the server for a request to patchNamespacedEvent * @throws ApiException if the response code was not in [200, 299] */ - public async patchNamespacedEvent(response: ResponseContext): Promise { + public async patchNamespacedEventWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1beta1Event = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1Event", "" ) as V1beta1Event; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1beta1Event = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1Event", "" ) as V1beta1Event; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1034,7 +1034,7 @@ export class EventsV1beta1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1Event", "" ) as V1beta1Event; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1047,14 +1047,14 @@ export class EventsV1beta1ApiResponseProcessor { * @params response Response returned by the server for a request to readNamespacedEvent * @throws ApiException if the response code was not in [200, 299] */ - public async readNamespacedEvent(response: ResponseContext): Promise { + public async readNamespacedEventWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1beta1Event = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1Event", "" ) as V1beta1Event; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1066,7 +1066,7 @@ export class EventsV1beta1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1Event", "" ) as V1beta1Event; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1079,21 +1079,21 @@ export class EventsV1beta1ApiResponseProcessor { * @params response Response returned by the server for a request to replaceNamespacedEvent * @throws ApiException if the response code was not in [200, 299] */ - public async replaceNamespacedEvent(response: ResponseContext): Promise { + public async replaceNamespacedEventWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1beta1Event = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1Event", "" ) as V1beta1Event; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1beta1Event = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1Event", "" ) as V1beta1Event; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1105,7 +1105,7 @@ export class EventsV1beta1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1Event", "" ) as V1beta1Event; - return body; + 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/FlowcontrolApiserverApi.ts b/src/gen/apis/FlowcontrolApiserverApi.ts index ac35e1f665e..61c1a30fcda 100644 --- a/src/gen/apis/FlowcontrolApiserverApi.ts +++ b/src/gen/apis/FlowcontrolApiserverApi.ts @@ -1,7 +1,7 @@ // TODO: better import syntax? import {BaseAPIRequestFactory, RequiredError, COLLECTION_FORMATS} from './baseapi'; import {Configuration} from '../configuration'; -import {RequestContext, HttpMethod, ResponseContext, HttpFile} from '../http/http'; +import {RequestContext, HttpMethod, ResponseContext, HttpFile, HttpInfo} from '../http/http'; import FormData from "form-data"; import { URLSearchParams } from 'url'; import {ObjectSerializer} from '../models/ObjectSerializer'; @@ -57,14 +57,14 @@ export class FlowcontrolApiserverApiResponseProcessor { * @params response Response returned by the server for a request to getAPIGroup * @throws ApiException if the response code was not in [200, 299] */ - public async getAPIGroup(response: ResponseContext): Promise { + public async getAPIGroupWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1APIGroup = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1APIGroup", "" ) as V1APIGroup; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -76,7 +76,7 @@ export class FlowcontrolApiserverApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1APIGroup", "" ) as V1APIGroup; - return body; + 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/FlowcontrolApiserverV1beta1Api.ts b/src/gen/apis/FlowcontrolApiserverV1beta1Api.ts index 7291889a351..9dd4b32ac43 100644 --- a/src/gen/apis/FlowcontrolApiserverV1beta1Api.ts +++ b/src/gen/apis/FlowcontrolApiserverV1beta1Api.ts @@ -1,7 +1,7 @@ // TODO: better import syntax? import {BaseAPIRequestFactory, RequiredError, COLLECTION_FORMATS} from './baseapi'; import {Configuration} from '../configuration'; -import {RequestContext, HttpMethod, ResponseContext, HttpFile} from '../http/http'; +import {RequestContext, HttpMethod, ResponseContext, HttpFile, HttpInfo} from '../http/http'; import FormData from "form-data"; import { URLSearchParams } from 'url'; import {ObjectSerializer} from '../models/ObjectSerializer'; @@ -1635,28 +1635,28 @@ export class FlowcontrolApiserverV1beta1ApiResponseProcessor { * @params response Response returned by the server for a request to createFlowSchema * @throws ApiException if the response code was not in [200, 299] */ - public async createFlowSchema(response: ResponseContext): Promise { + public async createFlowSchemaWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1beta1FlowSchema = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1FlowSchema", "" ) as V1beta1FlowSchema; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1beta1FlowSchema = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1FlowSchema", "" ) as V1beta1FlowSchema; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("202", response.httpStatusCode)) { const body: V1beta1FlowSchema = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1FlowSchema", "" ) as V1beta1FlowSchema; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1668,7 +1668,7 @@ export class FlowcontrolApiserverV1beta1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1FlowSchema", "" ) as V1beta1FlowSchema; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1681,28 +1681,28 @@ export class FlowcontrolApiserverV1beta1ApiResponseProcessor { * @params response Response returned by the server for a request to createPriorityLevelConfiguration * @throws ApiException if the response code was not in [200, 299] */ - public async createPriorityLevelConfiguration(response: ResponseContext): Promise { + public async createPriorityLevelConfigurationWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1beta1PriorityLevelConfiguration = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1PriorityLevelConfiguration", "" ) as V1beta1PriorityLevelConfiguration; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1beta1PriorityLevelConfiguration = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1PriorityLevelConfiguration", "" ) as V1beta1PriorityLevelConfiguration; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("202", response.httpStatusCode)) { const body: V1beta1PriorityLevelConfiguration = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1PriorityLevelConfiguration", "" ) as V1beta1PriorityLevelConfiguration; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1714,7 +1714,7 @@ export class FlowcontrolApiserverV1beta1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1PriorityLevelConfiguration", "" ) as V1beta1PriorityLevelConfiguration; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1727,14 +1727,14 @@ export class FlowcontrolApiserverV1beta1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteCollectionFlowSchema * @throws ApiException if the response code was not in [200, 299] */ - public async deleteCollectionFlowSchema(response: ResponseContext): Promise { + public async deleteCollectionFlowSchemaWithHttpInfo(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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1746,7 +1746,7 @@ export class FlowcontrolApiserverV1beta1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1759,14 +1759,14 @@ export class FlowcontrolApiserverV1beta1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteCollectionPriorityLevelConfiguration * @throws ApiException if the response code was not in [200, 299] */ - public async deleteCollectionPriorityLevelConfiguration(response: ResponseContext): Promise { + public async deleteCollectionPriorityLevelConfigurationWithHttpInfo(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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1778,7 +1778,7 @@ export class FlowcontrolApiserverV1beta1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1791,21 +1791,21 @@ export class FlowcontrolApiserverV1beta1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteFlowSchema * @throws ApiException if the response code was not in [200, 299] */ - public async deleteFlowSchema(response: ResponseContext): Promise { + public async deleteFlowSchemaWithHttpInfo(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 body; + 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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1817,7 +1817,7 @@ export class FlowcontrolApiserverV1beta1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1830,21 +1830,21 @@ export class FlowcontrolApiserverV1beta1ApiResponseProcessor { * @params response Response returned by the server for a request to deletePriorityLevelConfiguration * @throws ApiException if the response code was not in [200, 299] */ - public async deletePriorityLevelConfiguration(response: ResponseContext): Promise { + public async deletePriorityLevelConfigurationWithHttpInfo(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 body; + 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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1856,7 +1856,7 @@ export class FlowcontrolApiserverV1beta1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1869,14 +1869,14 @@ export class FlowcontrolApiserverV1beta1ApiResponseProcessor { * @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 getAPIResources(response: ResponseContext): Promise { + 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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1888,7 +1888,7 @@ export class FlowcontrolApiserverV1beta1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1APIResourceList", "" ) as V1APIResourceList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1901,14 +1901,14 @@ export class FlowcontrolApiserverV1beta1ApiResponseProcessor { * @params response Response returned by the server for a request to listFlowSchema * @throws ApiException if the response code was not in [200, 299] */ - public async listFlowSchema(response: ResponseContext): Promise { + public async listFlowSchemaWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1beta1FlowSchemaList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1FlowSchemaList", "" ) as V1beta1FlowSchemaList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1920,7 +1920,7 @@ export class FlowcontrolApiserverV1beta1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1FlowSchemaList", "" ) as V1beta1FlowSchemaList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1933,14 +1933,14 @@ export class FlowcontrolApiserverV1beta1ApiResponseProcessor { * @params response Response returned by the server for a request to listPriorityLevelConfiguration * @throws ApiException if the response code was not in [200, 299] */ - public async listPriorityLevelConfiguration(response: ResponseContext): Promise { + public async listPriorityLevelConfigurationWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1beta1PriorityLevelConfigurationList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1PriorityLevelConfigurationList", "" ) as V1beta1PriorityLevelConfigurationList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1952,7 +1952,7 @@ export class FlowcontrolApiserverV1beta1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1PriorityLevelConfigurationList", "" ) as V1beta1PriorityLevelConfigurationList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1965,21 +1965,21 @@ export class FlowcontrolApiserverV1beta1ApiResponseProcessor { * @params response Response returned by the server for a request to patchFlowSchema * @throws ApiException if the response code was not in [200, 299] */ - public async patchFlowSchema(response: ResponseContext): Promise { + public async patchFlowSchemaWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1beta1FlowSchema = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1FlowSchema", "" ) as V1beta1FlowSchema; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1beta1FlowSchema = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1FlowSchema", "" ) as V1beta1FlowSchema; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1991,7 +1991,7 @@ export class FlowcontrolApiserverV1beta1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1FlowSchema", "" ) as V1beta1FlowSchema; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -2004,21 +2004,21 @@ export class FlowcontrolApiserverV1beta1ApiResponseProcessor { * @params response Response returned by the server for a request to patchFlowSchemaStatus * @throws ApiException if the response code was not in [200, 299] */ - public async patchFlowSchemaStatus(response: ResponseContext): Promise { + public async patchFlowSchemaStatusWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1beta1FlowSchema = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1FlowSchema", "" ) as V1beta1FlowSchema; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1beta1FlowSchema = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1FlowSchema", "" ) as V1beta1FlowSchema; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -2030,7 +2030,7 @@ export class FlowcontrolApiserverV1beta1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1FlowSchema", "" ) as V1beta1FlowSchema; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -2043,21 +2043,21 @@ export class FlowcontrolApiserverV1beta1ApiResponseProcessor { * @params response Response returned by the server for a request to patchPriorityLevelConfiguration * @throws ApiException if the response code was not in [200, 299] */ - public async patchPriorityLevelConfiguration(response: ResponseContext): Promise { + public async patchPriorityLevelConfigurationWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1beta1PriorityLevelConfiguration = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1PriorityLevelConfiguration", "" ) as V1beta1PriorityLevelConfiguration; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1beta1PriorityLevelConfiguration = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1PriorityLevelConfiguration", "" ) as V1beta1PriorityLevelConfiguration; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -2069,7 +2069,7 @@ export class FlowcontrolApiserverV1beta1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1PriorityLevelConfiguration", "" ) as V1beta1PriorityLevelConfiguration; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -2082,21 +2082,21 @@ export class FlowcontrolApiserverV1beta1ApiResponseProcessor { * @params response Response returned by the server for a request to patchPriorityLevelConfigurationStatus * @throws ApiException if the response code was not in [200, 299] */ - public async patchPriorityLevelConfigurationStatus(response: ResponseContext): Promise { + public async patchPriorityLevelConfigurationStatusWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1beta1PriorityLevelConfiguration = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1PriorityLevelConfiguration", "" ) as V1beta1PriorityLevelConfiguration; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1beta1PriorityLevelConfiguration = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1PriorityLevelConfiguration", "" ) as V1beta1PriorityLevelConfiguration; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -2108,7 +2108,7 @@ export class FlowcontrolApiserverV1beta1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1PriorityLevelConfiguration", "" ) as V1beta1PriorityLevelConfiguration; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -2121,14 +2121,14 @@ export class FlowcontrolApiserverV1beta1ApiResponseProcessor { * @params response Response returned by the server for a request to readFlowSchema * @throws ApiException if the response code was not in [200, 299] */ - public async readFlowSchema(response: ResponseContext): Promise { + public async readFlowSchemaWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1beta1FlowSchema = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1FlowSchema", "" ) as V1beta1FlowSchema; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -2140,7 +2140,7 @@ export class FlowcontrolApiserverV1beta1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1FlowSchema", "" ) as V1beta1FlowSchema; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -2153,14 +2153,14 @@ export class FlowcontrolApiserverV1beta1ApiResponseProcessor { * @params response Response returned by the server for a request to readFlowSchemaStatus * @throws ApiException if the response code was not in [200, 299] */ - public async readFlowSchemaStatus(response: ResponseContext): Promise { + public async readFlowSchemaStatusWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1beta1FlowSchema = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1FlowSchema", "" ) as V1beta1FlowSchema; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -2172,7 +2172,7 @@ export class FlowcontrolApiserverV1beta1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1FlowSchema", "" ) as V1beta1FlowSchema; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -2185,14 +2185,14 @@ export class FlowcontrolApiserverV1beta1ApiResponseProcessor { * @params response Response returned by the server for a request to readPriorityLevelConfiguration * @throws ApiException if the response code was not in [200, 299] */ - public async readPriorityLevelConfiguration(response: ResponseContext): Promise { + public async readPriorityLevelConfigurationWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1beta1PriorityLevelConfiguration = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1PriorityLevelConfiguration", "" ) as V1beta1PriorityLevelConfiguration; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -2204,7 +2204,7 @@ export class FlowcontrolApiserverV1beta1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1PriorityLevelConfiguration", "" ) as V1beta1PriorityLevelConfiguration; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -2217,14 +2217,14 @@ export class FlowcontrolApiserverV1beta1ApiResponseProcessor { * @params response Response returned by the server for a request to readPriorityLevelConfigurationStatus * @throws ApiException if the response code was not in [200, 299] */ - public async readPriorityLevelConfigurationStatus(response: ResponseContext): Promise { + public async readPriorityLevelConfigurationStatusWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1beta1PriorityLevelConfiguration = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1PriorityLevelConfiguration", "" ) as V1beta1PriorityLevelConfiguration; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -2236,7 +2236,7 @@ export class FlowcontrolApiserverV1beta1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1PriorityLevelConfiguration", "" ) as V1beta1PriorityLevelConfiguration; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -2249,21 +2249,21 @@ export class FlowcontrolApiserverV1beta1ApiResponseProcessor { * @params response Response returned by the server for a request to replaceFlowSchema * @throws ApiException if the response code was not in [200, 299] */ - public async replaceFlowSchema(response: ResponseContext): Promise { + public async replaceFlowSchemaWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1beta1FlowSchema = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1FlowSchema", "" ) as V1beta1FlowSchema; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1beta1FlowSchema = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1FlowSchema", "" ) as V1beta1FlowSchema; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -2275,7 +2275,7 @@ export class FlowcontrolApiserverV1beta1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1FlowSchema", "" ) as V1beta1FlowSchema; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -2288,21 +2288,21 @@ export class FlowcontrolApiserverV1beta1ApiResponseProcessor { * @params response Response returned by the server for a request to replaceFlowSchemaStatus * @throws ApiException if the response code was not in [200, 299] */ - public async replaceFlowSchemaStatus(response: ResponseContext): Promise { + public async replaceFlowSchemaStatusWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1beta1FlowSchema = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1FlowSchema", "" ) as V1beta1FlowSchema; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1beta1FlowSchema = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1FlowSchema", "" ) as V1beta1FlowSchema; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -2314,7 +2314,7 @@ export class FlowcontrolApiserverV1beta1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1FlowSchema", "" ) as V1beta1FlowSchema; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -2327,21 +2327,21 @@ export class FlowcontrolApiserverV1beta1ApiResponseProcessor { * @params response Response returned by the server for a request to replacePriorityLevelConfiguration * @throws ApiException if the response code was not in [200, 299] */ - public async replacePriorityLevelConfiguration(response: ResponseContext): Promise { + public async replacePriorityLevelConfigurationWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1beta1PriorityLevelConfiguration = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1PriorityLevelConfiguration", "" ) as V1beta1PriorityLevelConfiguration; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1beta1PriorityLevelConfiguration = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1PriorityLevelConfiguration", "" ) as V1beta1PriorityLevelConfiguration; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -2353,7 +2353,7 @@ export class FlowcontrolApiserverV1beta1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1PriorityLevelConfiguration", "" ) as V1beta1PriorityLevelConfiguration; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -2366,21 +2366,21 @@ export class FlowcontrolApiserverV1beta1ApiResponseProcessor { * @params response Response returned by the server for a request to replacePriorityLevelConfigurationStatus * @throws ApiException if the response code was not in [200, 299] */ - public async replacePriorityLevelConfigurationStatus(response: ResponseContext): Promise { + public async replacePriorityLevelConfigurationStatusWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1beta1PriorityLevelConfiguration = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1PriorityLevelConfiguration", "" ) as V1beta1PriorityLevelConfiguration; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1beta1PriorityLevelConfiguration = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1PriorityLevelConfiguration", "" ) as V1beta1PriorityLevelConfiguration; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -2392,7 +2392,7 @@ export class FlowcontrolApiserverV1beta1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1PriorityLevelConfiguration", "" ) as V1beta1PriorityLevelConfiguration; - return body; + 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/InternalApiserverApi.ts b/src/gen/apis/InternalApiserverApi.ts index 788e3c8f3e4..6f3d3d6afb5 100644 --- a/src/gen/apis/InternalApiserverApi.ts +++ b/src/gen/apis/InternalApiserverApi.ts @@ -1,7 +1,7 @@ // TODO: better import syntax? import {BaseAPIRequestFactory, RequiredError, COLLECTION_FORMATS} from './baseapi'; import {Configuration} from '../configuration'; -import {RequestContext, HttpMethod, ResponseContext, HttpFile} from '../http/http'; +import {RequestContext, HttpMethod, ResponseContext, HttpFile, HttpInfo} from '../http/http'; import FormData from "form-data"; import { URLSearchParams } from 'url'; import {ObjectSerializer} from '../models/ObjectSerializer'; @@ -57,14 +57,14 @@ export class InternalApiserverApiResponseProcessor { * @params response Response returned by the server for a request to getAPIGroup * @throws ApiException if the response code was not in [200, 299] */ - public async getAPIGroup(response: ResponseContext): Promise { + public async getAPIGroupWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1APIGroup = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1APIGroup", "" ) as V1APIGroup; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -76,7 +76,7 @@ export class InternalApiserverApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1APIGroup", "" ) as V1APIGroup; - return body; + 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/InternalApiserverV1alpha1Api.ts b/src/gen/apis/InternalApiserverV1alpha1Api.ts index 7005d0fa906..03f6a4ead82 100644 --- a/src/gen/apis/InternalApiserverV1alpha1Api.ts +++ b/src/gen/apis/InternalApiserverV1alpha1Api.ts @@ -1,7 +1,7 @@ // TODO: better import syntax? import {BaseAPIRequestFactory, RequiredError, COLLECTION_FORMATS} from './baseapi'; import {Configuration} from '../configuration'; -import {RequestContext, HttpMethod, ResponseContext, HttpFile} from '../http/http'; +import {RequestContext, HttpMethod, ResponseContext, HttpFile, HttpInfo} from '../http/http'; import FormData from "form-data"; import { URLSearchParams } from 'url'; import {ObjectSerializer} from '../models/ObjectSerializer'; @@ -847,28 +847,28 @@ export class InternalApiserverV1alpha1ApiResponseProcessor { * @params response Response returned by the server for a request to createStorageVersion * @throws ApiException if the response code was not in [200, 299] */ - public async createStorageVersion(response: ResponseContext): Promise { + public async createStorageVersionWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1alpha1StorageVersion = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1StorageVersion", "" ) as V1alpha1StorageVersion; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1alpha1StorageVersion = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1StorageVersion", "" ) as V1alpha1StorageVersion; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("202", response.httpStatusCode)) { const body: V1alpha1StorageVersion = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1StorageVersion", "" ) as V1alpha1StorageVersion; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -880,7 +880,7 @@ export class InternalApiserverV1alpha1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1StorageVersion", "" ) as V1alpha1StorageVersion; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -893,14 +893,14 @@ export class InternalApiserverV1alpha1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteCollectionStorageVersion * @throws ApiException if the response code was not in [200, 299] */ - public async deleteCollectionStorageVersion(response: ResponseContext): Promise { + public async deleteCollectionStorageVersionWithHttpInfo(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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -912,7 +912,7 @@ export class InternalApiserverV1alpha1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -925,21 +925,21 @@ export class InternalApiserverV1alpha1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteStorageVersion * @throws ApiException if the response code was not in [200, 299] */ - public async deleteStorageVersion(response: ResponseContext): Promise { + public async deleteStorageVersionWithHttpInfo(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 body; + 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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -951,7 +951,7 @@ export class InternalApiserverV1alpha1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -964,14 +964,14 @@ export class InternalApiserverV1alpha1ApiResponseProcessor { * @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 getAPIResources(response: ResponseContext): Promise { + 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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -983,7 +983,7 @@ export class InternalApiserverV1alpha1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1APIResourceList", "" ) as V1APIResourceList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -996,14 +996,14 @@ export class InternalApiserverV1alpha1ApiResponseProcessor { * @params response Response returned by the server for a request to listStorageVersion * @throws ApiException if the response code was not in [200, 299] */ - public async listStorageVersion(response: ResponseContext): Promise { + public async listStorageVersionWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1alpha1StorageVersionList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1StorageVersionList", "" ) as V1alpha1StorageVersionList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1015,7 +1015,7 @@ export class InternalApiserverV1alpha1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1StorageVersionList", "" ) as V1alpha1StorageVersionList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1028,21 +1028,21 @@ export class InternalApiserverV1alpha1ApiResponseProcessor { * @params response Response returned by the server for a request to patchStorageVersion * @throws ApiException if the response code was not in [200, 299] */ - public async patchStorageVersion(response: ResponseContext): Promise { + public async patchStorageVersionWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1alpha1StorageVersion = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1StorageVersion", "" ) as V1alpha1StorageVersion; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1alpha1StorageVersion = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1StorageVersion", "" ) as V1alpha1StorageVersion; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1054,7 +1054,7 @@ export class InternalApiserverV1alpha1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1StorageVersion", "" ) as V1alpha1StorageVersion; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1067,21 +1067,21 @@ export class InternalApiserverV1alpha1ApiResponseProcessor { * @params response Response returned by the server for a request to patchStorageVersionStatus * @throws ApiException if the response code was not in [200, 299] */ - public async patchStorageVersionStatus(response: ResponseContext): Promise { + public async patchStorageVersionStatusWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1alpha1StorageVersion = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1StorageVersion", "" ) as V1alpha1StorageVersion; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1alpha1StorageVersion = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1StorageVersion", "" ) as V1alpha1StorageVersion; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1093,7 +1093,7 @@ export class InternalApiserverV1alpha1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1StorageVersion", "" ) as V1alpha1StorageVersion; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1106,14 +1106,14 @@ export class InternalApiserverV1alpha1ApiResponseProcessor { * @params response Response returned by the server for a request to readStorageVersion * @throws ApiException if the response code was not in [200, 299] */ - public async readStorageVersion(response: ResponseContext): Promise { + public async readStorageVersionWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1alpha1StorageVersion = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1StorageVersion", "" ) as V1alpha1StorageVersion; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1125,7 +1125,7 @@ export class InternalApiserverV1alpha1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1StorageVersion", "" ) as V1alpha1StorageVersion; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1138,14 +1138,14 @@ export class InternalApiserverV1alpha1ApiResponseProcessor { * @params response Response returned by the server for a request to readStorageVersionStatus * @throws ApiException if the response code was not in [200, 299] */ - public async readStorageVersionStatus(response: ResponseContext): Promise { + public async readStorageVersionStatusWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1alpha1StorageVersion = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1StorageVersion", "" ) as V1alpha1StorageVersion; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1157,7 +1157,7 @@ export class InternalApiserverV1alpha1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1StorageVersion", "" ) as V1alpha1StorageVersion; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1170,21 +1170,21 @@ export class InternalApiserverV1alpha1ApiResponseProcessor { * @params response Response returned by the server for a request to replaceStorageVersion * @throws ApiException if the response code was not in [200, 299] */ - public async replaceStorageVersion(response: ResponseContext): Promise { + public async replaceStorageVersionWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1alpha1StorageVersion = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1StorageVersion", "" ) as V1alpha1StorageVersion; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1alpha1StorageVersion = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1StorageVersion", "" ) as V1alpha1StorageVersion; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1196,7 +1196,7 @@ export class InternalApiserverV1alpha1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1StorageVersion", "" ) as V1alpha1StorageVersion; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1209,21 +1209,21 @@ export class InternalApiserverV1alpha1ApiResponseProcessor { * @params response Response returned by the server for a request to replaceStorageVersionStatus * @throws ApiException if the response code was not in [200, 299] */ - public async replaceStorageVersionStatus(response: ResponseContext): Promise { + public async replaceStorageVersionStatusWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1alpha1StorageVersion = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1StorageVersion", "" ) as V1alpha1StorageVersion; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1alpha1StorageVersion = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1StorageVersion", "" ) as V1alpha1StorageVersion; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1235,7 +1235,7 @@ export class InternalApiserverV1alpha1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1StorageVersion", "" ) as V1alpha1StorageVersion; - return body; + 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/LogsApi.ts b/src/gen/apis/LogsApi.ts index 199ddf8a378..c5bd0892731 100644 --- a/src/gen/apis/LogsApi.ts +++ b/src/gen/apis/LogsApi.ts @@ -1,7 +1,7 @@ // TODO: better import syntax? import {BaseAPIRequestFactory, RequiredError, COLLECTION_FORMATS} from './baseapi'; import {Configuration} from '../configuration'; -import {RequestContext, HttpMethod, ResponseContext, HttpFile} from '../http/http'; +import {RequestContext, HttpMethod, ResponseContext, HttpFile, HttpInfo} from '../http/http'; import FormData from "form-data"; import { URLSearchParams } from 'url'; import {ObjectSerializer} from '../models/ObjectSerializer'; @@ -91,7 +91,7 @@ export class LogsApiResponseProcessor { * @params response Response returned by the server for a request to logFileHandler * @throws ApiException if the response code was not in [200, 299] */ - public async logFileHandler(response: ResponseContext): Promise< void> { + public async logFileHandlerWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -99,7 +99,7 @@ export class LogsApiResponseProcessor { // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - return; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, undefined); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -112,7 +112,7 @@ export class LogsApiResponseProcessor { * @params response Response returned by the server for a request to logFileListHandler * @throws ApiException if the response code was not in [200, 299] */ - public async logFileListHandler(response: ResponseContext): Promise< void> { + public async logFileListHandlerWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -120,7 +120,7 @@ export class LogsApiResponseProcessor { // Work around for missing responses in specification, e.g. for petstore.yaml if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { - return; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, undefined); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); diff --git a/src/gen/apis/NetworkingApi.ts b/src/gen/apis/NetworkingApi.ts index 31e81238f0b..ef1129a170f 100644 --- a/src/gen/apis/NetworkingApi.ts +++ b/src/gen/apis/NetworkingApi.ts @@ -1,7 +1,7 @@ // TODO: better import syntax? import {BaseAPIRequestFactory, RequiredError, COLLECTION_FORMATS} from './baseapi'; import {Configuration} from '../configuration'; -import {RequestContext, HttpMethod, ResponseContext, HttpFile} from '../http/http'; +import {RequestContext, HttpMethod, ResponseContext, HttpFile, HttpInfo} from '../http/http'; import FormData from "form-data"; import { URLSearchParams } from 'url'; import {ObjectSerializer} from '../models/ObjectSerializer'; @@ -57,14 +57,14 @@ export class NetworkingApiResponseProcessor { * @params response Response returned by the server for a request to getAPIGroup * @throws ApiException if the response code was not in [200, 299] */ - public async getAPIGroup(response: ResponseContext): Promise { + public async getAPIGroupWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1APIGroup = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1APIGroup", "" ) as V1APIGroup; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -76,7 +76,7 @@ export class NetworkingApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1APIGroup", "" ) as V1APIGroup; - return body; + 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/NetworkingV1Api.ts b/src/gen/apis/NetworkingV1Api.ts index 20182f786e7..03ab58f0060 100644 --- a/src/gen/apis/NetworkingV1Api.ts +++ b/src/gen/apis/NetworkingV1Api.ts @@ -1,7 +1,7 @@ // TODO: better import syntax? import {BaseAPIRequestFactory, RequiredError, COLLECTION_FORMATS} from './baseapi'; import {Configuration} from '../configuration'; -import {RequestContext, HttpMethod, ResponseContext, HttpFile} from '../http/http'; +import {RequestContext, HttpMethod, ResponseContext, HttpFile, HttpInfo} from '../http/http'; import FormData from "form-data"; import { URLSearchParams } from 'url'; import {ObjectSerializer} from '../models/ObjectSerializer'; @@ -2343,28 +2343,28 @@ export class NetworkingV1ApiResponseProcessor { * @params response Response returned by the server for a request to createIngressClass * @throws ApiException if the response code was not in [200, 299] */ - public async createIngressClass(response: ResponseContext): Promise { + public async createIngressClassWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1IngressClass = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1IngressClass", "" ) as V1IngressClass; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1IngressClass = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1IngressClass", "" ) as V1IngressClass; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("202", response.httpStatusCode)) { const body: V1IngressClass = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1IngressClass", "" ) as V1IngressClass; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -2376,7 +2376,7 @@ export class NetworkingV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1IngressClass", "" ) as V1IngressClass; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -2389,28 +2389,28 @@ export class NetworkingV1ApiResponseProcessor { * @params response Response returned by the server for a request to createNamespacedIngress * @throws ApiException if the response code was not in [200, 299] */ - public async createNamespacedIngress(response: ResponseContext): Promise { + public async createNamespacedIngressWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1Ingress = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Ingress", "" ) as V1Ingress; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1Ingress = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Ingress", "" ) as V1Ingress; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("202", response.httpStatusCode)) { const body: V1Ingress = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Ingress", "" ) as V1Ingress; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -2422,7 +2422,7 @@ export class NetworkingV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Ingress", "" ) as V1Ingress; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -2435,28 +2435,28 @@ export class NetworkingV1ApiResponseProcessor { * @params response Response returned by the server for a request to createNamespacedNetworkPolicy * @throws ApiException if the response code was not in [200, 299] */ - public async createNamespacedNetworkPolicy(response: ResponseContext): Promise { + public async createNamespacedNetworkPolicyWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1NetworkPolicy = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1NetworkPolicy", "" ) as V1NetworkPolicy; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1NetworkPolicy = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1NetworkPolicy", "" ) as V1NetworkPolicy; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("202", response.httpStatusCode)) { const body: V1NetworkPolicy = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1NetworkPolicy", "" ) as V1NetworkPolicy; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -2468,7 +2468,7 @@ export class NetworkingV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1NetworkPolicy", "" ) as V1NetworkPolicy; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -2481,14 +2481,14 @@ export class NetworkingV1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteCollectionIngressClass * @throws ApiException if the response code was not in [200, 299] */ - public async deleteCollectionIngressClass(response: ResponseContext): Promise { + public async deleteCollectionIngressClassWithHttpInfo(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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -2500,7 +2500,7 @@ export class NetworkingV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -2513,14 +2513,14 @@ export class NetworkingV1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteCollectionNamespacedIngress * @throws ApiException if the response code was not in [200, 299] */ - public async deleteCollectionNamespacedIngress(response: ResponseContext): Promise { + public async deleteCollectionNamespacedIngressWithHttpInfo(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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -2532,7 +2532,7 @@ export class NetworkingV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -2545,14 +2545,14 @@ export class NetworkingV1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteCollectionNamespacedNetworkPolicy * @throws ApiException if the response code was not in [200, 299] */ - public async deleteCollectionNamespacedNetworkPolicy(response: ResponseContext): Promise { + public async deleteCollectionNamespacedNetworkPolicyWithHttpInfo(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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -2564,7 +2564,7 @@ export class NetworkingV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -2577,21 +2577,21 @@ export class NetworkingV1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteIngressClass * @throws ApiException if the response code was not in [200, 299] */ - public async deleteIngressClass(response: ResponseContext): Promise { + public async deleteIngressClassWithHttpInfo(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 body; + 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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -2603,7 +2603,7 @@ export class NetworkingV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -2616,21 +2616,21 @@ export class NetworkingV1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteNamespacedIngress * @throws ApiException if the response code was not in [200, 299] */ - public async deleteNamespacedIngress(response: ResponseContext): Promise { + public async deleteNamespacedIngressWithHttpInfo(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 body; + 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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -2642,7 +2642,7 @@ export class NetworkingV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -2655,21 +2655,21 @@ export class NetworkingV1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteNamespacedNetworkPolicy * @throws ApiException if the response code was not in [200, 299] */ - public async deleteNamespacedNetworkPolicy(response: ResponseContext): Promise { + public async deleteNamespacedNetworkPolicyWithHttpInfo(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 body; + 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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -2681,7 +2681,7 @@ export class NetworkingV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -2694,14 +2694,14 @@ export class NetworkingV1ApiResponseProcessor { * @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 getAPIResources(response: ResponseContext): Promise { + 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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -2713,7 +2713,7 @@ export class NetworkingV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1APIResourceList", "" ) as V1APIResourceList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -2726,14 +2726,14 @@ export class NetworkingV1ApiResponseProcessor { * @params response Response returned by the server for a request to listIngressClass * @throws ApiException if the response code was not in [200, 299] */ - public async listIngressClass(response: ResponseContext): Promise { + public async listIngressClassWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1IngressClassList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1IngressClassList", "" ) as V1IngressClassList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -2745,7 +2745,7 @@ export class NetworkingV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1IngressClassList", "" ) as V1IngressClassList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -2758,14 +2758,14 @@ export class NetworkingV1ApiResponseProcessor { * @params response Response returned by the server for a request to listIngressForAllNamespaces * @throws ApiException if the response code was not in [200, 299] */ - public async listIngressForAllNamespaces(response: ResponseContext): Promise { + public async listIngressForAllNamespacesWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1IngressList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1IngressList", "" ) as V1IngressList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -2777,7 +2777,7 @@ export class NetworkingV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1IngressList", "" ) as V1IngressList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -2790,14 +2790,14 @@ export class NetworkingV1ApiResponseProcessor { * @params response Response returned by the server for a request to listNamespacedIngress * @throws ApiException if the response code was not in [200, 299] */ - public async listNamespacedIngress(response: ResponseContext): Promise { + public async listNamespacedIngressWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1IngressList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1IngressList", "" ) as V1IngressList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -2809,7 +2809,7 @@ export class NetworkingV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1IngressList", "" ) as V1IngressList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -2822,14 +2822,14 @@ export class NetworkingV1ApiResponseProcessor { * @params response Response returned by the server for a request to listNamespacedNetworkPolicy * @throws ApiException if the response code was not in [200, 299] */ - public async listNamespacedNetworkPolicy(response: ResponseContext): Promise { + public async listNamespacedNetworkPolicyWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1NetworkPolicyList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1NetworkPolicyList", "" ) as V1NetworkPolicyList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -2841,7 +2841,7 @@ export class NetworkingV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1NetworkPolicyList", "" ) as V1NetworkPolicyList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -2854,14 +2854,14 @@ export class NetworkingV1ApiResponseProcessor { * @params response Response returned by the server for a request to listNetworkPolicyForAllNamespaces * @throws ApiException if the response code was not in [200, 299] */ - public async listNetworkPolicyForAllNamespaces(response: ResponseContext): Promise { + public async listNetworkPolicyForAllNamespacesWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1NetworkPolicyList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1NetworkPolicyList", "" ) as V1NetworkPolicyList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -2873,7 +2873,7 @@ export class NetworkingV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1NetworkPolicyList", "" ) as V1NetworkPolicyList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -2886,21 +2886,21 @@ export class NetworkingV1ApiResponseProcessor { * @params response Response returned by the server for a request to patchIngressClass * @throws ApiException if the response code was not in [200, 299] */ - public async patchIngressClass(response: ResponseContext): Promise { + public async patchIngressClassWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1IngressClass = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1IngressClass", "" ) as V1IngressClass; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1IngressClass = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1IngressClass", "" ) as V1IngressClass; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -2912,7 +2912,7 @@ export class NetworkingV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1IngressClass", "" ) as V1IngressClass; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -2925,21 +2925,21 @@ export class NetworkingV1ApiResponseProcessor { * @params response Response returned by the server for a request to patchNamespacedIngress * @throws ApiException if the response code was not in [200, 299] */ - public async patchNamespacedIngress(response: ResponseContext): Promise { + public async patchNamespacedIngressWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1Ingress = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Ingress", "" ) as V1Ingress; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1Ingress = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Ingress", "" ) as V1Ingress; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -2951,7 +2951,7 @@ export class NetworkingV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Ingress", "" ) as V1Ingress; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -2964,21 +2964,21 @@ export class NetworkingV1ApiResponseProcessor { * @params response Response returned by the server for a request to patchNamespacedIngressStatus * @throws ApiException if the response code was not in [200, 299] */ - public async patchNamespacedIngressStatus(response: ResponseContext): Promise { + public async patchNamespacedIngressStatusWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1Ingress = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Ingress", "" ) as V1Ingress; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1Ingress = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Ingress", "" ) as V1Ingress; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -2990,7 +2990,7 @@ export class NetworkingV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Ingress", "" ) as V1Ingress; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -3003,21 +3003,21 @@ export class NetworkingV1ApiResponseProcessor { * @params response Response returned by the server for a request to patchNamespacedNetworkPolicy * @throws ApiException if the response code was not in [200, 299] */ - public async patchNamespacedNetworkPolicy(response: ResponseContext): Promise { + public async patchNamespacedNetworkPolicyWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1NetworkPolicy = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1NetworkPolicy", "" ) as V1NetworkPolicy; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1NetworkPolicy = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1NetworkPolicy", "" ) as V1NetworkPolicy; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -3029,7 +3029,7 @@ export class NetworkingV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1NetworkPolicy", "" ) as V1NetworkPolicy; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -3042,14 +3042,14 @@ export class NetworkingV1ApiResponseProcessor { * @params response Response returned by the server for a request to readIngressClass * @throws ApiException if the response code was not in [200, 299] */ - public async readIngressClass(response: ResponseContext): Promise { + public async readIngressClassWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1IngressClass = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1IngressClass", "" ) as V1IngressClass; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -3061,7 +3061,7 @@ export class NetworkingV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1IngressClass", "" ) as V1IngressClass; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -3074,14 +3074,14 @@ export class NetworkingV1ApiResponseProcessor { * @params response Response returned by the server for a request to readNamespacedIngress * @throws ApiException if the response code was not in [200, 299] */ - public async readNamespacedIngress(response: ResponseContext): Promise { + public async readNamespacedIngressWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1Ingress = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Ingress", "" ) as V1Ingress; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -3093,7 +3093,7 @@ export class NetworkingV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Ingress", "" ) as V1Ingress; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -3106,14 +3106,14 @@ export class NetworkingV1ApiResponseProcessor { * @params response Response returned by the server for a request to readNamespacedIngressStatus * @throws ApiException if the response code was not in [200, 299] */ - public async readNamespacedIngressStatus(response: ResponseContext): Promise { + public async readNamespacedIngressStatusWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1Ingress = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Ingress", "" ) as V1Ingress; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -3125,7 +3125,7 @@ export class NetworkingV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Ingress", "" ) as V1Ingress; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -3138,14 +3138,14 @@ export class NetworkingV1ApiResponseProcessor { * @params response Response returned by the server for a request to readNamespacedNetworkPolicy * @throws ApiException if the response code was not in [200, 299] */ - public async readNamespacedNetworkPolicy(response: ResponseContext): Promise { + public async readNamespacedNetworkPolicyWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1NetworkPolicy = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1NetworkPolicy", "" ) as V1NetworkPolicy; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -3157,7 +3157,7 @@ export class NetworkingV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1NetworkPolicy", "" ) as V1NetworkPolicy; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -3170,21 +3170,21 @@ export class NetworkingV1ApiResponseProcessor { * @params response Response returned by the server for a request to replaceIngressClass * @throws ApiException if the response code was not in [200, 299] */ - public async replaceIngressClass(response: ResponseContext): Promise { + public async replaceIngressClassWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1IngressClass = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1IngressClass", "" ) as V1IngressClass; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1IngressClass = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1IngressClass", "" ) as V1IngressClass; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -3196,7 +3196,7 @@ export class NetworkingV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1IngressClass", "" ) as V1IngressClass; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -3209,21 +3209,21 @@ export class NetworkingV1ApiResponseProcessor { * @params response Response returned by the server for a request to replaceNamespacedIngress * @throws ApiException if the response code was not in [200, 299] */ - public async replaceNamespacedIngress(response: ResponseContext): Promise { + public async replaceNamespacedIngressWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1Ingress = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Ingress", "" ) as V1Ingress; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1Ingress = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Ingress", "" ) as V1Ingress; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -3235,7 +3235,7 @@ export class NetworkingV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Ingress", "" ) as V1Ingress; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -3248,21 +3248,21 @@ export class NetworkingV1ApiResponseProcessor { * @params response Response returned by the server for a request to replaceNamespacedIngressStatus * @throws ApiException if the response code was not in [200, 299] */ - public async replaceNamespacedIngressStatus(response: ResponseContext): Promise { + public async replaceNamespacedIngressStatusWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1Ingress = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Ingress", "" ) as V1Ingress; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1Ingress = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Ingress", "" ) as V1Ingress; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -3274,7 +3274,7 @@ export class NetworkingV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Ingress", "" ) as V1Ingress; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -3287,21 +3287,21 @@ export class NetworkingV1ApiResponseProcessor { * @params response Response returned by the server for a request to replaceNamespacedNetworkPolicy * @throws ApiException if the response code was not in [200, 299] */ - public async replaceNamespacedNetworkPolicy(response: ResponseContext): Promise { + public async replaceNamespacedNetworkPolicyWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1NetworkPolicy = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1NetworkPolicy", "" ) as V1NetworkPolicy; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1NetworkPolicy = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1NetworkPolicy", "" ) as V1NetworkPolicy; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -3313,7 +3313,7 @@ export class NetworkingV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1NetworkPolicy", "" ) as V1NetworkPolicy; - return body; + 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/NodeApi.ts b/src/gen/apis/NodeApi.ts index dfaf02d6e48..f2ce8b7661d 100644 --- a/src/gen/apis/NodeApi.ts +++ b/src/gen/apis/NodeApi.ts @@ -1,7 +1,7 @@ // TODO: better import syntax? import {BaseAPIRequestFactory, RequiredError, COLLECTION_FORMATS} from './baseapi'; import {Configuration} from '../configuration'; -import {RequestContext, HttpMethod, ResponseContext, HttpFile} from '../http/http'; +import {RequestContext, HttpMethod, ResponseContext, HttpFile, HttpInfo} from '../http/http'; import FormData from "form-data"; import { URLSearchParams } from 'url'; import {ObjectSerializer} from '../models/ObjectSerializer'; @@ -57,14 +57,14 @@ export class NodeApiResponseProcessor { * @params response Response returned by the server for a request to getAPIGroup * @throws ApiException if the response code was not in [200, 299] */ - public async getAPIGroup(response: ResponseContext): Promise { + public async getAPIGroupWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1APIGroup = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1APIGroup", "" ) as V1APIGroup; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -76,7 +76,7 @@ export class NodeApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1APIGroup", "" ) as V1APIGroup; - return body; + 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/NodeV1Api.ts b/src/gen/apis/NodeV1Api.ts index 19954633371..3f40cc885a4 100644 --- a/src/gen/apis/NodeV1Api.ts +++ b/src/gen/apis/NodeV1Api.ts @@ -1,7 +1,7 @@ // TODO: better import syntax? import {BaseAPIRequestFactory, RequiredError, COLLECTION_FORMATS} from './baseapi'; import {Configuration} from '../configuration'; -import {RequestContext, HttpMethod, ResponseContext, HttpFile} from '../http/http'; +import {RequestContext, HttpMethod, ResponseContext, HttpFile, HttpInfo} from '../http/http'; import FormData from "form-data"; import { URLSearchParams } from 'url'; import {ObjectSerializer} from '../models/ObjectSerializer'; @@ -640,28 +640,28 @@ export class NodeV1ApiResponseProcessor { * @params response Response returned by the server for a request to createRuntimeClass * @throws ApiException if the response code was not in [200, 299] */ - public async createRuntimeClass(response: ResponseContext): Promise { + public async createRuntimeClassWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1RuntimeClass = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1RuntimeClass", "" ) as V1RuntimeClass; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1RuntimeClass = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1RuntimeClass", "" ) as V1RuntimeClass; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("202", response.httpStatusCode)) { const body: V1RuntimeClass = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1RuntimeClass", "" ) as V1RuntimeClass; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -673,7 +673,7 @@ export class NodeV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1RuntimeClass", "" ) as V1RuntimeClass; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -686,14 +686,14 @@ export class NodeV1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteCollectionRuntimeClass * @throws ApiException if the response code was not in [200, 299] */ - public async deleteCollectionRuntimeClass(response: ResponseContext): Promise { + public async deleteCollectionRuntimeClassWithHttpInfo(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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -705,7 +705,7 @@ export class NodeV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -718,21 +718,21 @@ export class NodeV1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteRuntimeClass * @throws ApiException if the response code was not in [200, 299] */ - public async deleteRuntimeClass(response: ResponseContext): Promise { + public async deleteRuntimeClassWithHttpInfo(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 body; + 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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -744,7 +744,7 @@ export class NodeV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -757,14 +757,14 @@ export class NodeV1ApiResponseProcessor { * @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 getAPIResources(response: ResponseContext): Promise { + 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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -776,7 +776,7 @@ export class NodeV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1APIResourceList", "" ) as V1APIResourceList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -789,14 +789,14 @@ export class NodeV1ApiResponseProcessor { * @params response Response returned by the server for a request to listRuntimeClass * @throws ApiException if the response code was not in [200, 299] */ - public async listRuntimeClass(response: ResponseContext): Promise { + public async listRuntimeClassWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1RuntimeClassList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1RuntimeClassList", "" ) as V1RuntimeClassList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -808,7 +808,7 @@ export class NodeV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1RuntimeClassList", "" ) as V1RuntimeClassList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -821,21 +821,21 @@ export class NodeV1ApiResponseProcessor { * @params response Response returned by the server for a request to patchRuntimeClass * @throws ApiException if the response code was not in [200, 299] */ - public async patchRuntimeClass(response: ResponseContext): Promise { + public async patchRuntimeClassWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1RuntimeClass = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1RuntimeClass", "" ) as V1RuntimeClass; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1RuntimeClass = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1RuntimeClass", "" ) as V1RuntimeClass; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -847,7 +847,7 @@ export class NodeV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1RuntimeClass", "" ) as V1RuntimeClass; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -860,14 +860,14 @@ export class NodeV1ApiResponseProcessor { * @params response Response returned by the server for a request to readRuntimeClass * @throws ApiException if the response code was not in [200, 299] */ - public async readRuntimeClass(response: ResponseContext): Promise { + public async readRuntimeClassWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1RuntimeClass = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1RuntimeClass", "" ) as V1RuntimeClass; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -879,7 +879,7 @@ export class NodeV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1RuntimeClass", "" ) as V1RuntimeClass; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -892,21 +892,21 @@ export class NodeV1ApiResponseProcessor { * @params response Response returned by the server for a request to replaceRuntimeClass * @throws ApiException if the response code was not in [200, 299] */ - public async replaceRuntimeClass(response: ResponseContext): Promise { + public async replaceRuntimeClassWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1RuntimeClass = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1RuntimeClass", "" ) as V1RuntimeClass; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1RuntimeClass = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1RuntimeClass", "" ) as V1RuntimeClass; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -918,7 +918,7 @@ export class NodeV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1RuntimeClass", "" ) as V1RuntimeClass; - return body; + 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/NodeV1alpha1Api.ts b/src/gen/apis/NodeV1alpha1Api.ts index 1ed6d66fbb6..82c1bd90c61 100644 --- a/src/gen/apis/NodeV1alpha1Api.ts +++ b/src/gen/apis/NodeV1alpha1Api.ts @@ -1,7 +1,7 @@ // TODO: better import syntax? import {BaseAPIRequestFactory, RequiredError, COLLECTION_FORMATS} from './baseapi'; import {Configuration} from '../configuration'; -import {RequestContext, HttpMethod, ResponseContext, HttpFile} from '../http/http'; +import {RequestContext, HttpMethod, ResponseContext, HttpFile, HttpInfo} from '../http/http'; import FormData from "form-data"; import { URLSearchParams } from 'url'; import {ObjectSerializer} from '../models/ObjectSerializer'; @@ -640,28 +640,28 @@ export class NodeV1alpha1ApiResponseProcessor { * @params response Response returned by the server for a request to createRuntimeClass * @throws ApiException if the response code was not in [200, 299] */ - public async createRuntimeClass(response: ResponseContext): Promise { + public async createRuntimeClassWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1alpha1RuntimeClass = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1RuntimeClass", "" ) as V1alpha1RuntimeClass; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1alpha1RuntimeClass = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1RuntimeClass", "" ) as V1alpha1RuntimeClass; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("202", response.httpStatusCode)) { const body: V1alpha1RuntimeClass = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1RuntimeClass", "" ) as V1alpha1RuntimeClass; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -673,7 +673,7 @@ export class NodeV1alpha1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1RuntimeClass", "" ) as V1alpha1RuntimeClass; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -686,14 +686,14 @@ export class NodeV1alpha1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteCollectionRuntimeClass * @throws ApiException if the response code was not in [200, 299] */ - public async deleteCollectionRuntimeClass(response: ResponseContext): Promise { + public async deleteCollectionRuntimeClassWithHttpInfo(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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -705,7 +705,7 @@ export class NodeV1alpha1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -718,21 +718,21 @@ export class NodeV1alpha1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteRuntimeClass * @throws ApiException if the response code was not in [200, 299] */ - public async deleteRuntimeClass(response: ResponseContext): Promise { + public async deleteRuntimeClassWithHttpInfo(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 body; + 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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -744,7 +744,7 @@ export class NodeV1alpha1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -757,14 +757,14 @@ export class NodeV1alpha1ApiResponseProcessor { * @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 getAPIResources(response: ResponseContext): Promise { + 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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -776,7 +776,7 @@ export class NodeV1alpha1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1APIResourceList", "" ) as V1APIResourceList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -789,14 +789,14 @@ export class NodeV1alpha1ApiResponseProcessor { * @params response Response returned by the server for a request to listRuntimeClass * @throws ApiException if the response code was not in [200, 299] */ - public async listRuntimeClass(response: ResponseContext): Promise { + public async listRuntimeClassWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1alpha1RuntimeClassList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1RuntimeClassList", "" ) as V1alpha1RuntimeClassList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -808,7 +808,7 @@ export class NodeV1alpha1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1RuntimeClassList", "" ) as V1alpha1RuntimeClassList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -821,21 +821,21 @@ export class NodeV1alpha1ApiResponseProcessor { * @params response Response returned by the server for a request to patchRuntimeClass * @throws ApiException if the response code was not in [200, 299] */ - public async patchRuntimeClass(response: ResponseContext): Promise { + public async patchRuntimeClassWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1alpha1RuntimeClass = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1RuntimeClass", "" ) as V1alpha1RuntimeClass; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1alpha1RuntimeClass = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1RuntimeClass", "" ) as V1alpha1RuntimeClass; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -847,7 +847,7 @@ export class NodeV1alpha1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1RuntimeClass", "" ) as V1alpha1RuntimeClass; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -860,14 +860,14 @@ export class NodeV1alpha1ApiResponseProcessor { * @params response Response returned by the server for a request to readRuntimeClass * @throws ApiException if the response code was not in [200, 299] */ - public async readRuntimeClass(response: ResponseContext): Promise { + public async readRuntimeClassWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1alpha1RuntimeClass = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1RuntimeClass", "" ) as V1alpha1RuntimeClass; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -879,7 +879,7 @@ export class NodeV1alpha1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1RuntimeClass", "" ) as V1alpha1RuntimeClass; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -892,21 +892,21 @@ export class NodeV1alpha1ApiResponseProcessor { * @params response Response returned by the server for a request to replaceRuntimeClass * @throws ApiException if the response code was not in [200, 299] */ - public async replaceRuntimeClass(response: ResponseContext): Promise { + public async replaceRuntimeClassWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1alpha1RuntimeClass = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1RuntimeClass", "" ) as V1alpha1RuntimeClass; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1alpha1RuntimeClass = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1RuntimeClass", "" ) as V1alpha1RuntimeClass; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -918,7 +918,7 @@ export class NodeV1alpha1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1RuntimeClass", "" ) as V1alpha1RuntimeClass; - return body; + 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/NodeV1beta1Api.ts b/src/gen/apis/NodeV1beta1Api.ts index 2f8f13be767..65c2ab8c7e2 100644 --- a/src/gen/apis/NodeV1beta1Api.ts +++ b/src/gen/apis/NodeV1beta1Api.ts @@ -1,7 +1,7 @@ // TODO: better import syntax? import {BaseAPIRequestFactory, RequiredError, COLLECTION_FORMATS} from './baseapi'; import {Configuration} from '../configuration'; -import {RequestContext, HttpMethod, ResponseContext, HttpFile} from '../http/http'; +import {RequestContext, HttpMethod, ResponseContext, HttpFile, HttpInfo} from '../http/http'; import FormData from "form-data"; import { URLSearchParams } from 'url'; import {ObjectSerializer} from '../models/ObjectSerializer'; @@ -640,28 +640,28 @@ export class NodeV1beta1ApiResponseProcessor { * @params response Response returned by the server for a request to createRuntimeClass * @throws ApiException if the response code was not in [200, 299] */ - public async createRuntimeClass(response: ResponseContext): Promise { + public async createRuntimeClassWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1beta1RuntimeClass = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1RuntimeClass", "" ) as V1beta1RuntimeClass; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1beta1RuntimeClass = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1RuntimeClass", "" ) as V1beta1RuntimeClass; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("202", response.httpStatusCode)) { const body: V1beta1RuntimeClass = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1RuntimeClass", "" ) as V1beta1RuntimeClass; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -673,7 +673,7 @@ export class NodeV1beta1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1RuntimeClass", "" ) as V1beta1RuntimeClass; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -686,14 +686,14 @@ export class NodeV1beta1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteCollectionRuntimeClass * @throws ApiException if the response code was not in [200, 299] */ - public async deleteCollectionRuntimeClass(response: ResponseContext): Promise { + public async deleteCollectionRuntimeClassWithHttpInfo(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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -705,7 +705,7 @@ export class NodeV1beta1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -718,21 +718,21 @@ export class NodeV1beta1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteRuntimeClass * @throws ApiException if the response code was not in [200, 299] */ - public async deleteRuntimeClass(response: ResponseContext): Promise { + public async deleteRuntimeClassWithHttpInfo(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 body; + 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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -744,7 +744,7 @@ export class NodeV1beta1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -757,14 +757,14 @@ export class NodeV1beta1ApiResponseProcessor { * @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 getAPIResources(response: ResponseContext): Promise { + 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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -776,7 +776,7 @@ export class NodeV1beta1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1APIResourceList", "" ) as V1APIResourceList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -789,14 +789,14 @@ export class NodeV1beta1ApiResponseProcessor { * @params response Response returned by the server for a request to listRuntimeClass * @throws ApiException if the response code was not in [200, 299] */ - public async listRuntimeClass(response: ResponseContext): Promise { + public async listRuntimeClassWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1beta1RuntimeClassList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1RuntimeClassList", "" ) as V1beta1RuntimeClassList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -808,7 +808,7 @@ export class NodeV1beta1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1RuntimeClassList", "" ) as V1beta1RuntimeClassList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -821,21 +821,21 @@ export class NodeV1beta1ApiResponseProcessor { * @params response Response returned by the server for a request to patchRuntimeClass * @throws ApiException if the response code was not in [200, 299] */ - public async patchRuntimeClass(response: ResponseContext): Promise { + public async patchRuntimeClassWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1beta1RuntimeClass = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1RuntimeClass", "" ) as V1beta1RuntimeClass; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1beta1RuntimeClass = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1RuntimeClass", "" ) as V1beta1RuntimeClass; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -847,7 +847,7 @@ export class NodeV1beta1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1RuntimeClass", "" ) as V1beta1RuntimeClass; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -860,14 +860,14 @@ export class NodeV1beta1ApiResponseProcessor { * @params response Response returned by the server for a request to readRuntimeClass * @throws ApiException if the response code was not in [200, 299] */ - public async readRuntimeClass(response: ResponseContext): Promise { + public async readRuntimeClassWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1beta1RuntimeClass = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1RuntimeClass", "" ) as V1beta1RuntimeClass; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -879,7 +879,7 @@ export class NodeV1beta1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1RuntimeClass", "" ) as V1beta1RuntimeClass; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -892,21 +892,21 @@ export class NodeV1beta1ApiResponseProcessor { * @params response Response returned by the server for a request to replaceRuntimeClass * @throws ApiException if the response code was not in [200, 299] */ - public async replaceRuntimeClass(response: ResponseContext): Promise { + public async replaceRuntimeClassWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1beta1RuntimeClass = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1RuntimeClass", "" ) as V1beta1RuntimeClass; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1beta1RuntimeClass = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1RuntimeClass", "" ) as V1beta1RuntimeClass; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -918,7 +918,7 @@ export class NodeV1beta1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1RuntimeClass", "" ) as V1beta1RuntimeClass; - return body; + 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/OpenidApi.ts b/src/gen/apis/OpenidApi.ts index 18d62e8058c..a1208e02150 100644 --- a/src/gen/apis/OpenidApi.ts +++ b/src/gen/apis/OpenidApi.ts @@ -1,7 +1,7 @@ // TODO: better import syntax? import {BaseAPIRequestFactory, RequiredError, COLLECTION_FORMATS} from './baseapi'; import {Configuration} from '../configuration'; -import {RequestContext, HttpMethod, ResponseContext, HttpFile} from '../http/http'; +import {RequestContext, HttpMethod, ResponseContext, HttpFile, HttpInfo} from '../http/http'; import FormData from "form-data"; import { URLSearchParams } from 'url'; import {ObjectSerializer} from '../models/ObjectSerializer'; @@ -56,14 +56,14 @@ export class OpenidApiResponseProcessor { * @params response Response returned by the server for a request to getServiceAccountIssuerOpenIDKeyset * @throws ApiException if the response code was not in [200, 299] */ - public async getServiceAccountIssuerOpenIDKeyset(response: ResponseContext): Promise { + public async getServiceAccountIssuerOpenIDKeysetWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: string = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "string", "" ) as string; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -75,7 +75,7 @@ export class OpenidApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "string", "" ) as string; - return body; + 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/PolicyApi.ts b/src/gen/apis/PolicyApi.ts index 8ef6f86ed2d..b4706359aea 100644 --- a/src/gen/apis/PolicyApi.ts +++ b/src/gen/apis/PolicyApi.ts @@ -1,7 +1,7 @@ // TODO: better import syntax? import {BaseAPIRequestFactory, RequiredError, COLLECTION_FORMATS} from './baseapi'; import {Configuration} from '../configuration'; -import {RequestContext, HttpMethod, ResponseContext, HttpFile} from '../http/http'; +import {RequestContext, HttpMethod, ResponseContext, HttpFile, HttpInfo} from '../http/http'; import FormData from "form-data"; import { URLSearchParams } from 'url'; import {ObjectSerializer} from '../models/ObjectSerializer'; @@ -57,14 +57,14 @@ export class PolicyApiResponseProcessor { * @params response Response returned by the server for a request to getAPIGroup * @throws ApiException if the response code was not in [200, 299] */ - public async getAPIGroup(response: ResponseContext): Promise { + public async getAPIGroupWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1APIGroup = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1APIGroup", "" ) as V1APIGroup; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -76,7 +76,7 @@ export class PolicyApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1APIGroup", "" ) as V1APIGroup; - return body; + 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/PolicyV1Api.ts b/src/gen/apis/PolicyV1Api.ts index dff4c2fd81a..3e6e90c4437 100644 --- a/src/gen/apis/PolicyV1Api.ts +++ b/src/gen/apis/PolicyV1Api.ts @@ -1,7 +1,7 @@ // TODO: better import syntax? import {BaseAPIRequestFactory, RequiredError, COLLECTION_FORMATS} from './baseapi'; import {Configuration} from '../configuration'; -import {RequestContext, HttpMethod, ResponseContext, HttpFile} from '../http/http'; +import {RequestContext, HttpMethod, ResponseContext, HttpFile, HttpInfo} from '../http/http'; import FormData from "form-data"; import { URLSearchParams } from 'url'; import {ObjectSerializer} from '../models/ObjectSerializer'; @@ -1026,28 +1026,28 @@ export class PolicyV1ApiResponseProcessor { * @params response Response returned by the server for a request to createNamespacedPodDisruptionBudget * @throws ApiException if the response code was not in [200, 299] */ - public async createNamespacedPodDisruptionBudget(response: ResponseContext): Promise { + public async createNamespacedPodDisruptionBudgetWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1PodDisruptionBudget = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1PodDisruptionBudget", "" ) as V1PodDisruptionBudget; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1PodDisruptionBudget = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1PodDisruptionBudget", "" ) as V1PodDisruptionBudget; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("202", response.httpStatusCode)) { const body: V1PodDisruptionBudget = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1PodDisruptionBudget", "" ) as V1PodDisruptionBudget; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1059,7 +1059,7 @@ export class PolicyV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1PodDisruptionBudget", "" ) as V1PodDisruptionBudget; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1072,14 +1072,14 @@ export class PolicyV1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteCollectionNamespacedPodDisruptionBudget * @throws ApiException if the response code was not in [200, 299] */ - public async deleteCollectionNamespacedPodDisruptionBudget(response: ResponseContext): Promise { + public async deleteCollectionNamespacedPodDisruptionBudgetWithHttpInfo(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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1091,7 +1091,7 @@ export class PolicyV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1104,21 +1104,21 @@ export class PolicyV1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteNamespacedPodDisruptionBudget * @throws ApiException if the response code was not in [200, 299] */ - public async deleteNamespacedPodDisruptionBudget(response: ResponseContext): Promise { + public async deleteNamespacedPodDisruptionBudgetWithHttpInfo(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 body; + 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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1130,7 +1130,7 @@ export class PolicyV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1143,14 +1143,14 @@ export class PolicyV1ApiResponseProcessor { * @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 getAPIResources(response: ResponseContext): Promise { + 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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1162,7 +1162,7 @@ export class PolicyV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1APIResourceList", "" ) as V1APIResourceList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1175,14 +1175,14 @@ export class PolicyV1ApiResponseProcessor { * @params response Response returned by the server for a request to listNamespacedPodDisruptionBudget * @throws ApiException if the response code was not in [200, 299] */ - public async listNamespacedPodDisruptionBudget(response: ResponseContext): Promise { + public async listNamespacedPodDisruptionBudgetWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1PodDisruptionBudgetList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1PodDisruptionBudgetList", "" ) as V1PodDisruptionBudgetList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1194,7 +1194,7 @@ export class PolicyV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1PodDisruptionBudgetList", "" ) as V1PodDisruptionBudgetList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1207,14 +1207,14 @@ export class PolicyV1ApiResponseProcessor { * @params response Response returned by the server for a request to listPodDisruptionBudgetForAllNamespaces * @throws ApiException if the response code was not in [200, 299] */ - public async listPodDisruptionBudgetForAllNamespaces(response: ResponseContext): Promise { + public async listPodDisruptionBudgetForAllNamespacesWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1PodDisruptionBudgetList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1PodDisruptionBudgetList", "" ) as V1PodDisruptionBudgetList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1226,7 +1226,7 @@ export class PolicyV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1PodDisruptionBudgetList", "" ) as V1PodDisruptionBudgetList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1239,21 +1239,21 @@ export class PolicyV1ApiResponseProcessor { * @params response Response returned by the server for a request to patchNamespacedPodDisruptionBudget * @throws ApiException if the response code was not in [200, 299] */ - public async patchNamespacedPodDisruptionBudget(response: ResponseContext): Promise { + public async patchNamespacedPodDisruptionBudgetWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1PodDisruptionBudget = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1PodDisruptionBudget", "" ) as V1PodDisruptionBudget; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1PodDisruptionBudget = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1PodDisruptionBudget", "" ) as V1PodDisruptionBudget; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1265,7 +1265,7 @@ export class PolicyV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1PodDisruptionBudget", "" ) as V1PodDisruptionBudget; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1278,21 +1278,21 @@ export class PolicyV1ApiResponseProcessor { * @params response Response returned by the server for a request to patchNamespacedPodDisruptionBudgetStatus * @throws ApiException if the response code was not in [200, 299] */ - public async patchNamespacedPodDisruptionBudgetStatus(response: ResponseContext): Promise { + public async patchNamespacedPodDisruptionBudgetStatusWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1PodDisruptionBudget = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1PodDisruptionBudget", "" ) as V1PodDisruptionBudget; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1PodDisruptionBudget = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1PodDisruptionBudget", "" ) as V1PodDisruptionBudget; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1304,7 +1304,7 @@ export class PolicyV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1PodDisruptionBudget", "" ) as V1PodDisruptionBudget; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1317,14 +1317,14 @@ export class PolicyV1ApiResponseProcessor { * @params response Response returned by the server for a request to readNamespacedPodDisruptionBudget * @throws ApiException if the response code was not in [200, 299] */ - public async readNamespacedPodDisruptionBudget(response: ResponseContext): Promise { + public async readNamespacedPodDisruptionBudgetWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1PodDisruptionBudget = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1PodDisruptionBudget", "" ) as V1PodDisruptionBudget; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1336,7 +1336,7 @@ export class PolicyV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1PodDisruptionBudget", "" ) as V1PodDisruptionBudget; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1349,14 +1349,14 @@ export class PolicyV1ApiResponseProcessor { * @params response Response returned by the server for a request to readNamespacedPodDisruptionBudgetStatus * @throws ApiException if the response code was not in [200, 299] */ - public async readNamespacedPodDisruptionBudgetStatus(response: ResponseContext): Promise { + public async readNamespacedPodDisruptionBudgetStatusWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1PodDisruptionBudget = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1PodDisruptionBudget", "" ) as V1PodDisruptionBudget; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1368,7 +1368,7 @@ export class PolicyV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1PodDisruptionBudget", "" ) as V1PodDisruptionBudget; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1381,21 +1381,21 @@ export class PolicyV1ApiResponseProcessor { * @params response Response returned by the server for a request to replaceNamespacedPodDisruptionBudget * @throws ApiException if the response code was not in [200, 299] */ - public async replaceNamespacedPodDisruptionBudget(response: ResponseContext): Promise { + public async replaceNamespacedPodDisruptionBudgetWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1PodDisruptionBudget = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1PodDisruptionBudget", "" ) as V1PodDisruptionBudget; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1PodDisruptionBudget = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1PodDisruptionBudget", "" ) as V1PodDisruptionBudget; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1407,7 +1407,7 @@ export class PolicyV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1PodDisruptionBudget", "" ) as V1PodDisruptionBudget; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1420,21 +1420,21 @@ export class PolicyV1ApiResponseProcessor { * @params response Response returned by the server for a request to replaceNamespacedPodDisruptionBudgetStatus * @throws ApiException if the response code was not in [200, 299] */ - public async replaceNamespacedPodDisruptionBudgetStatus(response: ResponseContext): Promise { + public async replaceNamespacedPodDisruptionBudgetStatusWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1PodDisruptionBudget = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1PodDisruptionBudget", "" ) as V1PodDisruptionBudget; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1PodDisruptionBudget = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1PodDisruptionBudget", "" ) as V1PodDisruptionBudget; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1446,7 +1446,7 @@ export class PolicyV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1PodDisruptionBudget", "" ) as V1PodDisruptionBudget; - return body; + 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/PolicyV1beta1Api.ts b/src/gen/apis/PolicyV1beta1Api.ts index 21751a9f9dd..a2d4b8c2ed6 100644 --- a/src/gen/apis/PolicyV1beta1Api.ts +++ b/src/gen/apis/PolicyV1beta1Api.ts @@ -1,7 +1,7 @@ // TODO: better import syntax? import {BaseAPIRequestFactory, RequiredError, COLLECTION_FORMATS} from './baseapi'; import {Configuration} from '../configuration'; -import {RequestContext, HttpMethod, ResponseContext, HttpFile} from '../http/http'; +import {RequestContext, HttpMethod, ResponseContext, HttpFile, HttpInfo} from '../http/http'; import FormData from "form-data"; import { URLSearchParams } from 'url'; import {ObjectSerializer} from '../models/ObjectSerializer'; @@ -1607,28 +1607,28 @@ export class PolicyV1beta1ApiResponseProcessor { * @params response Response returned by the server for a request to createNamespacedPodDisruptionBudget * @throws ApiException if the response code was not in [200, 299] */ - public async createNamespacedPodDisruptionBudget(response: ResponseContext): Promise { + public async createNamespacedPodDisruptionBudgetWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1beta1PodDisruptionBudget = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1PodDisruptionBudget", "" ) as V1beta1PodDisruptionBudget; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1beta1PodDisruptionBudget = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1PodDisruptionBudget", "" ) as V1beta1PodDisruptionBudget; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("202", response.httpStatusCode)) { const body: V1beta1PodDisruptionBudget = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1PodDisruptionBudget", "" ) as V1beta1PodDisruptionBudget; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1640,7 +1640,7 @@ export class PolicyV1beta1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1PodDisruptionBudget", "" ) as V1beta1PodDisruptionBudget; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1653,28 +1653,28 @@ export class PolicyV1beta1ApiResponseProcessor { * @params response Response returned by the server for a request to createPodSecurityPolicy * @throws ApiException if the response code was not in [200, 299] */ - public async createPodSecurityPolicy(response: ResponseContext): Promise { + public async createPodSecurityPolicyWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1beta1PodSecurityPolicy = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1PodSecurityPolicy", "" ) as V1beta1PodSecurityPolicy; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1beta1PodSecurityPolicy = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1PodSecurityPolicy", "" ) as V1beta1PodSecurityPolicy; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("202", response.httpStatusCode)) { const body: V1beta1PodSecurityPolicy = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1PodSecurityPolicy", "" ) as V1beta1PodSecurityPolicy; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1686,7 +1686,7 @@ export class PolicyV1beta1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1PodSecurityPolicy", "" ) as V1beta1PodSecurityPolicy; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1699,14 +1699,14 @@ export class PolicyV1beta1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteCollectionNamespacedPodDisruptionBudget * @throws ApiException if the response code was not in [200, 299] */ - public async deleteCollectionNamespacedPodDisruptionBudget(response: ResponseContext): Promise { + public async deleteCollectionNamespacedPodDisruptionBudgetWithHttpInfo(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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1718,7 +1718,7 @@ export class PolicyV1beta1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1731,14 +1731,14 @@ export class PolicyV1beta1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteCollectionPodSecurityPolicy * @throws ApiException if the response code was not in [200, 299] */ - public async deleteCollectionPodSecurityPolicy(response: ResponseContext): Promise { + public async deleteCollectionPodSecurityPolicyWithHttpInfo(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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1750,7 +1750,7 @@ export class PolicyV1beta1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1763,21 +1763,21 @@ export class PolicyV1beta1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteNamespacedPodDisruptionBudget * @throws ApiException if the response code was not in [200, 299] */ - public async deleteNamespacedPodDisruptionBudget(response: ResponseContext): Promise { + public async deleteNamespacedPodDisruptionBudgetWithHttpInfo(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 body; + 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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1789,7 +1789,7 @@ export class PolicyV1beta1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1802,21 +1802,21 @@ export class PolicyV1beta1ApiResponseProcessor { * @params response Response returned by the server for a request to deletePodSecurityPolicy * @throws ApiException if the response code was not in [200, 299] */ - public async deletePodSecurityPolicy(response: ResponseContext): Promise { + public async deletePodSecurityPolicyWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1beta1PodSecurityPolicy = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1PodSecurityPolicy", "" ) as V1beta1PodSecurityPolicy; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("202", response.httpStatusCode)) { const body: V1beta1PodSecurityPolicy = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1PodSecurityPolicy", "" ) as V1beta1PodSecurityPolicy; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1828,7 +1828,7 @@ export class PolicyV1beta1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1PodSecurityPolicy", "" ) as V1beta1PodSecurityPolicy; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1841,14 +1841,14 @@ export class PolicyV1beta1ApiResponseProcessor { * @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 getAPIResources(response: ResponseContext): Promise { + 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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1860,7 +1860,7 @@ export class PolicyV1beta1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1APIResourceList", "" ) as V1APIResourceList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1873,14 +1873,14 @@ export class PolicyV1beta1ApiResponseProcessor { * @params response Response returned by the server for a request to listNamespacedPodDisruptionBudget * @throws ApiException if the response code was not in [200, 299] */ - public async listNamespacedPodDisruptionBudget(response: ResponseContext): Promise { + public async listNamespacedPodDisruptionBudgetWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1beta1PodDisruptionBudgetList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1PodDisruptionBudgetList", "" ) as V1beta1PodDisruptionBudgetList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1892,7 +1892,7 @@ export class PolicyV1beta1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1PodDisruptionBudgetList", "" ) as V1beta1PodDisruptionBudgetList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1905,14 +1905,14 @@ export class PolicyV1beta1ApiResponseProcessor { * @params response Response returned by the server for a request to listPodDisruptionBudgetForAllNamespaces * @throws ApiException if the response code was not in [200, 299] */ - public async listPodDisruptionBudgetForAllNamespaces(response: ResponseContext): Promise { + public async listPodDisruptionBudgetForAllNamespacesWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1beta1PodDisruptionBudgetList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1PodDisruptionBudgetList", "" ) as V1beta1PodDisruptionBudgetList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1924,7 +1924,7 @@ export class PolicyV1beta1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1PodDisruptionBudgetList", "" ) as V1beta1PodDisruptionBudgetList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1937,14 +1937,14 @@ export class PolicyV1beta1ApiResponseProcessor { * @params response Response returned by the server for a request to listPodSecurityPolicy * @throws ApiException if the response code was not in [200, 299] */ - public async listPodSecurityPolicy(response: ResponseContext): Promise { + public async listPodSecurityPolicyWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1beta1PodSecurityPolicyList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1PodSecurityPolicyList", "" ) as V1beta1PodSecurityPolicyList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1956,7 +1956,7 @@ export class PolicyV1beta1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1PodSecurityPolicyList", "" ) as V1beta1PodSecurityPolicyList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1969,21 +1969,21 @@ export class PolicyV1beta1ApiResponseProcessor { * @params response Response returned by the server for a request to patchNamespacedPodDisruptionBudget * @throws ApiException if the response code was not in [200, 299] */ - public async patchNamespacedPodDisruptionBudget(response: ResponseContext): Promise { + public async patchNamespacedPodDisruptionBudgetWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1beta1PodDisruptionBudget = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1PodDisruptionBudget", "" ) as V1beta1PodDisruptionBudget; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1beta1PodDisruptionBudget = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1PodDisruptionBudget", "" ) as V1beta1PodDisruptionBudget; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1995,7 +1995,7 @@ export class PolicyV1beta1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1PodDisruptionBudget", "" ) as V1beta1PodDisruptionBudget; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -2008,21 +2008,21 @@ export class PolicyV1beta1ApiResponseProcessor { * @params response Response returned by the server for a request to patchNamespacedPodDisruptionBudgetStatus * @throws ApiException if the response code was not in [200, 299] */ - public async patchNamespacedPodDisruptionBudgetStatus(response: ResponseContext): Promise { + public async patchNamespacedPodDisruptionBudgetStatusWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1beta1PodDisruptionBudget = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1PodDisruptionBudget", "" ) as V1beta1PodDisruptionBudget; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1beta1PodDisruptionBudget = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1PodDisruptionBudget", "" ) as V1beta1PodDisruptionBudget; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -2034,7 +2034,7 @@ export class PolicyV1beta1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1PodDisruptionBudget", "" ) as V1beta1PodDisruptionBudget; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -2047,21 +2047,21 @@ export class PolicyV1beta1ApiResponseProcessor { * @params response Response returned by the server for a request to patchPodSecurityPolicy * @throws ApiException if the response code was not in [200, 299] */ - public async patchPodSecurityPolicy(response: ResponseContext): Promise { + public async patchPodSecurityPolicyWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1beta1PodSecurityPolicy = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1PodSecurityPolicy", "" ) as V1beta1PodSecurityPolicy; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1beta1PodSecurityPolicy = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1PodSecurityPolicy", "" ) as V1beta1PodSecurityPolicy; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -2073,7 +2073,7 @@ export class PolicyV1beta1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1PodSecurityPolicy", "" ) as V1beta1PodSecurityPolicy; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -2086,14 +2086,14 @@ export class PolicyV1beta1ApiResponseProcessor { * @params response Response returned by the server for a request to readNamespacedPodDisruptionBudget * @throws ApiException if the response code was not in [200, 299] */ - public async readNamespacedPodDisruptionBudget(response: ResponseContext): Promise { + public async readNamespacedPodDisruptionBudgetWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1beta1PodDisruptionBudget = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1PodDisruptionBudget", "" ) as V1beta1PodDisruptionBudget; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -2105,7 +2105,7 @@ export class PolicyV1beta1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1PodDisruptionBudget", "" ) as V1beta1PodDisruptionBudget; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -2118,14 +2118,14 @@ export class PolicyV1beta1ApiResponseProcessor { * @params response Response returned by the server for a request to readNamespacedPodDisruptionBudgetStatus * @throws ApiException if the response code was not in [200, 299] */ - public async readNamespacedPodDisruptionBudgetStatus(response: ResponseContext): Promise { + public async readNamespacedPodDisruptionBudgetStatusWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1beta1PodDisruptionBudget = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1PodDisruptionBudget", "" ) as V1beta1PodDisruptionBudget; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -2137,7 +2137,7 @@ export class PolicyV1beta1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1PodDisruptionBudget", "" ) as V1beta1PodDisruptionBudget; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -2150,14 +2150,14 @@ export class PolicyV1beta1ApiResponseProcessor { * @params response Response returned by the server for a request to readPodSecurityPolicy * @throws ApiException if the response code was not in [200, 299] */ - public async readPodSecurityPolicy(response: ResponseContext): Promise { + public async readPodSecurityPolicyWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1beta1PodSecurityPolicy = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1PodSecurityPolicy", "" ) as V1beta1PodSecurityPolicy; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -2169,7 +2169,7 @@ export class PolicyV1beta1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1PodSecurityPolicy", "" ) as V1beta1PodSecurityPolicy; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -2182,21 +2182,21 @@ export class PolicyV1beta1ApiResponseProcessor { * @params response Response returned by the server for a request to replaceNamespacedPodDisruptionBudget * @throws ApiException if the response code was not in [200, 299] */ - public async replaceNamespacedPodDisruptionBudget(response: ResponseContext): Promise { + public async replaceNamespacedPodDisruptionBudgetWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1beta1PodDisruptionBudget = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1PodDisruptionBudget", "" ) as V1beta1PodDisruptionBudget; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1beta1PodDisruptionBudget = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1PodDisruptionBudget", "" ) as V1beta1PodDisruptionBudget; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -2208,7 +2208,7 @@ export class PolicyV1beta1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1PodDisruptionBudget", "" ) as V1beta1PodDisruptionBudget; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -2221,21 +2221,21 @@ export class PolicyV1beta1ApiResponseProcessor { * @params response Response returned by the server for a request to replaceNamespacedPodDisruptionBudgetStatus * @throws ApiException if the response code was not in [200, 299] */ - public async replaceNamespacedPodDisruptionBudgetStatus(response: ResponseContext): Promise { + public async replaceNamespacedPodDisruptionBudgetStatusWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1beta1PodDisruptionBudget = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1PodDisruptionBudget", "" ) as V1beta1PodDisruptionBudget; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1beta1PodDisruptionBudget = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1PodDisruptionBudget", "" ) as V1beta1PodDisruptionBudget; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -2247,7 +2247,7 @@ export class PolicyV1beta1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1PodDisruptionBudget", "" ) as V1beta1PodDisruptionBudget; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -2260,21 +2260,21 @@ export class PolicyV1beta1ApiResponseProcessor { * @params response Response returned by the server for a request to replacePodSecurityPolicy * @throws ApiException if the response code was not in [200, 299] */ - public async replacePodSecurityPolicy(response: ResponseContext): Promise { + public async replacePodSecurityPolicyWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1beta1PodSecurityPolicy = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1PodSecurityPolicy", "" ) as V1beta1PodSecurityPolicy; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1beta1PodSecurityPolicy = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1PodSecurityPolicy", "" ) as V1beta1PodSecurityPolicy; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -2286,7 +2286,7 @@ export class PolicyV1beta1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1PodSecurityPolicy", "" ) as V1beta1PodSecurityPolicy; - return body; + 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/RbacAuthorizationApi.ts b/src/gen/apis/RbacAuthorizationApi.ts index 7a17f032af2..a7f00272b5f 100644 --- a/src/gen/apis/RbacAuthorizationApi.ts +++ b/src/gen/apis/RbacAuthorizationApi.ts @@ -1,7 +1,7 @@ // TODO: better import syntax? import {BaseAPIRequestFactory, RequiredError, COLLECTION_FORMATS} from './baseapi'; import {Configuration} from '../configuration'; -import {RequestContext, HttpMethod, ResponseContext, HttpFile} from '../http/http'; +import {RequestContext, HttpMethod, ResponseContext, HttpFile, HttpInfo} from '../http/http'; import FormData from "form-data"; import { URLSearchParams } from 'url'; import {ObjectSerializer} from '../models/ObjectSerializer'; @@ -57,14 +57,14 @@ export class RbacAuthorizationApiResponseProcessor { * @params response Response returned by the server for a request to getAPIGroup * @throws ApiException if the response code was not in [200, 299] */ - public async getAPIGroup(response: ResponseContext): Promise { + public async getAPIGroupWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1APIGroup = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1APIGroup", "" ) as V1APIGroup; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -76,7 +76,7 @@ export class RbacAuthorizationApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1APIGroup", "" ) as V1APIGroup; - return body; + 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/RbacAuthorizationV1Api.ts b/src/gen/apis/RbacAuthorizationV1Api.ts index d7eb1c435ee..4ed91ec9f6a 100644 --- a/src/gen/apis/RbacAuthorizationV1Api.ts +++ b/src/gen/apis/RbacAuthorizationV1Api.ts @@ -1,7 +1,7 @@ // TODO: better import syntax? import {BaseAPIRequestFactory, RequiredError, COLLECTION_FORMATS} from './baseapi'; import {Configuration} from '../configuration'; -import {RequestContext, HttpMethod, ResponseContext, HttpFile} from '../http/http'; +import {RequestContext, HttpMethod, ResponseContext, HttpFile, HttpInfo} from '../http/http'; import FormData from "form-data"; import { URLSearchParams } from 'url'; import {ObjectSerializer} from '../models/ObjectSerializer'; @@ -2693,28 +2693,28 @@ export class RbacAuthorizationV1ApiResponseProcessor { * @params response Response returned by the server for a request to createClusterRole * @throws ApiException if the response code was not in [200, 299] */ - public async createClusterRole(response: ResponseContext): Promise { + public async createClusterRoleWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1ClusterRole = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ClusterRole", "" ) as V1ClusterRole; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1ClusterRole = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ClusterRole", "" ) as V1ClusterRole; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("202", response.httpStatusCode)) { const body: V1ClusterRole = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ClusterRole", "" ) as V1ClusterRole; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -2726,7 +2726,7 @@ export class RbacAuthorizationV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1ClusterRole", "" ) as V1ClusterRole; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -2739,28 +2739,28 @@ export class RbacAuthorizationV1ApiResponseProcessor { * @params response Response returned by the server for a request to createClusterRoleBinding * @throws ApiException if the response code was not in [200, 299] */ - public async createClusterRoleBinding(response: ResponseContext): Promise { + public async createClusterRoleBindingWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1ClusterRoleBinding = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ClusterRoleBinding", "" ) as V1ClusterRoleBinding; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1ClusterRoleBinding = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ClusterRoleBinding", "" ) as V1ClusterRoleBinding; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("202", response.httpStatusCode)) { const body: V1ClusterRoleBinding = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ClusterRoleBinding", "" ) as V1ClusterRoleBinding; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -2772,7 +2772,7 @@ export class RbacAuthorizationV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1ClusterRoleBinding", "" ) as V1ClusterRoleBinding; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -2785,28 +2785,28 @@ export class RbacAuthorizationV1ApiResponseProcessor { * @params response Response returned by the server for a request to createNamespacedRole * @throws ApiException if the response code was not in [200, 299] */ - public async createNamespacedRole(response: ResponseContext): Promise { + public async createNamespacedRoleWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1Role = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Role", "" ) as V1Role; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1Role = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Role", "" ) as V1Role; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("202", response.httpStatusCode)) { const body: V1Role = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Role", "" ) as V1Role; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -2818,7 +2818,7 @@ export class RbacAuthorizationV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Role", "" ) as V1Role; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -2831,28 +2831,28 @@ export class RbacAuthorizationV1ApiResponseProcessor { * @params response Response returned by the server for a request to createNamespacedRoleBinding * @throws ApiException if the response code was not in [200, 299] */ - public async createNamespacedRoleBinding(response: ResponseContext): Promise { + public async createNamespacedRoleBindingWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1RoleBinding = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1RoleBinding", "" ) as V1RoleBinding; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1RoleBinding = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1RoleBinding", "" ) as V1RoleBinding; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("202", response.httpStatusCode)) { const body: V1RoleBinding = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1RoleBinding", "" ) as V1RoleBinding; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -2864,7 +2864,7 @@ export class RbacAuthorizationV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1RoleBinding", "" ) as V1RoleBinding; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -2877,21 +2877,21 @@ export class RbacAuthorizationV1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteClusterRole * @throws ApiException if the response code was not in [200, 299] */ - public async deleteClusterRole(response: ResponseContext): Promise { + public async deleteClusterRoleWithHttpInfo(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 body; + 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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -2903,7 +2903,7 @@ export class RbacAuthorizationV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -2916,21 +2916,21 @@ export class RbacAuthorizationV1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteClusterRoleBinding * @throws ApiException if the response code was not in [200, 299] */ - public async deleteClusterRoleBinding(response: ResponseContext): Promise { + public async deleteClusterRoleBindingWithHttpInfo(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 body; + 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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -2942,7 +2942,7 @@ export class RbacAuthorizationV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -2955,14 +2955,14 @@ export class RbacAuthorizationV1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteCollectionClusterRole * @throws ApiException if the response code was not in [200, 299] */ - public async deleteCollectionClusterRole(response: ResponseContext): Promise { + public async deleteCollectionClusterRoleWithHttpInfo(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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -2974,7 +2974,7 @@ export class RbacAuthorizationV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -2987,14 +2987,14 @@ export class RbacAuthorizationV1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteCollectionClusterRoleBinding * @throws ApiException if the response code was not in [200, 299] */ - public async deleteCollectionClusterRoleBinding(response: ResponseContext): Promise { + public async deleteCollectionClusterRoleBindingWithHttpInfo(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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -3006,7 +3006,7 @@ export class RbacAuthorizationV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -3019,14 +3019,14 @@ export class RbacAuthorizationV1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteCollectionNamespacedRole * @throws ApiException if the response code was not in [200, 299] */ - public async deleteCollectionNamespacedRole(response: ResponseContext): Promise { + public async deleteCollectionNamespacedRoleWithHttpInfo(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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -3038,7 +3038,7 @@ export class RbacAuthorizationV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -3051,14 +3051,14 @@ export class RbacAuthorizationV1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteCollectionNamespacedRoleBinding * @throws ApiException if the response code was not in [200, 299] */ - public async deleteCollectionNamespacedRoleBinding(response: ResponseContext): Promise { + public async deleteCollectionNamespacedRoleBindingWithHttpInfo(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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -3070,7 +3070,7 @@ export class RbacAuthorizationV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -3083,21 +3083,21 @@ export class RbacAuthorizationV1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteNamespacedRole * @throws ApiException if the response code was not in [200, 299] */ - public async deleteNamespacedRole(response: ResponseContext): Promise { + public async deleteNamespacedRoleWithHttpInfo(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 body; + 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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -3109,7 +3109,7 @@ export class RbacAuthorizationV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -3122,21 +3122,21 @@ export class RbacAuthorizationV1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteNamespacedRoleBinding * @throws ApiException if the response code was not in [200, 299] */ - public async deleteNamespacedRoleBinding(response: ResponseContext): Promise { + public async deleteNamespacedRoleBindingWithHttpInfo(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 body; + 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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -3148,7 +3148,7 @@ export class RbacAuthorizationV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -3161,14 +3161,14 @@ export class RbacAuthorizationV1ApiResponseProcessor { * @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 getAPIResources(response: ResponseContext): Promise { + 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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -3180,7 +3180,7 @@ export class RbacAuthorizationV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1APIResourceList", "" ) as V1APIResourceList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -3193,14 +3193,14 @@ export class RbacAuthorizationV1ApiResponseProcessor { * @params response Response returned by the server for a request to listClusterRole * @throws ApiException if the response code was not in [200, 299] */ - public async listClusterRole(response: ResponseContext): Promise { + public async listClusterRoleWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1ClusterRoleList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ClusterRoleList", "" ) as V1ClusterRoleList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -3212,7 +3212,7 @@ export class RbacAuthorizationV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1ClusterRoleList", "" ) as V1ClusterRoleList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -3225,14 +3225,14 @@ export class RbacAuthorizationV1ApiResponseProcessor { * @params response Response returned by the server for a request to listClusterRoleBinding * @throws ApiException if the response code was not in [200, 299] */ - public async listClusterRoleBinding(response: ResponseContext): Promise { + public async listClusterRoleBindingWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1ClusterRoleBindingList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ClusterRoleBindingList", "" ) as V1ClusterRoleBindingList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -3244,7 +3244,7 @@ export class RbacAuthorizationV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1ClusterRoleBindingList", "" ) as V1ClusterRoleBindingList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -3257,14 +3257,14 @@ export class RbacAuthorizationV1ApiResponseProcessor { * @params response Response returned by the server for a request to listNamespacedRole * @throws ApiException if the response code was not in [200, 299] */ - public async listNamespacedRole(response: ResponseContext): Promise { + public async listNamespacedRoleWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1RoleList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1RoleList", "" ) as V1RoleList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -3276,7 +3276,7 @@ export class RbacAuthorizationV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1RoleList", "" ) as V1RoleList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -3289,14 +3289,14 @@ export class RbacAuthorizationV1ApiResponseProcessor { * @params response Response returned by the server for a request to listNamespacedRoleBinding * @throws ApiException if the response code was not in [200, 299] */ - public async listNamespacedRoleBinding(response: ResponseContext): Promise { + public async listNamespacedRoleBindingWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1RoleBindingList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1RoleBindingList", "" ) as V1RoleBindingList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -3308,7 +3308,7 @@ export class RbacAuthorizationV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1RoleBindingList", "" ) as V1RoleBindingList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -3321,14 +3321,14 @@ export class RbacAuthorizationV1ApiResponseProcessor { * @params response Response returned by the server for a request to listRoleBindingForAllNamespaces * @throws ApiException if the response code was not in [200, 299] */ - public async listRoleBindingForAllNamespaces(response: ResponseContext): Promise { + public async listRoleBindingForAllNamespacesWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1RoleBindingList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1RoleBindingList", "" ) as V1RoleBindingList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -3340,7 +3340,7 @@ export class RbacAuthorizationV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1RoleBindingList", "" ) as V1RoleBindingList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -3353,14 +3353,14 @@ export class RbacAuthorizationV1ApiResponseProcessor { * @params response Response returned by the server for a request to listRoleForAllNamespaces * @throws ApiException if the response code was not in [200, 299] */ - public async listRoleForAllNamespaces(response: ResponseContext): Promise { + public async listRoleForAllNamespacesWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1RoleList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1RoleList", "" ) as V1RoleList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -3372,7 +3372,7 @@ export class RbacAuthorizationV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1RoleList", "" ) as V1RoleList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -3385,21 +3385,21 @@ export class RbacAuthorizationV1ApiResponseProcessor { * @params response Response returned by the server for a request to patchClusterRole * @throws ApiException if the response code was not in [200, 299] */ - public async patchClusterRole(response: ResponseContext): Promise { + public async patchClusterRoleWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1ClusterRole = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ClusterRole", "" ) as V1ClusterRole; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1ClusterRole = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ClusterRole", "" ) as V1ClusterRole; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -3411,7 +3411,7 @@ export class RbacAuthorizationV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1ClusterRole", "" ) as V1ClusterRole; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -3424,21 +3424,21 @@ export class RbacAuthorizationV1ApiResponseProcessor { * @params response Response returned by the server for a request to patchClusterRoleBinding * @throws ApiException if the response code was not in [200, 299] */ - public async patchClusterRoleBinding(response: ResponseContext): Promise { + public async patchClusterRoleBindingWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1ClusterRoleBinding = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ClusterRoleBinding", "" ) as V1ClusterRoleBinding; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1ClusterRoleBinding = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ClusterRoleBinding", "" ) as V1ClusterRoleBinding; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -3450,7 +3450,7 @@ export class RbacAuthorizationV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1ClusterRoleBinding", "" ) as V1ClusterRoleBinding; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -3463,21 +3463,21 @@ export class RbacAuthorizationV1ApiResponseProcessor { * @params response Response returned by the server for a request to patchNamespacedRole * @throws ApiException if the response code was not in [200, 299] */ - public async patchNamespacedRole(response: ResponseContext): Promise { + public async patchNamespacedRoleWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1Role = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Role", "" ) as V1Role; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1Role = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Role", "" ) as V1Role; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -3489,7 +3489,7 @@ export class RbacAuthorizationV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Role", "" ) as V1Role; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -3502,21 +3502,21 @@ export class RbacAuthorizationV1ApiResponseProcessor { * @params response Response returned by the server for a request to patchNamespacedRoleBinding * @throws ApiException if the response code was not in [200, 299] */ - public async patchNamespacedRoleBinding(response: ResponseContext): Promise { + public async patchNamespacedRoleBindingWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1RoleBinding = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1RoleBinding", "" ) as V1RoleBinding; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1RoleBinding = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1RoleBinding", "" ) as V1RoleBinding; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -3528,7 +3528,7 @@ export class RbacAuthorizationV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1RoleBinding", "" ) as V1RoleBinding; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -3541,14 +3541,14 @@ export class RbacAuthorizationV1ApiResponseProcessor { * @params response Response returned by the server for a request to readClusterRole * @throws ApiException if the response code was not in [200, 299] */ - public async readClusterRole(response: ResponseContext): Promise { + public async readClusterRoleWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1ClusterRole = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ClusterRole", "" ) as V1ClusterRole; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -3560,7 +3560,7 @@ export class RbacAuthorizationV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1ClusterRole", "" ) as V1ClusterRole; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -3573,14 +3573,14 @@ export class RbacAuthorizationV1ApiResponseProcessor { * @params response Response returned by the server for a request to readClusterRoleBinding * @throws ApiException if the response code was not in [200, 299] */ - public async readClusterRoleBinding(response: ResponseContext): Promise { + public async readClusterRoleBindingWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1ClusterRoleBinding = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ClusterRoleBinding", "" ) as V1ClusterRoleBinding; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -3592,7 +3592,7 @@ export class RbacAuthorizationV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1ClusterRoleBinding", "" ) as V1ClusterRoleBinding; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -3605,14 +3605,14 @@ export class RbacAuthorizationV1ApiResponseProcessor { * @params response Response returned by the server for a request to readNamespacedRole * @throws ApiException if the response code was not in [200, 299] */ - public async readNamespacedRole(response: ResponseContext): Promise { + public async readNamespacedRoleWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1Role = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Role", "" ) as V1Role; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -3624,7 +3624,7 @@ export class RbacAuthorizationV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Role", "" ) as V1Role; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -3637,14 +3637,14 @@ export class RbacAuthorizationV1ApiResponseProcessor { * @params response Response returned by the server for a request to readNamespacedRoleBinding * @throws ApiException if the response code was not in [200, 299] */ - public async readNamespacedRoleBinding(response: ResponseContext): Promise { + public async readNamespacedRoleBindingWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1RoleBinding = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1RoleBinding", "" ) as V1RoleBinding; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -3656,7 +3656,7 @@ export class RbacAuthorizationV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1RoleBinding", "" ) as V1RoleBinding; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -3669,21 +3669,21 @@ export class RbacAuthorizationV1ApiResponseProcessor { * @params response Response returned by the server for a request to replaceClusterRole * @throws ApiException if the response code was not in [200, 299] */ - public async replaceClusterRole(response: ResponseContext): Promise { + public async replaceClusterRoleWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1ClusterRole = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ClusterRole", "" ) as V1ClusterRole; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1ClusterRole = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ClusterRole", "" ) as V1ClusterRole; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -3695,7 +3695,7 @@ export class RbacAuthorizationV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1ClusterRole", "" ) as V1ClusterRole; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -3708,21 +3708,21 @@ export class RbacAuthorizationV1ApiResponseProcessor { * @params response Response returned by the server for a request to replaceClusterRoleBinding * @throws ApiException if the response code was not in [200, 299] */ - public async replaceClusterRoleBinding(response: ResponseContext): Promise { + public async replaceClusterRoleBindingWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1ClusterRoleBinding = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ClusterRoleBinding", "" ) as V1ClusterRoleBinding; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1ClusterRoleBinding = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1ClusterRoleBinding", "" ) as V1ClusterRoleBinding; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -3734,7 +3734,7 @@ export class RbacAuthorizationV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1ClusterRoleBinding", "" ) as V1ClusterRoleBinding; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -3747,21 +3747,21 @@ export class RbacAuthorizationV1ApiResponseProcessor { * @params response Response returned by the server for a request to replaceNamespacedRole * @throws ApiException if the response code was not in [200, 299] */ - public async replaceNamespacedRole(response: ResponseContext): Promise { + public async replaceNamespacedRoleWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1Role = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Role", "" ) as V1Role; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1Role = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1Role", "" ) as V1Role; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -3773,7 +3773,7 @@ export class RbacAuthorizationV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Role", "" ) as V1Role; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -3786,21 +3786,21 @@ export class RbacAuthorizationV1ApiResponseProcessor { * @params response Response returned by the server for a request to replaceNamespacedRoleBinding * @throws ApiException if the response code was not in [200, 299] */ - public async replaceNamespacedRoleBinding(response: ResponseContext): Promise { + public async replaceNamespacedRoleBindingWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1RoleBinding = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1RoleBinding", "" ) as V1RoleBinding; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1RoleBinding = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1RoleBinding", "" ) as V1RoleBinding; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -3812,7 +3812,7 @@ export class RbacAuthorizationV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1RoleBinding", "" ) as V1RoleBinding; - return body; + 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/RbacAuthorizationV1alpha1Api.ts b/src/gen/apis/RbacAuthorizationV1alpha1Api.ts index 0558f0acb00..a2b77d75b11 100644 --- a/src/gen/apis/RbacAuthorizationV1alpha1Api.ts +++ b/src/gen/apis/RbacAuthorizationV1alpha1Api.ts @@ -1,7 +1,7 @@ // TODO: better import syntax? import {BaseAPIRequestFactory, RequiredError, COLLECTION_FORMATS} from './baseapi'; import {Configuration} from '../configuration'; -import {RequestContext, HttpMethod, ResponseContext, HttpFile} from '../http/http'; +import {RequestContext, HttpMethod, ResponseContext, HttpFile, HttpInfo} from '../http/http'; import FormData from "form-data"; import { URLSearchParams } from 'url'; import {ObjectSerializer} from '../models/ObjectSerializer'; @@ -2693,28 +2693,28 @@ export class RbacAuthorizationV1alpha1ApiResponseProcessor { * @params response Response returned by the server for a request to createClusterRole * @throws ApiException if the response code was not in [200, 299] */ - public async createClusterRole(response: ResponseContext): Promise { + public async createClusterRoleWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1alpha1ClusterRole = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1ClusterRole", "" ) as V1alpha1ClusterRole; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1alpha1ClusterRole = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1ClusterRole", "" ) as V1alpha1ClusterRole; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("202", response.httpStatusCode)) { const body: V1alpha1ClusterRole = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1ClusterRole", "" ) as V1alpha1ClusterRole; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -2726,7 +2726,7 @@ export class RbacAuthorizationV1alpha1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1ClusterRole", "" ) as V1alpha1ClusterRole; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -2739,28 +2739,28 @@ export class RbacAuthorizationV1alpha1ApiResponseProcessor { * @params response Response returned by the server for a request to createClusterRoleBinding * @throws ApiException if the response code was not in [200, 299] */ - public async createClusterRoleBinding(response: ResponseContext): Promise { + public async createClusterRoleBindingWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1alpha1ClusterRoleBinding = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1ClusterRoleBinding", "" ) as V1alpha1ClusterRoleBinding; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1alpha1ClusterRoleBinding = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1ClusterRoleBinding", "" ) as V1alpha1ClusterRoleBinding; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("202", response.httpStatusCode)) { const body: V1alpha1ClusterRoleBinding = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1ClusterRoleBinding", "" ) as V1alpha1ClusterRoleBinding; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -2772,7 +2772,7 @@ export class RbacAuthorizationV1alpha1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1ClusterRoleBinding", "" ) as V1alpha1ClusterRoleBinding; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -2785,28 +2785,28 @@ export class RbacAuthorizationV1alpha1ApiResponseProcessor { * @params response Response returned by the server for a request to createNamespacedRole * @throws ApiException if the response code was not in [200, 299] */ - public async createNamespacedRole(response: ResponseContext): Promise { + public async createNamespacedRoleWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1alpha1Role = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1Role", "" ) as V1alpha1Role; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1alpha1Role = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1Role", "" ) as V1alpha1Role; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("202", response.httpStatusCode)) { const body: V1alpha1Role = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1Role", "" ) as V1alpha1Role; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -2818,7 +2818,7 @@ export class RbacAuthorizationV1alpha1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1Role", "" ) as V1alpha1Role; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -2831,28 +2831,28 @@ export class RbacAuthorizationV1alpha1ApiResponseProcessor { * @params response Response returned by the server for a request to createNamespacedRoleBinding * @throws ApiException if the response code was not in [200, 299] */ - public async createNamespacedRoleBinding(response: ResponseContext): Promise { + public async createNamespacedRoleBindingWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1alpha1RoleBinding = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1RoleBinding", "" ) as V1alpha1RoleBinding; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1alpha1RoleBinding = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1RoleBinding", "" ) as V1alpha1RoleBinding; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("202", response.httpStatusCode)) { const body: V1alpha1RoleBinding = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1RoleBinding", "" ) as V1alpha1RoleBinding; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -2864,7 +2864,7 @@ export class RbacAuthorizationV1alpha1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1RoleBinding", "" ) as V1alpha1RoleBinding; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -2877,21 +2877,21 @@ export class RbacAuthorizationV1alpha1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteClusterRole * @throws ApiException if the response code was not in [200, 299] */ - public async deleteClusterRole(response: ResponseContext): Promise { + public async deleteClusterRoleWithHttpInfo(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 body; + 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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -2903,7 +2903,7 @@ export class RbacAuthorizationV1alpha1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -2916,21 +2916,21 @@ export class RbacAuthorizationV1alpha1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteClusterRoleBinding * @throws ApiException if the response code was not in [200, 299] */ - public async deleteClusterRoleBinding(response: ResponseContext): Promise { + public async deleteClusterRoleBindingWithHttpInfo(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 body; + 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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -2942,7 +2942,7 @@ export class RbacAuthorizationV1alpha1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -2955,14 +2955,14 @@ export class RbacAuthorizationV1alpha1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteCollectionClusterRole * @throws ApiException if the response code was not in [200, 299] */ - public async deleteCollectionClusterRole(response: ResponseContext): Promise { + public async deleteCollectionClusterRoleWithHttpInfo(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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -2974,7 +2974,7 @@ export class RbacAuthorizationV1alpha1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -2987,14 +2987,14 @@ export class RbacAuthorizationV1alpha1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteCollectionClusterRoleBinding * @throws ApiException if the response code was not in [200, 299] */ - public async deleteCollectionClusterRoleBinding(response: ResponseContext): Promise { + public async deleteCollectionClusterRoleBindingWithHttpInfo(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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -3006,7 +3006,7 @@ export class RbacAuthorizationV1alpha1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -3019,14 +3019,14 @@ export class RbacAuthorizationV1alpha1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteCollectionNamespacedRole * @throws ApiException if the response code was not in [200, 299] */ - public async deleteCollectionNamespacedRole(response: ResponseContext): Promise { + public async deleteCollectionNamespacedRoleWithHttpInfo(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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -3038,7 +3038,7 @@ export class RbacAuthorizationV1alpha1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -3051,14 +3051,14 @@ export class RbacAuthorizationV1alpha1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteCollectionNamespacedRoleBinding * @throws ApiException if the response code was not in [200, 299] */ - public async deleteCollectionNamespacedRoleBinding(response: ResponseContext): Promise { + public async deleteCollectionNamespacedRoleBindingWithHttpInfo(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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -3070,7 +3070,7 @@ export class RbacAuthorizationV1alpha1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -3083,21 +3083,21 @@ export class RbacAuthorizationV1alpha1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteNamespacedRole * @throws ApiException if the response code was not in [200, 299] */ - public async deleteNamespacedRole(response: ResponseContext): Promise { + public async deleteNamespacedRoleWithHttpInfo(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 body; + 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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -3109,7 +3109,7 @@ export class RbacAuthorizationV1alpha1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -3122,21 +3122,21 @@ export class RbacAuthorizationV1alpha1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteNamespacedRoleBinding * @throws ApiException if the response code was not in [200, 299] */ - public async deleteNamespacedRoleBinding(response: ResponseContext): Promise { + public async deleteNamespacedRoleBindingWithHttpInfo(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 body; + 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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -3148,7 +3148,7 @@ export class RbacAuthorizationV1alpha1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -3161,14 +3161,14 @@ export class RbacAuthorizationV1alpha1ApiResponseProcessor { * @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 getAPIResources(response: ResponseContext): Promise { + 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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -3180,7 +3180,7 @@ export class RbacAuthorizationV1alpha1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1APIResourceList", "" ) as V1APIResourceList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -3193,14 +3193,14 @@ export class RbacAuthorizationV1alpha1ApiResponseProcessor { * @params response Response returned by the server for a request to listClusterRole * @throws ApiException if the response code was not in [200, 299] */ - public async listClusterRole(response: ResponseContext): Promise { + public async listClusterRoleWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1alpha1ClusterRoleList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1ClusterRoleList", "" ) as V1alpha1ClusterRoleList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -3212,7 +3212,7 @@ export class RbacAuthorizationV1alpha1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1ClusterRoleList", "" ) as V1alpha1ClusterRoleList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -3225,14 +3225,14 @@ export class RbacAuthorizationV1alpha1ApiResponseProcessor { * @params response Response returned by the server for a request to listClusterRoleBinding * @throws ApiException if the response code was not in [200, 299] */ - public async listClusterRoleBinding(response: ResponseContext): Promise { + public async listClusterRoleBindingWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1alpha1ClusterRoleBindingList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1ClusterRoleBindingList", "" ) as V1alpha1ClusterRoleBindingList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -3244,7 +3244,7 @@ export class RbacAuthorizationV1alpha1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1ClusterRoleBindingList", "" ) as V1alpha1ClusterRoleBindingList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -3257,14 +3257,14 @@ export class RbacAuthorizationV1alpha1ApiResponseProcessor { * @params response Response returned by the server for a request to listNamespacedRole * @throws ApiException if the response code was not in [200, 299] */ - public async listNamespacedRole(response: ResponseContext): Promise { + public async listNamespacedRoleWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1alpha1RoleList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1RoleList", "" ) as V1alpha1RoleList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -3276,7 +3276,7 @@ export class RbacAuthorizationV1alpha1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1RoleList", "" ) as V1alpha1RoleList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -3289,14 +3289,14 @@ export class RbacAuthorizationV1alpha1ApiResponseProcessor { * @params response Response returned by the server for a request to listNamespacedRoleBinding * @throws ApiException if the response code was not in [200, 299] */ - public async listNamespacedRoleBinding(response: ResponseContext): Promise { + public async listNamespacedRoleBindingWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1alpha1RoleBindingList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1RoleBindingList", "" ) as V1alpha1RoleBindingList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -3308,7 +3308,7 @@ export class RbacAuthorizationV1alpha1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1RoleBindingList", "" ) as V1alpha1RoleBindingList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -3321,14 +3321,14 @@ export class RbacAuthorizationV1alpha1ApiResponseProcessor { * @params response Response returned by the server for a request to listRoleBindingForAllNamespaces * @throws ApiException if the response code was not in [200, 299] */ - public async listRoleBindingForAllNamespaces(response: ResponseContext): Promise { + public async listRoleBindingForAllNamespacesWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1alpha1RoleBindingList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1RoleBindingList", "" ) as V1alpha1RoleBindingList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -3340,7 +3340,7 @@ export class RbacAuthorizationV1alpha1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1RoleBindingList", "" ) as V1alpha1RoleBindingList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -3353,14 +3353,14 @@ export class RbacAuthorizationV1alpha1ApiResponseProcessor { * @params response Response returned by the server for a request to listRoleForAllNamespaces * @throws ApiException if the response code was not in [200, 299] */ - public async listRoleForAllNamespaces(response: ResponseContext): Promise { + public async listRoleForAllNamespacesWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1alpha1RoleList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1RoleList", "" ) as V1alpha1RoleList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -3372,7 +3372,7 @@ export class RbacAuthorizationV1alpha1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1RoleList", "" ) as V1alpha1RoleList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -3385,21 +3385,21 @@ export class RbacAuthorizationV1alpha1ApiResponseProcessor { * @params response Response returned by the server for a request to patchClusterRole * @throws ApiException if the response code was not in [200, 299] */ - public async patchClusterRole(response: ResponseContext): Promise { + public async patchClusterRoleWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1alpha1ClusterRole = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1ClusterRole", "" ) as V1alpha1ClusterRole; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1alpha1ClusterRole = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1ClusterRole", "" ) as V1alpha1ClusterRole; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -3411,7 +3411,7 @@ export class RbacAuthorizationV1alpha1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1ClusterRole", "" ) as V1alpha1ClusterRole; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -3424,21 +3424,21 @@ export class RbacAuthorizationV1alpha1ApiResponseProcessor { * @params response Response returned by the server for a request to patchClusterRoleBinding * @throws ApiException if the response code was not in [200, 299] */ - public async patchClusterRoleBinding(response: ResponseContext): Promise { + public async patchClusterRoleBindingWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1alpha1ClusterRoleBinding = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1ClusterRoleBinding", "" ) as V1alpha1ClusterRoleBinding; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1alpha1ClusterRoleBinding = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1ClusterRoleBinding", "" ) as V1alpha1ClusterRoleBinding; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -3450,7 +3450,7 @@ export class RbacAuthorizationV1alpha1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1ClusterRoleBinding", "" ) as V1alpha1ClusterRoleBinding; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -3463,21 +3463,21 @@ export class RbacAuthorizationV1alpha1ApiResponseProcessor { * @params response Response returned by the server for a request to patchNamespacedRole * @throws ApiException if the response code was not in [200, 299] */ - public async patchNamespacedRole(response: ResponseContext): Promise { + public async patchNamespacedRoleWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1alpha1Role = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1Role", "" ) as V1alpha1Role; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1alpha1Role = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1Role", "" ) as V1alpha1Role; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -3489,7 +3489,7 @@ export class RbacAuthorizationV1alpha1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1Role", "" ) as V1alpha1Role; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -3502,21 +3502,21 @@ export class RbacAuthorizationV1alpha1ApiResponseProcessor { * @params response Response returned by the server for a request to patchNamespacedRoleBinding * @throws ApiException if the response code was not in [200, 299] */ - public async patchNamespacedRoleBinding(response: ResponseContext): Promise { + public async patchNamespacedRoleBindingWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1alpha1RoleBinding = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1RoleBinding", "" ) as V1alpha1RoleBinding; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1alpha1RoleBinding = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1RoleBinding", "" ) as V1alpha1RoleBinding; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -3528,7 +3528,7 @@ export class RbacAuthorizationV1alpha1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1RoleBinding", "" ) as V1alpha1RoleBinding; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -3541,14 +3541,14 @@ export class RbacAuthorizationV1alpha1ApiResponseProcessor { * @params response Response returned by the server for a request to readClusterRole * @throws ApiException if the response code was not in [200, 299] */ - public async readClusterRole(response: ResponseContext): Promise { + public async readClusterRoleWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1alpha1ClusterRole = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1ClusterRole", "" ) as V1alpha1ClusterRole; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -3560,7 +3560,7 @@ export class RbacAuthorizationV1alpha1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1ClusterRole", "" ) as V1alpha1ClusterRole; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -3573,14 +3573,14 @@ export class RbacAuthorizationV1alpha1ApiResponseProcessor { * @params response Response returned by the server for a request to readClusterRoleBinding * @throws ApiException if the response code was not in [200, 299] */ - public async readClusterRoleBinding(response: ResponseContext): Promise { + public async readClusterRoleBindingWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1alpha1ClusterRoleBinding = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1ClusterRoleBinding", "" ) as V1alpha1ClusterRoleBinding; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -3592,7 +3592,7 @@ export class RbacAuthorizationV1alpha1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1ClusterRoleBinding", "" ) as V1alpha1ClusterRoleBinding; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -3605,14 +3605,14 @@ export class RbacAuthorizationV1alpha1ApiResponseProcessor { * @params response Response returned by the server for a request to readNamespacedRole * @throws ApiException if the response code was not in [200, 299] */ - public async readNamespacedRole(response: ResponseContext): Promise { + public async readNamespacedRoleWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1alpha1Role = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1Role", "" ) as V1alpha1Role; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -3624,7 +3624,7 @@ export class RbacAuthorizationV1alpha1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1Role", "" ) as V1alpha1Role; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -3637,14 +3637,14 @@ export class RbacAuthorizationV1alpha1ApiResponseProcessor { * @params response Response returned by the server for a request to readNamespacedRoleBinding * @throws ApiException if the response code was not in [200, 299] */ - public async readNamespacedRoleBinding(response: ResponseContext): Promise { + public async readNamespacedRoleBindingWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1alpha1RoleBinding = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1RoleBinding", "" ) as V1alpha1RoleBinding; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -3656,7 +3656,7 @@ export class RbacAuthorizationV1alpha1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1RoleBinding", "" ) as V1alpha1RoleBinding; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -3669,21 +3669,21 @@ export class RbacAuthorizationV1alpha1ApiResponseProcessor { * @params response Response returned by the server for a request to replaceClusterRole * @throws ApiException if the response code was not in [200, 299] */ - public async replaceClusterRole(response: ResponseContext): Promise { + public async replaceClusterRoleWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1alpha1ClusterRole = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1ClusterRole", "" ) as V1alpha1ClusterRole; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1alpha1ClusterRole = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1ClusterRole", "" ) as V1alpha1ClusterRole; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -3695,7 +3695,7 @@ export class RbacAuthorizationV1alpha1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1ClusterRole", "" ) as V1alpha1ClusterRole; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -3708,21 +3708,21 @@ export class RbacAuthorizationV1alpha1ApiResponseProcessor { * @params response Response returned by the server for a request to replaceClusterRoleBinding * @throws ApiException if the response code was not in [200, 299] */ - public async replaceClusterRoleBinding(response: ResponseContext): Promise { + public async replaceClusterRoleBindingWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1alpha1ClusterRoleBinding = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1ClusterRoleBinding", "" ) as V1alpha1ClusterRoleBinding; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1alpha1ClusterRoleBinding = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1ClusterRoleBinding", "" ) as V1alpha1ClusterRoleBinding; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -3734,7 +3734,7 @@ export class RbacAuthorizationV1alpha1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1ClusterRoleBinding", "" ) as V1alpha1ClusterRoleBinding; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -3747,21 +3747,21 @@ export class RbacAuthorizationV1alpha1ApiResponseProcessor { * @params response Response returned by the server for a request to replaceNamespacedRole * @throws ApiException if the response code was not in [200, 299] */ - public async replaceNamespacedRole(response: ResponseContext): Promise { + public async replaceNamespacedRoleWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1alpha1Role = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1Role", "" ) as V1alpha1Role; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1alpha1Role = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1Role", "" ) as V1alpha1Role; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -3773,7 +3773,7 @@ export class RbacAuthorizationV1alpha1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1Role", "" ) as V1alpha1Role; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -3786,21 +3786,21 @@ export class RbacAuthorizationV1alpha1ApiResponseProcessor { * @params response Response returned by the server for a request to replaceNamespacedRoleBinding * @throws ApiException if the response code was not in [200, 299] */ - public async replaceNamespacedRoleBinding(response: ResponseContext): Promise { + public async replaceNamespacedRoleBindingWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1alpha1RoleBinding = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1RoleBinding", "" ) as V1alpha1RoleBinding; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1alpha1RoleBinding = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1RoleBinding", "" ) as V1alpha1RoleBinding; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -3812,7 +3812,7 @@ export class RbacAuthorizationV1alpha1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1RoleBinding", "" ) as V1alpha1RoleBinding; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); diff --git a/src/gen/apis/SchedulingApi.ts b/src/gen/apis/SchedulingApi.ts index e9783973dee..0f9be81d7c3 100644 --- a/src/gen/apis/SchedulingApi.ts +++ b/src/gen/apis/SchedulingApi.ts @@ -1,7 +1,7 @@ // TODO: better import syntax? import {BaseAPIRequestFactory, RequiredError, COLLECTION_FORMATS} from './baseapi'; import {Configuration} from '../configuration'; -import {RequestContext, HttpMethod, ResponseContext, HttpFile} from '../http/http'; +import {RequestContext, HttpMethod, ResponseContext, HttpFile, HttpInfo} from '../http/http'; import FormData from "form-data"; import { URLSearchParams } from 'url'; import {ObjectSerializer} from '../models/ObjectSerializer'; @@ -57,14 +57,14 @@ export class SchedulingApiResponseProcessor { * @params response Response returned by the server for a request to getAPIGroup * @throws ApiException if the response code was not in [200, 299] */ - public async getAPIGroup(response: ResponseContext): Promise { + public async getAPIGroupWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1APIGroup = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1APIGroup", "" ) as V1APIGroup; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -76,7 +76,7 @@ export class SchedulingApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1APIGroup", "" ) as V1APIGroup; - return body; + 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/SchedulingV1Api.ts b/src/gen/apis/SchedulingV1Api.ts index 3bcc222229f..14225879b9c 100644 --- a/src/gen/apis/SchedulingV1Api.ts +++ b/src/gen/apis/SchedulingV1Api.ts @@ -1,7 +1,7 @@ // TODO: better import syntax? import {BaseAPIRequestFactory, RequiredError, COLLECTION_FORMATS} from './baseapi'; import {Configuration} from '../configuration'; -import {RequestContext, HttpMethod, ResponseContext, HttpFile} from '../http/http'; +import {RequestContext, HttpMethod, ResponseContext, HttpFile, HttpInfo} from '../http/http'; import FormData from "form-data"; import { URLSearchParams } from 'url'; import {ObjectSerializer} from '../models/ObjectSerializer'; @@ -640,28 +640,28 @@ export class SchedulingV1ApiResponseProcessor { * @params response Response returned by the server for a request to createPriorityClass * @throws ApiException if the response code was not in [200, 299] */ - public async createPriorityClass(response: ResponseContext): Promise { + public async createPriorityClassWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1PriorityClass = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1PriorityClass", "" ) as V1PriorityClass; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1PriorityClass = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1PriorityClass", "" ) as V1PriorityClass; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("202", response.httpStatusCode)) { const body: V1PriorityClass = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1PriorityClass", "" ) as V1PriorityClass; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -673,7 +673,7 @@ export class SchedulingV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1PriorityClass", "" ) as V1PriorityClass; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -686,14 +686,14 @@ export class SchedulingV1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteCollectionPriorityClass * @throws ApiException if the response code was not in [200, 299] */ - public async deleteCollectionPriorityClass(response: ResponseContext): Promise { + public async deleteCollectionPriorityClassWithHttpInfo(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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -705,7 +705,7 @@ export class SchedulingV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -718,21 +718,21 @@ export class SchedulingV1ApiResponseProcessor { * @params response Response returned by the server for a request to deletePriorityClass * @throws ApiException if the response code was not in [200, 299] */ - public async deletePriorityClass(response: ResponseContext): Promise { + public async deletePriorityClassWithHttpInfo(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 body; + 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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -744,7 +744,7 @@ export class SchedulingV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -757,14 +757,14 @@ export class SchedulingV1ApiResponseProcessor { * @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 getAPIResources(response: ResponseContext): Promise { + 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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -776,7 +776,7 @@ export class SchedulingV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1APIResourceList", "" ) as V1APIResourceList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -789,14 +789,14 @@ export class SchedulingV1ApiResponseProcessor { * @params response Response returned by the server for a request to listPriorityClass * @throws ApiException if the response code was not in [200, 299] */ - public async listPriorityClass(response: ResponseContext): Promise { + public async listPriorityClassWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1PriorityClassList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1PriorityClassList", "" ) as V1PriorityClassList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -808,7 +808,7 @@ export class SchedulingV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1PriorityClassList", "" ) as V1PriorityClassList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -821,21 +821,21 @@ export class SchedulingV1ApiResponseProcessor { * @params response Response returned by the server for a request to patchPriorityClass * @throws ApiException if the response code was not in [200, 299] */ - public async patchPriorityClass(response: ResponseContext): Promise { + public async patchPriorityClassWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1PriorityClass = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1PriorityClass", "" ) as V1PriorityClass; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1PriorityClass = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1PriorityClass", "" ) as V1PriorityClass; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -847,7 +847,7 @@ export class SchedulingV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1PriorityClass", "" ) as V1PriorityClass; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -860,14 +860,14 @@ export class SchedulingV1ApiResponseProcessor { * @params response Response returned by the server for a request to readPriorityClass * @throws ApiException if the response code was not in [200, 299] */ - public async readPriorityClass(response: ResponseContext): Promise { + public async readPriorityClassWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1PriorityClass = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1PriorityClass", "" ) as V1PriorityClass; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -879,7 +879,7 @@ export class SchedulingV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1PriorityClass", "" ) as V1PriorityClass; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -892,21 +892,21 @@ export class SchedulingV1ApiResponseProcessor { * @params response Response returned by the server for a request to replacePriorityClass * @throws ApiException if the response code was not in [200, 299] */ - public async replacePriorityClass(response: ResponseContext): Promise { + public async replacePriorityClassWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1PriorityClass = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1PriorityClass", "" ) as V1PriorityClass; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1PriorityClass = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1PriorityClass", "" ) as V1PriorityClass; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -918,7 +918,7 @@ export class SchedulingV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1PriorityClass", "" ) as V1PriorityClass; - return body; + 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/SchedulingV1alpha1Api.ts b/src/gen/apis/SchedulingV1alpha1Api.ts index dd6e1d35af2..12dba510d66 100644 --- a/src/gen/apis/SchedulingV1alpha1Api.ts +++ b/src/gen/apis/SchedulingV1alpha1Api.ts @@ -1,7 +1,7 @@ // TODO: better import syntax? import {BaseAPIRequestFactory, RequiredError, COLLECTION_FORMATS} from './baseapi'; import {Configuration} from '../configuration'; -import {RequestContext, HttpMethod, ResponseContext, HttpFile} from '../http/http'; +import {RequestContext, HttpMethod, ResponseContext, HttpFile, HttpInfo} from '../http/http'; import FormData from "form-data"; import { URLSearchParams } from 'url'; import {ObjectSerializer} from '../models/ObjectSerializer'; @@ -640,28 +640,28 @@ export class SchedulingV1alpha1ApiResponseProcessor { * @params response Response returned by the server for a request to createPriorityClass * @throws ApiException if the response code was not in [200, 299] */ - public async createPriorityClass(response: ResponseContext): Promise { + public async createPriorityClassWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1alpha1PriorityClass = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1PriorityClass", "" ) as V1alpha1PriorityClass; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1alpha1PriorityClass = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1PriorityClass", "" ) as V1alpha1PriorityClass; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("202", response.httpStatusCode)) { const body: V1alpha1PriorityClass = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1PriorityClass", "" ) as V1alpha1PriorityClass; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -673,7 +673,7 @@ export class SchedulingV1alpha1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1PriorityClass", "" ) as V1alpha1PriorityClass; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -686,14 +686,14 @@ export class SchedulingV1alpha1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteCollectionPriorityClass * @throws ApiException if the response code was not in [200, 299] */ - public async deleteCollectionPriorityClass(response: ResponseContext): Promise { + public async deleteCollectionPriorityClassWithHttpInfo(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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -705,7 +705,7 @@ export class SchedulingV1alpha1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -718,21 +718,21 @@ export class SchedulingV1alpha1ApiResponseProcessor { * @params response Response returned by the server for a request to deletePriorityClass * @throws ApiException if the response code was not in [200, 299] */ - public async deletePriorityClass(response: ResponseContext): Promise { + public async deletePriorityClassWithHttpInfo(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 body; + 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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -744,7 +744,7 @@ export class SchedulingV1alpha1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -757,14 +757,14 @@ export class SchedulingV1alpha1ApiResponseProcessor { * @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 getAPIResources(response: ResponseContext): Promise { + 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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -776,7 +776,7 @@ export class SchedulingV1alpha1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1APIResourceList", "" ) as V1APIResourceList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -789,14 +789,14 @@ export class SchedulingV1alpha1ApiResponseProcessor { * @params response Response returned by the server for a request to listPriorityClass * @throws ApiException if the response code was not in [200, 299] */ - public async listPriorityClass(response: ResponseContext): Promise { + public async listPriorityClassWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1alpha1PriorityClassList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1PriorityClassList", "" ) as V1alpha1PriorityClassList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -808,7 +808,7 @@ export class SchedulingV1alpha1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1PriorityClassList", "" ) as V1alpha1PriorityClassList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -821,21 +821,21 @@ export class SchedulingV1alpha1ApiResponseProcessor { * @params response Response returned by the server for a request to patchPriorityClass * @throws ApiException if the response code was not in [200, 299] */ - public async patchPriorityClass(response: ResponseContext): Promise { + public async patchPriorityClassWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1alpha1PriorityClass = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1PriorityClass", "" ) as V1alpha1PriorityClass; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1alpha1PriorityClass = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1PriorityClass", "" ) as V1alpha1PriorityClass; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -847,7 +847,7 @@ export class SchedulingV1alpha1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1PriorityClass", "" ) as V1alpha1PriorityClass; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -860,14 +860,14 @@ export class SchedulingV1alpha1ApiResponseProcessor { * @params response Response returned by the server for a request to readPriorityClass * @throws ApiException if the response code was not in [200, 299] */ - public async readPriorityClass(response: ResponseContext): Promise { + public async readPriorityClassWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1alpha1PriorityClass = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1PriorityClass", "" ) as V1alpha1PriorityClass; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -879,7 +879,7 @@ export class SchedulingV1alpha1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1PriorityClass", "" ) as V1alpha1PriorityClass; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -892,21 +892,21 @@ export class SchedulingV1alpha1ApiResponseProcessor { * @params response Response returned by the server for a request to replacePriorityClass * @throws ApiException if the response code was not in [200, 299] */ - public async replacePriorityClass(response: ResponseContext): Promise { + public async replacePriorityClassWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1alpha1PriorityClass = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1PriorityClass", "" ) as V1alpha1PriorityClass; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1alpha1PriorityClass = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1PriorityClass", "" ) as V1alpha1PriorityClass; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -918,7 +918,7 @@ export class SchedulingV1alpha1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1PriorityClass", "" ) as V1alpha1PriorityClass; - return body; + 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/StorageApi.ts b/src/gen/apis/StorageApi.ts index f0a362e905b..9aac881c055 100644 --- a/src/gen/apis/StorageApi.ts +++ b/src/gen/apis/StorageApi.ts @@ -1,7 +1,7 @@ // TODO: better import syntax? import {BaseAPIRequestFactory, RequiredError, COLLECTION_FORMATS} from './baseapi'; import {Configuration} from '../configuration'; -import {RequestContext, HttpMethod, ResponseContext, HttpFile} from '../http/http'; +import {RequestContext, HttpMethod, ResponseContext, HttpFile, HttpInfo} from '../http/http'; import FormData from "form-data"; import { URLSearchParams } from 'url'; import {ObjectSerializer} from '../models/ObjectSerializer'; @@ -57,14 +57,14 @@ export class StorageApiResponseProcessor { * @params response Response returned by the server for a request to getAPIGroup * @throws ApiException if the response code was not in [200, 299] */ - public async getAPIGroup(response: ResponseContext): Promise { + public async getAPIGroupWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1APIGroup = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1APIGroup", "" ) as V1APIGroup; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -76,7 +76,7 @@ export class StorageApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1APIGroup", "" ) as V1APIGroup; - return body; + 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/StorageV1Api.ts b/src/gen/apis/StorageV1Api.ts index 9339054954b..8ed541af7c6 100644 --- a/src/gen/apis/StorageV1Api.ts +++ b/src/gen/apis/StorageV1Api.ts @@ -1,7 +1,7 @@ // TODO: better import syntax? import {BaseAPIRequestFactory, RequiredError, COLLECTION_FORMATS} from './baseapi'; import {Configuration} from '../configuration'; -import {RequestContext, HttpMethod, ResponseContext, HttpFile} from '../http/http'; +import {RequestContext, HttpMethod, ResponseContext, HttpFile, HttpInfo} from '../http/http'; import FormData from "form-data"; import { URLSearchParams } from 'url'; import {ObjectSerializer} from '../models/ObjectSerializer'; @@ -2590,28 +2590,28 @@ export class StorageV1ApiResponseProcessor { * @params response Response returned by the server for a request to createCSIDriver * @throws ApiException if the response code was not in [200, 299] */ - public async createCSIDriver(response: ResponseContext): Promise { + public async createCSIDriverWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1CSIDriver = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1CSIDriver", "" ) as V1CSIDriver; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1CSIDriver = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1CSIDriver", "" ) as V1CSIDriver; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("202", response.httpStatusCode)) { const body: V1CSIDriver = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1CSIDriver", "" ) as V1CSIDriver; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -2623,7 +2623,7 @@ export class StorageV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1CSIDriver", "" ) as V1CSIDriver; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -2636,28 +2636,28 @@ export class StorageV1ApiResponseProcessor { * @params response Response returned by the server for a request to createCSINode * @throws ApiException if the response code was not in [200, 299] */ - public async createCSINode(response: ResponseContext): Promise { + public async createCSINodeWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1CSINode = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1CSINode", "" ) as V1CSINode; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1CSINode = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1CSINode", "" ) as V1CSINode; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("202", response.httpStatusCode)) { const body: V1CSINode = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1CSINode", "" ) as V1CSINode; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -2669,7 +2669,7 @@ export class StorageV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1CSINode", "" ) as V1CSINode; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -2682,28 +2682,28 @@ export class StorageV1ApiResponseProcessor { * @params response Response returned by the server for a request to createStorageClass * @throws ApiException if the response code was not in [200, 299] */ - public async createStorageClass(response: ResponseContext): Promise { + public async createStorageClassWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1StorageClass = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1StorageClass", "" ) as V1StorageClass; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1StorageClass = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1StorageClass", "" ) as V1StorageClass; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("202", response.httpStatusCode)) { const body: V1StorageClass = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1StorageClass", "" ) as V1StorageClass; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -2715,7 +2715,7 @@ export class StorageV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1StorageClass", "" ) as V1StorageClass; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -2728,28 +2728,28 @@ export class StorageV1ApiResponseProcessor { * @params response Response returned by the server for a request to createVolumeAttachment * @throws ApiException if the response code was not in [200, 299] */ - public async createVolumeAttachment(response: ResponseContext): Promise { + public async createVolumeAttachmentWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1VolumeAttachment = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1VolumeAttachment", "" ) as V1VolumeAttachment; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1VolumeAttachment = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1VolumeAttachment", "" ) as V1VolumeAttachment; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("202", response.httpStatusCode)) { const body: V1VolumeAttachment = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1VolumeAttachment", "" ) as V1VolumeAttachment; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -2761,7 +2761,7 @@ export class StorageV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1VolumeAttachment", "" ) as V1VolumeAttachment; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -2774,21 +2774,21 @@ export class StorageV1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteCSIDriver * @throws ApiException if the response code was not in [200, 299] */ - public async deleteCSIDriver(response: ResponseContext): Promise { + public async deleteCSIDriverWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1CSIDriver = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1CSIDriver", "" ) as V1CSIDriver; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("202", response.httpStatusCode)) { const body: V1CSIDriver = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1CSIDriver", "" ) as V1CSIDriver; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -2800,7 +2800,7 @@ export class StorageV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1CSIDriver", "" ) as V1CSIDriver; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -2813,21 +2813,21 @@ export class StorageV1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteCSINode * @throws ApiException if the response code was not in [200, 299] */ - public async deleteCSINode(response: ResponseContext): Promise { + public async deleteCSINodeWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1CSINode = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1CSINode", "" ) as V1CSINode; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("202", response.httpStatusCode)) { const body: V1CSINode = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1CSINode", "" ) as V1CSINode; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -2839,7 +2839,7 @@ export class StorageV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1CSINode", "" ) as V1CSINode; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -2852,14 +2852,14 @@ export class StorageV1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteCollectionCSIDriver * @throws ApiException if the response code was not in [200, 299] */ - public async deleteCollectionCSIDriver(response: ResponseContext): Promise { + public async deleteCollectionCSIDriverWithHttpInfo(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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -2871,7 +2871,7 @@ export class StorageV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -2884,14 +2884,14 @@ export class StorageV1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteCollectionCSINode * @throws ApiException if the response code was not in [200, 299] */ - public async deleteCollectionCSINode(response: ResponseContext): Promise { + public async deleteCollectionCSINodeWithHttpInfo(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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -2903,7 +2903,7 @@ export class StorageV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -2916,14 +2916,14 @@ export class StorageV1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteCollectionStorageClass * @throws ApiException if the response code was not in [200, 299] */ - public async deleteCollectionStorageClass(response: ResponseContext): Promise { + public async deleteCollectionStorageClassWithHttpInfo(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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -2935,7 +2935,7 @@ export class StorageV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -2948,14 +2948,14 @@ export class StorageV1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteCollectionVolumeAttachment * @throws ApiException if the response code was not in [200, 299] */ - public async deleteCollectionVolumeAttachment(response: ResponseContext): Promise { + public async deleteCollectionVolumeAttachmentWithHttpInfo(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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -2967,7 +2967,7 @@ export class StorageV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -2980,21 +2980,21 @@ export class StorageV1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteStorageClass * @throws ApiException if the response code was not in [200, 299] */ - public async deleteStorageClass(response: ResponseContext): Promise { + public async deleteStorageClassWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1StorageClass = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1StorageClass", "" ) as V1StorageClass; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("202", response.httpStatusCode)) { const body: V1StorageClass = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1StorageClass", "" ) as V1StorageClass; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -3006,7 +3006,7 @@ export class StorageV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1StorageClass", "" ) as V1StorageClass; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -3019,21 +3019,21 @@ export class StorageV1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteVolumeAttachment * @throws ApiException if the response code was not in [200, 299] */ - public async deleteVolumeAttachment(response: ResponseContext): Promise { + public async deleteVolumeAttachmentWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1VolumeAttachment = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1VolumeAttachment", "" ) as V1VolumeAttachment; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("202", response.httpStatusCode)) { const body: V1VolumeAttachment = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1VolumeAttachment", "" ) as V1VolumeAttachment; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -3045,7 +3045,7 @@ export class StorageV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1VolumeAttachment", "" ) as V1VolumeAttachment; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -3058,14 +3058,14 @@ export class StorageV1ApiResponseProcessor { * @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 getAPIResources(response: ResponseContext): Promise { + 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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -3077,7 +3077,7 @@ export class StorageV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1APIResourceList", "" ) as V1APIResourceList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -3090,14 +3090,14 @@ export class StorageV1ApiResponseProcessor { * @params response Response returned by the server for a request to listCSIDriver * @throws ApiException if the response code was not in [200, 299] */ - public async listCSIDriver(response: ResponseContext): Promise { + public async listCSIDriverWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1CSIDriverList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1CSIDriverList", "" ) as V1CSIDriverList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -3109,7 +3109,7 @@ export class StorageV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1CSIDriverList", "" ) as V1CSIDriverList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -3122,14 +3122,14 @@ export class StorageV1ApiResponseProcessor { * @params response Response returned by the server for a request to listCSINode * @throws ApiException if the response code was not in [200, 299] */ - public async listCSINode(response: ResponseContext): Promise { + public async listCSINodeWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1CSINodeList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1CSINodeList", "" ) as V1CSINodeList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -3141,7 +3141,7 @@ export class StorageV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1CSINodeList", "" ) as V1CSINodeList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -3154,14 +3154,14 @@ export class StorageV1ApiResponseProcessor { * @params response Response returned by the server for a request to listStorageClass * @throws ApiException if the response code was not in [200, 299] */ - public async listStorageClass(response: ResponseContext): Promise { + public async listStorageClassWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1StorageClassList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1StorageClassList", "" ) as V1StorageClassList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -3173,7 +3173,7 @@ export class StorageV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1StorageClassList", "" ) as V1StorageClassList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -3186,14 +3186,14 @@ export class StorageV1ApiResponseProcessor { * @params response Response returned by the server for a request to listVolumeAttachment * @throws ApiException if the response code was not in [200, 299] */ - public async listVolumeAttachment(response: ResponseContext): Promise { + public async listVolumeAttachmentWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1VolumeAttachmentList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1VolumeAttachmentList", "" ) as V1VolumeAttachmentList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -3205,7 +3205,7 @@ export class StorageV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1VolumeAttachmentList", "" ) as V1VolumeAttachmentList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -3218,21 +3218,21 @@ export class StorageV1ApiResponseProcessor { * @params response Response returned by the server for a request to patchCSIDriver * @throws ApiException if the response code was not in [200, 299] */ - public async patchCSIDriver(response: ResponseContext): Promise { + public async patchCSIDriverWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1CSIDriver = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1CSIDriver", "" ) as V1CSIDriver; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1CSIDriver = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1CSIDriver", "" ) as V1CSIDriver; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -3244,7 +3244,7 @@ export class StorageV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1CSIDriver", "" ) as V1CSIDriver; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -3257,21 +3257,21 @@ export class StorageV1ApiResponseProcessor { * @params response Response returned by the server for a request to patchCSINode * @throws ApiException if the response code was not in [200, 299] */ - public async patchCSINode(response: ResponseContext): Promise { + public async patchCSINodeWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1CSINode = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1CSINode", "" ) as V1CSINode; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1CSINode = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1CSINode", "" ) as V1CSINode; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -3283,7 +3283,7 @@ export class StorageV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1CSINode", "" ) as V1CSINode; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -3296,21 +3296,21 @@ export class StorageV1ApiResponseProcessor { * @params response Response returned by the server for a request to patchStorageClass * @throws ApiException if the response code was not in [200, 299] */ - public async patchStorageClass(response: ResponseContext): Promise { + public async patchStorageClassWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1StorageClass = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1StorageClass", "" ) as V1StorageClass; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1StorageClass = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1StorageClass", "" ) as V1StorageClass; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -3322,7 +3322,7 @@ export class StorageV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1StorageClass", "" ) as V1StorageClass; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -3335,21 +3335,21 @@ export class StorageV1ApiResponseProcessor { * @params response Response returned by the server for a request to patchVolumeAttachment * @throws ApiException if the response code was not in [200, 299] */ - public async patchVolumeAttachment(response: ResponseContext): Promise { + public async patchVolumeAttachmentWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1VolumeAttachment = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1VolumeAttachment", "" ) as V1VolumeAttachment; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1VolumeAttachment = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1VolumeAttachment", "" ) as V1VolumeAttachment; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -3361,7 +3361,7 @@ export class StorageV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1VolumeAttachment", "" ) as V1VolumeAttachment; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -3374,21 +3374,21 @@ export class StorageV1ApiResponseProcessor { * @params response Response returned by the server for a request to patchVolumeAttachmentStatus * @throws ApiException if the response code was not in [200, 299] */ - public async patchVolumeAttachmentStatus(response: ResponseContext): Promise { + public async patchVolumeAttachmentStatusWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1VolumeAttachment = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1VolumeAttachment", "" ) as V1VolumeAttachment; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1VolumeAttachment = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1VolumeAttachment", "" ) as V1VolumeAttachment; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -3400,7 +3400,7 @@ export class StorageV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1VolumeAttachment", "" ) as V1VolumeAttachment; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -3413,14 +3413,14 @@ export class StorageV1ApiResponseProcessor { * @params response Response returned by the server for a request to readCSIDriver * @throws ApiException if the response code was not in [200, 299] */ - public async readCSIDriver(response: ResponseContext): Promise { + public async readCSIDriverWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1CSIDriver = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1CSIDriver", "" ) as V1CSIDriver; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -3432,7 +3432,7 @@ export class StorageV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1CSIDriver", "" ) as V1CSIDriver; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -3445,14 +3445,14 @@ export class StorageV1ApiResponseProcessor { * @params response Response returned by the server for a request to readCSINode * @throws ApiException if the response code was not in [200, 299] */ - public async readCSINode(response: ResponseContext): Promise { + public async readCSINodeWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1CSINode = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1CSINode", "" ) as V1CSINode; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -3464,7 +3464,7 @@ export class StorageV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1CSINode", "" ) as V1CSINode; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -3477,14 +3477,14 @@ export class StorageV1ApiResponseProcessor { * @params response Response returned by the server for a request to readStorageClass * @throws ApiException if the response code was not in [200, 299] */ - public async readStorageClass(response: ResponseContext): Promise { + public async readStorageClassWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1StorageClass = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1StorageClass", "" ) as V1StorageClass; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -3496,7 +3496,7 @@ export class StorageV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1StorageClass", "" ) as V1StorageClass; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -3509,14 +3509,14 @@ export class StorageV1ApiResponseProcessor { * @params response Response returned by the server for a request to readVolumeAttachment * @throws ApiException if the response code was not in [200, 299] */ - public async readVolumeAttachment(response: ResponseContext): Promise { + public async readVolumeAttachmentWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1VolumeAttachment = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1VolumeAttachment", "" ) as V1VolumeAttachment; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -3528,7 +3528,7 @@ export class StorageV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1VolumeAttachment", "" ) as V1VolumeAttachment; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -3541,14 +3541,14 @@ export class StorageV1ApiResponseProcessor { * @params response Response returned by the server for a request to readVolumeAttachmentStatus * @throws ApiException if the response code was not in [200, 299] */ - public async readVolumeAttachmentStatus(response: ResponseContext): Promise { + public async readVolumeAttachmentStatusWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1VolumeAttachment = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1VolumeAttachment", "" ) as V1VolumeAttachment; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -3560,7 +3560,7 @@ export class StorageV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1VolumeAttachment", "" ) as V1VolumeAttachment; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -3573,21 +3573,21 @@ export class StorageV1ApiResponseProcessor { * @params response Response returned by the server for a request to replaceCSIDriver * @throws ApiException if the response code was not in [200, 299] */ - public async replaceCSIDriver(response: ResponseContext): Promise { + public async replaceCSIDriverWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1CSIDriver = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1CSIDriver", "" ) as V1CSIDriver; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1CSIDriver = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1CSIDriver", "" ) as V1CSIDriver; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -3599,7 +3599,7 @@ export class StorageV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1CSIDriver", "" ) as V1CSIDriver; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -3612,21 +3612,21 @@ export class StorageV1ApiResponseProcessor { * @params response Response returned by the server for a request to replaceCSINode * @throws ApiException if the response code was not in [200, 299] */ - public async replaceCSINode(response: ResponseContext): Promise { + public async replaceCSINodeWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1CSINode = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1CSINode", "" ) as V1CSINode; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1CSINode = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1CSINode", "" ) as V1CSINode; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -3638,7 +3638,7 @@ export class StorageV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1CSINode", "" ) as V1CSINode; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -3651,21 +3651,21 @@ export class StorageV1ApiResponseProcessor { * @params response Response returned by the server for a request to replaceStorageClass * @throws ApiException if the response code was not in [200, 299] */ - public async replaceStorageClass(response: ResponseContext): Promise { + public async replaceStorageClassWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1StorageClass = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1StorageClass", "" ) as V1StorageClass; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1StorageClass = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1StorageClass", "" ) as V1StorageClass; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -3677,7 +3677,7 @@ export class StorageV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1StorageClass", "" ) as V1StorageClass; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -3690,21 +3690,21 @@ export class StorageV1ApiResponseProcessor { * @params response Response returned by the server for a request to replaceVolumeAttachment * @throws ApiException if the response code was not in [200, 299] */ - public async replaceVolumeAttachment(response: ResponseContext): Promise { + public async replaceVolumeAttachmentWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1VolumeAttachment = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1VolumeAttachment", "" ) as V1VolumeAttachment; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1VolumeAttachment = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1VolumeAttachment", "" ) as V1VolumeAttachment; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -3716,7 +3716,7 @@ export class StorageV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1VolumeAttachment", "" ) as V1VolumeAttachment; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -3729,21 +3729,21 @@ export class StorageV1ApiResponseProcessor { * @params response Response returned by the server for a request to replaceVolumeAttachmentStatus * @throws ApiException if the response code was not in [200, 299] */ - public async replaceVolumeAttachmentStatus(response: ResponseContext): Promise { + public async replaceVolumeAttachmentStatusWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1VolumeAttachment = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1VolumeAttachment", "" ) as V1VolumeAttachment; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1VolumeAttachment = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1VolumeAttachment", "" ) as V1VolumeAttachment; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -3755,7 +3755,7 @@ export class StorageV1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1VolumeAttachment", "" ) as V1VolumeAttachment; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); diff --git a/src/gen/apis/StorageV1alpha1Api.ts b/src/gen/apis/StorageV1alpha1Api.ts index 4d0d3e374ea..0e26131a31c 100644 --- a/src/gen/apis/StorageV1alpha1Api.ts +++ b/src/gen/apis/StorageV1alpha1Api.ts @@ -1,7 +1,7 @@ // TODO: better import syntax? import {BaseAPIRequestFactory, RequiredError, COLLECTION_FORMATS} from './baseapi'; import {Configuration} from '../configuration'; -import {RequestContext, HttpMethod, ResponseContext, HttpFile} from '../http/http'; +import {RequestContext, HttpMethod, ResponseContext, HttpFile, HttpInfo} from '../http/http'; import FormData from "form-data"; import { URLSearchParams } from 'url'; import {ObjectSerializer} from '../models/ObjectSerializer'; @@ -1376,28 +1376,28 @@ export class StorageV1alpha1ApiResponseProcessor { * @params response Response returned by the server for a request to createNamespacedCSIStorageCapacity * @throws ApiException if the response code was not in [200, 299] */ - public async createNamespacedCSIStorageCapacity(response: ResponseContext): Promise { + public async createNamespacedCSIStorageCapacityWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1alpha1CSIStorageCapacity = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1CSIStorageCapacity", "" ) as V1alpha1CSIStorageCapacity; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1alpha1CSIStorageCapacity = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1CSIStorageCapacity", "" ) as V1alpha1CSIStorageCapacity; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("202", response.httpStatusCode)) { const body: V1alpha1CSIStorageCapacity = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1CSIStorageCapacity", "" ) as V1alpha1CSIStorageCapacity; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1409,7 +1409,7 @@ export class StorageV1alpha1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1CSIStorageCapacity", "" ) as V1alpha1CSIStorageCapacity; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1422,28 +1422,28 @@ export class StorageV1alpha1ApiResponseProcessor { * @params response Response returned by the server for a request to createVolumeAttachment * @throws ApiException if the response code was not in [200, 299] */ - public async createVolumeAttachment(response: ResponseContext): Promise { + public async createVolumeAttachmentWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1alpha1VolumeAttachment = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1VolumeAttachment", "" ) as V1alpha1VolumeAttachment; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1alpha1VolumeAttachment = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1VolumeAttachment", "" ) as V1alpha1VolumeAttachment; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("202", response.httpStatusCode)) { const body: V1alpha1VolumeAttachment = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1VolumeAttachment", "" ) as V1alpha1VolumeAttachment; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1455,7 +1455,7 @@ export class StorageV1alpha1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1VolumeAttachment", "" ) as V1alpha1VolumeAttachment; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1468,14 +1468,14 @@ export class StorageV1alpha1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteCollectionNamespacedCSIStorageCapacity * @throws ApiException if the response code was not in [200, 299] */ - public async deleteCollectionNamespacedCSIStorageCapacity(response: ResponseContext): Promise { + public async deleteCollectionNamespacedCSIStorageCapacityWithHttpInfo(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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1487,7 +1487,7 @@ export class StorageV1alpha1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1500,14 +1500,14 @@ export class StorageV1alpha1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteCollectionVolumeAttachment * @throws ApiException if the response code was not in [200, 299] */ - public async deleteCollectionVolumeAttachment(response: ResponseContext): Promise { + public async deleteCollectionVolumeAttachmentWithHttpInfo(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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1519,7 +1519,7 @@ export class StorageV1alpha1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1532,21 +1532,21 @@ export class StorageV1alpha1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteNamespacedCSIStorageCapacity * @throws ApiException if the response code was not in [200, 299] */ - public async deleteNamespacedCSIStorageCapacity(response: ResponseContext): Promise { + public async deleteNamespacedCSIStorageCapacityWithHttpInfo(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 body; + 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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1558,7 +1558,7 @@ export class StorageV1alpha1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1571,21 +1571,21 @@ export class StorageV1alpha1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteVolumeAttachment * @throws ApiException if the response code was not in [200, 299] */ - public async deleteVolumeAttachment(response: ResponseContext): Promise { + public async deleteVolumeAttachmentWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1alpha1VolumeAttachment = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1VolumeAttachment", "" ) as V1alpha1VolumeAttachment; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("202", response.httpStatusCode)) { const body: V1alpha1VolumeAttachment = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1VolumeAttachment", "" ) as V1alpha1VolumeAttachment; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1597,7 +1597,7 @@ export class StorageV1alpha1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1VolumeAttachment", "" ) as V1alpha1VolumeAttachment; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1610,14 +1610,14 @@ export class StorageV1alpha1ApiResponseProcessor { * @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 getAPIResources(response: ResponseContext): Promise { + 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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1629,7 +1629,7 @@ export class StorageV1alpha1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1APIResourceList", "" ) as V1APIResourceList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1642,14 +1642,14 @@ export class StorageV1alpha1ApiResponseProcessor { * @params response Response returned by the server for a request to listCSIStorageCapacityForAllNamespaces * @throws ApiException if the response code was not in [200, 299] */ - public async listCSIStorageCapacityForAllNamespaces(response: ResponseContext): Promise { + public async listCSIStorageCapacityForAllNamespacesWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1alpha1CSIStorageCapacityList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1CSIStorageCapacityList", "" ) as V1alpha1CSIStorageCapacityList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1661,7 +1661,7 @@ export class StorageV1alpha1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1CSIStorageCapacityList", "" ) as V1alpha1CSIStorageCapacityList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1674,14 +1674,14 @@ export class StorageV1alpha1ApiResponseProcessor { * @params response Response returned by the server for a request to listNamespacedCSIStorageCapacity * @throws ApiException if the response code was not in [200, 299] */ - public async listNamespacedCSIStorageCapacity(response: ResponseContext): Promise { + public async listNamespacedCSIStorageCapacityWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1alpha1CSIStorageCapacityList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1CSIStorageCapacityList", "" ) as V1alpha1CSIStorageCapacityList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1693,7 +1693,7 @@ export class StorageV1alpha1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1CSIStorageCapacityList", "" ) as V1alpha1CSIStorageCapacityList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1706,14 +1706,14 @@ export class StorageV1alpha1ApiResponseProcessor { * @params response Response returned by the server for a request to listVolumeAttachment * @throws ApiException if the response code was not in [200, 299] */ - public async listVolumeAttachment(response: ResponseContext): Promise { + public async listVolumeAttachmentWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1alpha1VolumeAttachmentList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1VolumeAttachmentList", "" ) as V1alpha1VolumeAttachmentList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1725,7 +1725,7 @@ export class StorageV1alpha1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1VolumeAttachmentList", "" ) as V1alpha1VolumeAttachmentList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1738,21 +1738,21 @@ export class StorageV1alpha1ApiResponseProcessor { * @params response Response returned by the server for a request to patchNamespacedCSIStorageCapacity * @throws ApiException if the response code was not in [200, 299] */ - public async patchNamespacedCSIStorageCapacity(response: ResponseContext): Promise { + public async patchNamespacedCSIStorageCapacityWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1alpha1CSIStorageCapacity = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1CSIStorageCapacity", "" ) as V1alpha1CSIStorageCapacity; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1alpha1CSIStorageCapacity = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1CSIStorageCapacity", "" ) as V1alpha1CSIStorageCapacity; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1764,7 +1764,7 @@ export class StorageV1alpha1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1CSIStorageCapacity", "" ) as V1alpha1CSIStorageCapacity; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1777,21 +1777,21 @@ export class StorageV1alpha1ApiResponseProcessor { * @params response Response returned by the server for a request to patchVolumeAttachment * @throws ApiException if the response code was not in [200, 299] */ - public async patchVolumeAttachment(response: ResponseContext): Promise { + public async patchVolumeAttachmentWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1alpha1VolumeAttachment = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1VolumeAttachment", "" ) as V1alpha1VolumeAttachment; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1alpha1VolumeAttachment = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1VolumeAttachment", "" ) as V1alpha1VolumeAttachment; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1803,7 +1803,7 @@ export class StorageV1alpha1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1VolumeAttachment", "" ) as V1alpha1VolumeAttachment; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1816,14 +1816,14 @@ export class StorageV1alpha1ApiResponseProcessor { * @params response Response returned by the server for a request to readNamespacedCSIStorageCapacity * @throws ApiException if the response code was not in [200, 299] */ - public async readNamespacedCSIStorageCapacity(response: ResponseContext): Promise { + public async readNamespacedCSIStorageCapacityWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1alpha1CSIStorageCapacity = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1CSIStorageCapacity", "" ) as V1alpha1CSIStorageCapacity; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1835,7 +1835,7 @@ export class StorageV1alpha1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1CSIStorageCapacity", "" ) as V1alpha1CSIStorageCapacity; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1848,14 +1848,14 @@ export class StorageV1alpha1ApiResponseProcessor { * @params response Response returned by the server for a request to readVolumeAttachment * @throws ApiException if the response code was not in [200, 299] */ - public async readVolumeAttachment(response: ResponseContext): Promise { + public async readVolumeAttachmentWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1alpha1VolumeAttachment = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1VolumeAttachment", "" ) as V1alpha1VolumeAttachment; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1867,7 +1867,7 @@ export class StorageV1alpha1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1VolumeAttachment", "" ) as V1alpha1VolumeAttachment; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1880,21 +1880,21 @@ export class StorageV1alpha1ApiResponseProcessor { * @params response Response returned by the server for a request to replaceNamespacedCSIStorageCapacity * @throws ApiException if the response code was not in [200, 299] */ - public async replaceNamespacedCSIStorageCapacity(response: ResponseContext): Promise { + public async replaceNamespacedCSIStorageCapacityWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1alpha1CSIStorageCapacity = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1CSIStorageCapacity", "" ) as V1alpha1CSIStorageCapacity; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1alpha1CSIStorageCapacity = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1CSIStorageCapacity", "" ) as V1alpha1CSIStorageCapacity; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1906,7 +1906,7 @@ export class StorageV1alpha1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1CSIStorageCapacity", "" ) as V1alpha1CSIStorageCapacity; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1919,21 +1919,21 @@ export class StorageV1alpha1ApiResponseProcessor { * @params response Response returned by the server for a request to replaceVolumeAttachment * @throws ApiException if the response code was not in [200, 299] */ - public async replaceVolumeAttachment(response: ResponseContext): Promise { + public async replaceVolumeAttachmentWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1alpha1VolumeAttachment = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1VolumeAttachment", "" ) as V1alpha1VolumeAttachment; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1alpha1VolumeAttachment = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1VolumeAttachment", "" ) as V1alpha1VolumeAttachment; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1945,7 +1945,7 @@ export class StorageV1alpha1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1alpha1VolumeAttachment", "" ) as V1alpha1VolumeAttachment; - return body; + 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/StorageV1beta1Api.ts b/src/gen/apis/StorageV1beta1Api.ts index 8e6e7c5a972..d7e4b58532f 100644 --- a/src/gen/apis/StorageV1beta1Api.ts +++ b/src/gen/apis/StorageV1beta1Api.ts @@ -1,7 +1,7 @@ // TODO: better import syntax? import {BaseAPIRequestFactory, RequiredError, COLLECTION_FORMATS} from './baseapi'; import {Configuration} from '../configuration'; -import {RequestContext, HttpMethod, ResponseContext, HttpFile} from '../http/http'; +import {RequestContext, HttpMethod, ResponseContext, HttpFile, HttpInfo} from '../http/http'; import FormData from "form-data"; import { URLSearchParams } from 'url'; import {ObjectSerializer} from '../models/ObjectSerializer'; @@ -795,28 +795,28 @@ export class StorageV1beta1ApiResponseProcessor { * @params response Response returned by the server for a request to createNamespacedCSIStorageCapacity * @throws ApiException if the response code was not in [200, 299] */ - public async createNamespacedCSIStorageCapacity(response: ResponseContext): Promise { + public async createNamespacedCSIStorageCapacityWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1beta1CSIStorageCapacity = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1CSIStorageCapacity", "" ) as V1beta1CSIStorageCapacity; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1beta1CSIStorageCapacity = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1CSIStorageCapacity", "" ) as V1beta1CSIStorageCapacity; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("202", response.httpStatusCode)) { const body: V1beta1CSIStorageCapacity = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1CSIStorageCapacity", "" ) as V1beta1CSIStorageCapacity; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -828,7 +828,7 @@ export class StorageV1beta1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1CSIStorageCapacity", "" ) as V1beta1CSIStorageCapacity; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -841,14 +841,14 @@ export class StorageV1beta1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteCollectionNamespacedCSIStorageCapacity * @throws ApiException if the response code was not in [200, 299] */ - public async deleteCollectionNamespacedCSIStorageCapacity(response: ResponseContext): Promise { + public async deleteCollectionNamespacedCSIStorageCapacityWithHttpInfo(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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -860,7 +860,7 @@ export class StorageV1beta1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -873,21 +873,21 @@ export class StorageV1beta1ApiResponseProcessor { * @params response Response returned by the server for a request to deleteNamespacedCSIStorageCapacity * @throws ApiException if the response code was not in [200, 299] */ - public async deleteNamespacedCSIStorageCapacity(response: ResponseContext): Promise { + public async deleteNamespacedCSIStorageCapacityWithHttpInfo(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 body; + 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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -899,7 +899,7 @@ export class StorageV1beta1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1Status", "" ) as V1Status; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -912,14 +912,14 @@ export class StorageV1beta1ApiResponseProcessor { * @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 getAPIResources(response: ResponseContext): Promise { + 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 body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -931,7 +931,7 @@ export class StorageV1beta1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1APIResourceList", "" ) as V1APIResourceList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -944,14 +944,14 @@ export class StorageV1beta1ApiResponseProcessor { * @params response Response returned by the server for a request to listCSIStorageCapacityForAllNamespaces * @throws ApiException if the response code was not in [200, 299] */ - public async listCSIStorageCapacityForAllNamespaces(response: ResponseContext): Promise { + public async listCSIStorageCapacityForAllNamespacesWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1beta1CSIStorageCapacityList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1CSIStorageCapacityList", "" ) as V1beta1CSIStorageCapacityList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -963,7 +963,7 @@ export class StorageV1beta1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1CSIStorageCapacityList", "" ) as V1beta1CSIStorageCapacityList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -976,14 +976,14 @@ export class StorageV1beta1ApiResponseProcessor { * @params response Response returned by the server for a request to listNamespacedCSIStorageCapacity * @throws ApiException if the response code was not in [200, 299] */ - public async listNamespacedCSIStorageCapacity(response: ResponseContext): Promise { + public async listNamespacedCSIStorageCapacityWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1beta1CSIStorageCapacityList = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1CSIStorageCapacityList", "" ) as V1beta1CSIStorageCapacityList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -995,7 +995,7 @@ export class StorageV1beta1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1CSIStorageCapacityList", "" ) as V1beta1CSIStorageCapacityList; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1008,21 +1008,21 @@ export class StorageV1beta1ApiResponseProcessor { * @params response Response returned by the server for a request to patchNamespacedCSIStorageCapacity * @throws ApiException if the response code was not in [200, 299] */ - public async patchNamespacedCSIStorageCapacity(response: ResponseContext): Promise { + public async patchNamespacedCSIStorageCapacityWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1beta1CSIStorageCapacity = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1CSIStorageCapacity", "" ) as V1beta1CSIStorageCapacity; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1beta1CSIStorageCapacity = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1CSIStorageCapacity", "" ) as V1beta1CSIStorageCapacity; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1034,7 +1034,7 @@ export class StorageV1beta1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1CSIStorageCapacity", "" ) as V1beta1CSIStorageCapacity; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1047,14 +1047,14 @@ export class StorageV1beta1ApiResponseProcessor { * @params response Response returned by the server for a request to readNamespacedCSIStorageCapacity * @throws ApiException if the response code was not in [200, 299] */ - public async readNamespacedCSIStorageCapacity(response: ResponseContext): Promise { + public async readNamespacedCSIStorageCapacityWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1beta1CSIStorageCapacity = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1CSIStorageCapacity", "" ) as V1beta1CSIStorageCapacity; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1066,7 +1066,7 @@ export class StorageV1beta1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1CSIStorageCapacity", "" ) as V1beta1CSIStorageCapacity; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } throw new ApiException(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers); @@ -1079,21 +1079,21 @@ export class StorageV1beta1ApiResponseProcessor { * @params response Response returned by the server for a request to replaceNamespacedCSIStorageCapacity * @throws ApiException if the response code was not in [200, 299] */ - public async replaceNamespacedCSIStorageCapacity(response: ResponseContext): Promise { + public async replaceNamespacedCSIStorageCapacityWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: V1beta1CSIStorageCapacity = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1CSIStorageCapacity", "" ) as V1beta1CSIStorageCapacity; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("201", response.httpStatusCode)) { const body: V1beta1CSIStorageCapacity = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1CSIStorageCapacity", "" ) as V1beta1CSIStorageCapacity; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -1105,7 +1105,7 @@ export class StorageV1beta1ApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "V1beta1CSIStorageCapacity", "" ) as V1beta1CSIStorageCapacity; - return body; + 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/VersionApi.ts b/src/gen/apis/VersionApi.ts index 0002aae7232..07dd3d80578 100644 --- a/src/gen/apis/VersionApi.ts +++ b/src/gen/apis/VersionApi.ts @@ -1,7 +1,7 @@ // TODO: better import syntax? import {BaseAPIRequestFactory, RequiredError, COLLECTION_FORMATS} from './baseapi'; import {Configuration} from '../configuration'; -import {RequestContext, HttpMethod, ResponseContext, HttpFile} from '../http/http'; +import {RequestContext, HttpMethod, ResponseContext, HttpFile, HttpInfo} from '../http/http'; import FormData from "form-data"; import { URLSearchParams } from 'url'; import {ObjectSerializer} from '../models/ObjectSerializer'; @@ -57,14 +57,14 @@ export class VersionApiResponseProcessor { * @params response Response returned by the server for a request to getCode * @throws ApiException if the response code was not in [200, 299] */ - public async getCode(response: ResponseContext): Promise { + public async getCodeWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: VersionInfo = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "VersionInfo", "" ) as VersionInfo; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -76,7 +76,7 @@ export class VersionApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "VersionInfo", "" ) as VersionInfo; - return body; + 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/WellKnownApi.ts b/src/gen/apis/WellKnownApi.ts index 1db30abd829..e7365388dd1 100644 --- a/src/gen/apis/WellKnownApi.ts +++ b/src/gen/apis/WellKnownApi.ts @@ -1,7 +1,7 @@ // TODO: better import syntax? import {BaseAPIRequestFactory, RequiredError, COLLECTION_FORMATS} from './baseapi'; import {Configuration} from '../configuration'; -import {RequestContext, HttpMethod, ResponseContext, HttpFile} from '../http/http'; +import {RequestContext, HttpMethod, ResponseContext, HttpFile, HttpInfo} from '../http/http'; import FormData from "form-data"; import { URLSearchParams } from 'url'; import {ObjectSerializer} from '../models/ObjectSerializer'; @@ -56,14 +56,14 @@ export class WellKnownApiResponseProcessor { * @params response Response returned by the server for a request to getServiceAccountIssuerOpenIDConfiguration * @throws ApiException if the response code was not in [200, 299] */ - public async getServiceAccountIssuerOpenIDConfiguration(response: ResponseContext): Promise { + public async getServiceAccountIssuerOpenIDConfigurationWithHttpInfo(response: ResponseContext): Promise> { const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]); if (isCodeInRange("200", response.httpStatusCode)) { const body: string = ObjectSerializer.deserialize( ObjectSerializer.parse(await response.body.text(), contentType), "string", "" ) as string; - return body; + return new HttpInfo(response.httpStatusCode, response.headers, response.body, body); } if (isCodeInRange("401", response.httpStatusCode)) { throw new ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers); @@ -75,7 +75,7 @@ export class WellKnownApiResponseProcessor { ObjectSerializer.parse(await response.body.text(), contentType), "string", "" ) as string; - return body; + 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/http/http.ts b/src/gen/http/http.ts index 882e6c34088..3a99a14d81b 100644 --- a/src/gen/http/http.ts +++ b/src/gen/http/http.ts @@ -41,6 +41,13 @@ export class HttpException extends Error { */ export type RequestBody = undefined | string | FormData | URLSearchParams; +function ensureAbsoluteUrl(url: string) { + if (url.startsWith("http://") || url.startsWith("https://")) { + return url; + } + throw new Error("You need to define an absolute base url for the server."); +} + /** * Represents an HTTP request context */ @@ -57,7 +64,7 @@ export class RequestContext { * @param httpMethod http method */ public constructor(url: string, private httpMethod: HttpMethod) { - this.url = new URL(url); + this.url = new URL(ensureAbsoluteUrl(url)); } /* @@ -75,7 +82,7 @@ export class RequestContext { * */ public setUrl(url: string) { - this.url = new URL(url); + this.url = new URL(ensureAbsoluteUrl(url)); } /** @@ -227,3 +234,14 @@ export function wrapHttpLibrary(promiseHttpLibrary: PromiseHttpLibrary): HttpLib } } } + +export class HttpInfo extends ResponseContext { + public constructor( + public httpStatusCode: number, + public headers: { [key: string]: string }, + public body: ResponseBody, + public data: T, + ) { + super(httpStatusCode, headers, body); + } +} diff --git a/src/gen/models/ObjectSerializer.ts b/src/gen/models/ObjectSerializer.ts index 42dd862dffc..0a57dfb5157 100644 --- a/src/gen/models/ObjectSerializer.ts +++ b/src/gen/models/ObjectSerializer.ts @@ -1064,6 +1064,9 @@ let primitives = [ const supportedMediaTypes: { [mediaType: string]: number } = { "application/json": Infinity, + "application/json-patch+json": 1, + "application/merge-patch+json": 1, + "application/strategic-merge-patch+json": 1, "application/octet-stream": 0, "application/x-www-form-urlencoded": 0 } @@ -1769,7 +1772,7 @@ export class ObjectSerializer { return String(data); } - if (mediaType === "application/json") { + if (mediaType === "application/json" || mediaType === "application/json-patch+json" || mediaType === "application/merge-patch+json" || mediaType === "application/strategic-merge-patch+json") { return JSON.stringify(data); } @@ -1788,7 +1791,7 @@ export class ObjectSerializer { return rawData; } - if (mediaType === "application/json") { + if (mediaType === "application/json" || mediaType === "application/json-patch+json" || mediaType === "application/merge-patch+json" || mediaType === "application/strategic-merge-patch+json") { return JSON.parse(rawData); } diff --git a/src/gen/types/ObjectParamAPI.ts b/src/gen/types/ObjectParamAPI.ts index 59f72c48fcd..653813e6b47 100644 --- a/src/gen/types/ObjectParamAPI.ts +++ b/src/gen/types/ObjectParamAPI.ts @@ -1,4 +1,4 @@ -import { ResponseContext, RequestContext, HttpFile } from '../http/http'; +import { ResponseContext, RequestContext, HttpFile, HttpInfo } from '../http/http'; import { Configuration} from '../configuration' import { AdmissionregistrationV1ServiceReference } from '../models/AdmissionregistrationV1ServiceReference'; @@ -540,6 +540,14 @@ export class ObjectAdmissionregistrationApi { this.api = new ObservableAdmissionregistrationApi(configuration, requestFactory, responseProcessor); } + /** + * get information of a group + * @param param the request object + */ + public getAPIGroupWithHttpInfo(param: AdmissionregistrationApiGetAPIGroupRequest = {}, options?: Configuration): Promise> { + return this.api.getAPIGroupWithHttpInfo( options).toPromise(); + } + /** * get information of a group * @param param the request object @@ -1169,6 +1177,14 @@ export class ObjectAdmissionregistrationV1Api { this.api = new ObservableAdmissionregistrationV1Api(configuration, requestFactory, responseProcessor); } + /** + * create a MutatingWebhookConfiguration + * @param param the request object + */ + public createMutatingWebhookConfigurationWithHttpInfo(param: AdmissionregistrationV1ApiCreateMutatingWebhookConfigurationRequest, options?: Configuration): Promise> { + return this.api.createMutatingWebhookConfigurationWithHttpInfo(param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * create a MutatingWebhookConfiguration * @param param the request object @@ -1177,6 +1193,14 @@ export class ObjectAdmissionregistrationV1Api { return this.api.createMutatingWebhookConfiguration(param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * create a ValidatingWebhookConfiguration + * @param param the request object + */ + public createValidatingWebhookConfigurationWithHttpInfo(param: AdmissionregistrationV1ApiCreateValidatingWebhookConfigurationRequest, options?: Configuration): Promise> { + return this.api.createValidatingWebhookConfigurationWithHttpInfo(param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * create a ValidatingWebhookConfiguration * @param param the request object @@ -1185,6 +1209,14 @@ export class ObjectAdmissionregistrationV1Api { return this.api.createValidatingWebhookConfiguration(param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * delete collection of MutatingWebhookConfiguration + * @param param the request object + */ + public deleteCollectionMutatingWebhookConfigurationWithHttpInfo(param: AdmissionregistrationV1ApiDeleteCollectionMutatingWebhookConfigurationRequest = {}, options?: Configuration): Promise> { + return this.api.deleteCollectionMutatingWebhookConfigurationWithHttpInfo(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); + } + /** * delete collection of MutatingWebhookConfiguration * @param param the request object @@ -1193,6 +1225,14 @@ export class ObjectAdmissionregistrationV1Api { return this.api.deleteCollectionMutatingWebhookConfiguration(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); } + /** + * delete collection of ValidatingWebhookConfiguration + * @param param the request object + */ + public deleteCollectionValidatingWebhookConfigurationWithHttpInfo(param: AdmissionregistrationV1ApiDeleteCollectionValidatingWebhookConfigurationRequest = {}, options?: Configuration): Promise> { + return this.api.deleteCollectionValidatingWebhookConfigurationWithHttpInfo(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); + } + /** * delete collection of ValidatingWebhookConfiguration * @param param the request object @@ -1201,6 +1241,14 @@ export class ObjectAdmissionregistrationV1Api { return this.api.deleteCollectionValidatingWebhookConfiguration(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); } + /** + * delete a MutatingWebhookConfiguration + * @param param the request object + */ + public deleteMutatingWebhookConfigurationWithHttpInfo(param: AdmissionregistrationV1ApiDeleteMutatingWebhookConfigurationRequest, options?: Configuration): Promise> { + return this.api.deleteMutatingWebhookConfigurationWithHttpInfo(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); + } + /** * delete a MutatingWebhookConfiguration * @param param the request object @@ -1209,6 +1257,14 @@ export class ObjectAdmissionregistrationV1Api { return this.api.deleteMutatingWebhookConfiguration(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } + /** + * delete a ValidatingWebhookConfiguration + * @param param the request object + */ + public deleteValidatingWebhookConfigurationWithHttpInfo(param: AdmissionregistrationV1ApiDeleteValidatingWebhookConfigurationRequest, options?: Configuration): Promise> { + return this.api.deleteValidatingWebhookConfigurationWithHttpInfo(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); + } + /** * delete a ValidatingWebhookConfiguration * @param param the request object @@ -1217,6 +1273,14 @@ export class ObjectAdmissionregistrationV1Api { return this.api.deleteValidatingWebhookConfiguration(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } + /** + * get available resources + * @param param the request object + */ + public getAPIResourcesWithHttpInfo(param: AdmissionregistrationV1ApiGetAPIResourcesRequest = {}, options?: Configuration): Promise> { + return this.api.getAPIResourcesWithHttpInfo( options).toPromise(); + } + /** * get available resources * @param param the request object @@ -1225,6 +1289,14 @@ export class ObjectAdmissionregistrationV1Api { return this.api.getAPIResources( options).toPromise(); } + /** + * list or watch objects of kind MutatingWebhookConfiguration + * @param param the request object + */ + public listMutatingWebhookConfigurationWithHttpInfo(param: AdmissionregistrationV1ApiListMutatingWebhookConfigurationRequest = {}, options?: Configuration): Promise> { + return this.api.listMutatingWebhookConfigurationWithHttpInfo(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); + } + /** * list or watch objects of kind MutatingWebhookConfiguration * @param param the request object @@ -1233,6 +1305,14 @@ export class ObjectAdmissionregistrationV1Api { return this.api.listMutatingWebhookConfiguration(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } + /** + * list or watch objects of kind ValidatingWebhookConfiguration + * @param param the request object + */ + public listValidatingWebhookConfigurationWithHttpInfo(param: AdmissionregistrationV1ApiListValidatingWebhookConfigurationRequest = {}, options?: Configuration): Promise> { + return this.api.listValidatingWebhookConfigurationWithHttpInfo(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); + } + /** * list or watch objects of kind ValidatingWebhookConfiguration * @param param the request object @@ -1241,6 +1321,14 @@ export class ObjectAdmissionregistrationV1Api { return this.api.listValidatingWebhookConfiguration(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } + /** + * partially update the specified MutatingWebhookConfiguration + * @param param the request object + */ + public patchMutatingWebhookConfigurationWithHttpInfo(param: AdmissionregistrationV1ApiPatchMutatingWebhookConfigurationRequest, options?: Configuration): Promise> { + return this.api.patchMutatingWebhookConfigurationWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); + } + /** * partially update the specified MutatingWebhookConfiguration * @param param the request object @@ -1249,6 +1337,14 @@ export class ObjectAdmissionregistrationV1Api { return this.api.patchMutatingWebhookConfiguration(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); } + /** + * partially update the specified ValidatingWebhookConfiguration + * @param param the request object + */ + public patchValidatingWebhookConfigurationWithHttpInfo(param: AdmissionregistrationV1ApiPatchValidatingWebhookConfigurationRequest, options?: Configuration): Promise> { + return this.api.patchValidatingWebhookConfigurationWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); + } + /** * partially update the specified ValidatingWebhookConfiguration * @param param the request object @@ -1257,6 +1353,14 @@ export class ObjectAdmissionregistrationV1Api { return this.api.patchValidatingWebhookConfiguration(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); } + /** + * read the specified MutatingWebhookConfiguration + * @param param the request object + */ + public readMutatingWebhookConfigurationWithHttpInfo(param: AdmissionregistrationV1ApiReadMutatingWebhookConfigurationRequest, options?: Configuration): Promise> { + return this.api.readMutatingWebhookConfigurationWithHttpInfo(param.name, param.pretty, options).toPromise(); + } + /** * read the specified MutatingWebhookConfiguration * @param param the request object @@ -1265,6 +1369,14 @@ export class ObjectAdmissionregistrationV1Api { return this.api.readMutatingWebhookConfiguration(param.name, param.pretty, options).toPromise(); } + /** + * read the specified ValidatingWebhookConfiguration + * @param param the request object + */ + public readValidatingWebhookConfigurationWithHttpInfo(param: AdmissionregistrationV1ApiReadValidatingWebhookConfigurationRequest, options?: Configuration): Promise> { + return this.api.readValidatingWebhookConfigurationWithHttpInfo(param.name, param.pretty, options).toPromise(); + } + /** * read the specified ValidatingWebhookConfiguration * @param param the request object @@ -1273,6 +1385,14 @@ export class ObjectAdmissionregistrationV1Api { return this.api.readValidatingWebhookConfiguration(param.name, param.pretty, options).toPromise(); } + /** + * replace the specified MutatingWebhookConfiguration + * @param param the request object + */ + public replaceMutatingWebhookConfigurationWithHttpInfo(param: AdmissionregistrationV1ApiReplaceMutatingWebhookConfigurationRequest, options?: Configuration): Promise> { + return this.api.replaceMutatingWebhookConfigurationWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * replace the specified MutatingWebhookConfiguration * @param param the request object @@ -1281,6 +1401,14 @@ export class ObjectAdmissionregistrationV1Api { return this.api.replaceMutatingWebhookConfiguration(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * replace the specified ValidatingWebhookConfiguration + * @param param the request object + */ + public replaceValidatingWebhookConfigurationWithHttpInfo(param: AdmissionregistrationV1ApiReplaceValidatingWebhookConfigurationRequest, options?: Configuration): Promise> { + return this.api.replaceValidatingWebhookConfigurationWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * replace the specified ValidatingWebhookConfiguration * @param param the request object @@ -1304,6 +1432,14 @@ export class ObjectApiextensionsApi { this.api = new ObservableApiextensionsApi(configuration, requestFactory, responseProcessor); } + /** + * get information of a group + * @param param the request object + */ + public getAPIGroupWithHttpInfo(param: ApiextensionsApiGetAPIGroupRequest = {}, options?: Configuration): Promise> { + return this.api.getAPIGroupWithHttpInfo( options).toPromise(); + } + /** * get information of a group * @param param the request object @@ -1717,6 +1853,14 @@ export class ObjectApiextensionsV1Api { this.api = new ObservableApiextensionsV1Api(configuration, requestFactory, responseProcessor); } + /** + * create a CustomResourceDefinition + * @param param the request object + */ + public createCustomResourceDefinitionWithHttpInfo(param: ApiextensionsV1ApiCreateCustomResourceDefinitionRequest, options?: Configuration): Promise> { + return this.api.createCustomResourceDefinitionWithHttpInfo(param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * create a CustomResourceDefinition * @param param the request object @@ -1725,6 +1869,14 @@ export class ObjectApiextensionsV1Api { return this.api.createCustomResourceDefinition(param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * delete collection of CustomResourceDefinition + * @param param the request object + */ + public deleteCollectionCustomResourceDefinitionWithHttpInfo(param: ApiextensionsV1ApiDeleteCollectionCustomResourceDefinitionRequest = {}, options?: Configuration): Promise> { + return this.api.deleteCollectionCustomResourceDefinitionWithHttpInfo(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); + } + /** * delete collection of CustomResourceDefinition * @param param the request object @@ -1733,6 +1885,14 @@ export class ObjectApiextensionsV1Api { return this.api.deleteCollectionCustomResourceDefinition(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); } + /** + * delete a CustomResourceDefinition + * @param param the request object + */ + public deleteCustomResourceDefinitionWithHttpInfo(param: ApiextensionsV1ApiDeleteCustomResourceDefinitionRequest, options?: Configuration): Promise> { + return this.api.deleteCustomResourceDefinitionWithHttpInfo(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); + } + /** * delete a CustomResourceDefinition * @param param the request object @@ -1741,6 +1901,14 @@ export class ObjectApiextensionsV1Api { return this.api.deleteCustomResourceDefinition(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } + /** + * get available resources + * @param param the request object + */ + public getAPIResourcesWithHttpInfo(param: ApiextensionsV1ApiGetAPIResourcesRequest = {}, options?: Configuration): Promise> { + return this.api.getAPIResourcesWithHttpInfo( options).toPromise(); + } + /** * get available resources * @param param the request object @@ -1749,6 +1917,14 @@ export class ObjectApiextensionsV1Api { return this.api.getAPIResources( options).toPromise(); } + /** + * list or watch objects of kind CustomResourceDefinition + * @param param the request object + */ + public listCustomResourceDefinitionWithHttpInfo(param: ApiextensionsV1ApiListCustomResourceDefinitionRequest = {}, options?: Configuration): Promise> { + return this.api.listCustomResourceDefinitionWithHttpInfo(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); + } + /** * list or watch objects of kind CustomResourceDefinition * @param param the request object @@ -1757,6 +1933,14 @@ export class ObjectApiextensionsV1Api { return this.api.listCustomResourceDefinition(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } + /** + * partially update the specified CustomResourceDefinition + * @param param the request object + */ + public patchCustomResourceDefinitionWithHttpInfo(param: ApiextensionsV1ApiPatchCustomResourceDefinitionRequest, options?: Configuration): Promise> { + return this.api.patchCustomResourceDefinitionWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); + } + /** * partially update the specified CustomResourceDefinition * @param param the request object @@ -1765,6 +1949,14 @@ export class ObjectApiextensionsV1Api { return this.api.patchCustomResourceDefinition(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); } + /** + * partially update status of the specified CustomResourceDefinition + * @param param the request object + */ + public patchCustomResourceDefinitionStatusWithHttpInfo(param: ApiextensionsV1ApiPatchCustomResourceDefinitionStatusRequest, options?: Configuration): Promise> { + return this.api.patchCustomResourceDefinitionStatusWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); + } + /** * partially update status of the specified CustomResourceDefinition * @param param the request object @@ -1773,6 +1965,14 @@ export class ObjectApiextensionsV1Api { return this.api.patchCustomResourceDefinitionStatus(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); } + /** + * read the specified CustomResourceDefinition + * @param param the request object + */ + public readCustomResourceDefinitionWithHttpInfo(param: ApiextensionsV1ApiReadCustomResourceDefinitionRequest, options?: Configuration): Promise> { + return this.api.readCustomResourceDefinitionWithHttpInfo(param.name, param.pretty, options).toPromise(); + } + /** * read the specified CustomResourceDefinition * @param param the request object @@ -1781,6 +1981,14 @@ export class ObjectApiextensionsV1Api { return this.api.readCustomResourceDefinition(param.name, param.pretty, options).toPromise(); } + /** + * read status of the specified CustomResourceDefinition + * @param param the request object + */ + public readCustomResourceDefinitionStatusWithHttpInfo(param: ApiextensionsV1ApiReadCustomResourceDefinitionStatusRequest, options?: Configuration): Promise> { + return this.api.readCustomResourceDefinitionStatusWithHttpInfo(param.name, param.pretty, options).toPromise(); + } + /** * read status of the specified CustomResourceDefinition * @param param the request object @@ -1789,6 +1997,14 @@ export class ObjectApiextensionsV1Api { return this.api.readCustomResourceDefinitionStatus(param.name, param.pretty, options).toPromise(); } + /** + * replace the specified CustomResourceDefinition + * @param param the request object + */ + public replaceCustomResourceDefinitionWithHttpInfo(param: ApiextensionsV1ApiReplaceCustomResourceDefinitionRequest, options?: Configuration): Promise> { + return this.api.replaceCustomResourceDefinitionWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * replace the specified CustomResourceDefinition * @param param the request object @@ -1797,6 +2013,14 @@ export class ObjectApiextensionsV1Api { return this.api.replaceCustomResourceDefinition(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * replace status of the specified CustomResourceDefinition + * @param param the request object + */ + public replaceCustomResourceDefinitionStatusWithHttpInfo(param: ApiextensionsV1ApiReplaceCustomResourceDefinitionStatusRequest, options?: Configuration): Promise> { + return this.api.replaceCustomResourceDefinitionStatusWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * replace status of the specified CustomResourceDefinition * @param param the request object @@ -1820,6 +2044,14 @@ export class ObjectApiregistrationApi { this.api = new ObservableApiregistrationApi(configuration, requestFactory, responseProcessor); } + /** + * get information of a group + * @param param the request object + */ + public getAPIGroupWithHttpInfo(param: ApiregistrationApiGetAPIGroupRequest = {}, options?: Configuration): Promise> { + return this.api.getAPIGroupWithHttpInfo( options).toPromise(); + } + /** * get information of a group * @param param the request object @@ -2233,6 +2465,14 @@ export class ObjectApiregistrationV1Api { this.api = new ObservableApiregistrationV1Api(configuration, requestFactory, responseProcessor); } + /** + * create an APIService + * @param param the request object + */ + public createAPIServiceWithHttpInfo(param: ApiregistrationV1ApiCreateAPIServiceRequest, options?: Configuration): Promise> { + return this.api.createAPIServiceWithHttpInfo(param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * create an APIService * @param param the request object @@ -2241,6 +2481,14 @@ export class ObjectApiregistrationV1Api { return this.api.createAPIService(param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * delete an APIService + * @param param the request object + */ + public deleteAPIServiceWithHttpInfo(param: ApiregistrationV1ApiDeleteAPIServiceRequest, options?: Configuration): Promise> { + return this.api.deleteAPIServiceWithHttpInfo(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); + } + /** * delete an APIService * @param param the request object @@ -2249,6 +2497,14 @@ export class ObjectApiregistrationV1Api { return this.api.deleteAPIService(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } + /** + * delete collection of APIService + * @param param the request object + */ + public deleteCollectionAPIServiceWithHttpInfo(param: ApiregistrationV1ApiDeleteCollectionAPIServiceRequest = {}, options?: Configuration): Promise> { + return this.api.deleteCollectionAPIServiceWithHttpInfo(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); + } + /** * delete collection of APIService * @param param the request object @@ -2257,6 +2513,14 @@ export class ObjectApiregistrationV1Api { return this.api.deleteCollectionAPIService(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); } + /** + * get available resources + * @param param the request object + */ + public getAPIResourcesWithHttpInfo(param: ApiregistrationV1ApiGetAPIResourcesRequest = {}, options?: Configuration): Promise> { + return this.api.getAPIResourcesWithHttpInfo( options).toPromise(); + } + /** * get available resources * @param param the request object @@ -2265,6 +2529,14 @@ export class ObjectApiregistrationV1Api { return this.api.getAPIResources( options).toPromise(); } + /** + * list or watch objects of kind APIService + * @param param the request object + */ + public listAPIServiceWithHttpInfo(param: ApiregistrationV1ApiListAPIServiceRequest = {}, options?: Configuration): Promise> { + return this.api.listAPIServiceWithHttpInfo(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); + } + /** * list or watch objects of kind APIService * @param param the request object @@ -2273,6 +2545,14 @@ export class ObjectApiregistrationV1Api { return this.api.listAPIService(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } + /** + * partially update the specified APIService + * @param param the request object + */ + public patchAPIServiceWithHttpInfo(param: ApiregistrationV1ApiPatchAPIServiceRequest, options?: Configuration): Promise> { + return this.api.patchAPIServiceWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); + } + /** * partially update the specified APIService * @param param the request object @@ -2281,6 +2561,14 @@ export class ObjectApiregistrationV1Api { return this.api.patchAPIService(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); } + /** + * partially update status of the specified APIService + * @param param the request object + */ + public patchAPIServiceStatusWithHttpInfo(param: ApiregistrationV1ApiPatchAPIServiceStatusRequest, options?: Configuration): Promise> { + return this.api.patchAPIServiceStatusWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); + } + /** * partially update status of the specified APIService * @param param the request object @@ -2289,6 +2577,14 @@ export class ObjectApiregistrationV1Api { return this.api.patchAPIServiceStatus(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); } + /** + * read the specified APIService + * @param param the request object + */ + public readAPIServiceWithHttpInfo(param: ApiregistrationV1ApiReadAPIServiceRequest, options?: Configuration): Promise> { + return this.api.readAPIServiceWithHttpInfo(param.name, param.pretty, options).toPromise(); + } + /** * read the specified APIService * @param param the request object @@ -2297,6 +2593,14 @@ export class ObjectApiregistrationV1Api { return this.api.readAPIService(param.name, param.pretty, options).toPromise(); } + /** + * read status of the specified APIService + * @param param the request object + */ + public readAPIServiceStatusWithHttpInfo(param: ApiregistrationV1ApiReadAPIServiceStatusRequest, options?: Configuration): Promise> { + return this.api.readAPIServiceStatusWithHttpInfo(param.name, param.pretty, options).toPromise(); + } + /** * read status of the specified APIService * @param param the request object @@ -2305,6 +2609,14 @@ export class ObjectApiregistrationV1Api { return this.api.readAPIServiceStatus(param.name, param.pretty, options).toPromise(); } + /** + * replace the specified APIService + * @param param the request object + */ + public replaceAPIServiceWithHttpInfo(param: ApiregistrationV1ApiReplaceAPIServiceRequest, options?: Configuration): Promise> { + return this.api.replaceAPIServiceWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * replace the specified APIService * @param param the request object @@ -2313,6 +2625,14 @@ export class ObjectApiregistrationV1Api { return this.api.replaceAPIService(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * replace status of the specified APIService + * @param param the request object + */ + public replaceAPIServiceStatusWithHttpInfo(param: ApiregistrationV1ApiReplaceAPIServiceStatusRequest, options?: Configuration): Promise> { + return this.api.replaceAPIServiceStatusWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * replace status of the specified APIService * @param param the request object @@ -2336,6 +2656,14 @@ export class ObjectApisApi { this.api = new ObservableApisApi(configuration, requestFactory, responseProcessor); } + /** + * get available API versions + * @param param the request object + */ + public getAPIVersionsWithHttpInfo(param: ApisApiGetAPIVersionsRequest = {}, options?: Configuration): Promise> { + return this.api.getAPIVersionsWithHttpInfo( options).toPromise(); + } + /** * get available API versions * @param param the request object @@ -2359,6 +2687,14 @@ export class ObjectAppsApi { this.api = new ObservableAppsApi(configuration, requestFactory, responseProcessor); } + /** + * get information of a group + * @param param the request object + */ + public getAPIGroupWithHttpInfo(param: AppsApiGetAPIGroupRequest = {}, options?: Configuration): Promise> { + return this.api.getAPIGroupWithHttpInfo( options).toPromise(); + } + /** * get information of a group * @param param the request object @@ -5157,6 +5493,14 @@ export class ObjectAppsV1Api { this.api = new ObservableAppsV1Api(configuration, requestFactory, responseProcessor); } + /** + * create a ControllerRevision + * @param param the request object + */ + public createNamespacedControllerRevisionWithHttpInfo(param: AppsV1ApiCreateNamespacedControllerRevisionRequest, options?: Configuration): Promise> { + return this.api.createNamespacedControllerRevisionWithHttpInfo(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * create a ControllerRevision * @param param the request object @@ -5165,6 +5509,14 @@ export class ObjectAppsV1Api { return this.api.createNamespacedControllerRevision(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * create a DaemonSet + * @param param the request object + */ + public createNamespacedDaemonSetWithHttpInfo(param: AppsV1ApiCreateNamespacedDaemonSetRequest, options?: Configuration): Promise> { + return this.api.createNamespacedDaemonSetWithHttpInfo(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * create a DaemonSet * @param param the request object @@ -5173,6 +5525,14 @@ export class ObjectAppsV1Api { return this.api.createNamespacedDaemonSet(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * create a Deployment + * @param param the request object + */ + public createNamespacedDeploymentWithHttpInfo(param: AppsV1ApiCreateNamespacedDeploymentRequest, options?: Configuration): Promise> { + return this.api.createNamespacedDeploymentWithHttpInfo(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * create a Deployment * @param param the request object @@ -5181,6 +5541,14 @@ export class ObjectAppsV1Api { return this.api.createNamespacedDeployment(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * create a ReplicaSet + * @param param the request object + */ + public createNamespacedReplicaSetWithHttpInfo(param: AppsV1ApiCreateNamespacedReplicaSetRequest, options?: Configuration): Promise> { + return this.api.createNamespacedReplicaSetWithHttpInfo(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * create a ReplicaSet * @param param the request object @@ -5189,6 +5557,14 @@ export class ObjectAppsV1Api { return this.api.createNamespacedReplicaSet(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * create a StatefulSet + * @param param the request object + */ + public createNamespacedStatefulSetWithHttpInfo(param: AppsV1ApiCreateNamespacedStatefulSetRequest, options?: Configuration): Promise> { + return this.api.createNamespacedStatefulSetWithHttpInfo(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * create a StatefulSet * @param param the request object @@ -5197,6 +5573,14 @@ export class ObjectAppsV1Api { return this.api.createNamespacedStatefulSet(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * delete collection of ControllerRevision + * @param param the request object + */ + public deleteCollectionNamespacedControllerRevisionWithHttpInfo(param: AppsV1ApiDeleteCollectionNamespacedControllerRevisionRequest, options?: Configuration): Promise> { + return this.api.deleteCollectionNamespacedControllerRevisionWithHttpInfo(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); + } + /** * delete collection of ControllerRevision * @param param the request object @@ -5205,6 +5589,14 @@ export class ObjectAppsV1Api { return this.api.deleteCollectionNamespacedControllerRevision(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); } + /** + * delete collection of DaemonSet + * @param param the request object + */ + public deleteCollectionNamespacedDaemonSetWithHttpInfo(param: AppsV1ApiDeleteCollectionNamespacedDaemonSetRequest, options?: Configuration): Promise> { + return this.api.deleteCollectionNamespacedDaemonSetWithHttpInfo(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); + } + /** * delete collection of DaemonSet * @param param the request object @@ -5213,6 +5605,14 @@ export class ObjectAppsV1Api { return this.api.deleteCollectionNamespacedDaemonSet(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); } + /** + * delete collection of Deployment + * @param param the request object + */ + public deleteCollectionNamespacedDeploymentWithHttpInfo(param: AppsV1ApiDeleteCollectionNamespacedDeploymentRequest, options?: Configuration): Promise> { + return this.api.deleteCollectionNamespacedDeploymentWithHttpInfo(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); + } + /** * delete collection of Deployment * @param param the request object @@ -5221,6 +5621,14 @@ export class ObjectAppsV1Api { return this.api.deleteCollectionNamespacedDeployment(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); } + /** + * delete collection of ReplicaSet + * @param param the request object + */ + public deleteCollectionNamespacedReplicaSetWithHttpInfo(param: AppsV1ApiDeleteCollectionNamespacedReplicaSetRequest, options?: Configuration): Promise> { + return this.api.deleteCollectionNamespacedReplicaSetWithHttpInfo(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); + } + /** * delete collection of ReplicaSet * @param param the request object @@ -5229,6 +5637,14 @@ export class ObjectAppsV1Api { return this.api.deleteCollectionNamespacedReplicaSet(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); } + /** + * delete collection of StatefulSet + * @param param the request object + */ + public deleteCollectionNamespacedStatefulSetWithHttpInfo(param: AppsV1ApiDeleteCollectionNamespacedStatefulSetRequest, options?: Configuration): Promise> { + return this.api.deleteCollectionNamespacedStatefulSetWithHttpInfo(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); + } + /** * delete collection of StatefulSet * @param param the request object @@ -5237,6 +5653,14 @@ export class ObjectAppsV1Api { return this.api.deleteCollectionNamespacedStatefulSet(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); } + /** + * delete a ControllerRevision + * @param param the request object + */ + public deleteNamespacedControllerRevisionWithHttpInfo(param: AppsV1ApiDeleteNamespacedControllerRevisionRequest, options?: Configuration): Promise> { + return this.api.deleteNamespacedControllerRevisionWithHttpInfo(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); + } + /** * delete a ControllerRevision * @param param the request object @@ -5245,6 +5669,14 @@ export class ObjectAppsV1Api { return this.api.deleteNamespacedControllerRevision(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } + /** + * delete a DaemonSet + * @param param the request object + */ + public deleteNamespacedDaemonSetWithHttpInfo(param: AppsV1ApiDeleteNamespacedDaemonSetRequest, options?: Configuration): Promise> { + return this.api.deleteNamespacedDaemonSetWithHttpInfo(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); + } + /** * delete a DaemonSet * @param param the request object @@ -5253,6 +5685,14 @@ export class ObjectAppsV1Api { return this.api.deleteNamespacedDaemonSet(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } + /** + * delete a Deployment + * @param param the request object + */ + public deleteNamespacedDeploymentWithHttpInfo(param: AppsV1ApiDeleteNamespacedDeploymentRequest, options?: Configuration): Promise> { + return this.api.deleteNamespacedDeploymentWithHttpInfo(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); + } + /** * delete a Deployment * @param param the request object @@ -5261,6 +5701,14 @@ export class ObjectAppsV1Api { return this.api.deleteNamespacedDeployment(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } + /** + * delete a ReplicaSet + * @param param the request object + */ + public deleteNamespacedReplicaSetWithHttpInfo(param: AppsV1ApiDeleteNamespacedReplicaSetRequest, options?: Configuration): Promise> { + return this.api.deleteNamespacedReplicaSetWithHttpInfo(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); + } + /** * delete a ReplicaSet * @param param the request object @@ -5269,6 +5717,14 @@ export class ObjectAppsV1Api { return this.api.deleteNamespacedReplicaSet(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } + /** + * delete a StatefulSet + * @param param the request object + */ + public deleteNamespacedStatefulSetWithHttpInfo(param: AppsV1ApiDeleteNamespacedStatefulSetRequest, options?: Configuration): Promise> { + return this.api.deleteNamespacedStatefulSetWithHttpInfo(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); + } + /** * delete a StatefulSet * @param param the request object @@ -5277,6 +5733,14 @@ export class ObjectAppsV1Api { return this.api.deleteNamespacedStatefulSet(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } + /** + * get available resources + * @param param the request object + */ + public getAPIResourcesWithHttpInfo(param: AppsV1ApiGetAPIResourcesRequest = {}, options?: Configuration): Promise> { + return this.api.getAPIResourcesWithHttpInfo( options).toPromise(); + } + /** * get available resources * @param param the request object @@ -5285,6 +5749,14 @@ export class ObjectAppsV1Api { return this.api.getAPIResources( options).toPromise(); } + /** + * list or watch objects of kind ControllerRevision + * @param param the request object + */ + public listControllerRevisionForAllNamespacesWithHttpInfo(param: AppsV1ApiListControllerRevisionForAllNamespacesRequest = {}, options?: Configuration): Promise> { + return this.api.listControllerRevisionForAllNamespacesWithHttpInfo(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); + } + /** * list or watch objects of kind ControllerRevision * @param param the request object @@ -5293,6 +5765,14 @@ export class ObjectAppsV1Api { return this.api.listControllerRevisionForAllNamespaces(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } + /** + * list or watch objects of kind DaemonSet + * @param param the request object + */ + public listDaemonSetForAllNamespacesWithHttpInfo(param: AppsV1ApiListDaemonSetForAllNamespacesRequest = {}, options?: Configuration): Promise> { + return this.api.listDaemonSetForAllNamespacesWithHttpInfo(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); + } + /** * list or watch objects of kind DaemonSet * @param param the request object @@ -5301,6 +5781,14 @@ export class ObjectAppsV1Api { return this.api.listDaemonSetForAllNamespaces(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } + /** + * list or watch objects of kind Deployment + * @param param the request object + */ + public listDeploymentForAllNamespacesWithHttpInfo(param: AppsV1ApiListDeploymentForAllNamespacesRequest = {}, options?: Configuration): Promise> { + return this.api.listDeploymentForAllNamespacesWithHttpInfo(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); + } + /** * list or watch objects of kind Deployment * @param param the request object @@ -5309,6 +5797,14 @@ export class ObjectAppsV1Api { return this.api.listDeploymentForAllNamespaces(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } + /** + * list or watch objects of kind ControllerRevision + * @param param the request object + */ + public listNamespacedControllerRevisionWithHttpInfo(param: AppsV1ApiListNamespacedControllerRevisionRequest, options?: Configuration): Promise> { + return this.api.listNamespacedControllerRevisionWithHttpInfo(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); + } + /** * list or watch objects of kind ControllerRevision * @param param the request object @@ -5317,6 +5813,14 @@ export class ObjectAppsV1Api { return this.api.listNamespacedControllerRevision(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } + /** + * list or watch objects of kind DaemonSet + * @param param the request object + */ + public listNamespacedDaemonSetWithHttpInfo(param: AppsV1ApiListNamespacedDaemonSetRequest, options?: Configuration): Promise> { + return this.api.listNamespacedDaemonSetWithHttpInfo(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); + } + /** * list or watch objects of kind DaemonSet * @param param the request object @@ -5325,6 +5829,14 @@ export class ObjectAppsV1Api { return this.api.listNamespacedDaemonSet(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } + /** + * list or watch objects of kind Deployment + * @param param the request object + */ + public listNamespacedDeploymentWithHttpInfo(param: AppsV1ApiListNamespacedDeploymentRequest, options?: Configuration): Promise> { + return this.api.listNamespacedDeploymentWithHttpInfo(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); + } + /** * list or watch objects of kind Deployment * @param param the request object @@ -5333,6 +5845,14 @@ export class ObjectAppsV1Api { return this.api.listNamespacedDeployment(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } + /** + * list or watch objects of kind ReplicaSet + * @param param the request object + */ + public listNamespacedReplicaSetWithHttpInfo(param: AppsV1ApiListNamespacedReplicaSetRequest, options?: Configuration): Promise> { + return this.api.listNamespacedReplicaSetWithHttpInfo(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); + } + /** * list or watch objects of kind ReplicaSet * @param param the request object @@ -5341,6 +5861,14 @@ export class ObjectAppsV1Api { return this.api.listNamespacedReplicaSet(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } + /** + * list or watch objects of kind StatefulSet + * @param param the request object + */ + public listNamespacedStatefulSetWithHttpInfo(param: AppsV1ApiListNamespacedStatefulSetRequest, options?: Configuration): Promise> { + return this.api.listNamespacedStatefulSetWithHttpInfo(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); + } + /** * list or watch objects of kind StatefulSet * @param param the request object @@ -5349,6 +5877,14 @@ export class ObjectAppsV1Api { return this.api.listNamespacedStatefulSet(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } + /** + * list or watch objects of kind ReplicaSet + * @param param the request object + */ + public listReplicaSetForAllNamespacesWithHttpInfo(param: AppsV1ApiListReplicaSetForAllNamespacesRequest = {}, options?: Configuration): Promise> { + return this.api.listReplicaSetForAllNamespacesWithHttpInfo(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); + } + /** * list or watch objects of kind ReplicaSet * @param param the request object @@ -5357,6 +5893,14 @@ export class ObjectAppsV1Api { return this.api.listReplicaSetForAllNamespaces(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } + /** + * list or watch objects of kind StatefulSet + * @param param the request object + */ + public listStatefulSetForAllNamespacesWithHttpInfo(param: AppsV1ApiListStatefulSetForAllNamespacesRequest = {}, options?: Configuration): Promise> { + return this.api.listStatefulSetForAllNamespacesWithHttpInfo(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); + } + /** * list or watch objects of kind StatefulSet * @param param the request object @@ -5365,6 +5909,14 @@ export class ObjectAppsV1Api { return this.api.listStatefulSetForAllNamespaces(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } + /** + * partially update the specified ControllerRevision + * @param param the request object + */ + public patchNamespacedControllerRevisionWithHttpInfo(param: AppsV1ApiPatchNamespacedControllerRevisionRequest, options?: Configuration): Promise> { + return this.api.patchNamespacedControllerRevisionWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); + } + /** * partially update the specified ControllerRevision * @param param the request object @@ -5373,6 +5925,14 @@ export class ObjectAppsV1Api { return this.api.patchNamespacedControllerRevision(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); } + /** + * partially update the specified DaemonSet + * @param param the request object + */ + public patchNamespacedDaemonSetWithHttpInfo(param: AppsV1ApiPatchNamespacedDaemonSetRequest, options?: Configuration): Promise> { + return this.api.patchNamespacedDaemonSetWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); + } + /** * partially update the specified DaemonSet * @param param the request object @@ -5381,6 +5941,14 @@ export class ObjectAppsV1Api { return this.api.patchNamespacedDaemonSet(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); } + /** + * partially update status of the specified DaemonSet + * @param param the request object + */ + public patchNamespacedDaemonSetStatusWithHttpInfo(param: AppsV1ApiPatchNamespacedDaemonSetStatusRequest, options?: Configuration): Promise> { + return this.api.patchNamespacedDaemonSetStatusWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); + } + /** * partially update status of the specified DaemonSet * @param param the request object @@ -5389,6 +5957,14 @@ export class ObjectAppsV1Api { return this.api.patchNamespacedDaemonSetStatus(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); } + /** + * partially update the specified Deployment + * @param param the request object + */ + public patchNamespacedDeploymentWithHttpInfo(param: AppsV1ApiPatchNamespacedDeploymentRequest, options?: Configuration): Promise> { + return this.api.patchNamespacedDeploymentWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); + } + /** * partially update the specified Deployment * @param param the request object @@ -5397,6 +5973,14 @@ export class ObjectAppsV1Api { return this.api.patchNamespacedDeployment(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); } + /** + * partially update scale of the specified Deployment + * @param param the request object + */ + public patchNamespacedDeploymentScaleWithHttpInfo(param: AppsV1ApiPatchNamespacedDeploymentScaleRequest, options?: Configuration): Promise> { + return this.api.patchNamespacedDeploymentScaleWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); + } + /** * partially update scale of the specified Deployment * @param param the request object @@ -5405,6 +5989,14 @@ export class ObjectAppsV1Api { return this.api.patchNamespacedDeploymentScale(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); } + /** + * partially update status of the specified Deployment + * @param param the request object + */ + public patchNamespacedDeploymentStatusWithHttpInfo(param: AppsV1ApiPatchNamespacedDeploymentStatusRequest, options?: Configuration): Promise> { + return this.api.patchNamespacedDeploymentStatusWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); + } + /** * partially update status of the specified Deployment * @param param the request object @@ -5413,6 +6005,14 @@ export class ObjectAppsV1Api { return this.api.patchNamespacedDeploymentStatus(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); } + /** + * partially update the specified ReplicaSet + * @param param the request object + */ + public patchNamespacedReplicaSetWithHttpInfo(param: AppsV1ApiPatchNamespacedReplicaSetRequest, options?: Configuration): Promise> { + return this.api.patchNamespacedReplicaSetWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); + } + /** * partially update the specified ReplicaSet * @param param the request object @@ -5421,6 +6021,14 @@ export class ObjectAppsV1Api { return this.api.patchNamespacedReplicaSet(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); } + /** + * partially update scale of the specified ReplicaSet + * @param param the request object + */ + public patchNamespacedReplicaSetScaleWithHttpInfo(param: AppsV1ApiPatchNamespacedReplicaSetScaleRequest, options?: Configuration): Promise> { + return this.api.patchNamespacedReplicaSetScaleWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); + } + /** * partially update scale of the specified ReplicaSet * @param param the request object @@ -5429,6 +6037,14 @@ export class ObjectAppsV1Api { return this.api.patchNamespacedReplicaSetScale(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); } + /** + * partially update status of the specified ReplicaSet + * @param param the request object + */ + public patchNamespacedReplicaSetStatusWithHttpInfo(param: AppsV1ApiPatchNamespacedReplicaSetStatusRequest, options?: Configuration): Promise> { + return this.api.patchNamespacedReplicaSetStatusWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); + } + /** * partially update status of the specified ReplicaSet * @param param the request object @@ -5437,6 +6053,14 @@ export class ObjectAppsV1Api { return this.api.patchNamespacedReplicaSetStatus(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); } + /** + * partially update the specified StatefulSet + * @param param the request object + */ + public patchNamespacedStatefulSetWithHttpInfo(param: AppsV1ApiPatchNamespacedStatefulSetRequest, options?: Configuration): Promise> { + return this.api.patchNamespacedStatefulSetWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); + } + /** * partially update the specified StatefulSet * @param param the request object @@ -5445,6 +6069,14 @@ export class ObjectAppsV1Api { return this.api.patchNamespacedStatefulSet(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); } + /** + * partially update scale of the specified StatefulSet + * @param param the request object + */ + public patchNamespacedStatefulSetScaleWithHttpInfo(param: AppsV1ApiPatchNamespacedStatefulSetScaleRequest, options?: Configuration): Promise> { + return this.api.patchNamespacedStatefulSetScaleWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); + } + /** * partially update scale of the specified StatefulSet * @param param the request object @@ -5453,6 +6085,14 @@ export class ObjectAppsV1Api { return this.api.patchNamespacedStatefulSetScale(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); } + /** + * partially update status of the specified StatefulSet + * @param param the request object + */ + public patchNamespacedStatefulSetStatusWithHttpInfo(param: AppsV1ApiPatchNamespacedStatefulSetStatusRequest, options?: Configuration): Promise> { + return this.api.patchNamespacedStatefulSetStatusWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); + } + /** * partially update status of the specified StatefulSet * @param param the request object @@ -5461,6 +6101,14 @@ export class ObjectAppsV1Api { return this.api.patchNamespacedStatefulSetStatus(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); } + /** + * read the specified ControllerRevision + * @param param the request object + */ + public readNamespacedControllerRevisionWithHttpInfo(param: AppsV1ApiReadNamespacedControllerRevisionRequest, options?: Configuration): Promise> { + return this.api.readNamespacedControllerRevisionWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); + } + /** * read the specified ControllerRevision * @param param the request object @@ -5469,6 +6117,14 @@ export class ObjectAppsV1Api { return this.api.readNamespacedControllerRevision(param.name, param.namespace, param.pretty, options).toPromise(); } + /** + * read the specified DaemonSet + * @param param the request object + */ + public readNamespacedDaemonSetWithHttpInfo(param: AppsV1ApiReadNamespacedDaemonSetRequest, options?: Configuration): Promise> { + return this.api.readNamespacedDaemonSetWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); + } + /** * read the specified DaemonSet * @param param the request object @@ -5477,6 +6133,14 @@ export class ObjectAppsV1Api { return this.api.readNamespacedDaemonSet(param.name, param.namespace, param.pretty, options).toPromise(); } + /** + * read status of the specified DaemonSet + * @param param the request object + */ + public readNamespacedDaemonSetStatusWithHttpInfo(param: AppsV1ApiReadNamespacedDaemonSetStatusRequest, options?: Configuration): Promise> { + return this.api.readNamespacedDaemonSetStatusWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); + } + /** * read status of the specified DaemonSet * @param param the request object @@ -5485,6 +6149,14 @@ export class ObjectAppsV1Api { return this.api.readNamespacedDaemonSetStatus(param.name, param.namespace, param.pretty, options).toPromise(); } + /** + * read the specified Deployment + * @param param the request object + */ + public readNamespacedDeploymentWithHttpInfo(param: AppsV1ApiReadNamespacedDeploymentRequest, options?: Configuration): Promise> { + return this.api.readNamespacedDeploymentWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); + } + /** * read the specified Deployment * @param param the request object @@ -5493,6 +6165,14 @@ export class ObjectAppsV1Api { return this.api.readNamespacedDeployment(param.name, param.namespace, param.pretty, options).toPromise(); } + /** + * read scale of the specified Deployment + * @param param the request object + */ + public readNamespacedDeploymentScaleWithHttpInfo(param: AppsV1ApiReadNamespacedDeploymentScaleRequest, options?: Configuration): Promise> { + return this.api.readNamespacedDeploymentScaleWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); + } + /** * read scale of the specified Deployment * @param param the request object @@ -5505,8 +6185,24 @@ export class ObjectAppsV1Api { * read status of the specified Deployment * @param param the request object */ - public readNamespacedDeploymentStatus(param: AppsV1ApiReadNamespacedDeploymentStatusRequest, options?: Configuration): Promise { - return this.api.readNamespacedDeploymentStatus(param.name, param.namespace, param.pretty, options).toPromise(); + public readNamespacedDeploymentStatusWithHttpInfo(param: AppsV1ApiReadNamespacedDeploymentStatusRequest, options?: Configuration): Promise> { + return this.api.readNamespacedDeploymentStatusWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); + } + + /** + * read status of the specified Deployment + * @param param the request object + */ + public readNamespacedDeploymentStatus(param: AppsV1ApiReadNamespacedDeploymentStatusRequest, options?: Configuration): Promise { + return this.api.readNamespacedDeploymentStatus(param.name, param.namespace, param.pretty, options).toPromise(); + } + + /** + * read the specified ReplicaSet + * @param param the request object + */ + public readNamespacedReplicaSetWithHttpInfo(param: AppsV1ApiReadNamespacedReplicaSetRequest, options?: Configuration): Promise> { + return this.api.readNamespacedReplicaSetWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); } /** @@ -5517,6 +6213,14 @@ export class ObjectAppsV1Api { return this.api.readNamespacedReplicaSet(param.name, param.namespace, param.pretty, options).toPromise(); } + /** + * read scale of the specified ReplicaSet + * @param param the request object + */ + public readNamespacedReplicaSetScaleWithHttpInfo(param: AppsV1ApiReadNamespacedReplicaSetScaleRequest, options?: Configuration): Promise> { + return this.api.readNamespacedReplicaSetScaleWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); + } + /** * read scale of the specified ReplicaSet * @param param the request object @@ -5525,6 +6229,14 @@ export class ObjectAppsV1Api { return this.api.readNamespacedReplicaSetScale(param.name, param.namespace, param.pretty, options).toPromise(); } + /** + * read status of the specified ReplicaSet + * @param param the request object + */ + public readNamespacedReplicaSetStatusWithHttpInfo(param: AppsV1ApiReadNamespacedReplicaSetStatusRequest, options?: Configuration): Promise> { + return this.api.readNamespacedReplicaSetStatusWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); + } + /** * read status of the specified ReplicaSet * @param param the request object @@ -5533,6 +6245,14 @@ export class ObjectAppsV1Api { return this.api.readNamespacedReplicaSetStatus(param.name, param.namespace, param.pretty, options).toPromise(); } + /** + * read the specified StatefulSet + * @param param the request object + */ + public readNamespacedStatefulSetWithHttpInfo(param: AppsV1ApiReadNamespacedStatefulSetRequest, options?: Configuration): Promise> { + return this.api.readNamespacedStatefulSetWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); + } + /** * read the specified StatefulSet * @param param the request object @@ -5541,6 +6261,14 @@ export class ObjectAppsV1Api { return this.api.readNamespacedStatefulSet(param.name, param.namespace, param.pretty, options).toPromise(); } + /** + * read scale of the specified StatefulSet + * @param param the request object + */ + public readNamespacedStatefulSetScaleWithHttpInfo(param: AppsV1ApiReadNamespacedStatefulSetScaleRequest, options?: Configuration): Promise> { + return this.api.readNamespacedStatefulSetScaleWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); + } + /** * read scale of the specified StatefulSet * @param param the request object @@ -5549,6 +6277,14 @@ export class ObjectAppsV1Api { return this.api.readNamespacedStatefulSetScale(param.name, param.namespace, param.pretty, options).toPromise(); } + /** + * read status of the specified StatefulSet + * @param param the request object + */ + public readNamespacedStatefulSetStatusWithHttpInfo(param: AppsV1ApiReadNamespacedStatefulSetStatusRequest, options?: Configuration): Promise> { + return this.api.readNamespacedStatefulSetStatusWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); + } + /** * read status of the specified StatefulSet * @param param the request object @@ -5557,6 +6293,14 @@ export class ObjectAppsV1Api { return this.api.readNamespacedStatefulSetStatus(param.name, param.namespace, param.pretty, options).toPromise(); } + /** + * replace the specified ControllerRevision + * @param param the request object + */ + public replaceNamespacedControllerRevisionWithHttpInfo(param: AppsV1ApiReplaceNamespacedControllerRevisionRequest, options?: Configuration): Promise> { + return this.api.replaceNamespacedControllerRevisionWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * replace the specified ControllerRevision * @param param the request object @@ -5565,6 +6309,14 @@ export class ObjectAppsV1Api { return this.api.replaceNamespacedControllerRevision(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * replace the specified DaemonSet + * @param param the request object + */ + public replaceNamespacedDaemonSetWithHttpInfo(param: AppsV1ApiReplaceNamespacedDaemonSetRequest, options?: Configuration): Promise> { + return this.api.replaceNamespacedDaemonSetWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * replace the specified DaemonSet * @param param the request object @@ -5573,6 +6325,14 @@ export class ObjectAppsV1Api { return this.api.replaceNamespacedDaemonSet(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * replace status of the specified DaemonSet + * @param param the request object + */ + public replaceNamespacedDaemonSetStatusWithHttpInfo(param: AppsV1ApiReplaceNamespacedDaemonSetStatusRequest, options?: Configuration): Promise> { + return this.api.replaceNamespacedDaemonSetStatusWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * replace status of the specified DaemonSet * @param param the request object @@ -5581,6 +6341,14 @@ export class ObjectAppsV1Api { return this.api.replaceNamespacedDaemonSetStatus(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * replace the specified Deployment + * @param param the request object + */ + public replaceNamespacedDeploymentWithHttpInfo(param: AppsV1ApiReplaceNamespacedDeploymentRequest, options?: Configuration): Promise> { + return this.api.replaceNamespacedDeploymentWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * replace the specified Deployment * @param param the request object @@ -5589,6 +6357,14 @@ export class ObjectAppsV1Api { return this.api.replaceNamespacedDeployment(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * replace scale of the specified Deployment + * @param param the request object + */ + public replaceNamespacedDeploymentScaleWithHttpInfo(param: AppsV1ApiReplaceNamespacedDeploymentScaleRequest, options?: Configuration): Promise> { + return this.api.replaceNamespacedDeploymentScaleWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * replace scale of the specified Deployment * @param param the request object @@ -5597,6 +6373,14 @@ export class ObjectAppsV1Api { return this.api.replaceNamespacedDeploymentScale(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * replace status of the specified Deployment + * @param param the request object + */ + public replaceNamespacedDeploymentStatusWithHttpInfo(param: AppsV1ApiReplaceNamespacedDeploymentStatusRequest, options?: Configuration): Promise> { + return this.api.replaceNamespacedDeploymentStatusWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * replace status of the specified Deployment * @param param the request object @@ -5605,6 +6389,14 @@ export class ObjectAppsV1Api { return this.api.replaceNamespacedDeploymentStatus(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * replace the specified ReplicaSet + * @param param the request object + */ + public replaceNamespacedReplicaSetWithHttpInfo(param: AppsV1ApiReplaceNamespacedReplicaSetRequest, options?: Configuration): Promise> { + return this.api.replaceNamespacedReplicaSetWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * replace the specified ReplicaSet * @param param the request object @@ -5613,6 +6405,14 @@ export class ObjectAppsV1Api { return this.api.replaceNamespacedReplicaSet(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * replace scale of the specified ReplicaSet + * @param param the request object + */ + public replaceNamespacedReplicaSetScaleWithHttpInfo(param: AppsV1ApiReplaceNamespacedReplicaSetScaleRequest, options?: Configuration): Promise> { + return this.api.replaceNamespacedReplicaSetScaleWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * replace scale of the specified ReplicaSet * @param param the request object @@ -5621,6 +6421,14 @@ export class ObjectAppsV1Api { return this.api.replaceNamespacedReplicaSetScale(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * replace status of the specified ReplicaSet + * @param param the request object + */ + public replaceNamespacedReplicaSetStatusWithHttpInfo(param: AppsV1ApiReplaceNamespacedReplicaSetStatusRequest, options?: Configuration): Promise> { + return this.api.replaceNamespacedReplicaSetStatusWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * replace status of the specified ReplicaSet * @param param the request object @@ -5629,6 +6437,14 @@ export class ObjectAppsV1Api { return this.api.replaceNamespacedReplicaSetStatus(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * replace the specified StatefulSet + * @param param the request object + */ + public replaceNamespacedStatefulSetWithHttpInfo(param: AppsV1ApiReplaceNamespacedStatefulSetRequest, options?: Configuration): Promise> { + return this.api.replaceNamespacedStatefulSetWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * replace the specified StatefulSet * @param param the request object @@ -5637,6 +6453,14 @@ export class ObjectAppsV1Api { return this.api.replaceNamespacedStatefulSet(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * replace scale of the specified StatefulSet + * @param param the request object + */ + public replaceNamespacedStatefulSetScaleWithHttpInfo(param: AppsV1ApiReplaceNamespacedStatefulSetScaleRequest, options?: Configuration): Promise> { + return this.api.replaceNamespacedStatefulSetScaleWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * replace scale of the specified StatefulSet * @param param the request object @@ -5645,6 +6469,14 @@ export class ObjectAppsV1Api { return this.api.replaceNamespacedStatefulSetScale(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * replace status of the specified StatefulSet + * @param param the request object + */ + public replaceNamespacedStatefulSetStatusWithHttpInfo(param: AppsV1ApiReplaceNamespacedStatefulSetStatusRequest, options?: Configuration): Promise> { + return this.api.replaceNamespacedStatefulSetStatusWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * replace status of the specified StatefulSet * @param param the request object @@ -5668,6 +6500,14 @@ export class ObjectAuthenticationApi { this.api = new ObservableAuthenticationApi(configuration, requestFactory, responseProcessor); } + /** + * get information of a group + * @param param the request object + */ + public getAPIGroupWithHttpInfo(param: AuthenticationApiGetAPIGroupRequest = {}, options?: Configuration): Promise> { + return this.api.getAPIGroupWithHttpInfo( options).toPromise(); + } + /** * get information of a group * @param param the request object @@ -5718,6 +6558,14 @@ export class ObjectAuthenticationV1Api { this.api = new ObservableAuthenticationV1Api(configuration, requestFactory, responseProcessor); } + /** + * create a TokenReview + * @param param the request object + */ + public createTokenReviewWithHttpInfo(param: AuthenticationV1ApiCreateTokenReviewRequest, options?: Configuration): Promise> { + return this.api.createTokenReviewWithHttpInfo(param.body, param.dryRun, param.fieldManager, param.pretty, options).toPromise(); + } + /** * create a TokenReview * @param param the request object @@ -5726,6 +6574,14 @@ export class ObjectAuthenticationV1Api { return this.api.createTokenReview(param.body, param.dryRun, param.fieldManager, param.pretty, options).toPromise(); } + /** + * get available resources + * @param param the request object + */ + public getAPIResourcesWithHttpInfo(param: AuthenticationV1ApiGetAPIResourcesRequest = {}, options?: Configuration): Promise> { + return this.api.getAPIResourcesWithHttpInfo( options).toPromise(); + } + /** * get available resources * @param param the request object @@ -5749,6 +6605,14 @@ export class ObjectAuthorizationApi { this.api = new ObservableAuthorizationApi(configuration, requestFactory, responseProcessor); } + /** + * get information of a group + * @param param the request object + */ + public getAPIGroupWithHttpInfo(param: AuthorizationApiGetAPIGroupRequest = {}, options?: Configuration): Promise> { + return this.api.getAPIGroupWithHttpInfo( options).toPromise(); + } + /** * get information of a group * @param param the request object @@ -5886,6 +6750,14 @@ export class ObjectAuthorizationV1Api { this.api = new ObservableAuthorizationV1Api(configuration, requestFactory, responseProcessor); } + /** + * create a LocalSubjectAccessReview + * @param param the request object + */ + public createNamespacedLocalSubjectAccessReviewWithHttpInfo(param: AuthorizationV1ApiCreateNamespacedLocalSubjectAccessReviewRequest, options?: Configuration): Promise> { + return this.api.createNamespacedLocalSubjectAccessReviewWithHttpInfo(param.namespace, param.body, param.dryRun, param.fieldManager, param.pretty, options).toPromise(); + } + /** * create a LocalSubjectAccessReview * @param param the request object @@ -5894,6 +6766,14 @@ export class ObjectAuthorizationV1Api { return this.api.createNamespacedLocalSubjectAccessReview(param.namespace, param.body, param.dryRun, param.fieldManager, param.pretty, options).toPromise(); } + /** + * create a SelfSubjectAccessReview + * @param param the request object + */ + public createSelfSubjectAccessReviewWithHttpInfo(param: AuthorizationV1ApiCreateSelfSubjectAccessReviewRequest, options?: Configuration): Promise> { + return this.api.createSelfSubjectAccessReviewWithHttpInfo(param.body, param.dryRun, param.fieldManager, param.pretty, options).toPromise(); + } + /** * create a SelfSubjectAccessReview * @param param the request object @@ -5902,6 +6782,14 @@ export class ObjectAuthorizationV1Api { return this.api.createSelfSubjectAccessReview(param.body, param.dryRun, param.fieldManager, param.pretty, options).toPromise(); } + /** + * create a SelfSubjectRulesReview + * @param param the request object + */ + public createSelfSubjectRulesReviewWithHttpInfo(param: AuthorizationV1ApiCreateSelfSubjectRulesReviewRequest, options?: Configuration): Promise> { + return this.api.createSelfSubjectRulesReviewWithHttpInfo(param.body, param.dryRun, param.fieldManager, param.pretty, options).toPromise(); + } + /** * create a SelfSubjectRulesReview * @param param the request object @@ -5910,6 +6798,14 @@ export class ObjectAuthorizationV1Api { return this.api.createSelfSubjectRulesReview(param.body, param.dryRun, param.fieldManager, param.pretty, options).toPromise(); } + /** + * create a SubjectAccessReview + * @param param the request object + */ + public createSubjectAccessReviewWithHttpInfo(param: AuthorizationV1ApiCreateSubjectAccessReviewRequest, options?: Configuration): Promise> { + return this.api.createSubjectAccessReviewWithHttpInfo(param.body, param.dryRun, param.fieldManager, param.pretty, options).toPromise(); + } + /** * create a SubjectAccessReview * @param param the request object @@ -5918,6 +6814,14 @@ export class ObjectAuthorizationV1Api { return this.api.createSubjectAccessReview(param.body, param.dryRun, param.fieldManager, param.pretty, options).toPromise(); } + /** + * get available resources + * @param param the request object + */ + public getAPIResourcesWithHttpInfo(param: AuthorizationV1ApiGetAPIResourcesRequest = {}, options?: Configuration): Promise> { + return this.api.getAPIResourcesWithHttpInfo( options).toPromise(); + } + /** * get available resources * @param param the request object @@ -5941,6 +6845,14 @@ export class ObjectAutoscalingApi { this.api = new ObservableAutoscalingApi(configuration, requestFactory, responseProcessor); } + /** + * get information of a group + * @param param the request object + */ + public getAPIGroupWithHttpInfo(param: AutoscalingApiGetAPIGroupRequest = {}, options?: Configuration): Promise> { + return this.api.getAPIGroupWithHttpInfo( options).toPromise(); + } + /** * get information of a group * @param param the request object @@ -6477,6 +7389,14 @@ export class ObjectAutoscalingV1Api { this.api = new ObservableAutoscalingV1Api(configuration, requestFactory, responseProcessor); } + /** + * create a HorizontalPodAutoscaler + * @param param the request object + */ + public createNamespacedHorizontalPodAutoscalerWithHttpInfo(param: AutoscalingV1ApiCreateNamespacedHorizontalPodAutoscalerRequest, options?: Configuration): Promise> { + return this.api.createNamespacedHorizontalPodAutoscalerWithHttpInfo(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * create a HorizontalPodAutoscaler * @param param the request object @@ -6485,6 +7405,14 @@ export class ObjectAutoscalingV1Api { return this.api.createNamespacedHorizontalPodAutoscaler(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * delete collection of HorizontalPodAutoscaler + * @param param the request object + */ + public deleteCollectionNamespacedHorizontalPodAutoscalerWithHttpInfo(param: AutoscalingV1ApiDeleteCollectionNamespacedHorizontalPodAutoscalerRequest, options?: Configuration): Promise> { + return this.api.deleteCollectionNamespacedHorizontalPodAutoscalerWithHttpInfo(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); + } + /** * delete collection of HorizontalPodAutoscaler * @param param the request object @@ -6493,6 +7421,14 @@ export class ObjectAutoscalingV1Api { return this.api.deleteCollectionNamespacedHorizontalPodAutoscaler(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); } + /** + * delete a HorizontalPodAutoscaler + * @param param the request object + */ + public deleteNamespacedHorizontalPodAutoscalerWithHttpInfo(param: AutoscalingV1ApiDeleteNamespacedHorizontalPodAutoscalerRequest, options?: Configuration): Promise> { + return this.api.deleteNamespacedHorizontalPodAutoscalerWithHttpInfo(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); + } + /** * delete a HorizontalPodAutoscaler * @param param the request object @@ -6501,6 +7437,14 @@ export class ObjectAutoscalingV1Api { return this.api.deleteNamespacedHorizontalPodAutoscaler(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } + /** + * get available resources + * @param param the request object + */ + public getAPIResourcesWithHttpInfo(param: AutoscalingV1ApiGetAPIResourcesRequest = {}, options?: Configuration): Promise> { + return this.api.getAPIResourcesWithHttpInfo( options).toPromise(); + } + /** * get available resources * @param param the request object @@ -6509,6 +7453,14 @@ export class ObjectAutoscalingV1Api { return this.api.getAPIResources( options).toPromise(); } + /** + * list or watch objects of kind HorizontalPodAutoscaler + * @param param the request object + */ + public listHorizontalPodAutoscalerForAllNamespacesWithHttpInfo(param: AutoscalingV1ApiListHorizontalPodAutoscalerForAllNamespacesRequest = {}, options?: Configuration): Promise> { + return this.api.listHorizontalPodAutoscalerForAllNamespacesWithHttpInfo(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); + } + /** * list or watch objects of kind HorizontalPodAutoscaler * @param param the request object @@ -6517,6 +7469,14 @@ export class ObjectAutoscalingV1Api { return this.api.listHorizontalPodAutoscalerForAllNamespaces(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } + /** + * list or watch objects of kind HorizontalPodAutoscaler + * @param param the request object + */ + public listNamespacedHorizontalPodAutoscalerWithHttpInfo(param: AutoscalingV1ApiListNamespacedHorizontalPodAutoscalerRequest, options?: Configuration): Promise> { + return this.api.listNamespacedHorizontalPodAutoscalerWithHttpInfo(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); + } + /** * list or watch objects of kind HorizontalPodAutoscaler * @param param the request object @@ -6525,6 +7485,14 @@ export class ObjectAutoscalingV1Api { return this.api.listNamespacedHorizontalPodAutoscaler(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } + /** + * partially update the specified HorizontalPodAutoscaler + * @param param the request object + */ + public patchNamespacedHorizontalPodAutoscalerWithHttpInfo(param: AutoscalingV1ApiPatchNamespacedHorizontalPodAutoscalerRequest, options?: Configuration): Promise> { + return this.api.patchNamespacedHorizontalPodAutoscalerWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); + } + /** * partially update the specified HorizontalPodAutoscaler * @param param the request object @@ -6533,6 +7501,14 @@ export class ObjectAutoscalingV1Api { return this.api.patchNamespacedHorizontalPodAutoscaler(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); } + /** + * partially update status of the specified HorizontalPodAutoscaler + * @param param the request object + */ + public patchNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(param: AutoscalingV1ApiPatchNamespacedHorizontalPodAutoscalerStatusRequest, options?: Configuration): Promise> { + return this.api.patchNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); + } + /** * partially update status of the specified HorizontalPodAutoscaler * @param param the request object @@ -6541,6 +7517,14 @@ export class ObjectAutoscalingV1Api { return this.api.patchNamespacedHorizontalPodAutoscalerStatus(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); } + /** + * read the specified HorizontalPodAutoscaler + * @param param the request object + */ + public readNamespacedHorizontalPodAutoscalerWithHttpInfo(param: AutoscalingV1ApiReadNamespacedHorizontalPodAutoscalerRequest, options?: Configuration): Promise> { + return this.api.readNamespacedHorizontalPodAutoscalerWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); + } + /** * read the specified HorizontalPodAutoscaler * @param param the request object @@ -6549,6 +7533,14 @@ export class ObjectAutoscalingV1Api { return this.api.readNamespacedHorizontalPodAutoscaler(param.name, param.namespace, param.pretty, options).toPromise(); } + /** + * read status of the specified HorizontalPodAutoscaler + * @param param the request object + */ + public readNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(param: AutoscalingV1ApiReadNamespacedHorizontalPodAutoscalerStatusRequest, options?: Configuration): Promise> { + return this.api.readNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); + } + /** * read status of the specified HorizontalPodAutoscaler * @param param the request object @@ -6557,6 +7549,14 @@ export class ObjectAutoscalingV1Api { return this.api.readNamespacedHorizontalPodAutoscalerStatus(param.name, param.namespace, param.pretty, options).toPromise(); } + /** + * replace the specified HorizontalPodAutoscaler + * @param param the request object + */ + public replaceNamespacedHorizontalPodAutoscalerWithHttpInfo(param: AutoscalingV1ApiReplaceNamespacedHorizontalPodAutoscalerRequest, options?: Configuration): Promise> { + return this.api.replaceNamespacedHorizontalPodAutoscalerWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * replace the specified HorizontalPodAutoscaler * @param param the request object @@ -6565,6 +7565,14 @@ export class ObjectAutoscalingV1Api { return this.api.replaceNamespacedHorizontalPodAutoscaler(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * replace status of the specified HorizontalPodAutoscaler + * @param param the request object + */ + public replaceNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(param: AutoscalingV1ApiReplaceNamespacedHorizontalPodAutoscalerStatusRequest, options?: Configuration): Promise> { + return this.api.replaceNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * replace status of the specified HorizontalPodAutoscaler * @param param the request object @@ -7101,6 +8109,14 @@ export class ObjectAutoscalingV2beta1Api { this.api = new ObservableAutoscalingV2beta1Api(configuration, requestFactory, responseProcessor); } + /** + * create a HorizontalPodAutoscaler + * @param param the request object + */ + public createNamespacedHorizontalPodAutoscalerWithHttpInfo(param: AutoscalingV2beta1ApiCreateNamespacedHorizontalPodAutoscalerRequest, options?: Configuration): Promise> { + return this.api.createNamespacedHorizontalPodAutoscalerWithHttpInfo(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * create a HorizontalPodAutoscaler * @param param the request object @@ -7109,6 +8125,14 @@ export class ObjectAutoscalingV2beta1Api { return this.api.createNamespacedHorizontalPodAutoscaler(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * delete collection of HorizontalPodAutoscaler + * @param param the request object + */ + public deleteCollectionNamespacedHorizontalPodAutoscalerWithHttpInfo(param: AutoscalingV2beta1ApiDeleteCollectionNamespacedHorizontalPodAutoscalerRequest, options?: Configuration): Promise> { + return this.api.deleteCollectionNamespacedHorizontalPodAutoscalerWithHttpInfo(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); + } + /** * delete collection of HorizontalPodAutoscaler * @param param the request object @@ -7117,6 +8141,14 @@ export class ObjectAutoscalingV2beta1Api { return this.api.deleteCollectionNamespacedHorizontalPodAutoscaler(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); } + /** + * delete a HorizontalPodAutoscaler + * @param param the request object + */ + public deleteNamespacedHorizontalPodAutoscalerWithHttpInfo(param: AutoscalingV2beta1ApiDeleteNamespacedHorizontalPodAutoscalerRequest, options?: Configuration): Promise> { + return this.api.deleteNamespacedHorizontalPodAutoscalerWithHttpInfo(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); + } + /** * delete a HorizontalPodAutoscaler * @param param the request object @@ -7125,6 +8157,14 @@ export class ObjectAutoscalingV2beta1Api { return this.api.deleteNamespacedHorizontalPodAutoscaler(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } + /** + * get available resources + * @param param the request object + */ + public getAPIResourcesWithHttpInfo(param: AutoscalingV2beta1ApiGetAPIResourcesRequest = {}, options?: Configuration): Promise> { + return this.api.getAPIResourcesWithHttpInfo( options).toPromise(); + } + /** * get available resources * @param param the request object @@ -7133,6 +8173,14 @@ export class ObjectAutoscalingV2beta1Api { return this.api.getAPIResources( options).toPromise(); } + /** + * list or watch objects of kind HorizontalPodAutoscaler + * @param param the request object + */ + public listHorizontalPodAutoscalerForAllNamespacesWithHttpInfo(param: AutoscalingV2beta1ApiListHorizontalPodAutoscalerForAllNamespacesRequest = {}, options?: Configuration): Promise> { + return this.api.listHorizontalPodAutoscalerForAllNamespacesWithHttpInfo(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); + } + /** * list or watch objects of kind HorizontalPodAutoscaler * @param param the request object @@ -7141,6 +8189,14 @@ export class ObjectAutoscalingV2beta1Api { return this.api.listHorizontalPodAutoscalerForAllNamespaces(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } + /** + * list or watch objects of kind HorizontalPodAutoscaler + * @param param the request object + */ + public listNamespacedHorizontalPodAutoscalerWithHttpInfo(param: AutoscalingV2beta1ApiListNamespacedHorizontalPodAutoscalerRequest, options?: Configuration): Promise> { + return this.api.listNamespacedHorizontalPodAutoscalerWithHttpInfo(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); + } + /** * list or watch objects of kind HorizontalPodAutoscaler * @param param the request object @@ -7149,6 +8205,14 @@ export class ObjectAutoscalingV2beta1Api { return this.api.listNamespacedHorizontalPodAutoscaler(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } + /** + * partially update the specified HorizontalPodAutoscaler + * @param param the request object + */ + public patchNamespacedHorizontalPodAutoscalerWithHttpInfo(param: AutoscalingV2beta1ApiPatchNamespacedHorizontalPodAutoscalerRequest, options?: Configuration): Promise> { + return this.api.patchNamespacedHorizontalPodAutoscalerWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); + } + /** * partially update the specified HorizontalPodAutoscaler * @param param the request object @@ -7157,6 +8221,14 @@ export class ObjectAutoscalingV2beta1Api { return this.api.patchNamespacedHorizontalPodAutoscaler(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); } + /** + * partially update status of the specified HorizontalPodAutoscaler + * @param param the request object + */ + public patchNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(param: AutoscalingV2beta1ApiPatchNamespacedHorizontalPodAutoscalerStatusRequest, options?: Configuration): Promise> { + return this.api.patchNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); + } + /** * partially update status of the specified HorizontalPodAutoscaler * @param param the request object @@ -7165,6 +8237,14 @@ export class ObjectAutoscalingV2beta1Api { return this.api.patchNamespacedHorizontalPodAutoscalerStatus(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); } + /** + * read the specified HorizontalPodAutoscaler + * @param param the request object + */ + public readNamespacedHorizontalPodAutoscalerWithHttpInfo(param: AutoscalingV2beta1ApiReadNamespacedHorizontalPodAutoscalerRequest, options?: Configuration): Promise> { + return this.api.readNamespacedHorizontalPodAutoscalerWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); + } + /** * read the specified HorizontalPodAutoscaler * @param param the request object @@ -7173,6 +8253,14 @@ export class ObjectAutoscalingV2beta1Api { return this.api.readNamespacedHorizontalPodAutoscaler(param.name, param.namespace, param.pretty, options).toPromise(); } + /** + * read status of the specified HorizontalPodAutoscaler + * @param param the request object + */ + public readNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(param: AutoscalingV2beta1ApiReadNamespacedHorizontalPodAutoscalerStatusRequest, options?: Configuration): Promise> { + return this.api.readNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); + } + /** * read status of the specified HorizontalPodAutoscaler * @param param the request object @@ -7181,6 +8269,14 @@ export class ObjectAutoscalingV2beta1Api { return this.api.readNamespacedHorizontalPodAutoscalerStatus(param.name, param.namespace, param.pretty, options).toPromise(); } + /** + * replace the specified HorizontalPodAutoscaler + * @param param the request object + */ + public replaceNamespacedHorizontalPodAutoscalerWithHttpInfo(param: AutoscalingV2beta1ApiReplaceNamespacedHorizontalPodAutoscalerRequest, options?: Configuration): Promise> { + return this.api.replaceNamespacedHorizontalPodAutoscalerWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * replace the specified HorizontalPodAutoscaler * @param param the request object @@ -7189,6 +8285,14 @@ export class ObjectAutoscalingV2beta1Api { return this.api.replaceNamespacedHorizontalPodAutoscaler(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * replace status of the specified HorizontalPodAutoscaler + * @param param the request object + */ + public replaceNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(param: AutoscalingV2beta1ApiReplaceNamespacedHorizontalPodAutoscalerStatusRequest, options?: Configuration): Promise> { + return this.api.replaceNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * replace status of the specified HorizontalPodAutoscaler * @param param the request object @@ -7725,6 +8829,14 @@ export class ObjectAutoscalingV2beta2Api { this.api = new ObservableAutoscalingV2beta2Api(configuration, requestFactory, responseProcessor); } + /** + * create a HorizontalPodAutoscaler + * @param param the request object + */ + public createNamespacedHorizontalPodAutoscalerWithHttpInfo(param: AutoscalingV2beta2ApiCreateNamespacedHorizontalPodAutoscalerRequest, options?: Configuration): Promise> { + return this.api.createNamespacedHorizontalPodAutoscalerWithHttpInfo(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * create a HorizontalPodAutoscaler * @param param the request object @@ -7733,6 +8845,14 @@ export class ObjectAutoscalingV2beta2Api { return this.api.createNamespacedHorizontalPodAutoscaler(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * delete collection of HorizontalPodAutoscaler + * @param param the request object + */ + public deleteCollectionNamespacedHorizontalPodAutoscalerWithHttpInfo(param: AutoscalingV2beta2ApiDeleteCollectionNamespacedHorizontalPodAutoscalerRequest, options?: Configuration): Promise> { + return this.api.deleteCollectionNamespacedHorizontalPodAutoscalerWithHttpInfo(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); + } + /** * delete collection of HorizontalPodAutoscaler * @param param the request object @@ -7741,6 +8861,14 @@ export class ObjectAutoscalingV2beta2Api { return this.api.deleteCollectionNamespacedHorizontalPodAutoscaler(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); } + /** + * delete a HorizontalPodAutoscaler + * @param param the request object + */ + public deleteNamespacedHorizontalPodAutoscalerWithHttpInfo(param: AutoscalingV2beta2ApiDeleteNamespacedHorizontalPodAutoscalerRequest, options?: Configuration): Promise> { + return this.api.deleteNamespacedHorizontalPodAutoscalerWithHttpInfo(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); + } + /** * delete a HorizontalPodAutoscaler * @param param the request object @@ -7749,6 +8877,14 @@ export class ObjectAutoscalingV2beta2Api { return this.api.deleteNamespacedHorizontalPodAutoscaler(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } + /** + * get available resources + * @param param the request object + */ + public getAPIResourcesWithHttpInfo(param: AutoscalingV2beta2ApiGetAPIResourcesRequest = {}, options?: Configuration): Promise> { + return this.api.getAPIResourcesWithHttpInfo( options).toPromise(); + } + /** * get available resources * @param param the request object @@ -7757,6 +8893,14 @@ export class ObjectAutoscalingV2beta2Api { return this.api.getAPIResources( options).toPromise(); } + /** + * list or watch objects of kind HorizontalPodAutoscaler + * @param param the request object + */ + public listHorizontalPodAutoscalerForAllNamespacesWithHttpInfo(param: AutoscalingV2beta2ApiListHorizontalPodAutoscalerForAllNamespacesRequest = {}, options?: Configuration): Promise> { + return this.api.listHorizontalPodAutoscalerForAllNamespacesWithHttpInfo(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); + } + /** * list or watch objects of kind HorizontalPodAutoscaler * @param param the request object @@ -7765,6 +8909,14 @@ export class ObjectAutoscalingV2beta2Api { return this.api.listHorizontalPodAutoscalerForAllNamespaces(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } + /** + * list or watch objects of kind HorizontalPodAutoscaler + * @param param the request object + */ + public listNamespacedHorizontalPodAutoscalerWithHttpInfo(param: AutoscalingV2beta2ApiListNamespacedHorizontalPodAutoscalerRequest, options?: Configuration): Promise> { + return this.api.listNamespacedHorizontalPodAutoscalerWithHttpInfo(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); + } + /** * list or watch objects of kind HorizontalPodAutoscaler * @param param the request object @@ -7773,6 +8925,14 @@ export class ObjectAutoscalingV2beta2Api { return this.api.listNamespacedHorizontalPodAutoscaler(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } + /** + * partially update the specified HorizontalPodAutoscaler + * @param param the request object + */ + public patchNamespacedHorizontalPodAutoscalerWithHttpInfo(param: AutoscalingV2beta2ApiPatchNamespacedHorizontalPodAutoscalerRequest, options?: Configuration): Promise> { + return this.api.patchNamespacedHorizontalPodAutoscalerWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); + } + /** * partially update the specified HorizontalPodAutoscaler * @param param the request object @@ -7781,6 +8941,14 @@ export class ObjectAutoscalingV2beta2Api { return this.api.patchNamespacedHorizontalPodAutoscaler(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); } + /** + * partially update status of the specified HorizontalPodAutoscaler + * @param param the request object + */ + public patchNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(param: AutoscalingV2beta2ApiPatchNamespacedHorizontalPodAutoscalerStatusRequest, options?: Configuration): Promise> { + return this.api.patchNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); + } + /** * partially update status of the specified HorizontalPodAutoscaler * @param param the request object @@ -7789,6 +8957,14 @@ export class ObjectAutoscalingV2beta2Api { return this.api.patchNamespacedHorizontalPodAutoscalerStatus(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); } + /** + * read the specified HorizontalPodAutoscaler + * @param param the request object + */ + public readNamespacedHorizontalPodAutoscalerWithHttpInfo(param: AutoscalingV2beta2ApiReadNamespacedHorizontalPodAutoscalerRequest, options?: Configuration): Promise> { + return this.api.readNamespacedHorizontalPodAutoscalerWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); + } + /** * read the specified HorizontalPodAutoscaler * @param param the request object @@ -7797,6 +8973,14 @@ export class ObjectAutoscalingV2beta2Api { return this.api.readNamespacedHorizontalPodAutoscaler(param.name, param.namespace, param.pretty, options).toPromise(); } + /** + * read status of the specified HorizontalPodAutoscaler + * @param param the request object + */ + public readNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(param: AutoscalingV2beta2ApiReadNamespacedHorizontalPodAutoscalerStatusRequest, options?: Configuration): Promise> { + return this.api.readNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); + } + /** * read status of the specified HorizontalPodAutoscaler * @param param the request object @@ -7805,6 +8989,14 @@ export class ObjectAutoscalingV2beta2Api { return this.api.readNamespacedHorizontalPodAutoscalerStatus(param.name, param.namespace, param.pretty, options).toPromise(); } + /** + * replace the specified HorizontalPodAutoscaler + * @param param the request object + */ + public replaceNamespacedHorizontalPodAutoscalerWithHttpInfo(param: AutoscalingV2beta2ApiReplaceNamespacedHorizontalPodAutoscalerRequest, options?: Configuration): Promise> { + return this.api.replaceNamespacedHorizontalPodAutoscalerWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * replace the specified HorizontalPodAutoscaler * @param param the request object @@ -7813,6 +9005,14 @@ export class ObjectAutoscalingV2beta2Api { return this.api.replaceNamespacedHorizontalPodAutoscaler(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * replace status of the specified HorizontalPodAutoscaler + * @param param the request object + */ + public replaceNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(param: AutoscalingV2beta2ApiReplaceNamespacedHorizontalPodAutoscalerStatusRequest, options?: Configuration): Promise> { + return this.api.replaceNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * replace status of the specified HorizontalPodAutoscaler * @param param the request object @@ -7836,6 +9036,14 @@ export class ObjectBatchApi { this.api = new ObservableBatchApi(configuration, requestFactory, responseProcessor); } + /** + * get information of a group + * @param param the request object + */ + public getAPIGroupWithHttpInfo(param: BatchApiGetAPIGroupRequest = {}, options?: Configuration): Promise> { + return this.api.getAPIGroupWithHttpInfo( options).toPromise(); + } + /** * get information of a group * @param param the request object @@ -8885,6 +10093,14 @@ export class ObjectBatchV1Api { this.api = new ObservableBatchV1Api(configuration, requestFactory, responseProcessor); } + /** + * create a CronJob + * @param param the request object + */ + public createNamespacedCronJobWithHttpInfo(param: BatchV1ApiCreateNamespacedCronJobRequest, options?: Configuration): Promise> { + return this.api.createNamespacedCronJobWithHttpInfo(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * create a CronJob * @param param the request object @@ -8893,6 +10109,14 @@ export class ObjectBatchV1Api { return this.api.createNamespacedCronJob(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * create a Job + * @param param the request object + */ + public createNamespacedJobWithHttpInfo(param: BatchV1ApiCreateNamespacedJobRequest, options?: Configuration): Promise> { + return this.api.createNamespacedJobWithHttpInfo(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * create a Job * @param param the request object @@ -8901,6 +10125,14 @@ export class ObjectBatchV1Api { return this.api.createNamespacedJob(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * delete collection of CronJob + * @param param the request object + */ + public deleteCollectionNamespacedCronJobWithHttpInfo(param: BatchV1ApiDeleteCollectionNamespacedCronJobRequest, options?: Configuration): Promise> { + return this.api.deleteCollectionNamespacedCronJobWithHttpInfo(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); + } + /** * delete collection of CronJob * @param param the request object @@ -8909,6 +10141,14 @@ export class ObjectBatchV1Api { return this.api.deleteCollectionNamespacedCronJob(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); } + /** + * delete collection of Job + * @param param the request object + */ + public deleteCollectionNamespacedJobWithHttpInfo(param: BatchV1ApiDeleteCollectionNamespacedJobRequest, options?: Configuration): Promise> { + return this.api.deleteCollectionNamespacedJobWithHttpInfo(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); + } + /** * delete collection of Job * @param param the request object @@ -8917,6 +10157,14 @@ export class ObjectBatchV1Api { return this.api.deleteCollectionNamespacedJob(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); } + /** + * delete a CronJob + * @param param the request object + */ + public deleteNamespacedCronJobWithHttpInfo(param: BatchV1ApiDeleteNamespacedCronJobRequest, options?: Configuration): Promise> { + return this.api.deleteNamespacedCronJobWithHttpInfo(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); + } + /** * delete a CronJob * @param param the request object @@ -8925,6 +10173,14 @@ export class ObjectBatchV1Api { return this.api.deleteNamespacedCronJob(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } + /** + * delete a Job + * @param param the request object + */ + public deleteNamespacedJobWithHttpInfo(param: BatchV1ApiDeleteNamespacedJobRequest, options?: Configuration): Promise> { + return this.api.deleteNamespacedJobWithHttpInfo(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); + } + /** * delete a Job * @param param the request object @@ -8933,6 +10189,14 @@ export class ObjectBatchV1Api { return this.api.deleteNamespacedJob(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } + /** + * get available resources + * @param param the request object + */ + public getAPIResourcesWithHttpInfo(param: BatchV1ApiGetAPIResourcesRequest = {}, options?: Configuration): Promise> { + return this.api.getAPIResourcesWithHttpInfo( options).toPromise(); + } + /** * get available resources * @param param the request object @@ -8941,6 +10205,14 @@ export class ObjectBatchV1Api { return this.api.getAPIResources( options).toPromise(); } + /** + * list or watch objects of kind CronJob + * @param param the request object + */ + public listCronJobForAllNamespacesWithHttpInfo(param: BatchV1ApiListCronJobForAllNamespacesRequest = {}, options?: Configuration): Promise> { + return this.api.listCronJobForAllNamespacesWithHttpInfo(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); + } + /** * list or watch objects of kind CronJob * @param param the request object @@ -8949,6 +10221,14 @@ export class ObjectBatchV1Api { return this.api.listCronJobForAllNamespaces(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } + /** + * list or watch objects of kind Job + * @param param the request object + */ + public listJobForAllNamespacesWithHttpInfo(param: BatchV1ApiListJobForAllNamespacesRequest = {}, options?: Configuration): Promise> { + return this.api.listJobForAllNamespacesWithHttpInfo(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); + } + /** * list or watch objects of kind Job * @param param the request object @@ -8957,6 +10237,14 @@ export class ObjectBatchV1Api { return this.api.listJobForAllNamespaces(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } + /** + * list or watch objects of kind CronJob + * @param param the request object + */ + public listNamespacedCronJobWithHttpInfo(param: BatchV1ApiListNamespacedCronJobRequest, options?: Configuration): Promise> { + return this.api.listNamespacedCronJobWithHttpInfo(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); + } + /** * list or watch objects of kind CronJob * @param param the request object @@ -8965,6 +10253,14 @@ export class ObjectBatchV1Api { return this.api.listNamespacedCronJob(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } + /** + * list or watch objects of kind Job + * @param param the request object + */ + public listNamespacedJobWithHttpInfo(param: BatchV1ApiListNamespacedJobRequest, options?: Configuration): Promise> { + return this.api.listNamespacedJobWithHttpInfo(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); + } + /** * list or watch objects of kind Job * @param param the request object @@ -8973,6 +10269,14 @@ export class ObjectBatchV1Api { return this.api.listNamespacedJob(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } + /** + * partially update the specified CronJob + * @param param the request object + */ + public patchNamespacedCronJobWithHttpInfo(param: BatchV1ApiPatchNamespacedCronJobRequest, options?: Configuration): Promise> { + return this.api.patchNamespacedCronJobWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); + } + /** * partially update the specified CronJob * @param param the request object @@ -8981,6 +10285,14 @@ export class ObjectBatchV1Api { return this.api.patchNamespacedCronJob(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); } + /** + * partially update status of the specified CronJob + * @param param the request object + */ + public patchNamespacedCronJobStatusWithHttpInfo(param: BatchV1ApiPatchNamespacedCronJobStatusRequest, options?: Configuration): Promise> { + return this.api.patchNamespacedCronJobStatusWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); + } + /** * partially update status of the specified CronJob * @param param the request object @@ -8989,6 +10301,14 @@ export class ObjectBatchV1Api { return this.api.patchNamespacedCronJobStatus(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); } + /** + * partially update the specified Job + * @param param the request object + */ + public patchNamespacedJobWithHttpInfo(param: BatchV1ApiPatchNamespacedJobRequest, options?: Configuration): Promise> { + return this.api.patchNamespacedJobWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); + } + /** * partially update the specified Job * @param param the request object @@ -8997,6 +10317,14 @@ export class ObjectBatchV1Api { return this.api.patchNamespacedJob(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); } + /** + * partially update status of the specified Job + * @param param the request object + */ + public patchNamespacedJobStatusWithHttpInfo(param: BatchV1ApiPatchNamespacedJobStatusRequest, options?: Configuration): Promise> { + return this.api.patchNamespacedJobStatusWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); + } + /** * partially update status of the specified Job * @param param the request object @@ -9005,6 +10333,14 @@ export class ObjectBatchV1Api { return this.api.patchNamespacedJobStatus(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); } + /** + * read the specified CronJob + * @param param the request object + */ + public readNamespacedCronJobWithHttpInfo(param: BatchV1ApiReadNamespacedCronJobRequest, options?: Configuration): Promise> { + return this.api.readNamespacedCronJobWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); + } + /** * read the specified CronJob * @param param the request object @@ -9013,6 +10349,14 @@ export class ObjectBatchV1Api { return this.api.readNamespacedCronJob(param.name, param.namespace, param.pretty, options).toPromise(); } + /** + * read status of the specified CronJob + * @param param the request object + */ + public readNamespacedCronJobStatusWithHttpInfo(param: BatchV1ApiReadNamespacedCronJobStatusRequest, options?: Configuration): Promise> { + return this.api.readNamespacedCronJobStatusWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); + } + /** * read status of the specified CronJob * @param param the request object @@ -9021,6 +10365,14 @@ export class ObjectBatchV1Api { return this.api.readNamespacedCronJobStatus(param.name, param.namespace, param.pretty, options).toPromise(); } + /** + * read the specified Job + * @param param the request object + */ + public readNamespacedJobWithHttpInfo(param: BatchV1ApiReadNamespacedJobRequest, options?: Configuration): Promise> { + return this.api.readNamespacedJobWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); + } + /** * read the specified Job * @param param the request object @@ -9029,6 +10381,14 @@ export class ObjectBatchV1Api { return this.api.readNamespacedJob(param.name, param.namespace, param.pretty, options).toPromise(); } + /** + * read status of the specified Job + * @param param the request object + */ + public readNamespacedJobStatusWithHttpInfo(param: BatchV1ApiReadNamespacedJobStatusRequest, options?: Configuration): Promise> { + return this.api.readNamespacedJobStatusWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); + } + /** * read status of the specified Job * @param param the request object @@ -9037,6 +10397,14 @@ export class ObjectBatchV1Api { return this.api.readNamespacedJobStatus(param.name, param.namespace, param.pretty, options).toPromise(); } + /** + * replace the specified CronJob + * @param param the request object + */ + public replaceNamespacedCronJobWithHttpInfo(param: BatchV1ApiReplaceNamespacedCronJobRequest, options?: Configuration): Promise> { + return this.api.replaceNamespacedCronJobWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * replace the specified CronJob * @param param the request object @@ -9045,6 +10413,14 @@ export class ObjectBatchV1Api { return this.api.replaceNamespacedCronJob(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * replace status of the specified CronJob + * @param param the request object + */ + public replaceNamespacedCronJobStatusWithHttpInfo(param: BatchV1ApiReplaceNamespacedCronJobStatusRequest, options?: Configuration): Promise> { + return this.api.replaceNamespacedCronJobStatusWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * replace status of the specified CronJob * @param param the request object @@ -9053,6 +10429,14 @@ export class ObjectBatchV1Api { return this.api.replaceNamespacedCronJobStatus(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * replace the specified Job + * @param param the request object + */ + public replaceNamespacedJobWithHttpInfo(param: BatchV1ApiReplaceNamespacedJobRequest, options?: Configuration): Promise> { + return this.api.replaceNamespacedJobWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * replace the specified Job * @param param the request object @@ -9061,6 +10445,14 @@ export class ObjectBatchV1Api { return this.api.replaceNamespacedJob(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * replace status of the specified Job + * @param param the request object + */ + public replaceNamespacedJobStatusWithHttpInfo(param: BatchV1ApiReplaceNamespacedJobStatusRequest, options?: Configuration): Promise> { + return this.api.replaceNamespacedJobStatusWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * replace status of the specified Job * @param param the request object @@ -9597,6 +10989,14 @@ export class ObjectBatchV1beta1Api { this.api = new ObservableBatchV1beta1Api(configuration, requestFactory, responseProcessor); } + /** + * create a CronJob + * @param param the request object + */ + public createNamespacedCronJobWithHttpInfo(param: BatchV1beta1ApiCreateNamespacedCronJobRequest, options?: Configuration): Promise> { + return this.api.createNamespacedCronJobWithHttpInfo(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * create a CronJob * @param param the request object @@ -9605,6 +11005,14 @@ export class ObjectBatchV1beta1Api { return this.api.createNamespacedCronJob(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * delete collection of CronJob + * @param param the request object + */ + public deleteCollectionNamespacedCronJobWithHttpInfo(param: BatchV1beta1ApiDeleteCollectionNamespacedCronJobRequest, options?: Configuration): Promise> { + return this.api.deleteCollectionNamespacedCronJobWithHttpInfo(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); + } + /** * delete collection of CronJob * @param param the request object @@ -9613,6 +11021,14 @@ export class ObjectBatchV1beta1Api { return this.api.deleteCollectionNamespacedCronJob(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); } + /** + * delete a CronJob + * @param param the request object + */ + public deleteNamespacedCronJobWithHttpInfo(param: BatchV1beta1ApiDeleteNamespacedCronJobRequest, options?: Configuration): Promise> { + return this.api.deleteNamespacedCronJobWithHttpInfo(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); + } + /** * delete a CronJob * @param param the request object @@ -9621,6 +11037,14 @@ export class ObjectBatchV1beta1Api { return this.api.deleteNamespacedCronJob(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } + /** + * get available resources + * @param param the request object + */ + public getAPIResourcesWithHttpInfo(param: BatchV1beta1ApiGetAPIResourcesRequest = {}, options?: Configuration): Promise> { + return this.api.getAPIResourcesWithHttpInfo( options).toPromise(); + } + /** * get available resources * @param param the request object @@ -9629,6 +11053,14 @@ export class ObjectBatchV1beta1Api { return this.api.getAPIResources( options).toPromise(); } + /** + * list or watch objects of kind CronJob + * @param param the request object + */ + public listCronJobForAllNamespacesWithHttpInfo(param: BatchV1beta1ApiListCronJobForAllNamespacesRequest = {}, options?: Configuration): Promise> { + return this.api.listCronJobForAllNamespacesWithHttpInfo(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); + } + /** * list or watch objects of kind CronJob * @param param the request object @@ -9637,6 +11069,14 @@ export class ObjectBatchV1beta1Api { return this.api.listCronJobForAllNamespaces(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } + /** + * list or watch objects of kind CronJob + * @param param the request object + */ + public listNamespacedCronJobWithHttpInfo(param: BatchV1beta1ApiListNamespacedCronJobRequest, options?: Configuration): Promise> { + return this.api.listNamespacedCronJobWithHttpInfo(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); + } + /** * list or watch objects of kind CronJob * @param param the request object @@ -9645,6 +11085,14 @@ export class ObjectBatchV1beta1Api { return this.api.listNamespacedCronJob(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } + /** + * partially update the specified CronJob + * @param param the request object + */ + public patchNamespacedCronJobWithHttpInfo(param: BatchV1beta1ApiPatchNamespacedCronJobRequest, options?: Configuration): Promise> { + return this.api.patchNamespacedCronJobWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); + } + /** * partially update the specified CronJob * @param param the request object @@ -9653,6 +11101,14 @@ export class ObjectBatchV1beta1Api { return this.api.patchNamespacedCronJob(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); } + /** + * partially update status of the specified CronJob + * @param param the request object + */ + public patchNamespacedCronJobStatusWithHttpInfo(param: BatchV1beta1ApiPatchNamespacedCronJobStatusRequest, options?: Configuration): Promise> { + return this.api.patchNamespacedCronJobStatusWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); + } + /** * partially update status of the specified CronJob * @param param the request object @@ -9661,6 +11117,14 @@ export class ObjectBatchV1beta1Api { return this.api.patchNamespacedCronJobStatus(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); } + /** + * read the specified CronJob + * @param param the request object + */ + public readNamespacedCronJobWithHttpInfo(param: BatchV1beta1ApiReadNamespacedCronJobRequest, options?: Configuration): Promise> { + return this.api.readNamespacedCronJobWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); + } + /** * read the specified CronJob * @param param the request object @@ -9669,6 +11133,14 @@ export class ObjectBatchV1beta1Api { return this.api.readNamespacedCronJob(param.name, param.namespace, param.pretty, options).toPromise(); } + /** + * read status of the specified CronJob + * @param param the request object + */ + public readNamespacedCronJobStatusWithHttpInfo(param: BatchV1beta1ApiReadNamespacedCronJobStatusRequest, options?: Configuration): Promise> { + return this.api.readNamespacedCronJobStatusWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); + } + /** * read status of the specified CronJob * @param param the request object @@ -9677,6 +11149,14 @@ export class ObjectBatchV1beta1Api { return this.api.readNamespacedCronJobStatus(param.name, param.namespace, param.pretty, options).toPromise(); } + /** + * replace the specified CronJob + * @param param the request object + */ + public replaceNamespacedCronJobWithHttpInfo(param: BatchV1beta1ApiReplaceNamespacedCronJobRequest, options?: Configuration): Promise> { + return this.api.replaceNamespacedCronJobWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * replace the specified CronJob * @param param the request object @@ -9685,6 +11165,14 @@ export class ObjectBatchV1beta1Api { return this.api.replaceNamespacedCronJob(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * replace status of the specified CronJob + * @param param the request object + */ + public replaceNamespacedCronJobStatusWithHttpInfo(param: BatchV1beta1ApiReplaceNamespacedCronJobStatusRequest, options?: Configuration): Promise> { + return this.api.replaceNamespacedCronJobStatusWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * replace status of the specified CronJob * @param param the request object @@ -9708,6 +11196,14 @@ export class ObjectCertificatesApi { this.api = new ObservableCertificatesApi(configuration, requestFactory, responseProcessor); } + /** + * get information of a group + * @param param the request object + */ + public getAPIGroupWithHttpInfo(param: CertificatesApiGetAPIGroupRequest = {}, options?: Configuration): Promise> { + return this.api.getAPIGroupWithHttpInfo( options).toPromise(); + } + /** * get information of a group * @param param the request object @@ -10208,6 +11704,14 @@ export class ObjectCertificatesV1Api { this.api = new ObservableCertificatesV1Api(configuration, requestFactory, responseProcessor); } + /** + * create a CertificateSigningRequest + * @param param the request object + */ + public createCertificateSigningRequestWithHttpInfo(param: CertificatesV1ApiCreateCertificateSigningRequestRequest, options?: Configuration): Promise> { + return this.api.createCertificateSigningRequestWithHttpInfo(param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * create a CertificateSigningRequest * @param param the request object @@ -10216,6 +11720,14 @@ export class ObjectCertificatesV1Api { return this.api.createCertificateSigningRequest(param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * delete a CertificateSigningRequest + * @param param the request object + */ + public deleteCertificateSigningRequestWithHttpInfo(param: CertificatesV1ApiDeleteCertificateSigningRequestRequest, options?: Configuration): Promise> { + return this.api.deleteCertificateSigningRequestWithHttpInfo(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); + } + /** * delete a CertificateSigningRequest * @param param the request object @@ -10224,6 +11736,14 @@ export class ObjectCertificatesV1Api { return this.api.deleteCertificateSigningRequest(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } + /** + * delete collection of CertificateSigningRequest + * @param param the request object + */ + public deleteCollectionCertificateSigningRequestWithHttpInfo(param: CertificatesV1ApiDeleteCollectionCertificateSigningRequestRequest = {}, options?: Configuration): Promise> { + return this.api.deleteCollectionCertificateSigningRequestWithHttpInfo(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); + } + /** * delete collection of CertificateSigningRequest * @param param the request object @@ -10232,6 +11752,14 @@ export class ObjectCertificatesV1Api { return this.api.deleteCollectionCertificateSigningRequest(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); } + /** + * get available resources + * @param param the request object + */ + public getAPIResourcesWithHttpInfo(param: CertificatesV1ApiGetAPIResourcesRequest = {}, options?: Configuration): Promise> { + return this.api.getAPIResourcesWithHttpInfo( options).toPromise(); + } + /** * get available resources * @param param the request object @@ -10240,6 +11768,14 @@ export class ObjectCertificatesV1Api { return this.api.getAPIResources( options).toPromise(); } + /** + * list or watch objects of kind CertificateSigningRequest + * @param param the request object + */ + public listCertificateSigningRequestWithHttpInfo(param: CertificatesV1ApiListCertificateSigningRequestRequest = {}, options?: Configuration): Promise> { + return this.api.listCertificateSigningRequestWithHttpInfo(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); + } + /** * list or watch objects of kind CertificateSigningRequest * @param param the request object @@ -10248,6 +11784,14 @@ export class ObjectCertificatesV1Api { return this.api.listCertificateSigningRequest(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } + /** + * partially update the specified CertificateSigningRequest + * @param param the request object + */ + public patchCertificateSigningRequestWithHttpInfo(param: CertificatesV1ApiPatchCertificateSigningRequestRequest, options?: Configuration): Promise> { + return this.api.patchCertificateSigningRequestWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); + } + /** * partially update the specified CertificateSigningRequest * @param param the request object @@ -10256,6 +11800,14 @@ export class ObjectCertificatesV1Api { return this.api.patchCertificateSigningRequest(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); } + /** + * partially update approval of the specified CertificateSigningRequest + * @param param the request object + */ + public patchCertificateSigningRequestApprovalWithHttpInfo(param: CertificatesV1ApiPatchCertificateSigningRequestApprovalRequest, options?: Configuration): Promise> { + return this.api.patchCertificateSigningRequestApprovalWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); + } + /** * partially update approval of the specified CertificateSigningRequest * @param param the request object @@ -10264,6 +11816,14 @@ export class ObjectCertificatesV1Api { return this.api.patchCertificateSigningRequestApproval(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); } + /** + * partially update status of the specified CertificateSigningRequest + * @param param the request object + */ + public patchCertificateSigningRequestStatusWithHttpInfo(param: CertificatesV1ApiPatchCertificateSigningRequestStatusRequest, options?: Configuration): Promise> { + return this.api.patchCertificateSigningRequestStatusWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); + } + /** * partially update status of the specified CertificateSigningRequest * @param param the request object @@ -10272,6 +11832,14 @@ export class ObjectCertificatesV1Api { return this.api.patchCertificateSigningRequestStatus(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); } + /** + * read the specified CertificateSigningRequest + * @param param the request object + */ + public readCertificateSigningRequestWithHttpInfo(param: CertificatesV1ApiReadCertificateSigningRequestRequest, options?: Configuration): Promise> { + return this.api.readCertificateSigningRequestWithHttpInfo(param.name, param.pretty, options).toPromise(); + } + /** * read the specified CertificateSigningRequest * @param param the request object @@ -10280,6 +11848,14 @@ export class ObjectCertificatesV1Api { return this.api.readCertificateSigningRequest(param.name, param.pretty, options).toPromise(); } + /** + * read approval of the specified CertificateSigningRequest + * @param param the request object + */ + public readCertificateSigningRequestApprovalWithHttpInfo(param: CertificatesV1ApiReadCertificateSigningRequestApprovalRequest, options?: Configuration): Promise> { + return this.api.readCertificateSigningRequestApprovalWithHttpInfo(param.name, param.pretty, options).toPromise(); + } + /** * read approval of the specified CertificateSigningRequest * @param param the request object @@ -10288,6 +11864,14 @@ export class ObjectCertificatesV1Api { return this.api.readCertificateSigningRequestApproval(param.name, param.pretty, options).toPromise(); } + /** + * read status of the specified CertificateSigningRequest + * @param param the request object + */ + public readCertificateSigningRequestStatusWithHttpInfo(param: CertificatesV1ApiReadCertificateSigningRequestStatusRequest, options?: Configuration): Promise> { + return this.api.readCertificateSigningRequestStatusWithHttpInfo(param.name, param.pretty, options).toPromise(); + } + /** * read status of the specified CertificateSigningRequest * @param param the request object @@ -10296,6 +11880,14 @@ export class ObjectCertificatesV1Api { return this.api.readCertificateSigningRequestStatus(param.name, param.pretty, options).toPromise(); } + /** + * replace the specified CertificateSigningRequest + * @param param the request object + */ + public replaceCertificateSigningRequestWithHttpInfo(param: CertificatesV1ApiReplaceCertificateSigningRequestRequest, options?: Configuration): Promise> { + return this.api.replaceCertificateSigningRequestWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * replace the specified CertificateSigningRequest * @param param the request object @@ -10304,6 +11896,14 @@ export class ObjectCertificatesV1Api { return this.api.replaceCertificateSigningRequest(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * replace approval of the specified CertificateSigningRequest + * @param param the request object + */ + public replaceCertificateSigningRequestApprovalWithHttpInfo(param: CertificatesV1ApiReplaceCertificateSigningRequestApprovalRequest, options?: Configuration): Promise> { + return this.api.replaceCertificateSigningRequestApprovalWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * replace approval of the specified CertificateSigningRequest * @param param the request object @@ -10312,6 +11912,14 @@ export class ObjectCertificatesV1Api { return this.api.replaceCertificateSigningRequestApproval(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * replace status of the specified CertificateSigningRequest + * @param param the request object + */ + public replaceCertificateSigningRequestStatusWithHttpInfo(param: CertificatesV1ApiReplaceCertificateSigningRequestStatusRequest, options?: Configuration): Promise> { + return this.api.replaceCertificateSigningRequestStatusWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * replace status of the specified CertificateSigningRequest * @param param the request object @@ -10335,6 +11943,14 @@ export class ObjectCoordinationApi { this.api = new ObservableCoordinationApi(configuration, requestFactory, responseProcessor); } + /** + * get information of a group + * @param param the request object + */ + public getAPIGroupWithHttpInfo(param: CoordinationApiGetAPIGroupRequest = {}, options?: Configuration): Promise> { + return this.api.getAPIGroupWithHttpInfo( options).toPromise(); + } + /** * get information of a group * @param param the request object @@ -10766,6 +12382,14 @@ export class ObjectCoordinationV1Api { this.api = new ObservableCoordinationV1Api(configuration, requestFactory, responseProcessor); } + /** + * create a Lease + * @param param the request object + */ + public createNamespacedLeaseWithHttpInfo(param: CoordinationV1ApiCreateNamespacedLeaseRequest, options?: Configuration): Promise> { + return this.api.createNamespacedLeaseWithHttpInfo(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * create a Lease * @param param the request object @@ -10774,6 +12398,14 @@ export class ObjectCoordinationV1Api { return this.api.createNamespacedLease(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * delete collection of Lease + * @param param the request object + */ + public deleteCollectionNamespacedLeaseWithHttpInfo(param: CoordinationV1ApiDeleteCollectionNamespacedLeaseRequest, options?: Configuration): Promise> { + return this.api.deleteCollectionNamespacedLeaseWithHttpInfo(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); + } + /** * delete collection of Lease * @param param the request object @@ -10782,6 +12414,14 @@ export class ObjectCoordinationV1Api { return this.api.deleteCollectionNamespacedLease(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); } + /** + * delete a Lease + * @param param the request object + */ + public deleteNamespacedLeaseWithHttpInfo(param: CoordinationV1ApiDeleteNamespacedLeaseRequest, options?: Configuration): Promise> { + return this.api.deleteNamespacedLeaseWithHttpInfo(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); + } + /** * delete a Lease * @param param the request object @@ -10790,6 +12430,14 @@ export class ObjectCoordinationV1Api { return this.api.deleteNamespacedLease(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } + /** + * get available resources + * @param param the request object + */ + public getAPIResourcesWithHttpInfo(param: CoordinationV1ApiGetAPIResourcesRequest = {}, options?: Configuration): Promise> { + return this.api.getAPIResourcesWithHttpInfo( options).toPromise(); + } + /** * get available resources * @param param the request object @@ -10798,6 +12446,14 @@ export class ObjectCoordinationV1Api { return this.api.getAPIResources( options).toPromise(); } + /** + * list or watch objects of kind Lease + * @param param the request object + */ + public listLeaseForAllNamespacesWithHttpInfo(param: CoordinationV1ApiListLeaseForAllNamespacesRequest = {}, options?: Configuration): Promise> { + return this.api.listLeaseForAllNamespacesWithHttpInfo(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); + } + /** * list or watch objects of kind Lease * @param param the request object @@ -10806,6 +12462,14 @@ export class ObjectCoordinationV1Api { return this.api.listLeaseForAllNamespaces(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } + /** + * list or watch objects of kind Lease + * @param param the request object + */ + public listNamespacedLeaseWithHttpInfo(param: CoordinationV1ApiListNamespacedLeaseRequest, options?: Configuration): Promise> { + return this.api.listNamespacedLeaseWithHttpInfo(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); + } + /** * list or watch objects of kind Lease * @param param the request object @@ -10814,6 +12478,14 @@ export class ObjectCoordinationV1Api { return this.api.listNamespacedLease(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } + /** + * partially update the specified Lease + * @param param the request object + */ + public patchNamespacedLeaseWithHttpInfo(param: CoordinationV1ApiPatchNamespacedLeaseRequest, options?: Configuration): Promise> { + return this.api.patchNamespacedLeaseWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); + } + /** * partially update the specified Lease * @param param the request object @@ -10822,6 +12494,14 @@ export class ObjectCoordinationV1Api { return this.api.patchNamespacedLease(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); } + /** + * read the specified Lease + * @param param the request object + */ + public readNamespacedLeaseWithHttpInfo(param: CoordinationV1ApiReadNamespacedLeaseRequest, options?: Configuration): Promise> { + return this.api.readNamespacedLeaseWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); + } + /** * read the specified Lease * @param param the request object @@ -10830,6 +12510,14 @@ export class ObjectCoordinationV1Api { return this.api.readNamespacedLease(param.name, param.namespace, param.pretty, options).toPromise(); } + /** + * replace the specified Lease + * @param param the request object + */ + public replaceNamespacedLeaseWithHttpInfo(param: CoordinationV1ApiReplaceNamespacedLeaseRequest, options?: Configuration): Promise> { + return this.api.replaceNamespacedLeaseWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * replace the specified Lease * @param param the request object @@ -10853,6 +12541,14 @@ export class ObjectCoreApi { this.api = new ObservableCoreApi(configuration, requestFactory, responseProcessor); } + /** + * get available API versions + * @param param the request object + */ + public getAPIVersionsWithHttpInfo(param: CoreApiGetAPIVersionsRequest = {}, options?: Configuration): Promise> { + return this.api.getAPIVersionsWithHttpInfo( options).toPromise(); + } + /** * get available API versions * @param param the request object @@ -18997,6 +20693,14 @@ export class ObjectCoreV1Api { this.api = new ObservableCoreV1Api(configuration, requestFactory, responseProcessor); } + /** + * connect DELETE requests to proxy of Pod + * @param param the request object + */ + public connectDeleteNamespacedPodProxyWithHttpInfo(param: CoreV1ApiConnectDeleteNamespacedPodProxyRequest, options?: Configuration): Promise> { + return this.api.connectDeleteNamespacedPodProxyWithHttpInfo(param.name, param.namespace, param.path, options).toPromise(); + } + /** * connect DELETE requests to proxy of Pod * @param param the request object @@ -19005,6 +20709,14 @@ export class ObjectCoreV1Api { return this.api.connectDeleteNamespacedPodProxy(param.name, param.namespace, param.path, options).toPromise(); } + /** + * connect DELETE requests to proxy of Pod + * @param param the request object + */ + public connectDeleteNamespacedPodProxyWithPathWithHttpInfo(param: CoreV1ApiConnectDeleteNamespacedPodProxyWithPathRequest, options?: Configuration): Promise> { + return this.api.connectDeleteNamespacedPodProxyWithPathWithHttpInfo(param.name, param.namespace, param.path, param.path2, options).toPromise(); + } + /** * connect DELETE requests to proxy of Pod * @param param the request object @@ -19013,6 +20725,14 @@ export class ObjectCoreV1Api { return this.api.connectDeleteNamespacedPodProxyWithPath(param.name, param.namespace, param.path, param.path2, options).toPromise(); } + /** + * connect DELETE requests to proxy of Service + * @param param the request object + */ + public connectDeleteNamespacedServiceProxyWithHttpInfo(param: CoreV1ApiConnectDeleteNamespacedServiceProxyRequest, options?: Configuration): Promise> { + return this.api.connectDeleteNamespacedServiceProxyWithHttpInfo(param.name, param.namespace, param.path, options).toPromise(); + } + /** * connect DELETE requests to proxy of Service * @param param the request object @@ -19021,6 +20741,14 @@ export class ObjectCoreV1Api { return this.api.connectDeleteNamespacedServiceProxy(param.name, param.namespace, param.path, options).toPromise(); } + /** + * connect DELETE requests to proxy of Service + * @param param the request object + */ + public connectDeleteNamespacedServiceProxyWithPathWithHttpInfo(param: CoreV1ApiConnectDeleteNamespacedServiceProxyWithPathRequest, options?: Configuration): Promise> { + return this.api.connectDeleteNamespacedServiceProxyWithPathWithHttpInfo(param.name, param.namespace, param.path, param.path2, options).toPromise(); + } + /** * connect DELETE requests to proxy of Service * @param param the request object @@ -19029,6 +20757,14 @@ export class ObjectCoreV1Api { return this.api.connectDeleteNamespacedServiceProxyWithPath(param.name, param.namespace, param.path, param.path2, options).toPromise(); } + /** + * connect DELETE requests to proxy of Node + * @param param the request object + */ + public connectDeleteNodeProxyWithHttpInfo(param: CoreV1ApiConnectDeleteNodeProxyRequest, options?: Configuration): Promise> { + return this.api.connectDeleteNodeProxyWithHttpInfo(param.name, param.path, options).toPromise(); + } + /** * connect DELETE requests to proxy of Node * @param param the request object @@ -19037,6 +20773,14 @@ export class ObjectCoreV1Api { return this.api.connectDeleteNodeProxy(param.name, param.path, options).toPromise(); } + /** + * connect DELETE requests to proxy of Node + * @param param the request object + */ + public connectDeleteNodeProxyWithPathWithHttpInfo(param: CoreV1ApiConnectDeleteNodeProxyWithPathRequest, options?: Configuration): Promise> { + return this.api.connectDeleteNodeProxyWithPathWithHttpInfo(param.name, param.path, param.path2, options).toPromise(); + } + /** * connect DELETE requests to proxy of Node * @param param the request object @@ -19045,6 +20789,14 @@ export class ObjectCoreV1Api { return this.api.connectDeleteNodeProxyWithPath(param.name, param.path, param.path2, options).toPromise(); } + /** + * connect GET requests to attach of Pod + * @param param the request object + */ + public connectGetNamespacedPodAttachWithHttpInfo(param: CoreV1ApiConnectGetNamespacedPodAttachRequest, options?: Configuration): Promise> { + return this.api.connectGetNamespacedPodAttachWithHttpInfo(param.name, param.namespace, param.container, param.stderr, param.stdin, param.stdout, param.tty, options).toPromise(); + } + /** * connect GET requests to attach of Pod * @param param the request object @@ -19053,6 +20805,14 @@ export class ObjectCoreV1Api { return this.api.connectGetNamespacedPodAttach(param.name, param.namespace, param.container, param.stderr, param.stdin, param.stdout, param.tty, options).toPromise(); } + /** + * connect GET requests to exec of Pod + * @param param the request object + */ + public connectGetNamespacedPodExecWithHttpInfo(param: CoreV1ApiConnectGetNamespacedPodExecRequest, options?: Configuration): Promise> { + return this.api.connectGetNamespacedPodExecWithHttpInfo(param.name, param.namespace, param.command, param.container, param.stderr, param.stdin, param.stdout, param.tty, options).toPromise(); + } + /** * connect GET requests to exec of Pod * @param param the request object @@ -19061,6 +20821,14 @@ export class ObjectCoreV1Api { return this.api.connectGetNamespacedPodExec(param.name, param.namespace, param.command, param.container, param.stderr, param.stdin, param.stdout, param.tty, options).toPromise(); } + /** + * connect GET requests to portforward of Pod + * @param param the request object + */ + public connectGetNamespacedPodPortforwardWithHttpInfo(param: CoreV1ApiConnectGetNamespacedPodPortforwardRequest, options?: Configuration): Promise> { + return this.api.connectGetNamespacedPodPortforwardWithHttpInfo(param.name, param.namespace, param.ports, options).toPromise(); + } + /** * connect GET requests to portforward of Pod * @param param the request object @@ -19069,6 +20837,14 @@ export class ObjectCoreV1Api { return this.api.connectGetNamespacedPodPortforward(param.name, param.namespace, param.ports, options).toPromise(); } + /** + * connect GET requests to proxy of Pod + * @param param the request object + */ + public connectGetNamespacedPodProxyWithHttpInfo(param: CoreV1ApiConnectGetNamespacedPodProxyRequest, options?: Configuration): Promise> { + return this.api.connectGetNamespacedPodProxyWithHttpInfo(param.name, param.namespace, param.path, options).toPromise(); + } + /** * connect GET requests to proxy of Pod * @param param the request object @@ -19077,6 +20853,14 @@ export class ObjectCoreV1Api { return this.api.connectGetNamespacedPodProxy(param.name, param.namespace, param.path, options).toPromise(); } + /** + * connect GET requests to proxy of Pod + * @param param the request object + */ + public connectGetNamespacedPodProxyWithPathWithHttpInfo(param: CoreV1ApiConnectGetNamespacedPodProxyWithPathRequest, options?: Configuration): Promise> { + return this.api.connectGetNamespacedPodProxyWithPathWithHttpInfo(param.name, param.namespace, param.path, param.path2, options).toPromise(); + } + /** * connect GET requests to proxy of Pod * @param param the request object @@ -19085,6 +20869,14 @@ export class ObjectCoreV1Api { return this.api.connectGetNamespacedPodProxyWithPath(param.name, param.namespace, param.path, param.path2, options).toPromise(); } + /** + * connect GET requests to proxy of Service + * @param param the request object + */ + public connectGetNamespacedServiceProxyWithHttpInfo(param: CoreV1ApiConnectGetNamespacedServiceProxyRequest, options?: Configuration): Promise> { + return this.api.connectGetNamespacedServiceProxyWithHttpInfo(param.name, param.namespace, param.path, options).toPromise(); + } + /** * connect GET requests to proxy of Service * @param param the request object @@ -19093,6 +20885,14 @@ export class ObjectCoreV1Api { return this.api.connectGetNamespacedServiceProxy(param.name, param.namespace, param.path, options).toPromise(); } + /** + * connect GET requests to proxy of Service + * @param param the request object + */ + public connectGetNamespacedServiceProxyWithPathWithHttpInfo(param: CoreV1ApiConnectGetNamespacedServiceProxyWithPathRequest, options?: Configuration): Promise> { + return this.api.connectGetNamespacedServiceProxyWithPathWithHttpInfo(param.name, param.namespace, param.path, param.path2, options).toPromise(); + } + /** * connect GET requests to proxy of Service * @param param the request object @@ -19101,6 +20901,14 @@ export class ObjectCoreV1Api { return this.api.connectGetNamespacedServiceProxyWithPath(param.name, param.namespace, param.path, param.path2, options).toPromise(); } + /** + * connect GET requests to proxy of Node + * @param param the request object + */ + public connectGetNodeProxyWithHttpInfo(param: CoreV1ApiConnectGetNodeProxyRequest, options?: Configuration): Promise> { + return this.api.connectGetNodeProxyWithHttpInfo(param.name, param.path, options).toPromise(); + } + /** * connect GET requests to proxy of Node * @param param the request object @@ -19109,6 +20917,14 @@ export class ObjectCoreV1Api { return this.api.connectGetNodeProxy(param.name, param.path, options).toPromise(); } + /** + * connect GET requests to proxy of Node + * @param param the request object + */ + public connectGetNodeProxyWithPathWithHttpInfo(param: CoreV1ApiConnectGetNodeProxyWithPathRequest, options?: Configuration): Promise> { + return this.api.connectGetNodeProxyWithPathWithHttpInfo(param.name, param.path, param.path2, options).toPromise(); + } + /** * connect GET requests to proxy of Node * @param param the request object @@ -19117,6 +20933,14 @@ export class ObjectCoreV1Api { return this.api.connectGetNodeProxyWithPath(param.name, param.path, param.path2, options).toPromise(); } + /** + * connect HEAD requests to proxy of Pod + * @param param the request object + */ + public connectHeadNamespacedPodProxyWithHttpInfo(param: CoreV1ApiConnectHeadNamespacedPodProxyRequest, options?: Configuration): Promise> { + return this.api.connectHeadNamespacedPodProxyWithHttpInfo(param.name, param.namespace, param.path, options).toPromise(); + } + /** * connect HEAD requests to proxy of Pod * @param param the request object @@ -19125,6 +20949,14 @@ export class ObjectCoreV1Api { return this.api.connectHeadNamespacedPodProxy(param.name, param.namespace, param.path, options).toPromise(); } + /** + * connect HEAD requests to proxy of Pod + * @param param the request object + */ + public connectHeadNamespacedPodProxyWithPathWithHttpInfo(param: CoreV1ApiConnectHeadNamespacedPodProxyWithPathRequest, options?: Configuration): Promise> { + return this.api.connectHeadNamespacedPodProxyWithPathWithHttpInfo(param.name, param.namespace, param.path, param.path2, options).toPromise(); + } + /** * connect HEAD requests to proxy of Pod * @param param the request object @@ -19133,6 +20965,14 @@ export class ObjectCoreV1Api { return this.api.connectHeadNamespacedPodProxyWithPath(param.name, param.namespace, param.path, param.path2, options).toPromise(); } + /** + * connect HEAD requests to proxy of Service + * @param param the request object + */ + public connectHeadNamespacedServiceProxyWithHttpInfo(param: CoreV1ApiConnectHeadNamespacedServiceProxyRequest, options?: Configuration): Promise> { + return this.api.connectHeadNamespacedServiceProxyWithHttpInfo(param.name, param.namespace, param.path, options).toPromise(); + } + /** * connect HEAD requests to proxy of Service * @param param the request object @@ -19141,6 +20981,14 @@ export class ObjectCoreV1Api { return this.api.connectHeadNamespacedServiceProxy(param.name, param.namespace, param.path, options).toPromise(); } + /** + * connect HEAD requests to proxy of Service + * @param param the request object + */ + public connectHeadNamespacedServiceProxyWithPathWithHttpInfo(param: CoreV1ApiConnectHeadNamespacedServiceProxyWithPathRequest, options?: Configuration): Promise> { + return this.api.connectHeadNamespacedServiceProxyWithPathWithHttpInfo(param.name, param.namespace, param.path, param.path2, options).toPromise(); + } + /** * connect HEAD requests to proxy of Service * @param param the request object @@ -19149,6 +20997,14 @@ export class ObjectCoreV1Api { return this.api.connectHeadNamespacedServiceProxyWithPath(param.name, param.namespace, param.path, param.path2, options).toPromise(); } + /** + * connect HEAD requests to proxy of Node + * @param param the request object + */ + public connectHeadNodeProxyWithHttpInfo(param: CoreV1ApiConnectHeadNodeProxyRequest, options?: Configuration): Promise> { + return this.api.connectHeadNodeProxyWithHttpInfo(param.name, param.path, options).toPromise(); + } + /** * connect HEAD requests to proxy of Node * @param param the request object @@ -19157,6 +21013,14 @@ export class ObjectCoreV1Api { return this.api.connectHeadNodeProxy(param.name, param.path, options).toPromise(); } + /** + * connect HEAD requests to proxy of Node + * @param param the request object + */ + public connectHeadNodeProxyWithPathWithHttpInfo(param: CoreV1ApiConnectHeadNodeProxyWithPathRequest, options?: Configuration): Promise> { + return this.api.connectHeadNodeProxyWithPathWithHttpInfo(param.name, param.path, param.path2, options).toPromise(); + } + /** * connect HEAD requests to proxy of Node * @param param the request object @@ -19165,6 +21029,14 @@ export class ObjectCoreV1Api { return this.api.connectHeadNodeProxyWithPath(param.name, param.path, param.path2, options).toPromise(); } + /** + * connect OPTIONS requests to proxy of Pod + * @param param the request object + */ + public connectOptionsNamespacedPodProxyWithHttpInfo(param: CoreV1ApiConnectOptionsNamespacedPodProxyRequest, options?: Configuration): Promise> { + return this.api.connectOptionsNamespacedPodProxyWithHttpInfo(param.name, param.namespace, param.path, options).toPromise(); + } + /** * connect OPTIONS requests to proxy of Pod * @param param the request object @@ -19173,6 +21045,14 @@ export class ObjectCoreV1Api { return this.api.connectOptionsNamespacedPodProxy(param.name, param.namespace, param.path, options).toPromise(); } + /** + * connect OPTIONS requests to proxy of Pod + * @param param the request object + */ + public connectOptionsNamespacedPodProxyWithPathWithHttpInfo(param: CoreV1ApiConnectOptionsNamespacedPodProxyWithPathRequest, options?: Configuration): Promise> { + return this.api.connectOptionsNamespacedPodProxyWithPathWithHttpInfo(param.name, param.namespace, param.path, param.path2, options).toPromise(); + } + /** * connect OPTIONS requests to proxy of Pod * @param param the request object @@ -19181,6 +21061,14 @@ export class ObjectCoreV1Api { return this.api.connectOptionsNamespacedPodProxyWithPath(param.name, param.namespace, param.path, param.path2, options).toPromise(); } + /** + * connect OPTIONS requests to proxy of Service + * @param param the request object + */ + public connectOptionsNamespacedServiceProxyWithHttpInfo(param: CoreV1ApiConnectOptionsNamespacedServiceProxyRequest, options?: Configuration): Promise> { + return this.api.connectOptionsNamespacedServiceProxyWithHttpInfo(param.name, param.namespace, param.path, options).toPromise(); + } + /** * connect OPTIONS requests to proxy of Service * @param param the request object @@ -19189,6 +21077,14 @@ export class ObjectCoreV1Api { return this.api.connectOptionsNamespacedServiceProxy(param.name, param.namespace, param.path, options).toPromise(); } + /** + * connect OPTIONS requests to proxy of Service + * @param param the request object + */ + public connectOptionsNamespacedServiceProxyWithPathWithHttpInfo(param: CoreV1ApiConnectOptionsNamespacedServiceProxyWithPathRequest, options?: Configuration): Promise> { + return this.api.connectOptionsNamespacedServiceProxyWithPathWithHttpInfo(param.name, param.namespace, param.path, param.path2, options).toPromise(); + } + /** * connect OPTIONS requests to proxy of Service * @param param the request object @@ -19197,6 +21093,14 @@ export class ObjectCoreV1Api { return this.api.connectOptionsNamespacedServiceProxyWithPath(param.name, param.namespace, param.path, param.path2, options).toPromise(); } + /** + * connect OPTIONS requests to proxy of Node + * @param param the request object + */ + public connectOptionsNodeProxyWithHttpInfo(param: CoreV1ApiConnectOptionsNodeProxyRequest, options?: Configuration): Promise> { + return this.api.connectOptionsNodeProxyWithHttpInfo(param.name, param.path, options).toPromise(); + } + /** * connect OPTIONS requests to proxy of Node * @param param the request object @@ -19205,6 +21109,14 @@ export class ObjectCoreV1Api { return this.api.connectOptionsNodeProxy(param.name, param.path, options).toPromise(); } + /** + * connect OPTIONS requests to proxy of Node + * @param param the request object + */ + public connectOptionsNodeProxyWithPathWithHttpInfo(param: CoreV1ApiConnectOptionsNodeProxyWithPathRequest, options?: Configuration): Promise> { + return this.api.connectOptionsNodeProxyWithPathWithHttpInfo(param.name, param.path, param.path2, options).toPromise(); + } + /** * connect OPTIONS requests to proxy of Node * @param param the request object @@ -19213,6 +21125,14 @@ export class ObjectCoreV1Api { return this.api.connectOptionsNodeProxyWithPath(param.name, param.path, param.path2, options).toPromise(); } + /** + * connect PATCH requests to proxy of Pod + * @param param the request object + */ + public connectPatchNamespacedPodProxyWithHttpInfo(param: CoreV1ApiConnectPatchNamespacedPodProxyRequest, options?: Configuration): Promise> { + return this.api.connectPatchNamespacedPodProxyWithHttpInfo(param.name, param.namespace, param.path, options).toPromise(); + } + /** * connect PATCH requests to proxy of Pod * @param param the request object @@ -19221,6 +21141,14 @@ export class ObjectCoreV1Api { return this.api.connectPatchNamespacedPodProxy(param.name, param.namespace, param.path, options).toPromise(); } + /** + * connect PATCH requests to proxy of Pod + * @param param the request object + */ + public connectPatchNamespacedPodProxyWithPathWithHttpInfo(param: CoreV1ApiConnectPatchNamespacedPodProxyWithPathRequest, options?: Configuration): Promise> { + return this.api.connectPatchNamespacedPodProxyWithPathWithHttpInfo(param.name, param.namespace, param.path, param.path2, options).toPromise(); + } + /** * connect PATCH requests to proxy of Pod * @param param the request object @@ -19229,6 +21157,14 @@ export class ObjectCoreV1Api { return this.api.connectPatchNamespacedPodProxyWithPath(param.name, param.namespace, param.path, param.path2, options).toPromise(); } + /** + * connect PATCH requests to proxy of Service + * @param param the request object + */ + public connectPatchNamespacedServiceProxyWithHttpInfo(param: CoreV1ApiConnectPatchNamespacedServiceProxyRequest, options?: Configuration): Promise> { + return this.api.connectPatchNamespacedServiceProxyWithHttpInfo(param.name, param.namespace, param.path, options).toPromise(); + } + /** * connect PATCH requests to proxy of Service * @param param the request object @@ -19237,6 +21173,14 @@ export class ObjectCoreV1Api { return this.api.connectPatchNamespacedServiceProxy(param.name, param.namespace, param.path, options).toPromise(); } + /** + * connect PATCH requests to proxy of Service + * @param param the request object + */ + public connectPatchNamespacedServiceProxyWithPathWithHttpInfo(param: CoreV1ApiConnectPatchNamespacedServiceProxyWithPathRequest, options?: Configuration): Promise> { + return this.api.connectPatchNamespacedServiceProxyWithPathWithHttpInfo(param.name, param.namespace, param.path, param.path2, options).toPromise(); + } + /** * connect PATCH requests to proxy of Service * @param param the request object @@ -19245,6 +21189,14 @@ export class ObjectCoreV1Api { return this.api.connectPatchNamespacedServiceProxyWithPath(param.name, param.namespace, param.path, param.path2, options).toPromise(); } + /** + * connect PATCH requests to proxy of Node + * @param param the request object + */ + public connectPatchNodeProxyWithHttpInfo(param: CoreV1ApiConnectPatchNodeProxyRequest, options?: Configuration): Promise> { + return this.api.connectPatchNodeProxyWithHttpInfo(param.name, param.path, options).toPromise(); + } + /** * connect PATCH requests to proxy of Node * @param param the request object @@ -19253,6 +21205,14 @@ export class ObjectCoreV1Api { return this.api.connectPatchNodeProxy(param.name, param.path, options).toPromise(); } + /** + * connect PATCH requests to proxy of Node + * @param param the request object + */ + public connectPatchNodeProxyWithPathWithHttpInfo(param: CoreV1ApiConnectPatchNodeProxyWithPathRequest, options?: Configuration): Promise> { + return this.api.connectPatchNodeProxyWithPathWithHttpInfo(param.name, param.path, param.path2, options).toPromise(); + } + /** * connect PATCH requests to proxy of Node * @param param the request object @@ -19261,6 +21221,14 @@ export class ObjectCoreV1Api { return this.api.connectPatchNodeProxyWithPath(param.name, param.path, param.path2, options).toPromise(); } + /** + * connect POST requests to attach of Pod + * @param param the request object + */ + public connectPostNamespacedPodAttachWithHttpInfo(param: CoreV1ApiConnectPostNamespacedPodAttachRequest, options?: Configuration): Promise> { + return this.api.connectPostNamespacedPodAttachWithHttpInfo(param.name, param.namespace, param.container, param.stderr, param.stdin, param.stdout, param.tty, options).toPromise(); + } + /** * connect POST requests to attach of Pod * @param param the request object @@ -19269,6 +21237,14 @@ export class ObjectCoreV1Api { return this.api.connectPostNamespacedPodAttach(param.name, param.namespace, param.container, param.stderr, param.stdin, param.stdout, param.tty, options).toPromise(); } + /** + * connect POST requests to exec of Pod + * @param param the request object + */ + public connectPostNamespacedPodExecWithHttpInfo(param: CoreV1ApiConnectPostNamespacedPodExecRequest, options?: Configuration): Promise> { + return this.api.connectPostNamespacedPodExecWithHttpInfo(param.name, param.namespace, param.command, param.container, param.stderr, param.stdin, param.stdout, param.tty, options).toPromise(); + } + /** * connect POST requests to exec of Pod * @param param the request object @@ -19277,6 +21253,14 @@ export class ObjectCoreV1Api { return this.api.connectPostNamespacedPodExec(param.name, param.namespace, param.command, param.container, param.stderr, param.stdin, param.stdout, param.tty, options).toPromise(); } + /** + * connect POST requests to portforward of Pod + * @param param the request object + */ + public connectPostNamespacedPodPortforwardWithHttpInfo(param: CoreV1ApiConnectPostNamespacedPodPortforwardRequest, options?: Configuration): Promise> { + return this.api.connectPostNamespacedPodPortforwardWithHttpInfo(param.name, param.namespace, param.ports, options).toPromise(); + } + /** * connect POST requests to portforward of Pod * @param param the request object @@ -19285,6 +21269,14 @@ export class ObjectCoreV1Api { return this.api.connectPostNamespacedPodPortforward(param.name, param.namespace, param.ports, options).toPromise(); } + /** + * connect POST requests to proxy of Pod + * @param param the request object + */ + public connectPostNamespacedPodProxyWithHttpInfo(param: CoreV1ApiConnectPostNamespacedPodProxyRequest, options?: Configuration): Promise> { + return this.api.connectPostNamespacedPodProxyWithHttpInfo(param.name, param.namespace, param.path, options).toPromise(); + } + /** * connect POST requests to proxy of Pod * @param param the request object @@ -19293,6 +21285,14 @@ export class ObjectCoreV1Api { return this.api.connectPostNamespacedPodProxy(param.name, param.namespace, param.path, options).toPromise(); } + /** + * connect POST requests to proxy of Pod + * @param param the request object + */ + public connectPostNamespacedPodProxyWithPathWithHttpInfo(param: CoreV1ApiConnectPostNamespacedPodProxyWithPathRequest, options?: Configuration): Promise> { + return this.api.connectPostNamespacedPodProxyWithPathWithHttpInfo(param.name, param.namespace, param.path, param.path2, options).toPromise(); + } + /** * connect POST requests to proxy of Pod * @param param the request object @@ -19301,6 +21301,14 @@ export class ObjectCoreV1Api { return this.api.connectPostNamespacedPodProxyWithPath(param.name, param.namespace, param.path, param.path2, options).toPromise(); } + /** + * connect POST requests to proxy of Service + * @param param the request object + */ + public connectPostNamespacedServiceProxyWithHttpInfo(param: CoreV1ApiConnectPostNamespacedServiceProxyRequest, options?: Configuration): Promise> { + return this.api.connectPostNamespacedServiceProxyWithHttpInfo(param.name, param.namespace, param.path, options).toPromise(); + } + /** * connect POST requests to proxy of Service * @param param the request object @@ -19309,6 +21317,14 @@ export class ObjectCoreV1Api { return this.api.connectPostNamespacedServiceProxy(param.name, param.namespace, param.path, options).toPromise(); } + /** + * connect POST requests to proxy of Service + * @param param the request object + */ + public connectPostNamespacedServiceProxyWithPathWithHttpInfo(param: CoreV1ApiConnectPostNamespacedServiceProxyWithPathRequest, options?: Configuration): Promise> { + return this.api.connectPostNamespacedServiceProxyWithPathWithHttpInfo(param.name, param.namespace, param.path, param.path2, options).toPromise(); + } + /** * connect POST requests to proxy of Service * @param param the request object @@ -19317,6 +21333,14 @@ export class ObjectCoreV1Api { return this.api.connectPostNamespacedServiceProxyWithPath(param.name, param.namespace, param.path, param.path2, options).toPromise(); } + /** + * connect POST requests to proxy of Node + * @param param the request object + */ + public connectPostNodeProxyWithHttpInfo(param: CoreV1ApiConnectPostNodeProxyRequest, options?: Configuration): Promise> { + return this.api.connectPostNodeProxyWithHttpInfo(param.name, param.path, options).toPromise(); + } + /** * connect POST requests to proxy of Node * @param param the request object @@ -19325,6 +21349,14 @@ export class ObjectCoreV1Api { return this.api.connectPostNodeProxy(param.name, param.path, options).toPromise(); } + /** + * connect POST requests to proxy of Node + * @param param the request object + */ + public connectPostNodeProxyWithPathWithHttpInfo(param: CoreV1ApiConnectPostNodeProxyWithPathRequest, options?: Configuration): Promise> { + return this.api.connectPostNodeProxyWithPathWithHttpInfo(param.name, param.path, param.path2, options).toPromise(); + } + /** * connect POST requests to proxy of Node * @param param the request object @@ -19333,6 +21365,14 @@ export class ObjectCoreV1Api { return this.api.connectPostNodeProxyWithPath(param.name, param.path, param.path2, options).toPromise(); } + /** + * connect PUT requests to proxy of Pod + * @param param the request object + */ + public connectPutNamespacedPodProxyWithHttpInfo(param: CoreV1ApiConnectPutNamespacedPodProxyRequest, options?: Configuration): Promise> { + return this.api.connectPutNamespacedPodProxyWithHttpInfo(param.name, param.namespace, param.path, options).toPromise(); + } + /** * connect PUT requests to proxy of Pod * @param param the request object @@ -19341,6 +21381,14 @@ export class ObjectCoreV1Api { return this.api.connectPutNamespacedPodProxy(param.name, param.namespace, param.path, options).toPromise(); } + /** + * connect PUT requests to proxy of Pod + * @param param the request object + */ + public connectPutNamespacedPodProxyWithPathWithHttpInfo(param: CoreV1ApiConnectPutNamespacedPodProxyWithPathRequest, options?: Configuration): Promise> { + return this.api.connectPutNamespacedPodProxyWithPathWithHttpInfo(param.name, param.namespace, param.path, param.path2, options).toPromise(); + } + /** * connect PUT requests to proxy of Pod * @param param the request object @@ -19349,6 +21397,14 @@ export class ObjectCoreV1Api { return this.api.connectPutNamespacedPodProxyWithPath(param.name, param.namespace, param.path, param.path2, options).toPromise(); } + /** + * connect PUT requests to proxy of Service + * @param param the request object + */ + public connectPutNamespacedServiceProxyWithHttpInfo(param: CoreV1ApiConnectPutNamespacedServiceProxyRequest, options?: Configuration): Promise> { + return this.api.connectPutNamespacedServiceProxyWithHttpInfo(param.name, param.namespace, param.path, options).toPromise(); + } + /** * connect PUT requests to proxy of Service * @param param the request object @@ -19357,6 +21413,14 @@ export class ObjectCoreV1Api { return this.api.connectPutNamespacedServiceProxy(param.name, param.namespace, param.path, options).toPromise(); } + /** + * connect PUT requests to proxy of Service + * @param param the request object + */ + public connectPutNamespacedServiceProxyWithPathWithHttpInfo(param: CoreV1ApiConnectPutNamespacedServiceProxyWithPathRequest, options?: Configuration): Promise> { + return this.api.connectPutNamespacedServiceProxyWithPathWithHttpInfo(param.name, param.namespace, param.path, param.path2, options).toPromise(); + } + /** * connect PUT requests to proxy of Service * @param param the request object @@ -19365,6 +21429,14 @@ export class ObjectCoreV1Api { return this.api.connectPutNamespacedServiceProxyWithPath(param.name, param.namespace, param.path, param.path2, options).toPromise(); } + /** + * connect PUT requests to proxy of Node + * @param param the request object + */ + public connectPutNodeProxyWithHttpInfo(param: CoreV1ApiConnectPutNodeProxyRequest, options?: Configuration): Promise> { + return this.api.connectPutNodeProxyWithHttpInfo(param.name, param.path, options).toPromise(); + } + /** * connect PUT requests to proxy of Node * @param param the request object @@ -19373,6 +21445,14 @@ export class ObjectCoreV1Api { return this.api.connectPutNodeProxy(param.name, param.path, options).toPromise(); } + /** + * connect PUT requests to proxy of Node + * @param param the request object + */ + public connectPutNodeProxyWithPathWithHttpInfo(param: CoreV1ApiConnectPutNodeProxyWithPathRequest, options?: Configuration): Promise> { + return this.api.connectPutNodeProxyWithPathWithHttpInfo(param.name, param.path, param.path2, options).toPromise(); + } + /** * connect PUT requests to proxy of Node * @param param the request object @@ -19381,6 +21461,14 @@ export class ObjectCoreV1Api { return this.api.connectPutNodeProxyWithPath(param.name, param.path, param.path2, options).toPromise(); } + /** + * create a Namespace + * @param param the request object + */ + public createNamespaceWithHttpInfo(param: CoreV1ApiCreateNamespaceRequest, options?: Configuration): Promise> { + return this.api.createNamespaceWithHttpInfo(param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * create a Namespace * @param param the request object @@ -19389,6 +21477,14 @@ export class ObjectCoreV1Api { return this.api.createNamespace(param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * create a Binding + * @param param the request object + */ + public createNamespacedBindingWithHttpInfo(param: CoreV1ApiCreateNamespacedBindingRequest, options?: Configuration): Promise> { + return this.api.createNamespacedBindingWithHttpInfo(param.namespace, param.body, param.dryRun, param.fieldManager, param.pretty, options).toPromise(); + } + /** * create a Binding * @param param the request object @@ -19397,6 +21493,14 @@ export class ObjectCoreV1Api { return this.api.createNamespacedBinding(param.namespace, param.body, param.dryRun, param.fieldManager, param.pretty, options).toPromise(); } + /** + * create a ConfigMap + * @param param the request object + */ + public createNamespacedConfigMapWithHttpInfo(param: CoreV1ApiCreateNamespacedConfigMapRequest, options?: Configuration): Promise> { + return this.api.createNamespacedConfigMapWithHttpInfo(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * create a ConfigMap * @param param the request object @@ -19405,6 +21509,14 @@ export class ObjectCoreV1Api { return this.api.createNamespacedConfigMap(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * create Endpoints + * @param param the request object + */ + public createNamespacedEndpointsWithHttpInfo(param: CoreV1ApiCreateNamespacedEndpointsRequest, options?: Configuration): Promise> { + return this.api.createNamespacedEndpointsWithHttpInfo(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * create Endpoints * @param param the request object @@ -19413,6 +21525,14 @@ export class ObjectCoreV1Api { return this.api.createNamespacedEndpoints(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * create an Event + * @param param the request object + */ + public createNamespacedEventWithHttpInfo(param: CoreV1ApiCreateNamespacedEventRequest, options?: Configuration): Promise> { + return this.api.createNamespacedEventWithHttpInfo(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * create an Event * @param param the request object @@ -19421,6 +21541,14 @@ export class ObjectCoreV1Api { return this.api.createNamespacedEvent(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * create a LimitRange + * @param param the request object + */ + public createNamespacedLimitRangeWithHttpInfo(param: CoreV1ApiCreateNamespacedLimitRangeRequest, options?: Configuration): Promise> { + return this.api.createNamespacedLimitRangeWithHttpInfo(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * create a LimitRange * @param param the request object @@ -19429,6 +21557,14 @@ export class ObjectCoreV1Api { return this.api.createNamespacedLimitRange(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * create a PersistentVolumeClaim + * @param param the request object + */ + public createNamespacedPersistentVolumeClaimWithHttpInfo(param: CoreV1ApiCreateNamespacedPersistentVolumeClaimRequest, options?: Configuration): Promise> { + return this.api.createNamespacedPersistentVolumeClaimWithHttpInfo(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * create a PersistentVolumeClaim * @param param the request object @@ -19437,6 +21573,14 @@ export class ObjectCoreV1Api { return this.api.createNamespacedPersistentVolumeClaim(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * create a Pod + * @param param the request object + */ + public createNamespacedPodWithHttpInfo(param: CoreV1ApiCreateNamespacedPodRequest, options?: Configuration): Promise> { + return this.api.createNamespacedPodWithHttpInfo(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * create a Pod * @param param the request object @@ -19445,6 +21589,14 @@ export class ObjectCoreV1Api { return this.api.createNamespacedPod(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * create binding of a Pod + * @param param the request object + */ + public createNamespacedPodBindingWithHttpInfo(param: CoreV1ApiCreateNamespacedPodBindingRequest, options?: Configuration): Promise> { + return this.api.createNamespacedPodBindingWithHttpInfo(param.name, param.namespace, param.body, param.dryRun, param.fieldManager, param.pretty, options).toPromise(); + } + /** * create binding of a Pod * @param param the request object @@ -19453,6 +21605,14 @@ export class ObjectCoreV1Api { return this.api.createNamespacedPodBinding(param.name, param.namespace, param.body, param.dryRun, param.fieldManager, param.pretty, options).toPromise(); } + /** + * create eviction of a Pod + * @param param the request object + */ + public createNamespacedPodEvictionWithHttpInfo(param: CoreV1ApiCreateNamespacedPodEvictionRequest, options?: Configuration): Promise> { + return this.api.createNamespacedPodEvictionWithHttpInfo(param.name, param.namespace, param.body, param.dryRun, param.fieldManager, param.pretty, options).toPromise(); + } + /** * create eviction of a Pod * @param param the request object @@ -19461,6 +21621,14 @@ export class ObjectCoreV1Api { return this.api.createNamespacedPodEviction(param.name, param.namespace, param.body, param.dryRun, param.fieldManager, param.pretty, options).toPromise(); } + /** + * create a PodTemplate + * @param param the request object + */ + public createNamespacedPodTemplateWithHttpInfo(param: CoreV1ApiCreateNamespacedPodTemplateRequest, options?: Configuration): Promise> { + return this.api.createNamespacedPodTemplateWithHttpInfo(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * create a PodTemplate * @param param the request object @@ -19473,8 +21641,24 @@ export class ObjectCoreV1Api { * create a ReplicationController * @param param the request object */ - public createNamespacedReplicationController(param: CoreV1ApiCreateNamespacedReplicationControllerRequest, options?: Configuration): Promise { - return this.api.createNamespacedReplicationController(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + public createNamespacedReplicationControllerWithHttpInfo(param: CoreV1ApiCreateNamespacedReplicationControllerRequest, options?: Configuration): Promise> { + return this.api.createNamespacedReplicationControllerWithHttpInfo(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + + /** + * create a ReplicationController + * @param param the request object + */ + public createNamespacedReplicationController(param: CoreV1ApiCreateNamespacedReplicationControllerRequest, options?: Configuration): Promise { + return this.api.createNamespacedReplicationController(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + + /** + * create a ResourceQuota + * @param param the request object + */ + public createNamespacedResourceQuotaWithHttpInfo(param: CoreV1ApiCreateNamespacedResourceQuotaRequest, options?: Configuration): Promise> { + return this.api.createNamespacedResourceQuotaWithHttpInfo(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } /** @@ -19485,6 +21669,14 @@ export class ObjectCoreV1Api { return this.api.createNamespacedResourceQuota(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * create a Secret + * @param param the request object + */ + public createNamespacedSecretWithHttpInfo(param: CoreV1ApiCreateNamespacedSecretRequest, options?: Configuration): Promise> { + return this.api.createNamespacedSecretWithHttpInfo(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * create a Secret * @param param the request object @@ -19493,6 +21685,14 @@ export class ObjectCoreV1Api { return this.api.createNamespacedSecret(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * create a Service + * @param param the request object + */ + public createNamespacedServiceWithHttpInfo(param: CoreV1ApiCreateNamespacedServiceRequest, options?: Configuration): Promise> { + return this.api.createNamespacedServiceWithHttpInfo(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * create a Service * @param param the request object @@ -19501,6 +21701,14 @@ export class ObjectCoreV1Api { return this.api.createNamespacedService(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * create a ServiceAccount + * @param param the request object + */ + public createNamespacedServiceAccountWithHttpInfo(param: CoreV1ApiCreateNamespacedServiceAccountRequest, options?: Configuration): Promise> { + return this.api.createNamespacedServiceAccountWithHttpInfo(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * create a ServiceAccount * @param param the request object @@ -19509,6 +21717,14 @@ export class ObjectCoreV1Api { return this.api.createNamespacedServiceAccount(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * create token of a ServiceAccount + * @param param the request object + */ + public createNamespacedServiceAccountTokenWithHttpInfo(param: CoreV1ApiCreateNamespacedServiceAccountTokenRequest, options?: Configuration): Promise> { + return this.api.createNamespacedServiceAccountTokenWithHttpInfo(param.name, param.namespace, param.body, param.dryRun, param.fieldManager, param.pretty, options).toPromise(); + } + /** * create token of a ServiceAccount * @param param the request object @@ -19517,6 +21733,14 @@ export class ObjectCoreV1Api { return this.api.createNamespacedServiceAccountToken(param.name, param.namespace, param.body, param.dryRun, param.fieldManager, param.pretty, options).toPromise(); } + /** + * create a Node + * @param param the request object + */ + public createNodeWithHttpInfo(param: CoreV1ApiCreateNodeRequest, options?: Configuration): Promise> { + return this.api.createNodeWithHttpInfo(param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * create a Node * @param param the request object @@ -19525,6 +21749,14 @@ export class ObjectCoreV1Api { return this.api.createNode(param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * create a PersistentVolume + * @param param the request object + */ + public createPersistentVolumeWithHttpInfo(param: CoreV1ApiCreatePersistentVolumeRequest, options?: Configuration): Promise> { + return this.api.createPersistentVolumeWithHttpInfo(param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * create a PersistentVolume * @param param the request object @@ -19533,6 +21765,14 @@ export class ObjectCoreV1Api { return this.api.createPersistentVolume(param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * delete collection of ConfigMap + * @param param the request object + */ + public deleteCollectionNamespacedConfigMapWithHttpInfo(param: CoreV1ApiDeleteCollectionNamespacedConfigMapRequest, options?: Configuration): Promise> { + return this.api.deleteCollectionNamespacedConfigMapWithHttpInfo(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); + } + /** * delete collection of ConfigMap * @param param the request object @@ -19541,6 +21781,14 @@ export class ObjectCoreV1Api { return this.api.deleteCollectionNamespacedConfigMap(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); } + /** + * delete collection of Endpoints + * @param param the request object + */ + public deleteCollectionNamespacedEndpointsWithHttpInfo(param: CoreV1ApiDeleteCollectionNamespacedEndpointsRequest, options?: Configuration): Promise> { + return this.api.deleteCollectionNamespacedEndpointsWithHttpInfo(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); + } + /** * delete collection of Endpoints * @param param the request object @@ -19549,6 +21797,14 @@ export class ObjectCoreV1Api { return this.api.deleteCollectionNamespacedEndpoints(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); } + /** + * delete collection of Event + * @param param the request object + */ + public deleteCollectionNamespacedEventWithHttpInfo(param: CoreV1ApiDeleteCollectionNamespacedEventRequest, options?: Configuration): Promise> { + return this.api.deleteCollectionNamespacedEventWithHttpInfo(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); + } + /** * delete collection of Event * @param param the request object @@ -19557,6 +21813,14 @@ export class ObjectCoreV1Api { return this.api.deleteCollectionNamespacedEvent(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); } + /** + * delete collection of LimitRange + * @param param the request object + */ + public deleteCollectionNamespacedLimitRangeWithHttpInfo(param: CoreV1ApiDeleteCollectionNamespacedLimitRangeRequest, options?: Configuration): Promise> { + return this.api.deleteCollectionNamespacedLimitRangeWithHttpInfo(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); + } + /** * delete collection of LimitRange * @param param the request object @@ -19565,6 +21829,14 @@ export class ObjectCoreV1Api { return this.api.deleteCollectionNamespacedLimitRange(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); } + /** + * delete collection of PersistentVolumeClaim + * @param param the request object + */ + public deleteCollectionNamespacedPersistentVolumeClaimWithHttpInfo(param: CoreV1ApiDeleteCollectionNamespacedPersistentVolumeClaimRequest, options?: Configuration): Promise> { + return this.api.deleteCollectionNamespacedPersistentVolumeClaimWithHttpInfo(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); + } + /** * delete collection of PersistentVolumeClaim * @param param the request object @@ -19573,6 +21845,14 @@ export class ObjectCoreV1Api { return this.api.deleteCollectionNamespacedPersistentVolumeClaim(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); } + /** + * delete collection of Pod + * @param param the request object + */ + public deleteCollectionNamespacedPodWithHttpInfo(param: CoreV1ApiDeleteCollectionNamespacedPodRequest, options?: Configuration): Promise> { + return this.api.deleteCollectionNamespacedPodWithHttpInfo(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); + } + /** * delete collection of Pod * @param param the request object @@ -19581,6 +21861,14 @@ export class ObjectCoreV1Api { return this.api.deleteCollectionNamespacedPod(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); } + /** + * delete collection of PodTemplate + * @param param the request object + */ + public deleteCollectionNamespacedPodTemplateWithHttpInfo(param: CoreV1ApiDeleteCollectionNamespacedPodTemplateRequest, options?: Configuration): Promise> { + return this.api.deleteCollectionNamespacedPodTemplateWithHttpInfo(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); + } + /** * delete collection of PodTemplate * @param param the request object @@ -19589,6 +21877,14 @@ export class ObjectCoreV1Api { return this.api.deleteCollectionNamespacedPodTemplate(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); } + /** + * delete collection of ReplicationController + * @param param the request object + */ + public deleteCollectionNamespacedReplicationControllerWithHttpInfo(param: CoreV1ApiDeleteCollectionNamespacedReplicationControllerRequest, options?: Configuration): Promise> { + return this.api.deleteCollectionNamespacedReplicationControllerWithHttpInfo(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); + } + /** * delete collection of ReplicationController * @param param the request object @@ -19597,6 +21893,14 @@ export class ObjectCoreV1Api { return this.api.deleteCollectionNamespacedReplicationController(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); } + /** + * delete collection of ResourceQuota + * @param param the request object + */ + public deleteCollectionNamespacedResourceQuotaWithHttpInfo(param: CoreV1ApiDeleteCollectionNamespacedResourceQuotaRequest, options?: Configuration): Promise> { + return this.api.deleteCollectionNamespacedResourceQuotaWithHttpInfo(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); + } + /** * delete collection of ResourceQuota * @param param the request object @@ -19605,6 +21909,14 @@ export class ObjectCoreV1Api { return this.api.deleteCollectionNamespacedResourceQuota(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); } + /** + * delete collection of Secret + * @param param the request object + */ + public deleteCollectionNamespacedSecretWithHttpInfo(param: CoreV1ApiDeleteCollectionNamespacedSecretRequest, options?: Configuration): Promise> { + return this.api.deleteCollectionNamespacedSecretWithHttpInfo(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); + } + /** * delete collection of Secret * @param param the request object @@ -19613,6 +21925,14 @@ export class ObjectCoreV1Api { return this.api.deleteCollectionNamespacedSecret(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); } + /** + * delete collection of ServiceAccount + * @param param the request object + */ + public deleteCollectionNamespacedServiceAccountWithHttpInfo(param: CoreV1ApiDeleteCollectionNamespacedServiceAccountRequest, options?: Configuration): Promise> { + return this.api.deleteCollectionNamespacedServiceAccountWithHttpInfo(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); + } + /** * delete collection of ServiceAccount * @param param the request object @@ -19621,6 +21941,14 @@ export class ObjectCoreV1Api { return this.api.deleteCollectionNamespacedServiceAccount(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); } + /** + * delete collection of Node + * @param param the request object + */ + public deleteCollectionNodeWithHttpInfo(param: CoreV1ApiDeleteCollectionNodeRequest = {}, options?: Configuration): Promise> { + return this.api.deleteCollectionNodeWithHttpInfo(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); + } + /** * delete collection of Node * @param param the request object @@ -19629,6 +21957,14 @@ export class ObjectCoreV1Api { return this.api.deleteCollectionNode(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); } + /** + * delete collection of PersistentVolume + * @param param the request object + */ + public deleteCollectionPersistentVolumeWithHttpInfo(param: CoreV1ApiDeleteCollectionPersistentVolumeRequest = {}, options?: Configuration): Promise> { + return this.api.deleteCollectionPersistentVolumeWithHttpInfo(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); + } + /** * delete collection of PersistentVolume * @param param the request object @@ -19637,6 +21973,14 @@ export class ObjectCoreV1Api { return this.api.deleteCollectionPersistentVolume(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); } + /** + * delete a Namespace + * @param param the request object + */ + public deleteNamespaceWithHttpInfo(param: CoreV1ApiDeleteNamespaceRequest, options?: Configuration): Promise> { + return this.api.deleteNamespaceWithHttpInfo(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); + } + /** * delete a Namespace * @param param the request object @@ -19645,6 +21989,14 @@ export class ObjectCoreV1Api { return this.api.deleteNamespace(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } + /** + * delete a ConfigMap + * @param param the request object + */ + public deleteNamespacedConfigMapWithHttpInfo(param: CoreV1ApiDeleteNamespacedConfigMapRequest, options?: Configuration): Promise> { + return this.api.deleteNamespacedConfigMapWithHttpInfo(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); + } + /** * delete a ConfigMap * @param param the request object @@ -19653,6 +22005,14 @@ export class ObjectCoreV1Api { return this.api.deleteNamespacedConfigMap(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } + /** + * delete Endpoints + * @param param the request object + */ + public deleteNamespacedEndpointsWithHttpInfo(param: CoreV1ApiDeleteNamespacedEndpointsRequest, options?: Configuration): Promise> { + return this.api.deleteNamespacedEndpointsWithHttpInfo(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); + } + /** * delete Endpoints * @param param the request object @@ -19661,6 +22021,14 @@ export class ObjectCoreV1Api { return this.api.deleteNamespacedEndpoints(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } + /** + * delete an Event + * @param param the request object + */ + public deleteNamespacedEventWithHttpInfo(param: CoreV1ApiDeleteNamespacedEventRequest, options?: Configuration): Promise> { + return this.api.deleteNamespacedEventWithHttpInfo(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); + } + /** * delete an Event * @param param the request object @@ -19669,6 +22037,14 @@ export class ObjectCoreV1Api { return this.api.deleteNamespacedEvent(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } + /** + * delete a LimitRange + * @param param the request object + */ + public deleteNamespacedLimitRangeWithHttpInfo(param: CoreV1ApiDeleteNamespacedLimitRangeRequest, options?: Configuration): Promise> { + return this.api.deleteNamespacedLimitRangeWithHttpInfo(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); + } + /** * delete a LimitRange * @param param the request object @@ -19677,6 +22053,14 @@ export class ObjectCoreV1Api { return this.api.deleteNamespacedLimitRange(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } + /** + * delete a PersistentVolumeClaim + * @param param the request object + */ + public deleteNamespacedPersistentVolumeClaimWithHttpInfo(param: CoreV1ApiDeleteNamespacedPersistentVolumeClaimRequest, options?: Configuration): Promise> { + return this.api.deleteNamespacedPersistentVolumeClaimWithHttpInfo(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); + } + /** * delete a PersistentVolumeClaim * @param param the request object @@ -19685,6 +22069,14 @@ export class ObjectCoreV1Api { return this.api.deleteNamespacedPersistentVolumeClaim(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } + /** + * delete a Pod + * @param param the request object + */ + public deleteNamespacedPodWithHttpInfo(param: CoreV1ApiDeleteNamespacedPodRequest, options?: Configuration): Promise> { + return this.api.deleteNamespacedPodWithHttpInfo(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); + } + /** * delete a Pod * @param param the request object @@ -19693,6 +22085,14 @@ export class ObjectCoreV1Api { return this.api.deleteNamespacedPod(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } + /** + * delete a PodTemplate + * @param param the request object + */ + public deleteNamespacedPodTemplateWithHttpInfo(param: CoreV1ApiDeleteNamespacedPodTemplateRequest, options?: Configuration): Promise> { + return this.api.deleteNamespacedPodTemplateWithHttpInfo(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); + } + /** * delete a PodTemplate * @param param the request object @@ -19701,6 +22101,14 @@ export class ObjectCoreV1Api { return this.api.deleteNamespacedPodTemplate(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } + /** + * delete a ReplicationController + * @param param the request object + */ + public deleteNamespacedReplicationControllerWithHttpInfo(param: CoreV1ApiDeleteNamespacedReplicationControllerRequest, options?: Configuration): Promise> { + return this.api.deleteNamespacedReplicationControllerWithHttpInfo(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); + } + /** * delete a ReplicationController * @param param the request object @@ -19709,6 +22117,14 @@ export class ObjectCoreV1Api { return this.api.deleteNamespacedReplicationController(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } + /** + * delete a ResourceQuota + * @param param the request object + */ + public deleteNamespacedResourceQuotaWithHttpInfo(param: CoreV1ApiDeleteNamespacedResourceQuotaRequest, options?: Configuration): Promise> { + return this.api.deleteNamespacedResourceQuotaWithHttpInfo(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); + } + /** * delete a ResourceQuota * @param param the request object @@ -19717,6 +22133,14 @@ export class ObjectCoreV1Api { return this.api.deleteNamespacedResourceQuota(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } + /** + * delete a Secret + * @param param the request object + */ + public deleteNamespacedSecretWithHttpInfo(param: CoreV1ApiDeleteNamespacedSecretRequest, options?: Configuration): Promise> { + return this.api.deleteNamespacedSecretWithHttpInfo(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); + } + /** * delete a Secret * @param param the request object @@ -19725,6 +22149,14 @@ export class ObjectCoreV1Api { return this.api.deleteNamespacedSecret(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } + /** + * delete a Service + * @param param the request object + */ + public deleteNamespacedServiceWithHttpInfo(param: CoreV1ApiDeleteNamespacedServiceRequest, options?: Configuration): Promise> { + return this.api.deleteNamespacedServiceWithHttpInfo(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); + } + /** * delete a Service * @param param the request object @@ -19733,6 +22165,14 @@ export class ObjectCoreV1Api { return this.api.deleteNamespacedService(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } + /** + * delete a ServiceAccount + * @param param the request object + */ + public deleteNamespacedServiceAccountWithHttpInfo(param: CoreV1ApiDeleteNamespacedServiceAccountRequest, options?: Configuration): Promise> { + return this.api.deleteNamespacedServiceAccountWithHttpInfo(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); + } + /** * delete a ServiceAccount * @param param the request object @@ -19741,6 +22181,14 @@ export class ObjectCoreV1Api { return this.api.deleteNamespacedServiceAccount(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } + /** + * delete a Node + * @param param the request object + */ + public deleteNodeWithHttpInfo(param: CoreV1ApiDeleteNodeRequest, options?: Configuration): Promise> { + return this.api.deleteNodeWithHttpInfo(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); + } + /** * delete a Node * @param param the request object @@ -19749,6 +22197,14 @@ export class ObjectCoreV1Api { return this.api.deleteNode(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } + /** + * delete a PersistentVolume + * @param param the request object + */ + public deletePersistentVolumeWithHttpInfo(param: CoreV1ApiDeletePersistentVolumeRequest, options?: Configuration): Promise> { + return this.api.deletePersistentVolumeWithHttpInfo(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); + } + /** * delete a PersistentVolume * @param param the request object @@ -19757,6 +22213,14 @@ export class ObjectCoreV1Api { return this.api.deletePersistentVolume(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } + /** + * get available resources + * @param param the request object + */ + public getAPIResourcesWithHttpInfo(param: CoreV1ApiGetAPIResourcesRequest = {}, options?: Configuration): Promise> { + return this.api.getAPIResourcesWithHttpInfo( options).toPromise(); + } + /** * get available resources * @param param the request object @@ -19765,6 +22229,14 @@ export class ObjectCoreV1Api { return this.api.getAPIResources( options).toPromise(); } + /** + * list objects of kind ComponentStatus + * @param param the request object + */ + public listComponentStatusWithHttpInfo(param: CoreV1ApiListComponentStatusRequest = {}, options?: Configuration): Promise> { + return this.api.listComponentStatusWithHttpInfo(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); + } + /** * list objects of kind ComponentStatus * @param param the request object @@ -19773,6 +22245,14 @@ export class ObjectCoreV1Api { return this.api.listComponentStatus(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } + /** + * list or watch objects of kind ConfigMap + * @param param the request object + */ + public listConfigMapForAllNamespacesWithHttpInfo(param: CoreV1ApiListConfigMapForAllNamespacesRequest = {}, options?: Configuration): Promise> { + return this.api.listConfigMapForAllNamespacesWithHttpInfo(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); + } + /** * list or watch objects of kind ConfigMap * @param param the request object @@ -19781,6 +22261,14 @@ export class ObjectCoreV1Api { return this.api.listConfigMapForAllNamespaces(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } + /** + * list or watch objects of kind Endpoints + * @param param the request object + */ + public listEndpointsForAllNamespacesWithHttpInfo(param: CoreV1ApiListEndpointsForAllNamespacesRequest = {}, options?: Configuration): Promise> { + return this.api.listEndpointsForAllNamespacesWithHttpInfo(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); + } + /** * list or watch objects of kind Endpoints * @param param the request object @@ -19789,6 +22277,14 @@ export class ObjectCoreV1Api { return this.api.listEndpointsForAllNamespaces(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } + /** + * list or watch objects of kind Event + * @param param the request object + */ + public listEventForAllNamespacesWithHttpInfo(param: CoreV1ApiListEventForAllNamespacesRequest = {}, options?: Configuration): Promise> { + return this.api.listEventForAllNamespacesWithHttpInfo(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); + } + /** * list or watch objects of kind Event * @param param the request object @@ -19797,6 +22293,14 @@ export class ObjectCoreV1Api { return this.api.listEventForAllNamespaces(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } + /** + * list or watch objects of kind LimitRange + * @param param the request object + */ + public listLimitRangeForAllNamespacesWithHttpInfo(param: CoreV1ApiListLimitRangeForAllNamespacesRequest = {}, options?: Configuration): Promise> { + return this.api.listLimitRangeForAllNamespacesWithHttpInfo(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); + } + /** * list or watch objects of kind LimitRange * @param param the request object @@ -19805,6 +22309,14 @@ export class ObjectCoreV1Api { return this.api.listLimitRangeForAllNamespaces(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } + /** + * list or watch objects of kind Namespace + * @param param the request object + */ + public listNamespaceWithHttpInfo(param: CoreV1ApiListNamespaceRequest = {}, options?: Configuration): Promise> { + return this.api.listNamespaceWithHttpInfo(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); + } + /** * list or watch objects of kind Namespace * @param param the request object @@ -19813,6 +22325,14 @@ export class ObjectCoreV1Api { return this.api.listNamespace(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } + /** + * list or watch objects of kind ConfigMap + * @param param the request object + */ + public listNamespacedConfigMapWithHttpInfo(param: CoreV1ApiListNamespacedConfigMapRequest, options?: Configuration): Promise> { + return this.api.listNamespacedConfigMapWithHttpInfo(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); + } + /** * list or watch objects of kind ConfigMap * @param param the request object @@ -19821,6 +22341,14 @@ export class ObjectCoreV1Api { return this.api.listNamespacedConfigMap(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } + /** + * list or watch objects of kind Endpoints + * @param param the request object + */ + public listNamespacedEndpointsWithHttpInfo(param: CoreV1ApiListNamespacedEndpointsRequest, options?: Configuration): Promise> { + return this.api.listNamespacedEndpointsWithHttpInfo(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); + } + /** * list or watch objects of kind Endpoints * @param param the request object @@ -19829,6 +22357,14 @@ export class ObjectCoreV1Api { return this.api.listNamespacedEndpoints(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } + /** + * list or watch objects of kind Event + * @param param the request object + */ + public listNamespacedEventWithHttpInfo(param: CoreV1ApiListNamespacedEventRequest, options?: Configuration): Promise> { + return this.api.listNamespacedEventWithHttpInfo(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); + } + /** * list or watch objects of kind Event * @param param the request object @@ -19837,6 +22373,14 @@ export class ObjectCoreV1Api { return this.api.listNamespacedEvent(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } + /** + * list or watch objects of kind LimitRange + * @param param the request object + */ + public listNamespacedLimitRangeWithHttpInfo(param: CoreV1ApiListNamespacedLimitRangeRequest, options?: Configuration): Promise> { + return this.api.listNamespacedLimitRangeWithHttpInfo(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); + } + /** * list or watch objects of kind LimitRange * @param param the request object @@ -19845,6 +22389,14 @@ export class ObjectCoreV1Api { return this.api.listNamespacedLimitRange(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } + /** + * list or watch objects of kind PersistentVolumeClaim + * @param param the request object + */ + public listNamespacedPersistentVolumeClaimWithHttpInfo(param: CoreV1ApiListNamespacedPersistentVolumeClaimRequest, options?: Configuration): Promise> { + return this.api.listNamespacedPersistentVolumeClaimWithHttpInfo(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); + } + /** * list or watch objects of kind PersistentVolumeClaim * @param param the request object @@ -19853,6 +22405,14 @@ export class ObjectCoreV1Api { return this.api.listNamespacedPersistentVolumeClaim(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } + /** + * list or watch objects of kind Pod + * @param param the request object + */ + public listNamespacedPodWithHttpInfo(param: CoreV1ApiListNamespacedPodRequest, options?: Configuration): Promise> { + return this.api.listNamespacedPodWithHttpInfo(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); + } + /** * list or watch objects of kind Pod * @param param the request object @@ -19861,6 +22421,14 @@ export class ObjectCoreV1Api { return this.api.listNamespacedPod(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } + /** + * list or watch objects of kind PodTemplate + * @param param the request object + */ + public listNamespacedPodTemplateWithHttpInfo(param: CoreV1ApiListNamespacedPodTemplateRequest, options?: Configuration): Promise> { + return this.api.listNamespacedPodTemplateWithHttpInfo(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); + } + /** * list or watch objects of kind PodTemplate * @param param the request object @@ -19869,6 +22437,14 @@ export class ObjectCoreV1Api { return this.api.listNamespacedPodTemplate(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } + /** + * list or watch objects of kind ReplicationController + * @param param the request object + */ + public listNamespacedReplicationControllerWithHttpInfo(param: CoreV1ApiListNamespacedReplicationControllerRequest, options?: Configuration): Promise> { + return this.api.listNamespacedReplicationControllerWithHttpInfo(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); + } + /** * list or watch objects of kind ReplicationController * @param param the request object @@ -19877,6 +22453,14 @@ export class ObjectCoreV1Api { return this.api.listNamespacedReplicationController(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } + /** + * list or watch objects of kind ResourceQuota + * @param param the request object + */ + public listNamespacedResourceQuotaWithHttpInfo(param: CoreV1ApiListNamespacedResourceQuotaRequest, options?: Configuration): Promise> { + return this.api.listNamespacedResourceQuotaWithHttpInfo(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); + } + /** * list or watch objects of kind ResourceQuota * @param param the request object @@ -19885,6 +22469,14 @@ export class ObjectCoreV1Api { return this.api.listNamespacedResourceQuota(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } + /** + * list or watch objects of kind Secret + * @param param the request object + */ + public listNamespacedSecretWithHttpInfo(param: CoreV1ApiListNamespacedSecretRequest, options?: Configuration): Promise> { + return this.api.listNamespacedSecretWithHttpInfo(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); + } + /** * list or watch objects of kind Secret * @param param the request object @@ -19893,6 +22485,14 @@ export class ObjectCoreV1Api { return this.api.listNamespacedSecret(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } + /** + * list or watch objects of kind Service + * @param param the request object + */ + public listNamespacedServiceWithHttpInfo(param: CoreV1ApiListNamespacedServiceRequest, options?: Configuration): Promise> { + return this.api.listNamespacedServiceWithHttpInfo(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); + } + /** * list or watch objects of kind Service * @param param the request object @@ -19901,6 +22501,14 @@ export class ObjectCoreV1Api { return this.api.listNamespacedService(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } + /** + * list or watch objects of kind ServiceAccount + * @param param the request object + */ + public listNamespacedServiceAccountWithHttpInfo(param: CoreV1ApiListNamespacedServiceAccountRequest, options?: Configuration): Promise> { + return this.api.listNamespacedServiceAccountWithHttpInfo(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); + } + /** * list or watch objects of kind ServiceAccount * @param param the request object @@ -19909,6 +22517,14 @@ export class ObjectCoreV1Api { return this.api.listNamespacedServiceAccount(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } + /** + * list or watch objects of kind Node + * @param param the request object + */ + public listNodeWithHttpInfo(param: CoreV1ApiListNodeRequest = {}, options?: Configuration): Promise> { + return this.api.listNodeWithHttpInfo(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); + } + /** * list or watch objects of kind Node * @param param the request object @@ -19917,6 +22533,14 @@ export class ObjectCoreV1Api { return this.api.listNode(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } + /** + * list or watch objects of kind PersistentVolume + * @param param the request object + */ + public listPersistentVolumeWithHttpInfo(param: CoreV1ApiListPersistentVolumeRequest = {}, options?: Configuration): Promise> { + return this.api.listPersistentVolumeWithHttpInfo(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); + } + /** * list or watch objects of kind PersistentVolume * @param param the request object @@ -19925,6 +22549,14 @@ export class ObjectCoreV1Api { return this.api.listPersistentVolume(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } + /** + * list or watch objects of kind PersistentVolumeClaim + * @param param the request object + */ + public listPersistentVolumeClaimForAllNamespacesWithHttpInfo(param: CoreV1ApiListPersistentVolumeClaimForAllNamespacesRequest = {}, options?: Configuration): Promise> { + return this.api.listPersistentVolumeClaimForAllNamespacesWithHttpInfo(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); + } + /** * list or watch objects of kind PersistentVolumeClaim * @param param the request object @@ -19933,6 +22565,14 @@ export class ObjectCoreV1Api { return this.api.listPersistentVolumeClaimForAllNamespaces(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } + /** + * list or watch objects of kind Pod + * @param param the request object + */ + public listPodForAllNamespacesWithHttpInfo(param: CoreV1ApiListPodForAllNamespacesRequest = {}, options?: Configuration): Promise> { + return this.api.listPodForAllNamespacesWithHttpInfo(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); + } + /** * list or watch objects of kind Pod * @param param the request object @@ -19941,6 +22581,14 @@ export class ObjectCoreV1Api { return this.api.listPodForAllNamespaces(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } + /** + * list or watch objects of kind PodTemplate + * @param param the request object + */ + public listPodTemplateForAllNamespacesWithHttpInfo(param: CoreV1ApiListPodTemplateForAllNamespacesRequest = {}, options?: Configuration): Promise> { + return this.api.listPodTemplateForAllNamespacesWithHttpInfo(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); + } + /** * list or watch objects of kind PodTemplate * @param param the request object @@ -19949,6 +22597,14 @@ export class ObjectCoreV1Api { return this.api.listPodTemplateForAllNamespaces(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } + /** + * list or watch objects of kind ReplicationController + * @param param the request object + */ + public listReplicationControllerForAllNamespacesWithHttpInfo(param: CoreV1ApiListReplicationControllerForAllNamespacesRequest = {}, options?: Configuration): Promise> { + return this.api.listReplicationControllerForAllNamespacesWithHttpInfo(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); + } + /** * list or watch objects of kind ReplicationController * @param param the request object @@ -19957,6 +22613,14 @@ export class ObjectCoreV1Api { return this.api.listReplicationControllerForAllNamespaces(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } + /** + * list or watch objects of kind ResourceQuota + * @param param the request object + */ + public listResourceQuotaForAllNamespacesWithHttpInfo(param: CoreV1ApiListResourceQuotaForAllNamespacesRequest = {}, options?: Configuration): Promise> { + return this.api.listResourceQuotaForAllNamespacesWithHttpInfo(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); + } + /** * list or watch objects of kind ResourceQuota * @param param the request object @@ -19965,6 +22629,14 @@ export class ObjectCoreV1Api { return this.api.listResourceQuotaForAllNamespaces(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } + /** + * list or watch objects of kind Secret + * @param param the request object + */ + public listSecretForAllNamespacesWithHttpInfo(param: CoreV1ApiListSecretForAllNamespacesRequest = {}, options?: Configuration): Promise> { + return this.api.listSecretForAllNamespacesWithHttpInfo(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); + } + /** * list or watch objects of kind Secret * @param param the request object @@ -19973,6 +22645,14 @@ export class ObjectCoreV1Api { return this.api.listSecretForAllNamespaces(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } + /** + * list or watch objects of kind ServiceAccount + * @param param the request object + */ + public listServiceAccountForAllNamespacesWithHttpInfo(param: CoreV1ApiListServiceAccountForAllNamespacesRequest = {}, options?: Configuration): Promise> { + return this.api.listServiceAccountForAllNamespacesWithHttpInfo(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); + } + /** * list or watch objects of kind ServiceAccount * @param param the request object @@ -19981,6 +22661,14 @@ export class ObjectCoreV1Api { return this.api.listServiceAccountForAllNamespaces(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } + /** + * list or watch objects of kind Service + * @param param the request object + */ + public listServiceForAllNamespacesWithHttpInfo(param: CoreV1ApiListServiceForAllNamespacesRequest = {}, options?: Configuration): Promise> { + return this.api.listServiceForAllNamespacesWithHttpInfo(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); + } + /** * list or watch objects of kind Service * @param param the request object @@ -19989,6 +22677,14 @@ export class ObjectCoreV1Api { return this.api.listServiceForAllNamespaces(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } + /** + * partially update the specified Namespace + * @param param the request object + */ + public patchNamespaceWithHttpInfo(param: CoreV1ApiPatchNamespaceRequest, options?: Configuration): Promise> { + return this.api.patchNamespaceWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); + } + /** * partially update the specified Namespace * @param param the request object @@ -19997,6 +22693,14 @@ export class ObjectCoreV1Api { return this.api.patchNamespace(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); } + /** + * partially update status of the specified Namespace + * @param param the request object + */ + public patchNamespaceStatusWithHttpInfo(param: CoreV1ApiPatchNamespaceStatusRequest, options?: Configuration): Promise> { + return this.api.patchNamespaceStatusWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); + } + /** * partially update status of the specified Namespace * @param param the request object @@ -20005,6 +22709,14 @@ export class ObjectCoreV1Api { return this.api.patchNamespaceStatus(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); } + /** + * partially update the specified ConfigMap + * @param param the request object + */ + public patchNamespacedConfigMapWithHttpInfo(param: CoreV1ApiPatchNamespacedConfigMapRequest, options?: Configuration): Promise> { + return this.api.patchNamespacedConfigMapWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); + } + /** * partially update the specified ConfigMap * @param param the request object @@ -20013,6 +22725,14 @@ export class ObjectCoreV1Api { return this.api.patchNamespacedConfigMap(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); } + /** + * partially update the specified Endpoints + * @param param the request object + */ + public patchNamespacedEndpointsWithHttpInfo(param: CoreV1ApiPatchNamespacedEndpointsRequest, options?: Configuration): Promise> { + return this.api.patchNamespacedEndpointsWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); + } + /** * partially update the specified Endpoints * @param param the request object @@ -20021,6 +22741,14 @@ export class ObjectCoreV1Api { return this.api.patchNamespacedEndpoints(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); } + /** + * partially update the specified Event + * @param param the request object + */ + public patchNamespacedEventWithHttpInfo(param: CoreV1ApiPatchNamespacedEventRequest, options?: Configuration): Promise> { + return this.api.patchNamespacedEventWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); + } + /** * partially update the specified Event * @param param the request object @@ -20029,6 +22757,14 @@ export class ObjectCoreV1Api { return this.api.patchNamespacedEvent(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); } + /** + * partially update the specified LimitRange + * @param param the request object + */ + public patchNamespacedLimitRangeWithHttpInfo(param: CoreV1ApiPatchNamespacedLimitRangeRequest, options?: Configuration): Promise> { + return this.api.patchNamespacedLimitRangeWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); + } + /** * partially update the specified LimitRange * @param param the request object @@ -20037,6 +22773,14 @@ export class ObjectCoreV1Api { return this.api.patchNamespacedLimitRange(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); } + /** + * partially update the specified PersistentVolumeClaim + * @param param the request object + */ + public patchNamespacedPersistentVolumeClaimWithHttpInfo(param: CoreV1ApiPatchNamespacedPersistentVolumeClaimRequest, options?: Configuration): Promise> { + return this.api.patchNamespacedPersistentVolumeClaimWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); + } + /** * partially update the specified PersistentVolumeClaim * @param param the request object @@ -20045,6 +22789,14 @@ export class ObjectCoreV1Api { return this.api.patchNamespacedPersistentVolumeClaim(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); } + /** + * partially update status of the specified PersistentVolumeClaim + * @param param the request object + */ + public patchNamespacedPersistentVolumeClaimStatusWithHttpInfo(param: CoreV1ApiPatchNamespacedPersistentVolumeClaimStatusRequest, options?: Configuration): Promise> { + return this.api.patchNamespacedPersistentVolumeClaimStatusWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); + } + /** * partially update status of the specified PersistentVolumeClaim * @param param the request object @@ -20053,6 +22805,14 @@ export class ObjectCoreV1Api { return this.api.patchNamespacedPersistentVolumeClaimStatus(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); } + /** + * partially update the specified Pod + * @param param the request object + */ + public patchNamespacedPodWithHttpInfo(param: CoreV1ApiPatchNamespacedPodRequest, options?: Configuration): Promise> { + return this.api.patchNamespacedPodWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); + } + /** * partially update the specified Pod * @param param the request object @@ -20061,6 +22821,14 @@ export class ObjectCoreV1Api { return this.api.patchNamespacedPod(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); } + /** + * partially update ephemeralcontainers of the specified Pod + * @param param the request object + */ + public patchNamespacedPodEphemeralcontainersWithHttpInfo(param: CoreV1ApiPatchNamespacedPodEphemeralcontainersRequest, options?: Configuration): Promise> { + return this.api.patchNamespacedPodEphemeralcontainersWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); + } + /** * partially update ephemeralcontainers of the specified Pod * @param param the request object @@ -20069,6 +22837,14 @@ export class ObjectCoreV1Api { return this.api.patchNamespacedPodEphemeralcontainers(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); } + /** + * partially update status of the specified Pod + * @param param the request object + */ + public patchNamespacedPodStatusWithHttpInfo(param: CoreV1ApiPatchNamespacedPodStatusRequest, options?: Configuration): Promise> { + return this.api.patchNamespacedPodStatusWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); + } + /** * partially update status of the specified Pod * @param param the request object @@ -20077,6 +22853,14 @@ export class ObjectCoreV1Api { return this.api.patchNamespacedPodStatus(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); } + /** + * partially update the specified PodTemplate + * @param param the request object + */ + public patchNamespacedPodTemplateWithHttpInfo(param: CoreV1ApiPatchNamespacedPodTemplateRequest, options?: Configuration): Promise> { + return this.api.patchNamespacedPodTemplateWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); + } + /** * partially update the specified PodTemplate * @param param the request object @@ -20085,6 +22869,14 @@ export class ObjectCoreV1Api { return this.api.patchNamespacedPodTemplate(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); } + /** + * partially update the specified ReplicationController + * @param param the request object + */ + public patchNamespacedReplicationControllerWithHttpInfo(param: CoreV1ApiPatchNamespacedReplicationControllerRequest, options?: Configuration): Promise> { + return this.api.patchNamespacedReplicationControllerWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); + } + /** * partially update the specified ReplicationController * @param param the request object @@ -20093,6 +22885,14 @@ export class ObjectCoreV1Api { return this.api.patchNamespacedReplicationController(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); } + /** + * partially update scale of the specified ReplicationController + * @param param the request object + */ + public patchNamespacedReplicationControllerScaleWithHttpInfo(param: CoreV1ApiPatchNamespacedReplicationControllerScaleRequest, options?: Configuration): Promise> { + return this.api.patchNamespacedReplicationControllerScaleWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); + } + /** * partially update scale of the specified ReplicationController * @param param the request object @@ -20101,6 +22901,14 @@ export class ObjectCoreV1Api { return this.api.patchNamespacedReplicationControllerScale(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); } + /** + * partially update status of the specified ReplicationController + * @param param the request object + */ + public patchNamespacedReplicationControllerStatusWithHttpInfo(param: CoreV1ApiPatchNamespacedReplicationControllerStatusRequest, options?: Configuration): Promise> { + return this.api.patchNamespacedReplicationControllerStatusWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); + } + /** * partially update status of the specified ReplicationController * @param param the request object @@ -20109,6 +22917,14 @@ export class ObjectCoreV1Api { return this.api.patchNamespacedReplicationControllerStatus(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); } + /** + * partially update the specified ResourceQuota + * @param param the request object + */ + public patchNamespacedResourceQuotaWithHttpInfo(param: CoreV1ApiPatchNamespacedResourceQuotaRequest, options?: Configuration): Promise> { + return this.api.patchNamespacedResourceQuotaWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); + } + /** * partially update the specified ResourceQuota * @param param the request object @@ -20117,6 +22933,14 @@ export class ObjectCoreV1Api { return this.api.patchNamespacedResourceQuota(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); } + /** + * partially update status of the specified ResourceQuota + * @param param the request object + */ + public patchNamespacedResourceQuotaStatusWithHttpInfo(param: CoreV1ApiPatchNamespacedResourceQuotaStatusRequest, options?: Configuration): Promise> { + return this.api.patchNamespacedResourceQuotaStatusWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); + } + /** * partially update status of the specified ResourceQuota * @param param the request object @@ -20125,6 +22949,14 @@ export class ObjectCoreV1Api { return this.api.patchNamespacedResourceQuotaStatus(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); } + /** + * partially update the specified Secret + * @param param the request object + */ + public patchNamespacedSecretWithHttpInfo(param: CoreV1ApiPatchNamespacedSecretRequest, options?: Configuration): Promise> { + return this.api.patchNamespacedSecretWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); + } + /** * partially update the specified Secret * @param param the request object @@ -20133,6 +22965,14 @@ export class ObjectCoreV1Api { return this.api.patchNamespacedSecret(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); } + /** + * partially update the specified Service + * @param param the request object + */ + public patchNamespacedServiceWithHttpInfo(param: CoreV1ApiPatchNamespacedServiceRequest, options?: Configuration): Promise> { + return this.api.patchNamespacedServiceWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); + } + /** * partially update the specified Service * @param param the request object @@ -20141,6 +22981,14 @@ export class ObjectCoreV1Api { return this.api.patchNamespacedService(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); } + /** + * partially update the specified ServiceAccount + * @param param the request object + */ + public patchNamespacedServiceAccountWithHttpInfo(param: CoreV1ApiPatchNamespacedServiceAccountRequest, options?: Configuration): Promise> { + return this.api.patchNamespacedServiceAccountWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); + } + /** * partially update the specified ServiceAccount * @param param the request object @@ -20149,6 +22997,14 @@ export class ObjectCoreV1Api { return this.api.patchNamespacedServiceAccount(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); } + /** + * partially update status of the specified Service + * @param param the request object + */ + public patchNamespacedServiceStatusWithHttpInfo(param: CoreV1ApiPatchNamespacedServiceStatusRequest, options?: Configuration): Promise> { + return this.api.patchNamespacedServiceStatusWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); + } + /** * partially update status of the specified Service * @param param the request object @@ -20157,6 +23013,14 @@ export class ObjectCoreV1Api { return this.api.patchNamespacedServiceStatus(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); } + /** + * partially update the specified Node + * @param param the request object + */ + public patchNodeWithHttpInfo(param: CoreV1ApiPatchNodeRequest, options?: Configuration): Promise> { + return this.api.patchNodeWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); + } + /** * partially update the specified Node * @param param the request object @@ -20165,6 +23029,14 @@ export class ObjectCoreV1Api { return this.api.patchNode(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); } + /** + * partially update status of the specified Node + * @param param the request object + */ + public patchNodeStatusWithHttpInfo(param: CoreV1ApiPatchNodeStatusRequest, options?: Configuration): Promise> { + return this.api.patchNodeStatusWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); + } + /** * partially update status of the specified Node * @param param the request object @@ -20173,6 +23045,14 @@ export class ObjectCoreV1Api { return this.api.patchNodeStatus(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); } + /** + * partially update the specified PersistentVolume + * @param param the request object + */ + public patchPersistentVolumeWithHttpInfo(param: CoreV1ApiPatchPersistentVolumeRequest, options?: Configuration): Promise> { + return this.api.patchPersistentVolumeWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); + } + /** * partially update the specified PersistentVolume * @param param the request object @@ -20181,6 +23061,14 @@ export class ObjectCoreV1Api { return this.api.patchPersistentVolume(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); } + /** + * partially update status of the specified PersistentVolume + * @param param the request object + */ + public patchPersistentVolumeStatusWithHttpInfo(param: CoreV1ApiPatchPersistentVolumeStatusRequest, options?: Configuration): Promise> { + return this.api.patchPersistentVolumeStatusWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); + } + /** * partially update status of the specified PersistentVolume * @param param the request object @@ -20189,6 +23077,14 @@ export class ObjectCoreV1Api { return this.api.patchPersistentVolumeStatus(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); } + /** + * read the specified ComponentStatus + * @param param the request object + */ + public readComponentStatusWithHttpInfo(param: CoreV1ApiReadComponentStatusRequest, options?: Configuration): Promise> { + return this.api.readComponentStatusWithHttpInfo(param.name, param.pretty, options).toPromise(); + } + /** * read the specified ComponentStatus * @param param the request object @@ -20197,6 +23093,14 @@ export class ObjectCoreV1Api { return this.api.readComponentStatus(param.name, param.pretty, options).toPromise(); } + /** + * read the specified Namespace + * @param param the request object + */ + public readNamespaceWithHttpInfo(param: CoreV1ApiReadNamespaceRequest, options?: Configuration): Promise> { + return this.api.readNamespaceWithHttpInfo(param.name, param.pretty, options).toPromise(); + } + /** * read the specified Namespace * @param param the request object @@ -20205,6 +23109,14 @@ export class ObjectCoreV1Api { return this.api.readNamespace(param.name, param.pretty, options).toPromise(); } + /** + * read status of the specified Namespace + * @param param the request object + */ + public readNamespaceStatusWithHttpInfo(param: CoreV1ApiReadNamespaceStatusRequest, options?: Configuration): Promise> { + return this.api.readNamespaceStatusWithHttpInfo(param.name, param.pretty, options).toPromise(); + } + /** * read status of the specified Namespace * @param param the request object @@ -20213,6 +23125,14 @@ export class ObjectCoreV1Api { return this.api.readNamespaceStatus(param.name, param.pretty, options).toPromise(); } + /** + * read the specified ConfigMap + * @param param the request object + */ + public readNamespacedConfigMapWithHttpInfo(param: CoreV1ApiReadNamespacedConfigMapRequest, options?: Configuration): Promise> { + return this.api.readNamespacedConfigMapWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); + } + /** * read the specified ConfigMap * @param param the request object @@ -20221,6 +23141,14 @@ export class ObjectCoreV1Api { return this.api.readNamespacedConfigMap(param.name, param.namespace, param.pretty, options).toPromise(); } + /** + * read the specified Endpoints + * @param param the request object + */ + public readNamespacedEndpointsWithHttpInfo(param: CoreV1ApiReadNamespacedEndpointsRequest, options?: Configuration): Promise> { + return this.api.readNamespacedEndpointsWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); + } + /** * read the specified Endpoints * @param param the request object @@ -20229,6 +23157,14 @@ export class ObjectCoreV1Api { return this.api.readNamespacedEndpoints(param.name, param.namespace, param.pretty, options).toPromise(); } + /** + * read the specified Event + * @param param the request object + */ + public readNamespacedEventWithHttpInfo(param: CoreV1ApiReadNamespacedEventRequest, options?: Configuration): Promise> { + return this.api.readNamespacedEventWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); + } + /** * read the specified Event * @param param the request object @@ -20237,6 +23173,14 @@ export class ObjectCoreV1Api { return this.api.readNamespacedEvent(param.name, param.namespace, param.pretty, options).toPromise(); } + /** + * read the specified LimitRange + * @param param the request object + */ + public readNamespacedLimitRangeWithHttpInfo(param: CoreV1ApiReadNamespacedLimitRangeRequest, options?: Configuration): Promise> { + return this.api.readNamespacedLimitRangeWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); + } + /** * read the specified LimitRange * @param param the request object @@ -20245,6 +23189,14 @@ export class ObjectCoreV1Api { return this.api.readNamespacedLimitRange(param.name, param.namespace, param.pretty, options).toPromise(); } + /** + * read the specified PersistentVolumeClaim + * @param param the request object + */ + public readNamespacedPersistentVolumeClaimWithHttpInfo(param: CoreV1ApiReadNamespacedPersistentVolumeClaimRequest, options?: Configuration): Promise> { + return this.api.readNamespacedPersistentVolumeClaimWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); + } + /** * read the specified PersistentVolumeClaim * @param param the request object @@ -20253,6 +23205,14 @@ export class ObjectCoreV1Api { return this.api.readNamespacedPersistentVolumeClaim(param.name, param.namespace, param.pretty, options).toPromise(); } + /** + * read status of the specified PersistentVolumeClaim + * @param param the request object + */ + public readNamespacedPersistentVolumeClaimStatusWithHttpInfo(param: CoreV1ApiReadNamespacedPersistentVolumeClaimStatusRequest, options?: Configuration): Promise> { + return this.api.readNamespacedPersistentVolumeClaimStatusWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); + } + /** * read status of the specified PersistentVolumeClaim * @param param the request object @@ -20261,6 +23221,14 @@ export class ObjectCoreV1Api { return this.api.readNamespacedPersistentVolumeClaimStatus(param.name, param.namespace, param.pretty, options).toPromise(); } + /** + * read the specified Pod + * @param param the request object + */ + public readNamespacedPodWithHttpInfo(param: CoreV1ApiReadNamespacedPodRequest, options?: Configuration): Promise> { + return this.api.readNamespacedPodWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); + } + /** * read the specified Pod * @param param the request object @@ -20269,6 +23237,14 @@ export class ObjectCoreV1Api { return this.api.readNamespacedPod(param.name, param.namespace, param.pretty, options).toPromise(); } + /** + * read ephemeralcontainers of the specified Pod + * @param param the request object + */ + public readNamespacedPodEphemeralcontainersWithHttpInfo(param: CoreV1ApiReadNamespacedPodEphemeralcontainersRequest, options?: Configuration): Promise> { + return this.api.readNamespacedPodEphemeralcontainersWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); + } + /** * read ephemeralcontainers of the specified Pod * @param param the request object @@ -20277,6 +23253,14 @@ export class ObjectCoreV1Api { return this.api.readNamespacedPodEphemeralcontainers(param.name, param.namespace, param.pretty, options).toPromise(); } + /** + * read log of the specified Pod + * @param param the request object + */ + public readNamespacedPodLogWithHttpInfo(param: CoreV1ApiReadNamespacedPodLogRequest, options?: Configuration): Promise> { + return this.api.readNamespacedPodLogWithHttpInfo(param.name, param.namespace, param.container, param.follow, param.insecureSkipTLSVerifyBackend, param.limitBytes, param.pretty, param.previous, param.sinceSeconds, param.tailLines, param.timestamps, options).toPromise(); + } + /** * read log of the specified Pod * @param param the request object @@ -20285,6 +23269,14 @@ export class ObjectCoreV1Api { return this.api.readNamespacedPodLog(param.name, param.namespace, param.container, param.follow, param.insecureSkipTLSVerifyBackend, param.limitBytes, param.pretty, param.previous, param.sinceSeconds, param.tailLines, param.timestamps, options).toPromise(); } + /** + * read status of the specified Pod + * @param param the request object + */ + public readNamespacedPodStatusWithHttpInfo(param: CoreV1ApiReadNamespacedPodStatusRequest, options?: Configuration): Promise> { + return this.api.readNamespacedPodStatusWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); + } + /** * read status of the specified Pod * @param param the request object @@ -20293,6 +23285,14 @@ export class ObjectCoreV1Api { return this.api.readNamespacedPodStatus(param.name, param.namespace, param.pretty, options).toPromise(); } + /** + * read the specified PodTemplate + * @param param the request object + */ + public readNamespacedPodTemplateWithHttpInfo(param: CoreV1ApiReadNamespacedPodTemplateRequest, options?: Configuration): Promise> { + return this.api.readNamespacedPodTemplateWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); + } + /** * read the specified PodTemplate * @param param the request object @@ -20301,6 +23301,14 @@ export class ObjectCoreV1Api { return this.api.readNamespacedPodTemplate(param.name, param.namespace, param.pretty, options).toPromise(); } + /** + * read the specified ReplicationController + * @param param the request object + */ + public readNamespacedReplicationControllerWithHttpInfo(param: CoreV1ApiReadNamespacedReplicationControllerRequest, options?: Configuration): Promise> { + return this.api.readNamespacedReplicationControllerWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); + } + /** * read the specified ReplicationController * @param param the request object @@ -20309,6 +23317,14 @@ export class ObjectCoreV1Api { return this.api.readNamespacedReplicationController(param.name, param.namespace, param.pretty, options).toPromise(); } + /** + * read scale of the specified ReplicationController + * @param param the request object + */ + public readNamespacedReplicationControllerScaleWithHttpInfo(param: CoreV1ApiReadNamespacedReplicationControllerScaleRequest, options?: Configuration): Promise> { + return this.api.readNamespacedReplicationControllerScaleWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); + } + /** * read scale of the specified ReplicationController * @param param the request object @@ -20317,6 +23333,14 @@ export class ObjectCoreV1Api { return this.api.readNamespacedReplicationControllerScale(param.name, param.namespace, param.pretty, options).toPromise(); } + /** + * read status of the specified ReplicationController + * @param param the request object + */ + public readNamespacedReplicationControllerStatusWithHttpInfo(param: CoreV1ApiReadNamespacedReplicationControllerStatusRequest, options?: Configuration): Promise> { + return this.api.readNamespacedReplicationControllerStatusWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); + } + /** * read status of the specified ReplicationController * @param param the request object @@ -20325,6 +23349,14 @@ export class ObjectCoreV1Api { return this.api.readNamespacedReplicationControllerStatus(param.name, param.namespace, param.pretty, options).toPromise(); } + /** + * read the specified ResourceQuota + * @param param the request object + */ + public readNamespacedResourceQuotaWithHttpInfo(param: CoreV1ApiReadNamespacedResourceQuotaRequest, options?: Configuration): Promise> { + return this.api.readNamespacedResourceQuotaWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); + } + /** * read the specified ResourceQuota * @param param the request object @@ -20333,6 +23365,14 @@ export class ObjectCoreV1Api { return this.api.readNamespacedResourceQuota(param.name, param.namespace, param.pretty, options).toPromise(); } + /** + * read status of the specified ResourceQuota + * @param param the request object + */ + public readNamespacedResourceQuotaStatusWithHttpInfo(param: CoreV1ApiReadNamespacedResourceQuotaStatusRequest, options?: Configuration): Promise> { + return this.api.readNamespacedResourceQuotaStatusWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); + } + /** * read status of the specified ResourceQuota * @param param the request object @@ -20341,6 +23381,14 @@ export class ObjectCoreV1Api { return this.api.readNamespacedResourceQuotaStatus(param.name, param.namespace, param.pretty, options).toPromise(); } + /** + * read the specified Secret + * @param param the request object + */ + public readNamespacedSecretWithHttpInfo(param: CoreV1ApiReadNamespacedSecretRequest, options?: Configuration): Promise> { + return this.api.readNamespacedSecretWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); + } + /** * read the specified Secret * @param param the request object @@ -20349,6 +23397,14 @@ export class ObjectCoreV1Api { return this.api.readNamespacedSecret(param.name, param.namespace, param.pretty, options).toPromise(); } + /** + * read the specified Service + * @param param the request object + */ + public readNamespacedServiceWithHttpInfo(param: CoreV1ApiReadNamespacedServiceRequest, options?: Configuration): Promise> { + return this.api.readNamespacedServiceWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); + } + /** * read the specified Service * @param param the request object @@ -20357,6 +23413,14 @@ export class ObjectCoreV1Api { return this.api.readNamespacedService(param.name, param.namespace, param.pretty, options).toPromise(); } + /** + * read the specified ServiceAccount + * @param param the request object + */ + public readNamespacedServiceAccountWithHttpInfo(param: CoreV1ApiReadNamespacedServiceAccountRequest, options?: Configuration): Promise> { + return this.api.readNamespacedServiceAccountWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); + } + /** * read the specified ServiceAccount * @param param the request object @@ -20365,6 +23429,14 @@ export class ObjectCoreV1Api { return this.api.readNamespacedServiceAccount(param.name, param.namespace, param.pretty, options).toPromise(); } + /** + * read status of the specified Service + * @param param the request object + */ + public readNamespacedServiceStatusWithHttpInfo(param: CoreV1ApiReadNamespacedServiceStatusRequest, options?: Configuration): Promise> { + return this.api.readNamespacedServiceStatusWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); + } + /** * read status of the specified Service * @param param the request object @@ -20373,6 +23445,14 @@ export class ObjectCoreV1Api { return this.api.readNamespacedServiceStatus(param.name, param.namespace, param.pretty, options).toPromise(); } + /** + * read the specified Node + * @param param the request object + */ + public readNodeWithHttpInfo(param: CoreV1ApiReadNodeRequest, options?: Configuration): Promise> { + return this.api.readNodeWithHttpInfo(param.name, param.pretty, options).toPromise(); + } + /** * read the specified Node * @param param the request object @@ -20381,6 +23461,14 @@ export class ObjectCoreV1Api { return this.api.readNode(param.name, param.pretty, options).toPromise(); } + /** + * read status of the specified Node + * @param param the request object + */ + public readNodeStatusWithHttpInfo(param: CoreV1ApiReadNodeStatusRequest, options?: Configuration): Promise> { + return this.api.readNodeStatusWithHttpInfo(param.name, param.pretty, options).toPromise(); + } + /** * read status of the specified Node * @param param the request object @@ -20389,6 +23477,14 @@ export class ObjectCoreV1Api { return this.api.readNodeStatus(param.name, param.pretty, options).toPromise(); } + /** + * read the specified PersistentVolume + * @param param the request object + */ + public readPersistentVolumeWithHttpInfo(param: CoreV1ApiReadPersistentVolumeRequest, options?: Configuration): Promise> { + return this.api.readPersistentVolumeWithHttpInfo(param.name, param.pretty, options).toPromise(); + } + /** * read the specified PersistentVolume * @param param the request object @@ -20397,6 +23493,14 @@ export class ObjectCoreV1Api { return this.api.readPersistentVolume(param.name, param.pretty, options).toPromise(); } + /** + * read status of the specified PersistentVolume + * @param param the request object + */ + public readPersistentVolumeStatusWithHttpInfo(param: CoreV1ApiReadPersistentVolumeStatusRequest, options?: Configuration): Promise> { + return this.api.readPersistentVolumeStatusWithHttpInfo(param.name, param.pretty, options).toPromise(); + } + /** * read status of the specified PersistentVolume * @param param the request object @@ -20405,6 +23509,14 @@ export class ObjectCoreV1Api { return this.api.readPersistentVolumeStatus(param.name, param.pretty, options).toPromise(); } + /** + * replace the specified Namespace + * @param param the request object + */ + public replaceNamespaceWithHttpInfo(param: CoreV1ApiReplaceNamespaceRequest, options?: Configuration): Promise> { + return this.api.replaceNamespaceWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * replace the specified Namespace * @param param the request object @@ -20413,6 +23525,14 @@ export class ObjectCoreV1Api { return this.api.replaceNamespace(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * replace finalize of the specified Namespace + * @param param the request object + */ + public replaceNamespaceFinalizeWithHttpInfo(param: CoreV1ApiReplaceNamespaceFinalizeRequest, options?: Configuration): Promise> { + return this.api.replaceNamespaceFinalizeWithHttpInfo(param.name, param.body, param.dryRun, param.fieldManager, param.pretty, options).toPromise(); + } + /** * replace finalize of the specified Namespace * @param param the request object @@ -20421,6 +23541,14 @@ export class ObjectCoreV1Api { return this.api.replaceNamespaceFinalize(param.name, param.body, param.dryRun, param.fieldManager, param.pretty, options).toPromise(); } + /** + * replace status of the specified Namespace + * @param param the request object + */ + public replaceNamespaceStatusWithHttpInfo(param: CoreV1ApiReplaceNamespaceStatusRequest, options?: Configuration): Promise> { + return this.api.replaceNamespaceStatusWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * replace status of the specified Namespace * @param param the request object @@ -20429,6 +23557,14 @@ export class ObjectCoreV1Api { return this.api.replaceNamespaceStatus(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * replace the specified ConfigMap + * @param param the request object + */ + public replaceNamespacedConfigMapWithHttpInfo(param: CoreV1ApiReplaceNamespacedConfigMapRequest, options?: Configuration): Promise> { + return this.api.replaceNamespacedConfigMapWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * replace the specified ConfigMap * @param param the request object @@ -20437,6 +23573,14 @@ export class ObjectCoreV1Api { return this.api.replaceNamespacedConfigMap(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * replace the specified Endpoints + * @param param the request object + */ + public replaceNamespacedEndpointsWithHttpInfo(param: CoreV1ApiReplaceNamespacedEndpointsRequest, options?: Configuration): Promise> { + return this.api.replaceNamespacedEndpointsWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * replace the specified Endpoints * @param param the request object @@ -20445,6 +23589,14 @@ export class ObjectCoreV1Api { return this.api.replaceNamespacedEndpoints(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * replace the specified Event + * @param param the request object + */ + public replaceNamespacedEventWithHttpInfo(param: CoreV1ApiReplaceNamespacedEventRequest, options?: Configuration): Promise> { + return this.api.replaceNamespacedEventWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * replace the specified Event * @param param the request object @@ -20453,6 +23605,14 @@ export class ObjectCoreV1Api { return this.api.replaceNamespacedEvent(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * replace the specified LimitRange + * @param param the request object + */ + public replaceNamespacedLimitRangeWithHttpInfo(param: CoreV1ApiReplaceNamespacedLimitRangeRequest, options?: Configuration): Promise> { + return this.api.replaceNamespacedLimitRangeWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * replace the specified LimitRange * @param param the request object @@ -20461,6 +23621,14 @@ export class ObjectCoreV1Api { return this.api.replaceNamespacedLimitRange(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * replace the specified PersistentVolumeClaim + * @param param the request object + */ + public replaceNamespacedPersistentVolumeClaimWithHttpInfo(param: CoreV1ApiReplaceNamespacedPersistentVolumeClaimRequest, options?: Configuration): Promise> { + return this.api.replaceNamespacedPersistentVolumeClaimWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * replace the specified PersistentVolumeClaim * @param param the request object @@ -20469,6 +23637,14 @@ export class ObjectCoreV1Api { return this.api.replaceNamespacedPersistentVolumeClaim(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * replace status of the specified PersistentVolumeClaim + * @param param the request object + */ + public replaceNamespacedPersistentVolumeClaimStatusWithHttpInfo(param: CoreV1ApiReplaceNamespacedPersistentVolumeClaimStatusRequest, options?: Configuration): Promise> { + return this.api.replaceNamespacedPersistentVolumeClaimStatusWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * replace status of the specified PersistentVolumeClaim * @param param the request object @@ -20477,6 +23653,14 @@ export class ObjectCoreV1Api { return this.api.replaceNamespacedPersistentVolumeClaimStatus(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * replace the specified Pod + * @param param the request object + */ + public replaceNamespacedPodWithHttpInfo(param: CoreV1ApiReplaceNamespacedPodRequest, options?: Configuration): Promise> { + return this.api.replaceNamespacedPodWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * replace the specified Pod * @param param the request object @@ -20485,6 +23669,14 @@ export class ObjectCoreV1Api { return this.api.replaceNamespacedPod(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * replace ephemeralcontainers of the specified Pod + * @param param the request object + */ + public replaceNamespacedPodEphemeralcontainersWithHttpInfo(param: CoreV1ApiReplaceNamespacedPodEphemeralcontainersRequest, options?: Configuration): Promise> { + return this.api.replaceNamespacedPodEphemeralcontainersWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * replace ephemeralcontainers of the specified Pod * @param param the request object @@ -20493,6 +23685,14 @@ export class ObjectCoreV1Api { return this.api.replaceNamespacedPodEphemeralcontainers(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * replace status of the specified Pod + * @param param the request object + */ + public replaceNamespacedPodStatusWithHttpInfo(param: CoreV1ApiReplaceNamespacedPodStatusRequest, options?: Configuration): Promise> { + return this.api.replaceNamespacedPodStatusWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * replace status of the specified Pod * @param param the request object @@ -20501,6 +23701,14 @@ export class ObjectCoreV1Api { return this.api.replaceNamespacedPodStatus(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * replace the specified PodTemplate + * @param param the request object + */ + public replaceNamespacedPodTemplateWithHttpInfo(param: CoreV1ApiReplaceNamespacedPodTemplateRequest, options?: Configuration): Promise> { + return this.api.replaceNamespacedPodTemplateWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * replace the specified PodTemplate * @param param the request object @@ -20509,6 +23717,14 @@ export class ObjectCoreV1Api { return this.api.replaceNamespacedPodTemplate(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * replace the specified ReplicationController + * @param param the request object + */ + public replaceNamespacedReplicationControllerWithHttpInfo(param: CoreV1ApiReplaceNamespacedReplicationControllerRequest, options?: Configuration): Promise> { + return this.api.replaceNamespacedReplicationControllerWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * replace the specified ReplicationController * @param param the request object @@ -20517,6 +23733,14 @@ export class ObjectCoreV1Api { return this.api.replaceNamespacedReplicationController(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * replace scale of the specified ReplicationController + * @param param the request object + */ + public replaceNamespacedReplicationControllerScaleWithHttpInfo(param: CoreV1ApiReplaceNamespacedReplicationControllerScaleRequest, options?: Configuration): Promise> { + return this.api.replaceNamespacedReplicationControllerScaleWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * replace scale of the specified ReplicationController * @param param the request object @@ -20525,6 +23749,14 @@ export class ObjectCoreV1Api { return this.api.replaceNamespacedReplicationControllerScale(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * replace status of the specified ReplicationController + * @param param the request object + */ + public replaceNamespacedReplicationControllerStatusWithHttpInfo(param: CoreV1ApiReplaceNamespacedReplicationControllerStatusRequest, options?: Configuration): Promise> { + return this.api.replaceNamespacedReplicationControllerStatusWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * replace status of the specified ReplicationController * @param param the request object @@ -20533,6 +23765,14 @@ export class ObjectCoreV1Api { return this.api.replaceNamespacedReplicationControllerStatus(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * replace the specified ResourceQuota + * @param param the request object + */ + public replaceNamespacedResourceQuotaWithHttpInfo(param: CoreV1ApiReplaceNamespacedResourceQuotaRequest, options?: Configuration): Promise> { + return this.api.replaceNamespacedResourceQuotaWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * replace the specified ResourceQuota * @param param the request object @@ -20541,6 +23781,14 @@ export class ObjectCoreV1Api { return this.api.replaceNamespacedResourceQuota(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * replace status of the specified ResourceQuota + * @param param the request object + */ + public replaceNamespacedResourceQuotaStatusWithHttpInfo(param: CoreV1ApiReplaceNamespacedResourceQuotaStatusRequest, options?: Configuration): Promise> { + return this.api.replaceNamespacedResourceQuotaStatusWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * replace status of the specified ResourceQuota * @param param the request object @@ -20549,6 +23797,14 @@ export class ObjectCoreV1Api { return this.api.replaceNamespacedResourceQuotaStatus(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * replace the specified Secret + * @param param the request object + */ + public replaceNamespacedSecretWithHttpInfo(param: CoreV1ApiReplaceNamespacedSecretRequest, options?: Configuration): Promise> { + return this.api.replaceNamespacedSecretWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * replace the specified Secret * @param param the request object @@ -20557,6 +23813,14 @@ export class ObjectCoreV1Api { return this.api.replaceNamespacedSecret(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * replace the specified Service + * @param param the request object + */ + public replaceNamespacedServiceWithHttpInfo(param: CoreV1ApiReplaceNamespacedServiceRequest, options?: Configuration): Promise> { + return this.api.replaceNamespacedServiceWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * replace the specified Service * @param param the request object @@ -20565,6 +23829,14 @@ export class ObjectCoreV1Api { return this.api.replaceNamespacedService(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * replace the specified ServiceAccount + * @param param the request object + */ + public replaceNamespacedServiceAccountWithHttpInfo(param: CoreV1ApiReplaceNamespacedServiceAccountRequest, options?: Configuration): Promise> { + return this.api.replaceNamespacedServiceAccountWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * replace the specified ServiceAccount * @param param the request object @@ -20573,6 +23845,14 @@ export class ObjectCoreV1Api { return this.api.replaceNamespacedServiceAccount(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * replace status of the specified Service + * @param param the request object + */ + public replaceNamespacedServiceStatusWithHttpInfo(param: CoreV1ApiReplaceNamespacedServiceStatusRequest, options?: Configuration): Promise> { + return this.api.replaceNamespacedServiceStatusWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * replace status of the specified Service * @param param the request object @@ -20581,6 +23861,14 @@ export class ObjectCoreV1Api { return this.api.replaceNamespacedServiceStatus(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * replace the specified Node + * @param param the request object + */ + public replaceNodeWithHttpInfo(param: CoreV1ApiReplaceNodeRequest, options?: Configuration): Promise> { + return this.api.replaceNodeWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * replace the specified Node * @param param the request object @@ -20589,6 +23877,14 @@ export class ObjectCoreV1Api { return this.api.replaceNode(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * replace status of the specified Node + * @param param the request object + */ + public replaceNodeStatusWithHttpInfo(param: CoreV1ApiReplaceNodeStatusRequest, options?: Configuration): Promise> { + return this.api.replaceNodeStatusWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * replace status of the specified Node * @param param the request object @@ -20597,6 +23893,14 @@ export class ObjectCoreV1Api { return this.api.replaceNodeStatus(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * replace the specified PersistentVolume + * @param param the request object + */ + public replacePersistentVolumeWithHttpInfo(param: CoreV1ApiReplacePersistentVolumeRequest, options?: Configuration): Promise> { + return this.api.replacePersistentVolumeWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * replace the specified PersistentVolume * @param param the request object @@ -20605,6 +23909,14 @@ export class ObjectCoreV1Api { return this.api.replacePersistentVolume(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * replace status of the specified PersistentVolume + * @param param the request object + */ + public replacePersistentVolumeStatusWithHttpInfo(param: CoreV1ApiReplacePersistentVolumeStatusRequest, options?: Configuration): Promise> { + return this.api.replacePersistentVolumeStatusWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * replace status of the specified PersistentVolume * @param param the request object @@ -21936,6 +25248,14 @@ export class ObjectCustomObjectsApi { this.api = new ObservableCustomObjectsApi(configuration, requestFactory, responseProcessor); } + /** + * Creates a cluster scoped Custom object + * @param param the request object + */ + public createClusterCustomObjectWithHttpInfo(param: CustomObjectsApiCreateClusterCustomObjectRequest, options?: Configuration): Promise> { + return this.api.createClusterCustomObjectWithHttpInfo(param.group, param.version, param.plural, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * Creates a cluster scoped Custom object * @param param the request object @@ -21944,6 +25264,14 @@ export class ObjectCustomObjectsApi { return this.api.createClusterCustomObject(param.group, param.version, param.plural, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * Creates a namespace scoped Custom object + * @param param the request object + */ + public createNamespacedCustomObjectWithHttpInfo(param: CustomObjectsApiCreateNamespacedCustomObjectRequest, options?: Configuration): Promise> { + return this.api.createNamespacedCustomObjectWithHttpInfo(param.group, param.version, param.namespace, param.plural, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * Creates a namespace scoped Custom object * @param param the request object @@ -21952,6 +25280,14 @@ export class ObjectCustomObjectsApi { return this.api.createNamespacedCustomObject(param.group, param.version, param.namespace, param.plural, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * Deletes the specified cluster scoped custom object + * @param param the request object + */ + public deleteClusterCustomObjectWithHttpInfo(param: CustomObjectsApiDeleteClusterCustomObjectRequest, options?: Configuration): Promise> { + return this.api.deleteClusterCustomObjectWithHttpInfo(param.group, param.version, param.plural, param.name, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.dryRun, param.body, options).toPromise(); + } + /** * Deletes the specified cluster scoped custom object * @param param the request object @@ -21960,6 +25296,14 @@ export class ObjectCustomObjectsApi { return this.api.deleteClusterCustomObject(param.group, param.version, param.plural, param.name, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.dryRun, param.body, options).toPromise(); } + /** + * Delete collection of cluster scoped custom objects + * @param param the request object + */ + public deleteCollectionClusterCustomObjectWithHttpInfo(param: CustomObjectsApiDeleteCollectionClusterCustomObjectRequest, options?: Configuration): Promise> { + return this.api.deleteCollectionClusterCustomObjectWithHttpInfo(param.group, param.version, param.plural, param.pretty, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.dryRun, param.body, options).toPromise(); + } + /** * Delete collection of cluster scoped custom objects * @param param the request object @@ -21968,6 +25312,14 @@ export class ObjectCustomObjectsApi { return this.api.deleteCollectionClusterCustomObject(param.group, param.version, param.plural, param.pretty, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.dryRun, param.body, options).toPromise(); } + /** + * Delete collection of namespace scoped custom objects + * @param param the request object + */ + public deleteCollectionNamespacedCustomObjectWithHttpInfo(param: CustomObjectsApiDeleteCollectionNamespacedCustomObjectRequest, options?: Configuration): Promise> { + return this.api.deleteCollectionNamespacedCustomObjectWithHttpInfo(param.group, param.version, param.namespace, param.plural, param.pretty, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.dryRun, param.body, options).toPromise(); + } + /** * Delete collection of namespace scoped custom objects * @param param the request object @@ -21976,6 +25328,14 @@ export class ObjectCustomObjectsApi { return this.api.deleteCollectionNamespacedCustomObject(param.group, param.version, param.namespace, param.plural, param.pretty, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.dryRun, param.body, options).toPromise(); } + /** + * Deletes the specified namespace scoped custom object + * @param param the request object + */ + public deleteNamespacedCustomObjectWithHttpInfo(param: CustomObjectsApiDeleteNamespacedCustomObjectRequest, options?: Configuration): Promise> { + return this.api.deleteNamespacedCustomObjectWithHttpInfo(param.group, param.version, param.namespace, param.plural, param.name, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.dryRun, param.body, options).toPromise(); + } + /** * Deletes the specified namespace scoped custom object * @param param the request object @@ -21984,6 +25344,14 @@ export class ObjectCustomObjectsApi { return this.api.deleteNamespacedCustomObject(param.group, param.version, param.namespace, param.plural, param.name, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.dryRun, param.body, options).toPromise(); } + /** + * get available resources + * @param param the request object + */ + public getAPIResourcesWithHttpInfo(param: CustomObjectsApiGetAPIResourcesRequest, options?: Configuration): Promise> { + return this.api.getAPIResourcesWithHttpInfo(param.group, param.version, options).toPromise(); + } + /** * get available resources * @param param the request object @@ -21992,6 +25360,14 @@ export class ObjectCustomObjectsApi { return this.api.getAPIResources(param.group, param.version, options).toPromise(); } + /** + * Returns a cluster scoped custom object + * @param param the request object + */ + public getClusterCustomObjectWithHttpInfo(param: CustomObjectsApiGetClusterCustomObjectRequest, options?: Configuration): Promise> { + return this.api.getClusterCustomObjectWithHttpInfo(param.group, param.version, param.plural, param.name, options).toPromise(); + } + /** * Returns a cluster scoped custom object * @param param the request object @@ -22000,6 +25376,14 @@ export class ObjectCustomObjectsApi { return this.api.getClusterCustomObject(param.group, param.version, param.plural, param.name, options).toPromise(); } + /** + * read scale of the specified custom object + * @param param the request object + */ + public getClusterCustomObjectScaleWithHttpInfo(param: CustomObjectsApiGetClusterCustomObjectScaleRequest, options?: Configuration): Promise> { + return this.api.getClusterCustomObjectScaleWithHttpInfo(param.group, param.version, param.plural, param.name, options).toPromise(); + } + /** * read scale of the specified custom object * @param param the request object @@ -22008,6 +25392,14 @@ export class ObjectCustomObjectsApi { return this.api.getClusterCustomObjectScale(param.group, param.version, param.plural, param.name, options).toPromise(); } + /** + * read status of the specified cluster scoped custom object + * @param param the request object + */ + public getClusterCustomObjectStatusWithHttpInfo(param: CustomObjectsApiGetClusterCustomObjectStatusRequest, options?: Configuration): Promise> { + return this.api.getClusterCustomObjectStatusWithHttpInfo(param.group, param.version, param.plural, param.name, options).toPromise(); + } + /** * read status of the specified cluster scoped custom object * @param param the request object @@ -22016,6 +25408,14 @@ export class ObjectCustomObjectsApi { return this.api.getClusterCustomObjectStatus(param.group, param.version, param.plural, param.name, options).toPromise(); } + /** + * Returns a namespace scoped custom object + * @param param the request object + */ + public getNamespacedCustomObjectWithHttpInfo(param: CustomObjectsApiGetNamespacedCustomObjectRequest, options?: Configuration): Promise> { + return this.api.getNamespacedCustomObjectWithHttpInfo(param.group, param.version, param.namespace, param.plural, param.name, options).toPromise(); + } + /** * Returns a namespace scoped custom object * @param param the request object @@ -22024,6 +25424,14 @@ export class ObjectCustomObjectsApi { return this.api.getNamespacedCustomObject(param.group, param.version, param.namespace, param.plural, param.name, options).toPromise(); } + /** + * read scale of the specified namespace scoped custom object + * @param param the request object + */ + public getNamespacedCustomObjectScaleWithHttpInfo(param: CustomObjectsApiGetNamespacedCustomObjectScaleRequest, options?: Configuration): Promise> { + return this.api.getNamespacedCustomObjectScaleWithHttpInfo(param.group, param.version, param.namespace, param.plural, param.name, options).toPromise(); + } + /** * read scale of the specified namespace scoped custom object * @param param the request object @@ -22032,6 +25440,14 @@ export class ObjectCustomObjectsApi { return this.api.getNamespacedCustomObjectScale(param.group, param.version, param.namespace, param.plural, param.name, options).toPromise(); } + /** + * read status of the specified namespace scoped custom object + * @param param the request object + */ + public getNamespacedCustomObjectStatusWithHttpInfo(param: CustomObjectsApiGetNamespacedCustomObjectStatusRequest, options?: Configuration): Promise> { + return this.api.getNamespacedCustomObjectStatusWithHttpInfo(param.group, param.version, param.namespace, param.plural, param.name, options).toPromise(); + } + /** * read status of the specified namespace scoped custom object * @param param the request object @@ -22040,6 +25456,14 @@ export class ObjectCustomObjectsApi { return this.api.getNamespacedCustomObjectStatus(param.group, param.version, param.namespace, param.plural, param.name, options).toPromise(); } + /** + * list or watch cluster scoped custom objects + * @param param the request object + */ + public listClusterCustomObjectWithHttpInfo(param: CustomObjectsApiListClusterCustomObjectRequest, options?: Configuration): Promise> { + return this.api.listClusterCustomObjectWithHttpInfo(param.group, param.version, param.plural, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); + } + /** * list or watch cluster scoped custom objects * @param param the request object @@ -22048,6 +25472,14 @@ export class ObjectCustomObjectsApi { return this.api.listClusterCustomObject(param.group, param.version, param.plural, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } + /** + * list or watch namespace scoped custom objects + * @param param the request object + */ + public listNamespacedCustomObjectWithHttpInfo(param: CustomObjectsApiListNamespacedCustomObjectRequest, options?: Configuration): Promise> { + return this.api.listNamespacedCustomObjectWithHttpInfo(param.group, param.version, param.namespace, param.plural, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); + } + /** * list or watch namespace scoped custom objects * @param param the request object @@ -22056,6 +25488,14 @@ export class ObjectCustomObjectsApi { return this.api.listNamespacedCustomObject(param.group, param.version, param.namespace, param.plural, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } + /** + * patch the specified cluster scoped custom object + * @param param the request object + */ + public patchClusterCustomObjectWithHttpInfo(param: CustomObjectsApiPatchClusterCustomObjectRequest, options?: Configuration): Promise> { + return this.api.patchClusterCustomObjectWithHttpInfo(param.group, param.version, param.plural, param.name, param.body, param.dryRun, param.fieldManager, param.force, options).toPromise(); + } + /** * patch the specified cluster scoped custom object * @param param the request object @@ -22064,6 +25504,14 @@ export class ObjectCustomObjectsApi { return this.api.patchClusterCustomObject(param.group, param.version, param.plural, param.name, param.body, param.dryRun, param.fieldManager, param.force, options).toPromise(); } + /** + * partially update scale of the specified cluster scoped custom object + * @param param the request object + */ + public patchClusterCustomObjectScaleWithHttpInfo(param: CustomObjectsApiPatchClusterCustomObjectScaleRequest, options?: Configuration): Promise> { + return this.api.patchClusterCustomObjectScaleWithHttpInfo(param.group, param.version, param.plural, param.name, param.body, param.dryRun, param.fieldManager, param.force, options).toPromise(); + } + /** * partially update scale of the specified cluster scoped custom object * @param param the request object @@ -22072,6 +25520,14 @@ export class ObjectCustomObjectsApi { return this.api.patchClusterCustomObjectScale(param.group, param.version, param.plural, param.name, param.body, param.dryRun, param.fieldManager, param.force, options).toPromise(); } + /** + * partially update status of the specified cluster scoped custom object + * @param param the request object + */ + public patchClusterCustomObjectStatusWithHttpInfo(param: CustomObjectsApiPatchClusterCustomObjectStatusRequest, options?: Configuration): Promise> { + return this.api.patchClusterCustomObjectStatusWithHttpInfo(param.group, param.version, param.plural, param.name, param.body, param.dryRun, param.fieldManager, param.force, options).toPromise(); + } + /** * partially update status of the specified cluster scoped custom object * @param param the request object @@ -22080,6 +25536,14 @@ export class ObjectCustomObjectsApi { return this.api.patchClusterCustomObjectStatus(param.group, param.version, param.plural, param.name, param.body, param.dryRun, param.fieldManager, param.force, options).toPromise(); } + /** + * patch the specified namespace scoped custom object + * @param param the request object + */ + public patchNamespacedCustomObjectWithHttpInfo(param: CustomObjectsApiPatchNamespacedCustomObjectRequest, options?: Configuration): Promise> { + return this.api.patchNamespacedCustomObjectWithHttpInfo(param.group, param.version, param.namespace, param.plural, param.name, param.body, param.dryRun, param.fieldManager, param.force, options).toPromise(); + } + /** * patch the specified namespace scoped custom object * @param param the request object @@ -22088,6 +25552,14 @@ export class ObjectCustomObjectsApi { return this.api.patchNamespacedCustomObject(param.group, param.version, param.namespace, param.plural, param.name, param.body, param.dryRun, param.fieldManager, param.force, options).toPromise(); } + /** + * partially update scale of the specified namespace scoped custom object + * @param param the request object + */ + public patchNamespacedCustomObjectScaleWithHttpInfo(param: CustomObjectsApiPatchNamespacedCustomObjectScaleRequest, options?: Configuration): Promise> { + return this.api.patchNamespacedCustomObjectScaleWithHttpInfo(param.group, param.version, param.namespace, param.plural, param.name, param.body, param.dryRun, param.fieldManager, param.force, options).toPromise(); + } + /** * partially update scale of the specified namespace scoped custom object * @param param the request object @@ -22096,6 +25568,14 @@ export class ObjectCustomObjectsApi { return this.api.patchNamespacedCustomObjectScale(param.group, param.version, param.namespace, param.plural, param.name, param.body, param.dryRun, param.fieldManager, param.force, options).toPromise(); } + /** + * partially update status of the specified namespace scoped custom object + * @param param the request object + */ + public patchNamespacedCustomObjectStatusWithHttpInfo(param: CustomObjectsApiPatchNamespacedCustomObjectStatusRequest, options?: Configuration): Promise> { + return this.api.patchNamespacedCustomObjectStatusWithHttpInfo(param.group, param.version, param.namespace, param.plural, param.name, param.body, param.dryRun, param.fieldManager, param.force, options).toPromise(); + } + /** * partially update status of the specified namespace scoped custom object * @param param the request object @@ -22104,6 +25584,14 @@ export class ObjectCustomObjectsApi { return this.api.patchNamespacedCustomObjectStatus(param.group, param.version, param.namespace, param.plural, param.name, param.body, param.dryRun, param.fieldManager, param.force, options).toPromise(); } + /** + * replace the specified cluster scoped custom object + * @param param the request object + */ + public replaceClusterCustomObjectWithHttpInfo(param: CustomObjectsApiReplaceClusterCustomObjectRequest, options?: Configuration): Promise> { + return this.api.replaceClusterCustomObjectWithHttpInfo(param.group, param.version, param.plural, param.name, param.body, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * replace the specified cluster scoped custom object * @param param the request object @@ -22112,6 +25600,14 @@ export class ObjectCustomObjectsApi { return this.api.replaceClusterCustomObject(param.group, param.version, param.plural, param.name, param.body, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * replace scale of the specified cluster scoped custom object + * @param param the request object + */ + public replaceClusterCustomObjectScaleWithHttpInfo(param: CustomObjectsApiReplaceClusterCustomObjectScaleRequest, options?: Configuration): Promise> { + return this.api.replaceClusterCustomObjectScaleWithHttpInfo(param.group, param.version, param.plural, param.name, param.body, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * replace scale of the specified cluster scoped custom object * @param param the request object @@ -22120,6 +25616,14 @@ export class ObjectCustomObjectsApi { return this.api.replaceClusterCustomObjectScale(param.group, param.version, param.plural, param.name, param.body, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * replace status of the cluster scoped specified custom object + * @param param the request object + */ + public replaceClusterCustomObjectStatusWithHttpInfo(param: CustomObjectsApiReplaceClusterCustomObjectStatusRequest, options?: Configuration): Promise> { + return this.api.replaceClusterCustomObjectStatusWithHttpInfo(param.group, param.version, param.plural, param.name, param.body, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * replace status of the cluster scoped specified custom object * @param param the request object @@ -22128,6 +25632,14 @@ export class ObjectCustomObjectsApi { return this.api.replaceClusterCustomObjectStatus(param.group, param.version, param.plural, param.name, param.body, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * replace the specified namespace scoped custom object + * @param param the request object + */ + public replaceNamespacedCustomObjectWithHttpInfo(param: CustomObjectsApiReplaceNamespacedCustomObjectRequest, options?: Configuration): Promise> { + return this.api.replaceNamespacedCustomObjectWithHttpInfo(param.group, param.version, param.namespace, param.plural, param.name, param.body, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * replace the specified namespace scoped custom object * @param param the request object @@ -22136,6 +25648,14 @@ export class ObjectCustomObjectsApi { return this.api.replaceNamespacedCustomObject(param.group, param.version, param.namespace, param.plural, param.name, param.body, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * replace scale of the specified namespace scoped custom object + * @param param the request object + */ + public replaceNamespacedCustomObjectScaleWithHttpInfo(param: CustomObjectsApiReplaceNamespacedCustomObjectScaleRequest, options?: Configuration): Promise> { + return this.api.replaceNamespacedCustomObjectScaleWithHttpInfo(param.group, param.version, param.namespace, param.plural, param.name, param.body, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * replace scale of the specified namespace scoped custom object * @param param the request object @@ -22144,6 +25664,14 @@ export class ObjectCustomObjectsApi { return this.api.replaceNamespacedCustomObjectScale(param.group, param.version, param.namespace, param.plural, param.name, param.body, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * replace status of the specified namespace scoped custom object + * @param param the request object + */ + public replaceNamespacedCustomObjectStatusWithHttpInfo(param: CustomObjectsApiReplaceNamespacedCustomObjectStatusRequest, options?: Configuration): Promise> { + return this.api.replaceNamespacedCustomObjectStatusWithHttpInfo(param.group, param.version, param.namespace, param.plural, param.name, param.body, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * replace status of the specified namespace scoped custom object * @param param the request object @@ -22167,6 +25695,14 @@ export class ObjectDiscoveryApi { this.api = new ObservableDiscoveryApi(configuration, requestFactory, responseProcessor); } + /** + * get information of a group + * @param param the request object + */ + public getAPIGroupWithHttpInfo(param: DiscoveryApiGetAPIGroupRequest = {}, options?: Configuration): Promise> { + return this.api.getAPIGroupWithHttpInfo( options).toPromise(); + } + /** * get information of a group * @param param the request object @@ -22598,6 +26134,14 @@ export class ObjectDiscoveryV1Api { this.api = new ObservableDiscoveryV1Api(configuration, requestFactory, responseProcessor); } + /** + * create an EndpointSlice + * @param param the request object + */ + public createNamespacedEndpointSliceWithHttpInfo(param: DiscoveryV1ApiCreateNamespacedEndpointSliceRequest, options?: Configuration): Promise> { + return this.api.createNamespacedEndpointSliceWithHttpInfo(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * create an EndpointSlice * @param param the request object @@ -22606,6 +26150,14 @@ export class ObjectDiscoveryV1Api { return this.api.createNamespacedEndpointSlice(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * delete collection of EndpointSlice + * @param param the request object + */ + public deleteCollectionNamespacedEndpointSliceWithHttpInfo(param: DiscoveryV1ApiDeleteCollectionNamespacedEndpointSliceRequest, options?: Configuration): Promise> { + return this.api.deleteCollectionNamespacedEndpointSliceWithHttpInfo(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); + } + /** * delete collection of EndpointSlice * @param param the request object @@ -22614,6 +26166,14 @@ export class ObjectDiscoveryV1Api { return this.api.deleteCollectionNamespacedEndpointSlice(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); } + /** + * delete an EndpointSlice + * @param param the request object + */ + public deleteNamespacedEndpointSliceWithHttpInfo(param: DiscoveryV1ApiDeleteNamespacedEndpointSliceRequest, options?: Configuration): Promise> { + return this.api.deleteNamespacedEndpointSliceWithHttpInfo(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); + } + /** * delete an EndpointSlice * @param param the request object @@ -22622,6 +26182,14 @@ export class ObjectDiscoveryV1Api { return this.api.deleteNamespacedEndpointSlice(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } + /** + * get available resources + * @param param the request object + */ + public getAPIResourcesWithHttpInfo(param: DiscoveryV1ApiGetAPIResourcesRequest = {}, options?: Configuration): Promise> { + return this.api.getAPIResourcesWithHttpInfo( options).toPromise(); + } + /** * get available resources * @param param the request object @@ -22630,6 +26198,14 @@ export class ObjectDiscoveryV1Api { return this.api.getAPIResources( options).toPromise(); } + /** + * list or watch objects of kind EndpointSlice + * @param param the request object + */ + public listEndpointSliceForAllNamespacesWithHttpInfo(param: DiscoveryV1ApiListEndpointSliceForAllNamespacesRequest = {}, options?: Configuration): Promise> { + return this.api.listEndpointSliceForAllNamespacesWithHttpInfo(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); + } + /** * list or watch objects of kind EndpointSlice * @param param the request object @@ -22638,6 +26214,14 @@ export class ObjectDiscoveryV1Api { return this.api.listEndpointSliceForAllNamespaces(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } + /** + * list or watch objects of kind EndpointSlice + * @param param the request object + */ + public listNamespacedEndpointSliceWithHttpInfo(param: DiscoveryV1ApiListNamespacedEndpointSliceRequest, options?: Configuration): Promise> { + return this.api.listNamespacedEndpointSliceWithHttpInfo(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); + } + /** * list or watch objects of kind EndpointSlice * @param param the request object @@ -22646,6 +26230,14 @@ export class ObjectDiscoveryV1Api { return this.api.listNamespacedEndpointSlice(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } + /** + * partially update the specified EndpointSlice + * @param param the request object + */ + public patchNamespacedEndpointSliceWithHttpInfo(param: DiscoveryV1ApiPatchNamespacedEndpointSliceRequest, options?: Configuration): Promise> { + return this.api.patchNamespacedEndpointSliceWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); + } + /** * partially update the specified EndpointSlice * @param param the request object @@ -22654,6 +26246,14 @@ export class ObjectDiscoveryV1Api { return this.api.patchNamespacedEndpointSlice(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); } + /** + * read the specified EndpointSlice + * @param param the request object + */ + public readNamespacedEndpointSliceWithHttpInfo(param: DiscoveryV1ApiReadNamespacedEndpointSliceRequest, options?: Configuration): Promise> { + return this.api.readNamespacedEndpointSliceWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); + } + /** * read the specified EndpointSlice * @param param the request object @@ -22662,6 +26262,14 @@ export class ObjectDiscoveryV1Api { return this.api.readNamespacedEndpointSlice(param.name, param.namespace, param.pretty, options).toPromise(); } + /** + * replace the specified EndpointSlice + * @param param the request object + */ + public replaceNamespacedEndpointSliceWithHttpInfo(param: DiscoveryV1ApiReplaceNamespacedEndpointSliceRequest, options?: Configuration): Promise> { + return this.api.replaceNamespacedEndpointSliceWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * replace the specified EndpointSlice * @param param the request object @@ -23093,6 +26701,14 @@ export class ObjectDiscoveryV1beta1Api { this.api = new ObservableDiscoveryV1beta1Api(configuration, requestFactory, responseProcessor); } + /** + * create an EndpointSlice + * @param param the request object + */ + public createNamespacedEndpointSliceWithHttpInfo(param: DiscoveryV1beta1ApiCreateNamespacedEndpointSliceRequest, options?: Configuration): Promise> { + return this.api.createNamespacedEndpointSliceWithHttpInfo(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * create an EndpointSlice * @param param the request object @@ -23101,6 +26717,14 @@ export class ObjectDiscoveryV1beta1Api { return this.api.createNamespacedEndpointSlice(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * delete collection of EndpointSlice + * @param param the request object + */ + public deleteCollectionNamespacedEndpointSliceWithHttpInfo(param: DiscoveryV1beta1ApiDeleteCollectionNamespacedEndpointSliceRequest, options?: Configuration): Promise> { + return this.api.deleteCollectionNamespacedEndpointSliceWithHttpInfo(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); + } + /** * delete collection of EndpointSlice * @param param the request object @@ -23109,6 +26733,14 @@ export class ObjectDiscoveryV1beta1Api { return this.api.deleteCollectionNamespacedEndpointSlice(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); } + /** + * delete an EndpointSlice + * @param param the request object + */ + public deleteNamespacedEndpointSliceWithHttpInfo(param: DiscoveryV1beta1ApiDeleteNamespacedEndpointSliceRequest, options?: Configuration): Promise> { + return this.api.deleteNamespacedEndpointSliceWithHttpInfo(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); + } + /** * delete an EndpointSlice * @param param the request object @@ -23117,6 +26749,14 @@ export class ObjectDiscoveryV1beta1Api { return this.api.deleteNamespacedEndpointSlice(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } + /** + * get available resources + * @param param the request object + */ + public getAPIResourcesWithHttpInfo(param: DiscoveryV1beta1ApiGetAPIResourcesRequest = {}, options?: Configuration): Promise> { + return this.api.getAPIResourcesWithHttpInfo( options).toPromise(); + } + /** * get available resources * @param param the request object @@ -23125,6 +26765,14 @@ export class ObjectDiscoveryV1beta1Api { return this.api.getAPIResources( options).toPromise(); } + /** + * list or watch objects of kind EndpointSlice + * @param param the request object + */ + public listEndpointSliceForAllNamespacesWithHttpInfo(param: DiscoveryV1beta1ApiListEndpointSliceForAllNamespacesRequest = {}, options?: Configuration): Promise> { + return this.api.listEndpointSliceForAllNamespacesWithHttpInfo(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); + } + /** * list or watch objects of kind EndpointSlice * @param param the request object @@ -23133,6 +26781,14 @@ export class ObjectDiscoveryV1beta1Api { return this.api.listEndpointSliceForAllNamespaces(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } + /** + * list or watch objects of kind EndpointSlice + * @param param the request object + */ + public listNamespacedEndpointSliceWithHttpInfo(param: DiscoveryV1beta1ApiListNamespacedEndpointSliceRequest, options?: Configuration): Promise> { + return this.api.listNamespacedEndpointSliceWithHttpInfo(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); + } + /** * list or watch objects of kind EndpointSlice * @param param the request object @@ -23141,6 +26797,14 @@ export class ObjectDiscoveryV1beta1Api { return this.api.listNamespacedEndpointSlice(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } + /** + * partially update the specified EndpointSlice + * @param param the request object + */ + public patchNamespacedEndpointSliceWithHttpInfo(param: DiscoveryV1beta1ApiPatchNamespacedEndpointSliceRequest, options?: Configuration): Promise> { + return this.api.patchNamespacedEndpointSliceWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); + } + /** * partially update the specified EndpointSlice * @param param the request object @@ -23149,6 +26813,14 @@ export class ObjectDiscoveryV1beta1Api { return this.api.patchNamespacedEndpointSlice(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); } + /** + * read the specified EndpointSlice + * @param param the request object + */ + public readNamespacedEndpointSliceWithHttpInfo(param: DiscoveryV1beta1ApiReadNamespacedEndpointSliceRequest, options?: Configuration): Promise> { + return this.api.readNamespacedEndpointSliceWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); + } + /** * read the specified EndpointSlice * @param param the request object @@ -23157,6 +26829,14 @@ export class ObjectDiscoveryV1beta1Api { return this.api.readNamespacedEndpointSlice(param.name, param.namespace, param.pretty, options).toPromise(); } + /** + * replace the specified EndpointSlice + * @param param the request object + */ + public replaceNamespacedEndpointSliceWithHttpInfo(param: DiscoveryV1beta1ApiReplaceNamespacedEndpointSliceRequest, options?: Configuration): Promise> { + return this.api.replaceNamespacedEndpointSliceWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * replace the specified EndpointSlice * @param param the request object @@ -23180,6 +26860,14 @@ export class ObjectEventsApi { this.api = new ObservableEventsApi(configuration, requestFactory, responseProcessor); } + /** + * get information of a group + * @param param the request object + */ + public getAPIGroupWithHttpInfo(param: EventsApiGetAPIGroupRequest = {}, options?: Configuration): Promise> { + return this.api.getAPIGroupWithHttpInfo( options).toPromise(); + } + /** * get information of a group * @param param the request object @@ -23611,6 +27299,14 @@ export class ObjectEventsV1Api { this.api = new ObservableEventsV1Api(configuration, requestFactory, responseProcessor); } + /** + * create an Event + * @param param the request object + */ + public createNamespacedEventWithHttpInfo(param: EventsV1ApiCreateNamespacedEventRequest, options?: Configuration): Promise> { + return this.api.createNamespacedEventWithHttpInfo(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * create an Event * @param param the request object @@ -23619,6 +27315,14 @@ export class ObjectEventsV1Api { return this.api.createNamespacedEvent(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * delete collection of Event + * @param param the request object + */ + public deleteCollectionNamespacedEventWithHttpInfo(param: EventsV1ApiDeleteCollectionNamespacedEventRequest, options?: Configuration): Promise> { + return this.api.deleteCollectionNamespacedEventWithHttpInfo(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); + } + /** * delete collection of Event * @param param the request object @@ -23627,6 +27331,14 @@ export class ObjectEventsV1Api { return this.api.deleteCollectionNamespacedEvent(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); } + /** + * delete an Event + * @param param the request object + */ + public deleteNamespacedEventWithHttpInfo(param: EventsV1ApiDeleteNamespacedEventRequest, options?: Configuration): Promise> { + return this.api.deleteNamespacedEventWithHttpInfo(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); + } + /** * delete an Event * @param param the request object @@ -23635,6 +27347,14 @@ export class ObjectEventsV1Api { return this.api.deleteNamespacedEvent(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } + /** + * get available resources + * @param param the request object + */ + public getAPIResourcesWithHttpInfo(param: EventsV1ApiGetAPIResourcesRequest = {}, options?: Configuration): Promise> { + return this.api.getAPIResourcesWithHttpInfo( options).toPromise(); + } + /** * get available resources * @param param the request object @@ -23643,6 +27363,14 @@ export class ObjectEventsV1Api { return this.api.getAPIResources( options).toPromise(); } + /** + * list or watch objects of kind Event + * @param param the request object + */ + public listEventForAllNamespacesWithHttpInfo(param: EventsV1ApiListEventForAllNamespacesRequest = {}, options?: Configuration): Promise> { + return this.api.listEventForAllNamespacesWithHttpInfo(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); + } + /** * list or watch objects of kind Event * @param param the request object @@ -23651,6 +27379,14 @@ export class ObjectEventsV1Api { return this.api.listEventForAllNamespaces(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } + /** + * list or watch objects of kind Event + * @param param the request object + */ + public listNamespacedEventWithHttpInfo(param: EventsV1ApiListNamespacedEventRequest, options?: Configuration): Promise> { + return this.api.listNamespacedEventWithHttpInfo(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); + } + /** * list or watch objects of kind Event * @param param the request object @@ -23659,6 +27395,14 @@ export class ObjectEventsV1Api { return this.api.listNamespacedEvent(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } + /** + * partially update the specified Event + * @param param the request object + */ + public patchNamespacedEventWithHttpInfo(param: EventsV1ApiPatchNamespacedEventRequest, options?: Configuration): Promise> { + return this.api.patchNamespacedEventWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); + } + /** * partially update the specified Event * @param param the request object @@ -23667,6 +27411,14 @@ export class ObjectEventsV1Api { return this.api.patchNamespacedEvent(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); } + /** + * read the specified Event + * @param param the request object + */ + public readNamespacedEventWithHttpInfo(param: EventsV1ApiReadNamespacedEventRequest, options?: Configuration): Promise> { + return this.api.readNamespacedEventWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); + } + /** * read the specified Event * @param param the request object @@ -23675,6 +27427,14 @@ export class ObjectEventsV1Api { return this.api.readNamespacedEvent(param.name, param.namespace, param.pretty, options).toPromise(); } + /** + * replace the specified Event + * @param param the request object + */ + public replaceNamespacedEventWithHttpInfo(param: EventsV1ApiReplaceNamespacedEventRequest, options?: Configuration): Promise> { + return this.api.replaceNamespacedEventWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * replace the specified Event * @param param the request object @@ -24106,6 +27866,14 @@ export class ObjectEventsV1beta1Api { this.api = new ObservableEventsV1beta1Api(configuration, requestFactory, responseProcessor); } + /** + * create an Event + * @param param the request object + */ + public createNamespacedEventWithHttpInfo(param: EventsV1beta1ApiCreateNamespacedEventRequest, options?: Configuration): Promise> { + return this.api.createNamespacedEventWithHttpInfo(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * create an Event * @param param the request object @@ -24114,6 +27882,14 @@ export class ObjectEventsV1beta1Api { return this.api.createNamespacedEvent(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * delete collection of Event + * @param param the request object + */ + public deleteCollectionNamespacedEventWithHttpInfo(param: EventsV1beta1ApiDeleteCollectionNamespacedEventRequest, options?: Configuration): Promise> { + return this.api.deleteCollectionNamespacedEventWithHttpInfo(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); + } + /** * delete collection of Event * @param param the request object @@ -24122,6 +27898,14 @@ export class ObjectEventsV1beta1Api { return this.api.deleteCollectionNamespacedEvent(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); } + /** + * delete an Event + * @param param the request object + */ + public deleteNamespacedEventWithHttpInfo(param: EventsV1beta1ApiDeleteNamespacedEventRequest, options?: Configuration): Promise> { + return this.api.deleteNamespacedEventWithHttpInfo(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); + } + /** * delete an Event * @param param the request object @@ -24130,6 +27914,14 @@ export class ObjectEventsV1beta1Api { return this.api.deleteNamespacedEvent(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } + /** + * get available resources + * @param param the request object + */ + public getAPIResourcesWithHttpInfo(param: EventsV1beta1ApiGetAPIResourcesRequest = {}, options?: Configuration): Promise> { + return this.api.getAPIResourcesWithHttpInfo( options).toPromise(); + } + /** * get available resources * @param param the request object @@ -24138,6 +27930,14 @@ export class ObjectEventsV1beta1Api { return this.api.getAPIResources( options).toPromise(); } + /** + * list or watch objects of kind Event + * @param param the request object + */ + public listEventForAllNamespacesWithHttpInfo(param: EventsV1beta1ApiListEventForAllNamespacesRequest = {}, options?: Configuration): Promise> { + return this.api.listEventForAllNamespacesWithHttpInfo(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); + } + /** * list or watch objects of kind Event * @param param the request object @@ -24146,6 +27946,14 @@ export class ObjectEventsV1beta1Api { return this.api.listEventForAllNamespaces(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } + /** + * list or watch objects of kind Event + * @param param the request object + */ + public listNamespacedEventWithHttpInfo(param: EventsV1beta1ApiListNamespacedEventRequest, options?: Configuration): Promise> { + return this.api.listNamespacedEventWithHttpInfo(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); + } + /** * list or watch objects of kind Event * @param param the request object @@ -24154,6 +27962,14 @@ export class ObjectEventsV1beta1Api { return this.api.listNamespacedEvent(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } + /** + * partially update the specified Event + * @param param the request object + */ + public patchNamespacedEventWithHttpInfo(param: EventsV1beta1ApiPatchNamespacedEventRequest, options?: Configuration): Promise> { + return this.api.patchNamespacedEventWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); + } + /** * partially update the specified Event * @param param the request object @@ -24162,6 +27978,14 @@ export class ObjectEventsV1beta1Api { return this.api.patchNamespacedEvent(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); } + /** + * read the specified Event + * @param param the request object + */ + public readNamespacedEventWithHttpInfo(param: EventsV1beta1ApiReadNamespacedEventRequest, options?: Configuration): Promise> { + return this.api.readNamespacedEventWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); + } + /** * read the specified Event * @param param the request object @@ -24170,6 +27994,14 @@ export class ObjectEventsV1beta1Api { return this.api.readNamespacedEvent(param.name, param.namespace, param.pretty, options).toPromise(); } + /** + * replace the specified Event + * @param param the request object + */ + public replaceNamespacedEventWithHttpInfo(param: EventsV1beta1ApiReplaceNamespacedEventRequest, options?: Configuration): Promise> { + return this.api.replaceNamespacedEventWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * replace the specified Event * @param param the request object @@ -24193,6 +28025,14 @@ export class ObjectFlowcontrolApiserverApi { this.api = new ObservableFlowcontrolApiserverApi(configuration, requestFactory, responseProcessor); } + /** + * get information of a group + * @param param the request object + */ + public getAPIGroupWithHttpInfo(param: FlowcontrolApiserverApiGetAPIGroupRequest = {}, options?: Configuration): Promise> { + return this.api.getAPIGroupWithHttpInfo( options).toPromise(); + } + /** * get information of a group * @param param the request object @@ -24996,6 +28836,14 @@ export class ObjectFlowcontrolApiserverV1beta1Api { this.api = new ObservableFlowcontrolApiserverV1beta1Api(configuration, requestFactory, responseProcessor); } + /** + * create a FlowSchema + * @param param the request object + */ + public createFlowSchemaWithHttpInfo(param: FlowcontrolApiserverV1beta1ApiCreateFlowSchemaRequest, options?: Configuration): Promise> { + return this.api.createFlowSchemaWithHttpInfo(param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * create a FlowSchema * @param param the request object @@ -25004,6 +28852,14 @@ export class ObjectFlowcontrolApiserverV1beta1Api { return this.api.createFlowSchema(param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * create a PriorityLevelConfiguration + * @param param the request object + */ + public createPriorityLevelConfigurationWithHttpInfo(param: FlowcontrolApiserverV1beta1ApiCreatePriorityLevelConfigurationRequest, options?: Configuration): Promise> { + return this.api.createPriorityLevelConfigurationWithHttpInfo(param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * create a PriorityLevelConfiguration * @param param the request object @@ -25012,6 +28868,14 @@ export class ObjectFlowcontrolApiserverV1beta1Api { return this.api.createPriorityLevelConfiguration(param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * delete collection of FlowSchema + * @param param the request object + */ + public deleteCollectionFlowSchemaWithHttpInfo(param: FlowcontrolApiserverV1beta1ApiDeleteCollectionFlowSchemaRequest = {}, options?: Configuration): Promise> { + return this.api.deleteCollectionFlowSchemaWithHttpInfo(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); + } + /** * delete collection of FlowSchema * @param param the request object @@ -25020,6 +28884,14 @@ export class ObjectFlowcontrolApiserverV1beta1Api { return this.api.deleteCollectionFlowSchema(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); } + /** + * delete collection of PriorityLevelConfiguration + * @param param the request object + */ + public deleteCollectionPriorityLevelConfigurationWithHttpInfo(param: FlowcontrolApiserverV1beta1ApiDeleteCollectionPriorityLevelConfigurationRequest = {}, options?: Configuration): Promise> { + return this.api.deleteCollectionPriorityLevelConfigurationWithHttpInfo(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); + } + /** * delete collection of PriorityLevelConfiguration * @param param the request object @@ -25028,6 +28900,14 @@ export class ObjectFlowcontrolApiserverV1beta1Api { return this.api.deleteCollectionPriorityLevelConfiguration(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); } + /** + * delete a FlowSchema + * @param param the request object + */ + public deleteFlowSchemaWithHttpInfo(param: FlowcontrolApiserverV1beta1ApiDeleteFlowSchemaRequest, options?: Configuration): Promise> { + return this.api.deleteFlowSchemaWithHttpInfo(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); + } + /** * delete a FlowSchema * @param param the request object @@ -25036,6 +28916,14 @@ export class ObjectFlowcontrolApiserverV1beta1Api { return this.api.deleteFlowSchema(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } + /** + * delete a PriorityLevelConfiguration + * @param param the request object + */ + public deletePriorityLevelConfigurationWithHttpInfo(param: FlowcontrolApiserverV1beta1ApiDeletePriorityLevelConfigurationRequest, options?: Configuration): Promise> { + return this.api.deletePriorityLevelConfigurationWithHttpInfo(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); + } + /** * delete a PriorityLevelConfiguration * @param param the request object @@ -25044,6 +28932,14 @@ export class ObjectFlowcontrolApiserverV1beta1Api { return this.api.deletePriorityLevelConfiguration(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } + /** + * get available resources + * @param param the request object + */ + public getAPIResourcesWithHttpInfo(param: FlowcontrolApiserverV1beta1ApiGetAPIResourcesRequest = {}, options?: Configuration): Promise> { + return this.api.getAPIResourcesWithHttpInfo( options).toPromise(); + } + /** * get available resources * @param param the request object @@ -25052,6 +28948,14 @@ export class ObjectFlowcontrolApiserverV1beta1Api { return this.api.getAPIResources( options).toPromise(); } + /** + * list or watch objects of kind FlowSchema + * @param param the request object + */ + public listFlowSchemaWithHttpInfo(param: FlowcontrolApiserverV1beta1ApiListFlowSchemaRequest = {}, options?: Configuration): Promise> { + return this.api.listFlowSchemaWithHttpInfo(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); + } + /** * list or watch objects of kind FlowSchema * @param param the request object @@ -25060,6 +28964,14 @@ export class ObjectFlowcontrolApiserverV1beta1Api { return this.api.listFlowSchema(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } + /** + * list or watch objects of kind PriorityLevelConfiguration + * @param param the request object + */ + public listPriorityLevelConfigurationWithHttpInfo(param: FlowcontrolApiserverV1beta1ApiListPriorityLevelConfigurationRequest = {}, options?: Configuration): Promise> { + return this.api.listPriorityLevelConfigurationWithHttpInfo(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); + } + /** * list or watch objects of kind PriorityLevelConfiguration * @param param the request object @@ -25068,6 +28980,14 @@ export class ObjectFlowcontrolApiserverV1beta1Api { return this.api.listPriorityLevelConfiguration(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } + /** + * partially update the specified FlowSchema + * @param param the request object + */ + public patchFlowSchemaWithHttpInfo(param: FlowcontrolApiserverV1beta1ApiPatchFlowSchemaRequest, options?: Configuration): Promise> { + return this.api.patchFlowSchemaWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); + } + /** * partially update the specified FlowSchema * @param param the request object @@ -25076,6 +28996,14 @@ export class ObjectFlowcontrolApiserverV1beta1Api { return this.api.patchFlowSchema(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); } + /** + * partially update status of the specified FlowSchema + * @param param the request object + */ + public patchFlowSchemaStatusWithHttpInfo(param: FlowcontrolApiserverV1beta1ApiPatchFlowSchemaStatusRequest, options?: Configuration): Promise> { + return this.api.patchFlowSchemaStatusWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); + } + /** * partially update status of the specified FlowSchema * @param param the request object @@ -25084,6 +29012,14 @@ export class ObjectFlowcontrolApiserverV1beta1Api { return this.api.patchFlowSchemaStatus(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); } + /** + * partially update the specified PriorityLevelConfiguration + * @param param the request object + */ + public patchPriorityLevelConfigurationWithHttpInfo(param: FlowcontrolApiserverV1beta1ApiPatchPriorityLevelConfigurationRequest, options?: Configuration): Promise> { + return this.api.patchPriorityLevelConfigurationWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); + } + /** * partially update the specified PriorityLevelConfiguration * @param param the request object @@ -25092,6 +29028,14 @@ export class ObjectFlowcontrolApiserverV1beta1Api { return this.api.patchPriorityLevelConfiguration(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); } + /** + * partially update status of the specified PriorityLevelConfiguration + * @param param the request object + */ + public patchPriorityLevelConfigurationStatusWithHttpInfo(param: FlowcontrolApiserverV1beta1ApiPatchPriorityLevelConfigurationStatusRequest, options?: Configuration): Promise> { + return this.api.patchPriorityLevelConfigurationStatusWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); + } + /** * partially update status of the specified PriorityLevelConfiguration * @param param the request object @@ -25100,6 +29044,14 @@ export class ObjectFlowcontrolApiserverV1beta1Api { return this.api.patchPriorityLevelConfigurationStatus(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); } + /** + * read the specified FlowSchema + * @param param the request object + */ + public readFlowSchemaWithHttpInfo(param: FlowcontrolApiserverV1beta1ApiReadFlowSchemaRequest, options?: Configuration): Promise> { + return this.api.readFlowSchemaWithHttpInfo(param.name, param.pretty, options).toPromise(); + } + /** * read the specified FlowSchema * @param param the request object @@ -25108,6 +29060,14 @@ export class ObjectFlowcontrolApiserverV1beta1Api { return this.api.readFlowSchema(param.name, param.pretty, options).toPromise(); } + /** + * read status of the specified FlowSchema + * @param param the request object + */ + public readFlowSchemaStatusWithHttpInfo(param: FlowcontrolApiserverV1beta1ApiReadFlowSchemaStatusRequest, options?: Configuration): Promise> { + return this.api.readFlowSchemaStatusWithHttpInfo(param.name, param.pretty, options).toPromise(); + } + /** * read status of the specified FlowSchema * @param param the request object @@ -25116,6 +29076,14 @@ export class ObjectFlowcontrolApiserverV1beta1Api { return this.api.readFlowSchemaStatus(param.name, param.pretty, options).toPromise(); } + /** + * read the specified PriorityLevelConfiguration + * @param param the request object + */ + public readPriorityLevelConfigurationWithHttpInfo(param: FlowcontrolApiserverV1beta1ApiReadPriorityLevelConfigurationRequest, options?: Configuration): Promise> { + return this.api.readPriorityLevelConfigurationWithHttpInfo(param.name, param.pretty, options).toPromise(); + } + /** * read the specified PriorityLevelConfiguration * @param param the request object @@ -25124,6 +29092,14 @@ export class ObjectFlowcontrolApiserverV1beta1Api { return this.api.readPriorityLevelConfiguration(param.name, param.pretty, options).toPromise(); } + /** + * read status of the specified PriorityLevelConfiguration + * @param param the request object + */ + public readPriorityLevelConfigurationStatusWithHttpInfo(param: FlowcontrolApiserverV1beta1ApiReadPriorityLevelConfigurationStatusRequest, options?: Configuration): Promise> { + return this.api.readPriorityLevelConfigurationStatusWithHttpInfo(param.name, param.pretty, options).toPromise(); + } + /** * read status of the specified PriorityLevelConfiguration * @param param the request object @@ -25132,6 +29108,14 @@ export class ObjectFlowcontrolApiserverV1beta1Api { return this.api.readPriorityLevelConfigurationStatus(param.name, param.pretty, options).toPromise(); } + /** + * replace the specified FlowSchema + * @param param the request object + */ + public replaceFlowSchemaWithHttpInfo(param: FlowcontrolApiserverV1beta1ApiReplaceFlowSchemaRequest, options?: Configuration): Promise> { + return this.api.replaceFlowSchemaWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * replace the specified FlowSchema * @param param the request object @@ -25140,6 +29124,14 @@ export class ObjectFlowcontrolApiserverV1beta1Api { return this.api.replaceFlowSchema(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * replace status of the specified FlowSchema + * @param param the request object + */ + public replaceFlowSchemaStatusWithHttpInfo(param: FlowcontrolApiserverV1beta1ApiReplaceFlowSchemaStatusRequest, options?: Configuration): Promise> { + return this.api.replaceFlowSchemaStatusWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * replace status of the specified FlowSchema * @param param the request object @@ -25148,6 +29140,14 @@ export class ObjectFlowcontrolApiserverV1beta1Api { return this.api.replaceFlowSchemaStatus(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * replace the specified PriorityLevelConfiguration + * @param param the request object + */ + public replacePriorityLevelConfigurationWithHttpInfo(param: FlowcontrolApiserverV1beta1ApiReplacePriorityLevelConfigurationRequest, options?: Configuration): Promise> { + return this.api.replacePriorityLevelConfigurationWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * replace the specified PriorityLevelConfiguration * @param param the request object @@ -25156,6 +29156,14 @@ export class ObjectFlowcontrolApiserverV1beta1Api { return this.api.replacePriorityLevelConfiguration(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * replace status of the specified PriorityLevelConfiguration + * @param param the request object + */ + public replacePriorityLevelConfigurationStatusWithHttpInfo(param: FlowcontrolApiserverV1beta1ApiReplacePriorityLevelConfigurationStatusRequest, options?: Configuration): Promise> { + return this.api.replacePriorityLevelConfigurationStatusWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * replace status of the specified PriorityLevelConfiguration * @param param the request object @@ -25179,6 +29187,14 @@ export class ObjectInternalApiserverApi { this.api = new ObservableInternalApiserverApi(configuration, requestFactory, responseProcessor); } + /** + * get information of a group + * @param param the request object + */ + public getAPIGroupWithHttpInfo(param: InternalApiserverApiGetAPIGroupRequest = {}, options?: Configuration): Promise> { + return this.api.getAPIGroupWithHttpInfo( options).toPromise(); + } + /** * get information of a group * @param param the request object @@ -25592,6 +29608,14 @@ export class ObjectInternalApiserverV1alpha1Api { this.api = new ObservableInternalApiserverV1alpha1Api(configuration, requestFactory, responseProcessor); } + /** + * create a StorageVersion + * @param param the request object + */ + public createStorageVersionWithHttpInfo(param: InternalApiserverV1alpha1ApiCreateStorageVersionRequest, options?: Configuration): Promise> { + return this.api.createStorageVersionWithHttpInfo(param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * create a StorageVersion * @param param the request object @@ -25600,6 +29624,14 @@ export class ObjectInternalApiserverV1alpha1Api { return this.api.createStorageVersion(param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * delete collection of StorageVersion + * @param param the request object + */ + public deleteCollectionStorageVersionWithHttpInfo(param: InternalApiserverV1alpha1ApiDeleteCollectionStorageVersionRequest = {}, options?: Configuration): Promise> { + return this.api.deleteCollectionStorageVersionWithHttpInfo(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); + } + /** * delete collection of StorageVersion * @param param the request object @@ -25608,6 +29640,14 @@ export class ObjectInternalApiserverV1alpha1Api { return this.api.deleteCollectionStorageVersion(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); } + /** + * delete a StorageVersion + * @param param the request object + */ + public deleteStorageVersionWithHttpInfo(param: InternalApiserverV1alpha1ApiDeleteStorageVersionRequest, options?: Configuration): Promise> { + return this.api.deleteStorageVersionWithHttpInfo(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); + } + /** * delete a StorageVersion * @param param the request object @@ -25616,6 +29656,14 @@ export class ObjectInternalApiserverV1alpha1Api { return this.api.deleteStorageVersion(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } + /** + * get available resources + * @param param the request object + */ + public getAPIResourcesWithHttpInfo(param: InternalApiserverV1alpha1ApiGetAPIResourcesRequest = {}, options?: Configuration): Promise> { + return this.api.getAPIResourcesWithHttpInfo( options).toPromise(); + } + /** * get available resources * @param param the request object @@ -25624,6 +29672,14 @@ export class ObjectInternalApiserverV1alpha1Api { return this.api.getAPIResources( options).toPromise(); } + /** + * list or watch objects of kind StorageVersion + * @param param the request object + */ + public listStorageVersionWithHttpInfo(param: InternalApiserverV1alpha1ApiListStorageVersionRequest = {}, options?: Configuration): Promise> { + return this.api.listStorageVersionWithHttpInfo(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); + } + /** * list or watch objects of kind StorageVersion * @param param the request object @@ -25632,6 +29688,14 @@ export class ObjectInternalApiserverV1alpha1Api { return this.api.listStorageVersion(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } + /** + * partially update the specified StorageVersion + * @param param the request object + */ + public patchStorageVersionWithHttpInfo(param: InternalApiserverV1alpha1ApiPatchStorageVersionRequest, options?: Configuration): Promise> { + return this.api.patchStorageVersionWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); + } + /** * partially update the specified StorageVersion * @param param the request object @@ -25640,6 +29704,14 @@ export class ObjectInternalApiserverV1alpha1Api { return this.api.patchStorageVersion(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); } + /** + * partially update status of the specified StorageVersion + * @param param the request object + */ + public patchStorageVersionStatusWithHttpInfo(param: InternalApiserverV1alpha1ApiPatchStorageVersionStatusRequest, options?: Configuration): Promise> { + return this.api.patchStorageVersionStatusWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); + } + /** * partially update status of the specified StorageVersion * @param param the request object @@ -25648,6 +29720,14 @@ export class ObjectInternalApiserverV1alpha1Api { return this.api.patchStorageVersionStatus(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); } + /** + * read the specified StorageVersion + * @param param the request object + */ + public readStorageVersionWithHttpInfo(param: InternalApiserverV1alpha1ApiReadStorageVersionRequest, options?: Configuration): Promise> { + return this.api.readStorageVersionWithHttpInfo(param.name, param.pretty, options).toPromise(); + } + /** * read the specified StorageVersion * @param param the request object @@ -25656,6 +29736,14 @@ export class ObjectInternalApiserverV1alpha1Api { return this.api.readStorageVersion(param.name, param.pretty, options).toPromise(); } + /** + * read status of the specified StorageVersion + * @param param the request object + */ + public readStorageVersionStatusWithHttpInfo(param: InternalApiserverV1alpha1ApiReadStorageVersionStatusRequest, options?: Configuration): Promise> { + return this.api.readStorageVersionStatusWithHttpInfo(param.name, param.pretty, options).toPromise(); + } + /** * read status of the specified StorageVersion * @param param the request object @@ -25664,6 +29752,14 @@ export class ObjectInternalApiserverV1alpha1Api { return this.api.readStorageVersionStatus(param.name, param.pretty, options).toPromise(); } + /** + * replace the specified StorageVersion + * @param param the request object + */ + public replaceStorageVersionWithHttpInfo(param: InternalApiserverV1alpha1ApiReplaceStorageVersionRequest, options?: Configuration): Promise> { + return this.api.replaceStorageVersionWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * replace the specified StorageVersion * @param param the request object @@ -25672,6 +29768,14 @@ export class ObjectInternalApiserverV1alpha1Api { return this.api.replaceStorageVersion(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * replace status of the specified StorageVersion + * @param param the request object + */ + public replaceStorageVersionStatusWithHttpInfo(param: InternalApiserverV1alpha1ApiReplaceStorageVersionStatusRequest, options?: Configuration): Promise> { + return this.api.replaceStorageVersionStatusWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * replace status of the specified StorageVersion * @param param the request object @@ -25704,6 +29808,13 @@ export class ObjectLogsApi { this.api = new ObservableLogsApi(configuration, requestFactory, responseProcessor); } + /** + * @param param the request object + */ + public logFileHandlerWithHttpInfo(param: LogsApiLogFileHandlerRequest, options?: Configuration): Promise> { + return this.api.logFileHandlerWithHttpInfo(param.logpath, options).toPromise(); + } + /** * @param param the request object */ @@ -25711,6 +29822,13 @@ export class ObjectLogsApi { return this.api.logFileHandler(param.logpath, options).toPromise(); } + /** + * @param param the request object + */ + public logFileListHandlerWithHttpInfo(param: LogsApiLogFileListHandlerRequest = {}, options?: Configuration): Promise> { + return this.api.logFileListHandlerWithHttpInfo( options).toPromise(); + } + /** * @param param the request object */ @@ -25733,6 +29851,14 @@ export class ObjectNetworkingApi { this.api = new ObservableNetworkingApi(configuration, requestFactory, responseProcessor); } + /** + * get information of a group + * @param param the request object + */ + public getAPIGroupWithHttpInfo(param: NetworkingApiGetAPIGroupRequest = {}, options?: Configuration): Promise> { + return this.api.getAPIGroupWithHttpInfo( options).toPromise(); + } + /** * get information of a group * @param param the request object @@ -26980,6 +31106,14 @@ export class ObjectNetworkingV1Api { this.api = new ObservableNetworkingV1Api(configuration, requestFactory, responseProcessor); } + /** + * create an IngressClass + * @param param the request object + */ + public createIngressClassWithHttpInfo(param: NetworkingV1ApiCreateIngressClassRequest, options?: Configuration): Promise> { + return this.api.createIngressClassWithHttpInfo(param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * create an IngressClass * @param param the request object @@ -26988,6 +31122,14 @@ export class ObjectNetworkingV1Api { return this.api.createIngressClass(param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * create an Ingress + * @param param the request object + */ + public createNamespacedIngressWithHttpInfo(param: NetworkingV1ApiCreateNamespacedIngressRequest, options?: Configuration): Promise> { + return this.api.createNamespacedIngressWithHttpInfo(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * create an Ingress * @param param the request object @@ -26996,6 +31138,14 @@ export class ObjectNetworkingV1Api { return this.api.createNamespacedIngress(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * create a NetworkPolicy + * @param param the request object + */ + public createNamespacedNetworkPolicyWithHttpInfo(param: NetworkingV1ApiCreateNamespacedNetworkPolicyRequest, options?: Configuration): Promise> { + return this.api.createNamespacedNetworkPolicyWithHttpInfo(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * create a NetworkPolicy * @param param the request object @@ -27004,6 +31154,14 @@ export class ObjectNetworkingV1Api { return this.api.createNamespacedNetworkPolicy(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * delete collection of IngressClass + * @param param the request object + */ + public deleteCollectionIngressClassWithHttpInfo(param: NetworkingV1ApiDeleteCollectionIngressClassRequest = {}, options?: Configuration): Promise> { + return this.api.deleteCollectionIngressClassWithHttpInfo(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); + } + /** * delete collection of IngressClass * @param param the request object @@ -27012,6 +31170,14 @@ export class ObjectNetworkingV1Api { return this.api.deleteCollectionIngressClass(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); } + /** + * delete collection of Ingress + * @param param the request object + */ + public deleteCollectionNamespacedIngressWithHttpInfo(param: NetworkingV1ApiDeleteCollectionNamespacedIngressRequest, options?: Configuration): Promise> { + return this.api.deleteCollectionNamespacedIngressWithHttpInfo(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); + } + /** * delete collection of Ingress * @param param the request object @@ -27020,6 +31186,14 @@ export class ObjectNetworkingV1Api { return this.api.deleteCollectionNamespacedIngress(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); } + /** + * delete collection of NetworkPolicy + * @param param the request object + */ + public deleteCollectionNamespacedNetworkPolicyWithHttpInfo(param: NetworkingV1ApiDeleteCollectionNamespacedNetworkPolicyRequest, options?: Configuration): Promise> { + return this.api.deleteCollectionNamespacedNetworkPolicyWithHttpInfo(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); + } + /** * delete collection of NetworkPolicy * @param param the request object @@ -27028,6 +31202,14 @@ export class ObjectNetworkingV1Api { return this.api.deleteCollectionNamespacedNetworkPolicy(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); } + /** + * delete an IngressClass + * @param param the request object + */ + public deleteIngressClassWithHttpInfo(param: NetworkingV1ApiDeleteIngressClassRequest, options?: Configuration): Promise> { + return this.api.deleteIngressClassWithHttpInfo(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); + } + /** * delete an IngressClass * @param param the request object @@ -27036,6 +31218,14 @@ export class ObjectNetworkingV1Api { return this.api.deleteIngressClass(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } + /** + * delete an Ingress + * @param param the request object + */ + public deleteNamespacedIngressWithHttpInfo(param: NetworkingV1ApiDeleteNamespacedIngressRequest, options?: Configuration): Promise> { + return this.api.deleteNamespacedIngressWithHttpInfo(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); + } + /** * delete an Ingress * @param param the request object @@ -27044,6 +31234,14 @@ export class ObjectNetworkingV1Api { return this.api.deleteNamespacedIngress(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } + /** + * delete a NetworkPolicy + * @param param the request object + */ + public deleteNamespacedNetworkPolicyWithHttpInfo(param: NetworkingV1ApiDeleteNamespacedNetworkPolicyRequest, options?: Configuration): Promise> { + return this.api.deleteNamespacedNetworkPolicyWithHttpInfo(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); + } + /** * delete a NetworkPolicy * @param param the request object @@ -27052,6 +31250,14 @@ export class ObjectNetworkingV1Api { return this.api.deleteNamespacedNetworkPolicy(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } + /** + * get available resources + * @param param the request object + */ + public getAPIResourcesWithHttpInfo(param: NetworkingV1ApiGetAPIResourcesRequest = {}, options?: Configuration): Promise> { + return this.api.getAPIResourcesWithHttpInfo( options).toPromise(); + } + /** * get available resources * @param param the request object @@ -27060,6 +31266,14 @@ export class ObjectNetworkingV1Api { return this.api.getAPIResources( options).toPromise(); } + /** + * list or watch objects of kind IngressClass + * @param param the request object + */ + public listIngressClassWithHttpInfo(param: NetworkingV1ApiListIngressClassRequest = {}, options?: Configuration): Promise> { + return this.api.listIngressClassWithHttpInfo(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); + } + /** * list or watch objects of kind IngressClass * @param param the request object @@ -27068,6 +31282,14 @@ export class ObjectNetworkingV1Api { return this.api.listIngressClass(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } + /** + * list or watch objects of kind Ingress + * @param param the request object + */ + public listIngressForAllNamespacesWithHttpInfo(param: NetworkingV1ApiListIngressForAllNamespacesRequest = {}, options?: Configuration): Promise> { + return this.api.listIngressForAllNamespacesWithHttpInfo(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); + } + /** * list or watch objects of kind Ingress * @param param the request object @@ -27076,6 +31298,14 @@ export class ObjectNetworkingV1Api { return this.api.listIngressForAllNamespaces(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } + /** + * list or watch objects of kind Ingress + * @param param the request object + */ + public listNamespacedIngressWithHttpInfo(param: NetworkingV1ApiListNamespacedIngressRequest, options?: Configuration): Promise> { + return this.api.listNamespacedIngressWithHttpInfo(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); + } + /** * list or watch objects of kind Ingress * @param param the request object @@ -27084,6 +31314,14 @@ export class ObjectNetworkingV1Api { return this.api.listNamespacedIngress(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } + /** + * list or watch objects of kind NetworkPolicy + * @param param the request object + */ + public listNamespacedNetworkPolicyWithHttpInfo(param: NetworkingV1ApiListNamespacedNetworkPolicyRequest, options?: Configuration): Promise> { + return this.api.listNamespacedNetworkPolicyWithHttpInfo(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); + } + /** * list or watch objects of kind NetworkPolicy * @param param the request object @@ -27092,6 +31330,14 @@ export class ObjectNetworkingV1Api { return this.api.listNamespacedNetworkPolicy(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } + /** + * list or watch objects of kind NetworkPolicy + * @param param the request object + */ + public listNetworkPolicyForAllNamespacesWithHttpInfo(param: NetworkingV1ApiListNetworkPolicyForAllNamespacesRequest = {}, options?: Configuration): Promise> { + return this.api.listNetworkPolicyForAllNamespacesWithHttpInfo(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); + } + /** * list or watch objects of kind NetworkPolicy * @param param the request object @@ -27100,6 +31346,14 @@ export class ObjectNetworkingV1Api { return this.api.listNetworkPolicyForAllNamespaces(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } + /** + * partially update the specified IngressClass + * @param param the request object + */ + public patchIngressClassWithHttpInfo(param: NetworkingV1ApiPatchIngressClassRequest, options?: Configuration): Promise> { + return this.api.patchIngressClassWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); + } + /** * partially update the specified IngressClass * @param param the request object @@ -27108,6 +31362,14 @@ export class ObjectNetworkingV1Api { return this.api.patchIngressClass(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); } + /** + * partially update the specified Ingress + * @param param the request object + */ + public patchNamespacedIngressWithHttpInfo(param: NetworkingV1ApiPatchNamespacedIngressRequest, options?: Configuration): Promise> { + return this.api.patchNamespacedIngressWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); + } + /** * partially update the specified Ingress * @param param the request object @@ -27116,6 +31378,14 @@ export class ObjectNetworkingV1Api { return this.api.patchNamespacedIngress(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); } + /** + * partially update status of the specified Ingress + * @param param the request object + */ + public patchNamespacedIngressStatusWithHttpInfo(param: NetworkingV1ApiPatchNamespacedIngressStatusRequest, options?: Configuration): Promise> { + return this.api.patchNamespacedIngressStatusWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); + } + /** * partially update status of the specified Ingress * @param param the request object @@ -27124,6 +31394,14 @@ export class ObjectNetworkingV1Api { return this.api.patchNamespacedIngressStatus(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); } + /** + * partially update the specified NetworkPolicy + * @param param the request object + */ + public patchNamespacedNetworkPolicyWithHttpInfo(param: NetworkingV1ApiPatchNamespacedNetworkPolicyRequest, options?: Configuration): Promise> { + return this.api.patchNamespacedNetworkPolicyWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); + } + /** * partially update the specified NetworkPolicy * @param param the request object @@ -27132,6 +31410,14 @@ export class ObjectNetworkingV1Api { return this.api.patchNamespacedNetworkPolicy(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); } + /** + * read the specified IngressClass + * @param param the request object + */ + public readIngressClassWithHttpInfo(param: NetworkingV1ApiReadIngressClassRequest, options?: Configuration): Promise> { + return this.api.readIngressClassWithHttpInfo(param.name, param.pretty, options).toPromise(); + } + /** * read the specified IngressClass * @param param the request object @@ -27140,6 +31426,14 @@ export class ObjectNetworkingV1Api { return this.api.readIngressClass(param.name, param.pretty, options).toPromise(); } + /** + * read the specified Ingress + * @param param the request object + */ + public readNamespacedIngressWithHttpInfo(param: NetworkingV1ApiReadNamespacedIngressRequest, options?: Configuration): Promise> { + return this.api.readNamespacedIngressWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); + } + /** * read the specified Ingress * @param param the request object @@ -27148,6 +31442,14 @@ export class ObjectNetworkingV1Api { return this.api.readNamespacedIngress(param.name, param.namespace, param.pretty, options).toPromise(); } + /** + * read status of the specified Ingress + * @param param the request object + */ + public readNamespacedIngressStatusWithHttpInfo(param: NetworkingV1ApiReadNamespacedIngressStatusRequest, options?: Configuration): Promise> { + return this.api.readNamespacedIngressStatusWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); + } + /** * read status of the specified Ingress * @param param the request object @@ -27156,6 +31458,14 @@ export class ObjectNetworkingV1Api { return this.api.readNamespacedIngressStatus(param.name, param.namespace, param.pretty, options).toPromise(); } + /** + * read the specified NetworkPolicy + * @param param the request object + */ + public readNamespacedNetworkPolicyWithHttpInfo(param: NetworkingV1ApiReadNamespacedNetworkPolicyRequest, options?: Configuration): Promise> { + return this.api.readNamespacedNetworkPolicyWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); + } + /** * read the specified NetworkPolicy * @param param the request object @@ -27164,6 +31474,14 @@ export class ObjectNetworkingV1Api { return this.api.readNamespacedNetworkPolicy(param.name, param.namespace, param.pretty, options).toPromise(); } + /** + * replace the specified IngressClass + * @param param the request object + */ + public replaceIngressClassWithHttpInfo(param: NetworkingV1ApiReplaceIngressClassRequest, options?: Configuration): Promise> { + return this.api.replaceIngressClassWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * replace the specified IngressClass * @param param the request object @@ -27172,6 +31490,14 @@ export class ObjectNetworkingV1Api { return this.api.replaceIngressClass(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * replace the specified Ingress + * @param param the request object + */ + public replaceNamespacedIngressWithHttpInfo(param: NetworkingV1ApiReplaceNamespacedIngressRequest, options?: Configuration): Promise> { + return this.api.replaceNamespacedIngressWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * replace the specified Ingress * @param param the request object @@ -27180,6 +31506,14 @@ export class ObjectNetworkingV1Api { return this.api.replaceNamespacedIngress(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * replace status of the specified Ingress + * @param param the request object + */ + public replaceNamespacedIngressStatusWithHttpInfo(param: NetworkingV1ApiReplaceNamespacedIngressStatusRequest, options?: Configuration): Promise> { + return this.api.replaceNamespacedIngressStatusWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * replace status of the specified Ingress * @param param the request object @@ -27188,6 +31522,14 @@ export class ObjectNetworkingV1Api { return this.api.replaceNamespacedIngressStatus(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * replace the specified NetworkPolicy + * @param param the request object + */ + public replaceNamespacedNetworkPolicyWithHttpInfo(param: NetworkingV1ApiReplaceNamespacedNetworkPolicyRequest, options?: Configuration): Promise> { + return this.api.replaceNamespacedNetworkPolicyWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * replace the specified NetworkPolicy * @param param the request object @@ -27211,6 +31553,14 @@ export class ObjectNodeApi { this.api = new ObservableNodeApi(configuration, requestFactory, responseProcessor); } + /** + * get information of a group + * @param param the request object + */ + public getAPIGroupWithHttpInfo(param: NodeApiGetAPIGroupRequest = {}, options?: Configuration): Promise> { + return this.api.getAPIGroupWithHttpInfo( options).toPromise(); + } + /** * get information of a group * @param param the request object @@ -27537,6 +31887,14 @@ export class ObjectNodeV1Api { this.api = new ObservableNodeV1Api(configuration, requestFactory, responseProcessor); } + /** + * create a RuntimeClass + * @param param the request object + */ + public createRuntimeClassWithHttpInfo(param: NodeV1ApiCreateRuntimeClassRequest, options?: Configuration): Promise> { + return this.api.createRuntimeClassWithHttpInfo(param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * create a RuntimeClass * @param param the request object @@ -27545,6 +31903,14 @@ export class ObjectNodeV1Api { return this.api.createRuntimeClass(param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * delete collection of RuntimeClass + * @param param the request object + */ + public deleteCollectionRuntimeClassWithHttpInfo(param: NodeV1ApiDeleteCollectionRuntimeClassRequest = {}, options?: Configuration): Promise> { + return this.api.deleteCollectionRuntimeClassWithHttpInfo(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); + } + /** * delete collection of RuntimeClass * @param param the request object @@ -27553,6 +31919,14 @@ export class ObjectNodeV1Api { return this.api.deleteCollectionRuntimeClass(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); } + /** + * delete a RuntimeClass + * @param param the request object + */ + public deleteRuntimeClassWithHttpInfo(param: NodeV1ApiDeleteRuntimeClassRequest, options?: Configuration): Promise> { + return this.api.deleteRuntimeClassWithHttpInfo(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); + } + /** * delete a RuntimeClass * @param param the request object @@ -27561,6 +31935,14 @@ export class ObjectNodeV1Api { return this.api.deleteRuntimeClass(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } + /** + * get available resources + * @param param the request object + */ + public getAPIResourcesWithHttpInfo(param: NodeV1ApiGetAPIResourcesRequest = {}, options?: Configuration): Promise> { + return this.api.getAPIResourcesWithHttpInfo( options).toPromise(); + } + /** * get available resources * @param param the request object @@ -27569,6 +31951,14 @@ export class ObjectNodeV1Api { return this.api.getAPIResources( options).toPromise(); } + /** + * list or watch objects of kind RuntimeClass + * @param param the request object + */ + public listRuntimeClassWithHttpInfo(param: NodeV1ApiListRuntimeClassRequest = {}, options?: Configuration): Promise> { + return this.api.listRuntimeClassWithHttpInfo(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); + } + /** * list or watch objects of kind RuntimeClass * @param param the request object @@ -27577,6 +31967,14 @@ export class ObjectNodeV1Api { return this.api.listRuntimeClass(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } + /** + * partially update the specified RuntimeClass + * @param param the request object + */ + public patchRuntimeClassWithHttpInfo(param: NodeV1ApiPatchRuntimeClassRequest, options?: Configuration): Promise> { + return this.api.patchRuntimeClassWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); + } + /** * partially update the specified RuntimeClass * @param param the request object @@ -27585,6 +31983,14 @@ export class ObjectNodeV1Api { return this.api.patchRuntimeClass(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); } + /** + * read the specified RuntimeClass + * @param param the request object + */ + public readRuntimeClassWithHttpInfo(param: NodeV1ApiReadRuntimeClassRequest, options?: Configuration): Promise> { + return this.api.readRuntimeClassWithHttpInfo(param.name, param.pretty, options).toPromise(); + } + /** * read the specified RuntimeClass * @param param the request object @@ -27593,6 +31999,14 @@ export class ObjectNodeV1Api { return this.api.readRuntimeClass(param.name, param.pretty, options).toPromise(); } + /** + * replace the specified RuntimeClass + * @param param the request object + */ + public replaceRuntimeClassWithHttpInfo(param: NodeV1ApiReplaceRuntimeClassRequest, options?: Configuration): Promise> { + return this.api.replaceRuntimeClassWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * replace the specified RuntimeClass * @param param the request object @@ -27919,6 +32333,14 @@ export class ObjectNodeV1alpha1Api { this.api = new ObservableNodeV1alpha1Api(configuration, requestFactory, responseProcessor); } + /** + * create a RuntimeClass + * @param param the request object + */ + public createRuntimeClassWithHttpInfo(param: NodeV1alpha1ApiCreateRuntimeClassRequest, options?: Configuration): Promise> { + return this.api.createRuntimeClassWithHttpInfo(param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * create a RuntimeClass * @param param the request object @@ -27927,6 +32349,14 @@ export class ObjectNodeV1alpha1Api { return this.api.createRuntimeClass(param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * delete collection of RuntimeClass + * @param param the request object + */ + public deleteCollectionRuntimeClassWithHttpInfo(param: NodeV1alpha1ApiDeleteCollectionRuntimeClassRequest = {}, options?: Configuration): Promise> { + return this.api.deleteCollectionRuntimeClassWithHttpInfo(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); + } + /** * delete collection of RuntimeClass * @param param the request object @@ -27935,6 +32365,14 @@ export class ObjectNodeV1alpha1Api { return this.api.deleteCollectionRuntimeClass(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); } + /** + * delete a RuntimeClass + * @param param the request object + */ + public deleteRuntimeClassWithHttpInfo(param: NodeV1alpha1ApiDeleteRuntimeClassRequest, options?: Configuration): Promise> { + return this.api.deleteRuntimeClassWithHttpInfo(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); + } + /** * delete a RuntimeClass * @param param the request object @@ -27943,6 +32381,14 @@ export class ObjectNodeV1alpha1Api { return this.api.deleteRuntimeClass(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } + /** + * get available resources + * @param param the request object + */ + public getAPIResourcesWithHttpInfo(param: NodeV1alpha1ApiGetAPIResourcesRequest = {}, options?: Configuration): Promise> { + return this.api.getAPIResourcesWithHttpInfo( options).toPromise(); + } + /** * get available resources * @param param the request object @@ -27951,6 +32397,14 @@ export class ObjectNodeV1alpha1Api { return this.api.getAPIResources( options).toPromise(); } + /** + * list or watch objects of kind RuntimeClass + * @param param the request object + */ + public listRuntimeClassWithHttpInfo(param: NodeV1alpha1ApiListRuntimeClassRequest = {}, options?: Configuration): Promise> { + return this.api.listRuntimeClassWithHttpInfo(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); + } + /** * list or watch objects of kind RuntimeClass * @param param the request object @@ -27959,6 +32413,14 @@ export class ObjectNodeV1alpha1Api { return this.api.listRuntimeClass(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } + /** + * partially update the specified RuntimeClass + * @param param the request object + */ + public patchRuntimeClassWithHttpInfo(param: NodeV1alpha1ApiPatchRuntimeClassRequest, options?: Configuration): Promise> { + return this.api.patchRuntimeClassWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); + } + /** * partially update the specified RuntimeClass * @param param the request object @@ -27967,6 +32429,14 @@ export class ObjectNodeV1alpha1Api { return this.api.patchRuntimeClass(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); } + /** + * read the specified RuntimeClass + * @param param the request object + */ + public readRuntimeClassWithHttpInfo(param: NodeV1alpha1ApiReadRuntimeClassRequest, options?: Configuration): Promise> { + return this.api.readRuntimeClassWithHttpInfo(param.name, param.pretty, options).toPromise(); + } + /** * read the specified RuntimeClass * @param param the request object @@ -27975,6 +32445,14 @@ export class ObjectNodeV1alpha1Api { return this.api.readRuntimeClass(param.name, param.pretty, options).toPromise(); } + /** + * replace the specified RuntimeClass + * @param param the request object + */ + public replaceRuntimeClassWithHttpInfo(param: NodeV1alpha1ApiReplaceRuntimeClassRequest, options?: Configuration): Promise> { + return this.api.replaceRuntimeClassWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * replace the specified RuntimeClass * @param param the request object @@ -28301,6 +32779,14 @@ export class ObjectNodeV1beta1Api { this.api = new ObservableNodeV1beta1Api(configuration, requestFactory, responseProcessor); } + /** + * create a RuntimeClass + * @param param the request object + */ + public createRuntimeClassWithHttpInfo(param: NodeV1beta1ApiCreateRuntimeClassRequest, options?: Configuration): Promise> { + return this.api.createRuntimeClassWithHttpInfo(param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * create a RuntimeClass * @param param the request object @@ -28309,6 +32795,14 @@ export class ObjectNodeV1beta1Api { return this.api.createRuntimeClass(param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * delete collection of RuntimeClass + * @param param the request object + */ + public deleteCollectionRuntimeClassWithHttpInfo(param: NodeV1beta1ApiDeleteCollectionRuntimeClassRequest = {}, options?: Configuration): Promise> { + return this.api.deleteCollectionRuntimeClassWithHttpInfo(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); + } + /** * delete collection of RuntimeClass * @param param the request object @@ -28317,6 +32811,14 @@ export class ObjectNodeV1beta1Api { return this.api.deleteCollectionRuntimeClass(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); } + /** + * delete a RuntimeClass + * @param param the request object + */ + public deleteRuntimeClassWithHttpInfo(param: NodeV1beta1ApiDeleteRuntimeClassRequest, options?: Configuration): Promise> { + return this.api.deleteRuntimeClassWithHttpInfo(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); + } + /** * delete a RuntimeClass * @param param the request object @@ -28325,6 +32827,14 @@ export class ObjectNodeV1beta1Api { return this.api.deleteRuntimeClass(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } + /** + * get available resources + * @param param the request object + */ + public getAPIResourcesWithHttpInfo(param: NodeV1beta1ApiGetAPIResourcesRequest = {}, options?: Configuration): Promise> { + return this.api.getAPIResourcesWithHttpInfo( options).toPromise(); + } + /** * get available resources * @param param the request object @@ -28333,6 +32843,14 @@ export class ObjectNodeV1beta1Api { return this.api.getAPIResources( options).toPromise(); } + /** + * list or watch objects of kind RuntimeClass + * @param param the request object + */ + public listRuntimeClassWithHttpInfo(param: NodeV1beta1ApiListRuntimeClassRequest = {}, options?: Configuration): Promise> { + return this.api.listRuntimeClassWithHttpInfo(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); + } + /** * list or watch objects of kind RuntimeClass * @param param the request object @@ -28341,6 +32859,14 @@ export class ObjectNodeV1beta1Api { return this.api.listRuntimeClass(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } + /** + * partially update the specified RuntimeClass + * @param param the request object + */ + public patchRuntimeClassWithHttpInfo(param: NodeV1beta1ApiPatchRuntimeClassRequest, options?: Configuration): Promise> { + return this.api.patchRuntimeClassWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); + } + /** * partially update the specified RuntimeClass * @param param the request object @@ -28349,6 +32875,14 @@ export class ObjectNodeV1beta1Api { return this.api.patchRuntimeClass(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); } + /** + * read the specified RuntimeClass + * @param param the request object + */ + public readRuntimeClassWithHttpInfo(param: NodeV1beta1ApiReadRuntimeClassRequest, options?: Configuration): Promise> { + return this.api.readRuntimeClassWithHttpInfo(param.name, param.pretty, options).toPromise(); + } + /** * read the specified RuntimeClass * @param param the request object @@ -28357,6 +32891,14 @@ export class ObjectNodeV1beta1Api { return this.api.readRuntimeClass(param.name, param.pretty, options).toPromise(); } + /** + * replace the specified RuntimeClass + * @param param the request object + */ + public replaceRuntimeClassWithHttpInfo(param: NodeV1beta1ApiReplaceRuntimeClassRequest, options?: Configuration): Promise> { + return this.api.replaceRuntimeClassWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * replace the specified RuntimeClass * @param param the request object @@ -28380,6 +32922,14 @@ export class ObjectOpenidApi { this.api = new ObservableOpenidApi(configuration, requestFactory, responseProcessor); } + /** + * get service account issuer OpenID JSON Web Key Set (contains public token verification keys) + * @param param the request object + */ + public getServiceAccountIssuerOpenIDKeysetWithHttpInfo(param: OpenidApiGetServiceAccountIssuerOpenIDKeysetRequest = {}, options?: Configuration): Promise> { + return this.api.getServiceAccountIssuerOpenIDKeysetWithHttpInfo( options).toPromise(); + } + /** * get service account issuer OpenID JSON Web Key Set (contains public token verification keys) * @param param the request object @@ -28403,6 +32953,14 @@ export class ObjectPolicyApi { this.api = new ObservablePolicyApi(configuration, requestFactory, responseProcessor); } + /** + * get information of a group + * @param param the request object + */ + public getAPIGroupWithHttpInfo(param: PolicyApiGetAPIGroupRequest = {}, options?: Configuration): Promise> { + return this.api.getAPIGroupWithHttpInfo( options).toPromise(); + } + /** * get information of a group * @param param the request object @@ -28939,6 +33497,14 @@ export class ObjectPolicyV1Api { this.api = new ObservablePolicyV1Api(configuration, requestFactory, responseProcessor); } + /** + * create a PodDisruptionBudget + * @param param the request object + */ + public createNamespacedPodDisruptionBudgetWithHttpInfo(param: PolicyV1ApiCreateNamespacedPodDisruptionBudgetRequest, options?: Configuration): Promise> { + return this.api.createNamespacedPodDisruptionBudgetWithHttpInfo(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * create a PodDisruptionBudget * @param param the request object @@ -28947,6 +33513,14 @@ export class ObjectPolicyV1Api { return this.api.createNamespacedPodDisruptionBudget(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * delete collection of PodDisruptionBudget + * @param param the request object + */ + public deleteCollectionNamespacedPodDisruptionBudgetWithHttpInfo(param: PolicyV1ApiDeleteCollectionNamespacedPodDisruptionBudgetRequest, options?: Configuration): Promise> { + return this.api.deleteCollectionNamespacedPodDisruptionBudgetWithHttpInfo(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); + } + /** * delete collection of PodDisruptionBudget * @param param the request object @@ -28955,6 +33529,14 @@ export class ObjectPolicyV1Api { return this.api.deleteCollectionNamespacedPodDisruptionBudget(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); } + /** + * delete a PodDisruptionBudget + * @param param the request object + */ + public deleteNamespacedPodDisruptionBudgetWithHttpInfo(param: PolicyV1ApiDeleteNamespacedPodDisruptionBudgetRequest, options?: Configuration): Promise> { + return this.api.deleteNamespacedPodDisruptionBudgetWithHttpInfo(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); + } + /** * delete a PodDisruptionBudget * @param param the request object @@ -28963,6 +33545,14 @@ export class ObjectPolicyV1Api { return this.api.deleteNamespacedPodDisruptionBudget(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } + /** + * get available resources + * @param param the request object + */ + public getAPIResourcesWithHttpInfo(param: PolicyV1ApiGetAPIResourcesRequest = {}, options?: Configuration): Promise> { + return this.api.getAPIResourcesWithHttpInfo( options).toPromise(); + } + /** * get available resources * @param param the request object @@ -28971,6 +33561,14 @@ export class ObjectPolicyV1Api { return this.api.getAPIResources( options).toPromise(); } + /** + * list or watch objects of kind PodDisruptionBudget + * @param param the request object + */ + public listNamespacedPodDisruptionBudgetWithHttpInfo(param: PolicyV1ApiListNamespacedPodDisruptionBudgetRequest, options?: Configuration): Promise> { + return this.api.listNamespacedPodDisruptionBudgetWithHttpInfo(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); + } + /** * list or watch objects of kind PodDisruptionBudget * @param param the request object @@ -28979,6 +33577,14 @@ export class ObjectPolicyV1Api { return this.api.listNamespacedPodDisruptionBudget(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } + /** + * list or watch objects of kind PodDisruptionBudget + * @param param the request object + */ + public listPodDisruptionBudgetForAllNamespacesWithHttpInfo(param: PolicyV1ApiListPodDisruptionBudgetForAllNamespacesRequest = {}, options?: Configuration): Promise> { + return this.api.listPodDisruptionBudgetForAllNamespacesWithHttpInfo(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); + } + /** * list or watch objects of kind PodDisruptionBudget * @param param the request object @@ -28987,6 +33593,14 @@ export class ObjectPolicyV1Api { return this.api.listPodDisruptionBudgetForAllNamespaces(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } + /** + * partially update the specified PodDisruptionBudget + * @param param the request object + */ + public patchNamespacedPodDisruptionBudgetWithHttpInfo(param: PolicyV1ApiPatchNamespacedPodDisruptionBudgetRequest, options?: Configuration): Promise> { + return this.api.patchNamespacedPodDisruptionBudgetWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); + } + /** * partially update the specified PodDisruptionBudget * @param param the request object @@ -28995,6 +33609,14 @@ export class ObjectPolicyV1Api { return this.api.patchNamespacedPodDisruptionBudget(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); } + /** + * partially update status of the specified PodDisruptionBudget + * @param param the request object + */ + public patchNamespacedPodDisruptionBudgetStatusWithHttpInfo(param: PolicyV1ApiPatchNamespacedPodDisruptionBudgetStatusRequest, options?: Configuration): Promise> { + return this.api.patchNamespacedPodDisruptionBudgetStatusWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); + } + /** * partially update status of the specified PodDisruptionBudget * @param param the request object @@ -29003,6 +33625,14 @@ export class ObjectPolicyV1Api { return this.api.patchNamespacedPodDisruptionBudgetStatus(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); } + /** + * read the specified PodDisruptionBudget + * @param param the request object + */ + public readNamespacedPodDisruptionBudgetWithHttpInfo(param: PolicyV1ApiReadNamespacedPodDisruptionBudgetRequest, options?: Configuration): Promise> { + return this.api.readNamespacedPodDisruptionBudgetWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); + } + /** * read the specified PodDisruptionBudget * @param param the request object @@ -29011,6 +33641,14 @@ export class ObjectPolicyV1Api { return this.api.readNamespacedPodDisruptionBudget(param.name, param.namespace, param.pretty, options).toPromise(); } + /** + * read status of the specified PodDisruptionBudget + * @param param the request object + */ + public readNamespacedPodDisruptionBudgetStatusWithHttpInfo(param: PolicyV1ApiReadNamespacedPodDisruptionBudgetStatusRequest, options?: Configuration): Promise> { + return this.api.readNamespacedPodDisruptionBudgetStatusWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); + } + /** * read status of the specified PodDisruptionBudget * @param param the request object @@ -29019,6 +33657,14 @@ export class ObjectPolicyV1Api { return this.api.readNamespacedPodDisruptionBudgetStatus(param.name, param.namespace, param.pretty, options).toPromise(); } + /** + * replace the specified PodDisruptionBudget + * @param param the request object + */ + public replaceNamespacedPodDisruptionBudgetWithHttpInfo(param: PolicyV1ApiReplaceNamespacedPodDisruptionBudgetRequest, options?: Configuration): Promise> { + return this.api.replaceNamespacedPodDisruptionBudgetWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * replace the specified PodDisruptionBudget * @param param the request object @@ -29027,6 +33673,14 @@ export class ObjectPolicyV1Api { return this.api.replaceNamespacedPodDisruptionBudget(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * replace status of the specified PodDisruptionBudget + * @param param the request object + */ + public replaceNamespacedPodDisruptionBudgetStatusWithHttpInfo(param: PolicyV1ApiReplaceNamespacedPodDisruptionBudgetStatusRequest, options?: Configuration): Promise> { + return this.api.replaceNamespacedPodDisruptionBudgetStatusWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * replace status of the specified PodDisruptionBudget * @param param the request object @@ -29866,6 +34520,14 @@ export class ObjectPolicyV1beta1Api { this.api = new ObservablePolicyV1beta1Api(configuration, requestFactory, responseProcessor); } + /** + * create a PodDisruptionBudget + * @param param the request object + */ + public createNamespacedPodDisruptionBudgetWithHttpInfo(param: PolicyV1beta1ApiCreateNamespacedPodDisruptionBudgetRequest, options?: Configuration): Promise> { + return this.api.createNamespacedPodDisruptionBudgetWithHttpInfo(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * create a PodDisruptionBudget * @param param the request object @@ -29874,6 +34536,14 @@ export class ObjectPolicyV1beta1Api { return this.api.createNamespacedPodDisruptionBudget(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * create a PodSecurityPolicy + * @param param the request object + */ + public createPodSecurityPolicyWithHttpInfo(param: PolicyV1beta1ApiCreatePodSecurityPolicyRequest, options?: Configuration): Promise> { + return this.api.createPodSecurityPolicyWithHttpInfo(param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * create a PodSecurityPolicy * @param param the request object @@ -29882,6 +34552,14 @@ export class ObjectPolicyV1beta1Api { return this.api.createPodSecurityPolicy(param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * delete collection of PodDisruptionBudget + * @param param the request object + */ + public deleteCollectionNamespacedPodDisruptionBudgetWithHttpInfo(param: PolicyV1beta1ApiDeleteCollectionNamespacedPodDisruptionBudgetRequest, options?: Configuration): Promise> { + return this.api.deleteCollectionNamespacedPodDisruptionBudgetWithHttpInfo(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); + } + /** * delete collection of PodDisruptionBudget * @param param the request object @@ -29890,6 +34568,14 @@ export class ObjectPolicyV1beta1Api { return this.api.deleteCollectionNamespacedPodDisruptionBudget(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); } + /** + * delete collection of PodSecurityPolicy + * @param param the request object + */ + public deleteCollectionPodSecurityPolicyWithHttpInfo(param: PolicyV1beta1ApiDeleteCollectionPodSecurityPolicyRequest = {}, options?: Configuration): Promise> { + return this.api.deleteCollectionPodSecurityPolicyWithHttpInfo(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); + } + /** * delete collection of PodSecurityPolicy * @param param the request object @@ -29898,6 +34584,14 @@ export class ObjectPolicyV1beta1Api { return this.api.deleteCollectionPodSecurityPolicy(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); } + /** + * delete a PodDisruptionBudget + * @param param the request object + */ + public deleteNamespacedPodDisruptionBudgetWithHttpInfo(param: PolicyV1beta1ApiDeleteNamespacedPodDisruptionBudgetRequest, options?: Configuration): Promise> { + return this.api.deleteNamespacedPodDisruptionBudgetWithHttpInfo(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); + } + /** * delete a PodDisruptionBudget * @param param the request object @@ -29906,6 +34600,14 @@ export class ObjectPolicyV1beta1Api { return this.api.deleteNamespacedPodDisruptionBudget(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } + /** + * delete a PodSecurityPolicy + * @param param the request object + */ + public deletePodSecurityPolicyWithHttpInfo(param: PolicyV1beta1ApiDeletePodSecurityPolicyRequest, options?: Configuration): Promise> { + return this.api.deletePodSecurityPolicyWithHttpInfo(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); + } + /** * delete a PodSecurityPolicy * @param param the request object @@ -29914,6 +34616,14 @@ export class ObjectPolicyV1beta1Api { return this.api.deletePodSecurityPolicy(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } + /** + * get available resources + * @param param the request object + */ + public getAPIResourcesWithHttpInfo(param: PolicyV1beta1ApiGetAPIResourcesRequest = {}, options?: Configuration): Promise> { + return this.api.getAPIResourcesWithHttpInfo( options).toPromise(); + } + /** * get available resources * @param param the request object @@ -29922,6 +34632,14 @@ export class ObjectPolicyV1beta1Api { return this.api.getAPIResources( options).toPromise(); } + /** + * list or watch objects of kind PodDisruptionBudget + * @param param the request object + */ + public listNamespacedPodDisruptionBudgetWithHttpInfo(param: PolicyV1beta1ApiListNamespacedPodDisruptionBudgetRequest, options?: Configuration): Promise> { + return this.api.listNamespacedPodDisruptionBudgetWithHttpInfo(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); + } + /** * list or watch objects of kind PodDisruptionBudget * @param param the request object @@ -29930,6 +34648,14 @@ export class ObjectPolicyV1beta1Api { return this.api.listNamespacedPodDisruptionBudget(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } + /** + * list or watch objects of kind PodDisruptionBudget + * @param param the request object + */ + public listPodDisruptionBudgetForAllNamespacesWithHttpInfo(param: PolicyV1beta1ApiListPodDisruptionBudgetForAllNamespacesRequest = {}, options?: Configuration): Promise> { + return this.api.listPodDisruptionBudgetForAllNamespacesWithHttpInfo(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); + } + /** * list or watch objects of kind PodDisruptionBudget * @param param the request object @@ -29938,6 +34664,14 @@ export class ObjectPolicyV1beta1Api { return this.api.listPodDisruptionBudgetForAllNamespaces(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } + /** + * list or watch objects of kind PodSecurityPolicy + * @param param the request object + */ + public listPodSecurityPolicyWithHttpInfo(param: PolicyV1beta1ApiListPodSecurityPolicyRequest = {}, options?: Configuration): Promise> { + return this.api.listPodSecurityPolicyWithHttpInfo(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); + } + /** * list or watch objects of kind PodSecurityPolicy * @param param the request object @@ -29946,6 +34680,14 @@ export class ObjectPolicyV1beta1Api { return this.api.listPodSecurityPolicy(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } + /** + * partially update the specified PodDisruptionBudget + * @param param the request object + */ + public patchNamespacedPodDisruptionBudgetWithHttpInfo(param: PolicyV1beta1ApiPatchNamespacedPodDisruptionBudgetRequest, options?: Configuration): Promise> { + return this.api.patchNamespacedPodDisruptionBudgetWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); + } + /** * partially update the specified PodDisruptionBudget * @param param the request object @@ -29954,6 +34696,14 @@ export class ObjectPolicyV1beta1Api { return this.api.patchNamespacedPodDisruptionBudget(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); } + /** + * partially update status of the specified PodDisruptionBudget + * @param param the request object + */ + public patchNamespacedPodDisruptionBudgetStatusWithHttpInfo(param: PolicyV1beta1ApiPatchNamespacedPodDisruptionBudgetStatusRequest, options?: Configuration): Promise> { + return this.api.patchNamespacedPodDisruptionBudgetStatusWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); + } + /** * partially update status of the specified PodDisruptionBudget * @param param the request object @@ -29962,6 +34712,14 @@ export class ObjectPolicyV1beta1Api { return this.api.patchNamespacedPodDisruptionBudgetStatus(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); } + /** + * partially update the specified PodSecurityPolicy + * @param param the request object + */ + public patchPodSecurityPolicyWithHttpInfo(param: PolicyV1beta1ApiPatchPodSecurityPolicyRequest, options?: Configuration): Promise> { + return this.api.patchPodSecurityPolicyWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); + } + /** * partially update the specified PodSecurityPolicy * @param param the request object @@ -29970,6 +34728,14 @@ export class ObjectPolicyV1beta1Api { return this.api.patchPodSecurityPolicy(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); } + /** + * read the specified PodDisruptionBudget + * @param param the request object + */ + public readNamespacedPodDisruptionBudgetWithHttpInfo(param: PolicyV1beta1ApiReadNamespacedPodDisruptionBudgetRequest, options?: Configuration): Promise> { + return this.api.readNamespacedPodDisruptionBudgetWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); + } + /** * read the specified PodDisruptionBudget * @param param the request object @@ -29978,6 +34744,14 @@ export class ObjectPolicyV1beta1Api { return this.api.readNamespacedPodDisruptionBudget(param.name, param.namespace, param.pretty, options).toPromise(); } + /** + * read status of the specified PodDisruptionBudget + * @param param the request object + */ + public readNamespacedPodDisruptionBudgetStatusWithHttpInfo(param: PolicyV1beta1ApiReadNamespacedPodDisruptionBudgetStatusRequest, options?: Configuration): Promise> { + return this.api.readNamespacedPodDisruptionBudgetStatusWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); + } + /** * read status of the specified PodDisruptionBudget * @param param the request object @@ -29986,6 +34760,14 @@ export class ObjectPolicyV1beta1Api { return this.api.readNamespacedPodDisruptionBudgetStatus(param.name, param.namespace, param.pretty, options).toPromise(); } + /** + * read the specified PodSecurityPolicy + * @param param the request object + */ + public readPodSecurityPolicyWithHttpInfo(param: PolicyV1beta1ApiReadPodSecurityPolicyRequest, options?: Configuration): Promise> { + return this.api.readPodSecurityPolicyWithHttpInfo(param.name, param.pretty, options).toPromise(); + } + /** * read the specified PodSecurityPolicy * @param param the request object @@ -29994,6 +34776,14 @@ export class ObjectPolicyV1beta1Api { return this.api.readPodSecurityPolicy(param.name, param.pretty, options).toPromise(); } + /** + * replace the specified PodDisruptionBudget + * @param param the request object + */ + public replaceNamespacedPodDisruptionBudgetWithHttpInfo(param: PolicyV1beta1ApiReplaceNamespacedPodDisruptionBudgetRequest, options?: Configuration): Promise> { + return this.api.replaceNamespacedPodDisruptionBudgetWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * replace the specified PodDisruptionBudget * @param param the request object @@ -30002,6 +34792,14 @@ export class ObjectPolicyV1beta1Api { return this.api.replaceNamespacedPodDisruptionBudget(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * replace status of the specified PodDisruptionBudget + * @param param the request object + */ + public replaceNamespacedPodDisruptionBudgetStatusWithHttpInfo(param: PolicyV1beta1ApiReplaceNamespacedPodDisruptionBudgetStatusRequest, options?: Configuration): Promise> { + return this.api.replaceNamespacedPodDisruptionBudgetStatusWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * replace status of the specified PodDisruptionBudget * @param param the request object @@ -30010,6 +34808,14 @@ export class ObjectPolicyV1beta1Api { return this.api.replaceNamespacedPodDisruptionBudgetStatus(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * replace the specified PodSecurityPolicy + * @param param the request object + */ + public replacePodSecurityPolicyWithHttpInfo(param: PolicyV1beta1ApiReplacePodSecurityPolicyRequest, options?: Configuration): Promise> { + return this.api.replacePodSecurityPolicyWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * replace the specified PodSecurityPolicy * @param param the request object @@ -30033,6 +34839,14 @@ export class ObjectRbacAuthorizationApi { this.api = new ObservableRbacAuthorizationApi(configuration, requestFactory, responseProcessor); } + /** + * get information of a group + * @param param the request object + */ + public getAPIGroupWithHttpInfo(param: RbacAuthorizationApiGetAPIGroupRequest = {}, options?: Configuration): Promise> { + return this.api.getAPIGroupWithHttpInfo( options).toPromise(); + } + /** * get information of a group * @param param the request object @@ -31478,6 +36292,14 @@ export class ObjectRbacAuthorizationV1Api { this.api = new ObservableRbacAuthorizationV1Api(configuration, requestFactory, responseProcessor); } + /** + * create a ClusterRole + * @param param the request object + */ + public createClusterRoleWithHttpInfo(param: RbacAuthorizationV1ApiCreateClusterRoleRequest, options?: Configuration): Promise> { + return this.api.createClusterRoleWithHttpInfo(param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * create a ClusterRole * @param param the request object @@ -31486,6 +36308,14 @@ export class ObjectRbacAuthorizationV1Api { return this.api.createClusterRole(param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * create a ClusterRoleBinding + * @param param the request object + */ + public createClusterRoleBindingWithHttpInfo(param: RbacAuthorizationV1ApiCreateClusterRoleBindingRequest, options?: Configuration): Promise> { + return this.api.createClusterRoleBindingWithHttpInfo(param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * create a ClusterRoleBinding * @param param the request object @@ -31494,6 +36324,14 @@ export class ObjectRbacAuthorizationV1Api { return this.api.createClusterRoleBinding(param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * create a Role + * @param param the request object + */ + public createNamespacedRoleWithHttpInfo(param: RbacAuthorizationV1ApiCreateNamespacedRoleRequest, options?: Configuration): Promise> { + return this.api.createNamespacedRoleWithHttpInfo(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * create a Role * @param param the request object @@ -31502,6 +36340,14 @@ export class ObjectRbacAuthorizationV1Api { return this.api.createNamespacedRole(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * create a RoleBinding + * @param param the request object + */ + public createNamespacedRoleBindingWithHttpInfo(param: RbacAuthorizationV1ApiCreateNamespacedRoleBindingRequest, options?: Configuration): Promise> { + return this.api.createNamespacedRoleBindingWithHttpInfo(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * create a RoleBinding * @param param the request object @@ -31510,6 +36356,14 @@ export class ObjectRbacAuthorizationV1Api { return this.api.createNamespacedRoleBinding(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * delete a ClusterRole + * @param param the request object + */ + public deleteClusterRoleWithHttpInfo(param: RbacAuthorizationV1ApiDeleteClusterRoleRequest, options?: Configuration): Promise> { + return this.api.deleteClusterRoleWithHttpInfo(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); + } + /** * delete a ClusterRole * @param param the request object @@ -31518,6 +36372,14 @@ export class ObjectRbacAuthorizationV1Api { return this.api.deleteClusterRole(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } + /** + * delete a ClusterRoleBinding + * @param param the request object + */ + public deleteClusterRoleBindingWithHttpInfo(param: RbacAuthorizationV1ApiDeleteClusterRoleBindingRequest, options?: Configuration): Promise> { + return this.api.deleteClusterRoleBindingWithHttpInfo(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); + } + /** * delete a ClusterRoleBinding * @param param the request object @@ -31526,6 +36388,14 @@ export class ObjectRbacAuthorizationV1Api { return this.api.deleteClusterRoleBinding(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } + /** + * delete collection of ClusterRole + * @param param the request object + */ + public deleteCollectionClusterRoleWithHttpInfo(param: RbacAuthorizationV1ApiDeleteCollectionClusterRoleRequest = {}, options?: Configuration): Promise> { + return this.api.deleteCollectionClusterRoleWithHttpInfo(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); + } + /** * delete collection of ClusterRole * @param param the request object @@ -31534,6 +36404,14 @@ export class ObjectRbacAuthorizationV1Api { return this.api.deleteCollectionClusterRole(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); } + /** + * delete collection of ClusterRoleBinding + * @param param the request object + */ + public deleteCollectionClusterRoleBindingWithHttpInfo(param: RbacAuthorizationV1ApiDeleteCollectionClusterRoleBindingRequest = {}, options?: Configuration): Promise> { + return this.api.deleteCollectionClusterRoleBindingWithHttpInfo(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); + } + /** * delete collection of ClusterRoleBinding * @param param the request object @@ -31542,6 +36420,14 @@ export class ObjectRbacAuthorizationV1Api { return this.api.deleteCollectionClusterRoleBinding(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); } + /** + * delete collection of Role + * @param param the request object + */ + public deleteCollectionNamespacedRoleWithHttpInfo(param: RbacAuthorizationV1ApiDeleteCollectionNamespacedRoleRequest, options?: Configuration): Promise> { + return this.api.deleteCollectionNamespacedRoleWithHttpInfo(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); + } + /** * delete collection of Role * @param param the request object @@ -31550,6 +36436,14 @@ export class ObjectRbacAuthorizationV1Api { return this.api.deleteCollectionNamespacedRole(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); } + /** + * delete collection of RoleBinding + * @param param the request object + */ + public deleteCollectionNamespacedRoleBindingWithHttpInfo(param: RbacAuthorizationV1ApiDeleteCollectionNamespacedRoleBindingRequest, options?: Configuration): Promise> { + return this.api.deleteCollectionNamespacedRoleBindingWithHttpInfo(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); + } + /** * delete collection of RoleBinding * @param param the request object @@ -31558,6 +36452,14 @@ export class ObjectRbacAuthorizationV1Api { return this.api.deleteCollectionNamespacedRoleBinding(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); } + /** + * delete a Role + * @param param the request object + */ + public deleteNamespacedRoleWithHttpInfo(param: RbacAuthorizationV1ApiDeleteNamespacedRoleRequest, options?: Configuration): Promise> { + return this.api.deleteNamespacedRoleWithHttpInfo(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); + } + /** * delete a Role * @param param the request object @@ -31566,6 +36468,14 @@ export class ObjectRbacAuthorizationV1Api { return this.api.deleteNamespacedRole(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } + /** + * delete a RoleBinding + * @param param the request object + */ + public deleteNamespacedRoleBindingWithHttpInfo(param: RbacAuthorizationV1ApiDeleteNamespacedRoleBindingRequest, options?: Configuration): Promise> { + return this.api.deleteNamespacedRoleBindingWithHttpInfo(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); + } + /** * delete a RoleBinding * @param param the request object @@ -31574,6 +36484,14 @@ export class ObjectRbacAuthorizationV1Api { return this.api.deleteNamespacedRoleBinding(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } + /** + * get available resources + * @param param the request object + */ + public getAPIResourcesWithHttpInfo(param: RbacAuthorizationV1ApiGetAPIResourcesRequest = {}, options?: Configuration): Promise> { + return this.api.getAPIResourcesWithHttpInfo( options).toPromise(); + } + /** * get available resources * @param param the request object @@ -31582,6 +36500,14 @@ export class ObjectRbacAuthorizationV1Api { return this.api.getAPIResources( options).toPromise(); } + /** + * list or watch objects of kind ClusterRole + * @param param the request object + */ + public listClusterRoleWithHttpInfo(param: RbacAuthorizationV1ApiListClusterRoleRequest = {}, options?: Configuration): Promise> { + return this.api.listClusterRoleWithHttpInfo(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); + } + /** * list or watch objects of kind ClusterRole * @param param the request object @@ -31590,6 +36516,14 @@ export class ObjectRbacAuthorizationV1Api { return this.api.listClusterRole(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } + /** + * list or watch objects of kind ClusterRoleBinding + * @param param the request object + */ + public listClusterRoleBindingWithHttpInfo(param: RbacAuthorizationV1ApiListClusterRoleBindingRequest = {}, options?: Configuration): Promise> { + return this.api.listClusterRoleBindingWithHttpInfo(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); + } + /** * list or watch objects of kind ClusterRoleBinding * @param param the request object @@ -31598,6 +36532,14 @@ export class ObjectRbacAuthorizationV1Api { return this.api.listClusterRoleBinding(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } + /** + * list or watch objects of kind Role + * @param param the request object + */ + public listNamespacedRoleWithHttpInfo(param: RbacAuthorizationV1ApiListNamespacedRoleRequest, options?: Configuration): Promise> { + return this.api.listNamespacedRoleWithHttpInfo(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); + } + /** * list or watch objects of kind Role * @param param the request object @@ -31606,6 +36548,14 @@ export class ObjectRbacAuthorizationV1Api { return this.api.listNamespacedRole(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } + /** + * list or watch objects of kind RoleBinding + * @param param the request object + */ + public listNamespacedRoleBindingWithHttpInfo(param: RbacAuthorizationV1ApiListNamespacedRoleBindingRequest, options?: Configuration): Promise> { + return this.api.listNamespacedRoleBindingWithHttpInfo(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); + } + /** * list or watch objects of kind RoleBinding * @param param the request object @@ -31614,6 +36564,14 @@ export class ObjectRbacAuthorizationV1Api { return this.api.listNamespacedRoleBinding(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } + /** + * list or watch objects of kind RoleBinding + * @param param the request object + */ + public listRoleBindingForAllNamespacesWithHttpInfo(param: RbacAuthorizationV1ApiListRoleBindingForAllNamespacesRequest = {}, options?: Configuration): Promise> { + return this.api.listRoleBindingForAllNamespacesWithHttpInfo(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); + } + /** * list or watch objects of kind RoleBinding * @param param the request object @@ -31622,6 +36580,14 @@ export class ObjectRbacAuthorizationV1Api { return this.api.listRoleBindingForAllNamespaces(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } + /** + * list or watch objects of kind Role + * @param param the request object + */ + public listRoleForAllNamespacesWithHttpInfo(param: RbacAuthorizationV1ApiListRoleForAllNamespacesRequest = {}, options?: Configuration): Promise> { + return this.api.listRoleForAllNamespacesWithHttpInfo(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); + } + /** * list or watch objects of kind Role * @param param the request object @@ -31630,6 +36596,14 @@ export class ObjectRbacAuthorizationV1Api { return this.api.listRoleForAllNamespaces(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } + /** + * partially update the specified ClusterRole + * @param param the request object + */ + public patchClusterRoleWithHttpInfo(param: RbacAuthorizationV1ApiPatchClusterRoleRequest, options?: Configuration): Promise> { + return this.api.patchClusterRoleWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); + } + /** * partially update the specified ClusterRole * @param param the request object @@ -31638,6 +36612,14 @@ export class ObjectRbacAuthorizationV1Api { return this.api.patchClusterRole(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); } + /** + * partially update the specified ClusterRoleBinding + * @param param the request object + */ + public patchClusterRoleBindingWithHttpInfo(param: RbacAuthorizationV1ApiPatchClusterRoleBindingRequest, options?: Configuration): Promise> { + return this.api.patchClusterRoleBindingWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); + } + /** * partially update the specified ClusterRoleBinding * @param param the request object @@ -31646,6 +36628,14 @@ export class ObjectRbacAuthorizationV1Api { return this.api.patchClusterRoleBinding(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); } + /** + * partially update the specified Role + * @param param the request object + */ + public patchNamespacedRoleWithHttpInfo(param: RbacAuthorizationV1ApiPatchNamespacedRoleRequest, options?: Configuration): Promise> { + return this.api.patchNamespacedRoleWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); + } + /** * partially update the specified Role * @param param the request object @@ -31654,6 +36644,14 @@ export class ObjectRbacAuthorizationV1Api { return this.api.patchNamespacedRole(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); } + /** + * partially update the specified RoleBinding + * @param param the request object + */ + public patchNamespacedRoleBindingWithHttpInfo(param: RbacAuthorizationV1ApiPatchNamespacedRoleBindingRequest, options?: Configuration): Promise> { + return this.api.patchNamespacedRoleBindingWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); + } + /** * partially update the specified RoleBinding * @param param the request object @@ -31662,6 +36660,14 @@ export class ObjectRbacAuthorizationV1Api { return this.api.patchNamespacedRoleBinding(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); } + /** + * read the specified ClusterRole + * @param param the request object + */ + public readClusterRoleWithHttpInfo(param: RbacAuthorizationV1ApiReadClusterRoleRequest, options?: Configuration): Promise> { + return this.api.readClusterRoleWithHttpInfo(param.name, param.pretty, options).toPromise(); + } + /** * read the specified ClusterRole * @param param the request object @@ -31670,6 +36676,14 @@ export class ObjectRbacAuthorizationV1Api { return this.api.readClusterRole(param.name, param.pretty, options).toPromise(); } + /** + * read the specified ClusterRoleBinding + * @param param the request object + */ + public readClusterRoleBindingWithHttpInfo(param: RbacAuthorizationV1ApiReadClusterRoleBindingRequest, options?: Configuration): Promise> { + return this.api.readClusterRoleBindingWithHttpInfo(param.name, param.pretty, options).toPromise(); + } + /** * read the specified ClusterRoleBinding * @param param the request object @@ -31678,6 +36692,14 @@ export class ObjectRbacAuthorizationV1Api { return this.api.readClusterRoleBinding(param.name, param.pretty, options).toPromise(); } + /** + * read the specified Role + * @param param the request object + */ + public readNamespacedRoleWithHttpInfo(param: RbacAuthorizationV1ApiReadNamespacedRoleRequest, options?: Configuration): Promise> { + return this.api.readNamespacedRoleWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); + } + /** * read the specified Role * @param param the request object @@ -31686,6 +36708,14 @@ export class ObjectRbacAuthorizationV1Api { return this.api.readNamespacedRole(param.name, param.namespace, param.pretty, options).toPromise(); } + /** + * read the specified RoleBinding + * @param param the request object + */ + public readNamespacedRoleBindingWithHttpInfo(param: RbacAuthorizationV1ApiReadNamespacedRoleBindingRequest, options?: Configuration): Promise> { + return this.api.readNamespacedRoleBindingWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); + } + /** * read the specified RoleBinding * @param param the request object @@ -31694,6 +36724,14 @@ export class ObjectRbacAuthorizationV1Api { return this.api.readNamespacedRoleBinding(param.name, param.namespace, param.pretty, options).toPromise(); } + /** + * replace the specified ClusterRole + * @param param the request object + */ + public replaceClusterRoleWithHttpInfo(param: RbacAuthorizationV1ApiReplaceClusterRoleRequest, options?: Configuration): Promise> { + return this.api.replaceClusterRoleWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * replace the specified ClusterRole * @param param the request object @@ -31702,6 +36740,14 @@ export class ObjectRbacAuthorizationV1Api { return this.api.replaceClusterRole(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * replace the specified ClusterRoleBinding + * @param param the request object + */ + public replaceClusterRoleBindingWithHttpInfo(param: RbacAuthorizationV1ApiReplaceClusterRoleBindingRequest, options?: Configuration): Promise> { + return this.api.replaceClusterRoleBindingWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * replace the specified ClusterRoleBinding * @param param the request object @@ -31710,6 +36756,14 @@ export class ObjectRbacAuthorizationV1Api { return this.api.replaceClusterRoleBinding(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * replace the specified Role + * @param param the request object + */ + public replaceNamespacedRoleWithHttpInfo(param: RbacAuthorizationV1ApiReplaceNamespacedRoleRequest, options?: Configuration): Promise> { + return this.api.replaceNamespacedRoleWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * replace the specified Role * @param param the request object @@ -31718,6 +36772,14 @@ export class ObjectRbacAuthorizationV1Api { return this.api.replaceNamespacedRole(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * replace the specified RoleBinding + * @param param the request object + */ + public replaceNamespacedRoleBindingWithHttpInfo(param: RbacAuthorizationV1ApiReplaceNamespacedRoleBindingRequest, options?: Configuration): Promise> { + return this.api.replaceNamespacedRoleBindingWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * replace the specified RoleBinding * @param param the request object @@ -33163,6 +38225,14 @@ export class ObjectRbacAuthorizationV1alpha1Api { this.api = new ObservableRbacAuthorizationV1alpha1Api(configuration, requestFactory, responseProcessor); } + /** + * create a ClusterRole + * @param param the request object + */ + public createClusterRoleWithHttpInfo(param: RbacAuthorizationV1alpha1ApiCreateClusterRoleRequest, options?: Configuration): Promise> { + return this.api.createClusterRoleWithHttpInfo(param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * create a ClusterRole * @param param the request object @@ -33171,6 +38241,14 @@ export class ObjectRbacAuthorizationV1alpha1Api { return this.api.createClusterRole(param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * create a ClusterRoleBinding + * @param param the request object + */ + public createClusterRoleBindingWithHttpInfo(param: RbacAuthorizationV1alpha1ApiCreateClusterRoleBindingRequest, options?: Configuration): Promise> { + return this.api.createClusterRoleBindingWithHttpInfo(param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * create a ClusterRoleBinding * @param param the request object @@ -33179,6 +38257,14 @@ export class ObjectRbacAuthorizationV1alpha1Api { return this.api.createClusterRoleBinding(param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * create a Role + * @param param the request object + */ + public createNamespacedRoleWithHttpInfo(param: RbacAuthorizationV1alpha1ApiCreateNamespacedRoleRequest, options?: Configuration): Promise> { + return this.api.createNamespacedRoleWithHttpInfo(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * create a Role * @param param the request object @@ -33187,6 +38273,14 @@ export class ObjectRbacAuthorizationV1alpha1Api { return this.api.createNamespacedRole(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * create a RoleBinding + * @param param the request object + */ + public createNamespacedRoleBindingWithHttpInfo(param: RbacAuthorizationV1alpha1ApiCreateNamespacedRoleBindingRequest, options?: Configuration): Promise> { + return this.api.createNamespacedRoleBindingWithHttpInfo(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * create a RoleBinding * @param param the request object @@ -33195,6 +38289,14 @@ export class ObjectRbacAuthorizationV1alpha1Api { return this.api.createNamespacedRoleBinding(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * delete a ClusterRole + * @param param the request object + */ + public deleteClusterRoleWithHttpInfo(param: RbacAuthorizationV1alpha1ApiDeleteClusterRoleRequest, options?: Configuration): Promise> { + return this.api.deleteClusterRoleWithHttpInfo(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); + } + /** * delete a ClusterRole * @param param the request object @@ -33203,6 +38305,14 @@ export class ObjectRbacAuthorizationV1alpha1Api { return this.api.deleteClusterRole(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } + /** + * delete a ClusterRoleBinding + * @param param the request object + */ + public deleteClusterRoleBindingWithHttpInfo(param: RbacAuthorizationV1alpha1ApiDeleteClusterRoleBindingRequest, options?: Configuration): Promise> { + return this.api.deleteClusterRoleBindingWithHttpInfo(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); + } + /** * delete a ClusterRoleBinding * @param param the request object @@ -33211,6 +38321,14 @@ export class ObjectRbacAuthorizationV1alpha1Api { return this.api.deleteClusterRoleBinding(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } + /** + * delete collection of ClusterRole + * @param param the request object + */ + public deleteCollectionClusterRoleWithHttpInfo(param: RbacAuthorizationV1alpha1ApiDeleteCollectionClusterRoleRequest = {}, options?: Configuration): Promise> { + return this.api.deleteCollectionClusterRoleWithHttpInfo(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); + } + /** * delete collection of ClusterRole * @param param the request object @@ -33219,6 +38337,14 @@ export class ObjectRbacAuthorizationV1alpha1Api { return this.api.deleteCollectionClusterRole(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); } + /** + * delete collection of ClusterRoleBinding + * @param param the request object + */ + public deleteCollectionClusterRoleBindingWithHttpInfo(param: RbacAuthorizationV1alpha1ApiDeleteCollectionClusterRoleBindingRequest = {}, options?: Configuration): Promise> { + return this.api.deleteCollectionClusterRoleBindingWithHttpInfo(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); + } + /** * delete collection of ClusterRoleBinding * @param param the request object @@ -33227,6 +38353,14 @@ export class ObjectRbacAuthorizationV1alpha1Api { return this.api.deleteCollectionClusterRoleBinding(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); } + /** + * delete collection of Role + * @param param the request object + */ + public deleteCollectionNamespacedRoleWithHttpInfo(param: RbacAuthorizationV1alpha1ApiDeleteCollectionNamespacedRoleRequest, options?: Configuration): Promise> { + return this.api.deleteCollectionNamespacedRoleWithHttpInfo(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); + } + /** * delete collection of Role * @param param the request object @@ -33235,6 +38369,14 @@ export class ObjectRbacAuthorizationV1alpha1Api { return this.api.deleteCollectionNamespacedRole(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); } + /** + * delete collection of RoleBinding + * @param param the request object + */ + public deleteCollectionNamespacedRoleBindingWithHttpInfo(param: RbacAuthorizationV1alpha1ApiDeleteCollectionNamespacedRoleBindingRequest, options?: Configuration): Promise> { + return this.api.deleteCollectionNamespacedRoleBindingWithHttpInfo(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); + } + /** * delete collection of RoleBinding * @param param the request object @@ -33243,6 +38385,14 @@ export class ObjectRbacAuthorizationV1alpha1Api { return this.api.deleteCollectionNamespacedRoleBinding(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); } + /** + * delete a Role + * @param param the request object + */ + public deleteNamespacedRoleWithHttpInfo(param: RbacAuthorizationV1alpha1ApiDeleteNamespacedRoleRequest, options?: Configuration): Promise> { + return this.api.deleteNamespacedRoleWithHttpInfo(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); + } + /** * delete a Role * @param param the request object @@ -33251,6 +38401,14 @@ export class ObjectRbacAuthorizationV1alpha1Api { return this.api.deleteNamespacedRole(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } + /** + * delete a RoleBinding + * @param param the request object + */ + public deleteNamespacedRoleBindingWithHttpInfo(param: RbacAuthorizationV1alpha1ApiDeleteNamespacedRoleBindingRequest, options?: Configuration): Promise> { + return this.api.deleteNamespacedRoleBindingWithHttpInfo(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); + } + /** * delete a RoleBinding * @param param the request object @@ -33259,6 +38417,14 @@ export class ObjectRbacAuthorizationV1alpha1Api { return this.api.deleteNamespacedRoleBinding(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } + /** + * get available resources + * @param param the request object + */ + public getAPIResourcesWithHttpInfo(param: RbacAuthorizationV1alpha1ApiGetAPIResourcesRequest = {}, options?: Configuration): Promise> { + return this.api.getAPIResourcesWithHttpInfo( options).toPromise(); + } + /** * get available resources * @param param the request object @@ -33267,6 +38433,14 @@ export class ObjectRbacAuthorizationV1alpha1Api { return this.api.getAPIResources( options).toPromise(); } + /** + * list or watch objects of kind ClusterRole + * @param param the request object + */ + public listClusterRoleWithHttpInfo(param: RbacAuthorizationV1alpha1ApiListClusterRoleRequest = {}, options?: Configuration): Promise> { + return this.api.listClusterRoleWithHttpInfo(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); + } + /** * list or watch objects of kind ClusterRole * @param param the request object @@ -33275,6 +38449,14 @@ export class ObjectRbacAuthorizationV1alpha1Api { return this.api.listClusterRole(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } + /** + * list or watch objects of kind ClusterRoleBinding + * @param param the request object + */ + public listClusterRoleBindingWithHttpInfo(param: RbacAuthorizationV1alpha1ApiListClusterRoleBindingRequest = {}, options?: Configuration): Promise> { + return this.api.listClusterRoleBindingWithHttpInfo(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); + } + /** * list or watch objects of kind ClusterRoleBinding * @param param the request object @@ -33283,6 +38465,14 @@ export class ObjectRbacAuthorizationV1alpha1Api { return this.api.listClusterRoleBinding(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } + /** + * list or watch objects of kind Role + * @param param the request object + */ + public listNamespacedRoleWithHttpInfo(param: RbacAuthorizationV1alpha1ApiListNamespacedRoleRequest, options?: Configuration): Promise> { + return this.api.listNamespacedRoleWithHttpInfo(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); + } + /** * list or watch objects of kind Role * @param param the request object @@ -33291,6 +38481,14 @@ export class ObjectRbacAuthorizationV1alpha1Api { return this.api.listNamespacedRole(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } + /** + * list or watch objects of kind RoleBinding + * @param param the request object + */ + public listNamespacedRoleBindingWithHttpInfo(param: RbacAuthorizationV1alpha1ApiListNamespacedRoleBindingRequest, options?: Configuration): Promise> { + return this.api.listNamespacedRoleBindingWithHttpInfo(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); + } + /** * list or watch objects of kind RoleBinding * @param param the request object @@ -33299,6 +38497,14 @@ export class ObjectRbacAuthorizationV1alpha1Api { return this.api.listNamespacedRoleBinding(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } + /** + * list or watch objects of kind RoleBinding + * @param param the request object + */ + public listRoleBindingForAllNamespacesWithHttpInfo(param: RbacAuthorizationV1alpha1ApiListRoleBindingForAllNamespacesRequest = {}, options?: Configuration): Promise> { + return this.api.listRoleBindingForAllNamespacesWithHttpInfo(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); + } + /** * list or watch objects of kind RoleBinding * @param param the request object @@ -33307,6 +38513,14 @@ export class ObjectRbacAuthorizationV1alpha1Api { return this.api.listRoleBindingForAllNamespaces(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } + /** + * list or watch objects of kind Role + * @param param the request object + */ + public listRoleForAllNamespacesWithHttpInfo(param: RbacAuthorizationV1alpha1ApiListRoleForAllNamespacesRequest = {}, options?: Configuration): Promise> { + return this.api.listRoleForAllNamespacesWithHttpInfo(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); + } + /** * list or watch objects of kind Role * @param param the request object @@ -33315,6 +38529,14 @@ export class ObjectRbacAuthorizationV1alpha1Api { return this.api.listRoleForAllNamespaces(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } + /** + * partially update the specified ClusterRole + * @param param the request object + */ + public patchClusterRoleWithHttpInfo(param: RbacAuthorizationV1alpha1ApiPatchClusterRoleRequest, options?: Configuration): Promise> { + return this.api.patchClusterRoleWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); + } + /** * partially update the specified ClusterRole * @param param the request object @@ -33323,6 +38545,14 @@ export class ObjectRbacAuthorizationV1alpha1Api { return this.api.patchClusterRole(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); } + /** + * partially update the specified ClusterRoleBinding + * @param param the request object + */ + public patchClusterRoleBindingWithHttpInfo(param: RbacAuthorizationV1alpha1ApiPatchClusterRoleBindingRequest, options?: Configuration): Promise> { + return this.api.patchClusterRoleBindingWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); + } + /** * partially update the specified ClusterRoleBinding * @param param the request object @@ -33331,6 +38561,14 @@ export class ObjectRbacAuthorizationV1alpha1Api { return this.api.patchClusterRoleBinding(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); } + /** + * partially update the specified Role + * @param param the request object + */ + public patchNamespacedRoleWithHttpInfo(param: RbacAuthorizationV1alpha1ApiPatchNamespacedRoleRequest, options?: Configuration): Promise> { + return this.api.patchNamespacedRoleWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); + } + /** * partially update the specified Role * @param param the request object @@ -33339,6 +38577,14 @@ export class ObjectRbacAuthorizationV1alpha1Api { return this.api.patchNamespacedRole(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); } + /** + * partially update the specified RoleBinding + * @param param the request object + */ + public patchNamespacedRoleBindingWithHttpInfo(param: RbacAuthorizationV1alpha1ApiPatchNamespacedRoleBindingRequest, options?: Configuration): Promise> { + return this.api.patchNamespacedRoleBindingWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); + } + /** * partially update the specified RoleBinding * @param param the request object @@ -33347,6 +38593,14 @@ export class ObjectRbacAuthorizationV1alpha1Api { return this.api.patchNamespacedRoleBinding(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); } + /** + * read the specified ClusterRole + * @param param the request object + */ + public readClusterRoleWithHttpInfo(param: RbacAuthorizationV1alpha1ApiReadClusterRoleRequest, options?: Configuration): Promise> { + return this.api.readClusterRoleWithHttpInfo(param.name, param.pretty, options).toPromise(); + } + /** * read the specified ClusterRole * @param param the request object @@ -33355,6 +38609,14 @@ export class ObjectRbacAuthorizationV1alpha1Api { return this.api.readClusterRole(param.name, param.pretty, options).toPromise(); } + /** + * read the specified ClusterRoleBinding + * @param param the request object + */ + public readClusterRoleBindingWithHttpInfo(param: RbacAuthorizationV1alpha1ApiReadClusterRoleBindingRequest, options?: Configuration): Promise> { + return this.api.readClusterRoleBindingWithHttpInfo(param.name, param.pretty, options).toPromise(); + } + /** * read the specified ClusterRoleBinding * @param param the request object @@ -33363,6 +38625,14 @@ export class ObjectRbacAuthorizationV1alpha1Api { return this.api.readClusterRoleBinding(param.name, param.pretty, options).toPromise(); } + /** + * read the specified Role + * @param param the request object + */ + public readNamespacedRoleWithHttpInfo(param: RbacAuthorizationV1alpha1ApiReadNamespacedRoleRequest, options?: Configuration): Promise> { + return this.api.readNamespacedRoleWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); + } + /** * read the specified Role * @param param the request object @@ -33371,6 +38641,14 @@ export class ObjectRbacAuthorizationV1alpha1Api { return this.api.readNamespacedRole(param.name, param.namespace, param.pretty, options).toPromise(); } + /** + * read the specified RoleBinding + * @param param the request object + */ + public readNamespacedRoleBindingWithHttpInfo(param: RbacAuthorizationV1alpha1ApiReadNamespacedRoleBindingRequest, options?: Configuration): Promise> { + return this.api.readNamespacedRoleBindingWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); + } + /** * read the specified RoleBinding * @param param the request object @@ -33379,6 +38657,14 @@ export class ObjectRbacAuthorizationV1alpha1Api { return this.api.readNamespacedRoleBinding(param.name, param.namespace, param.pretty, options).toPromise(); } + /** + * replace the specified ClusterRole + * @param param the request object + */ + public replaceClusterRoleWithHttpInfo(param: RbacAuthorizationV1alpha1ApiReplaceClusterRoleRequest, options?: Configuration): Promise> { + return this.api.replaceClusterRoleWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * replace the specified ClusterRole * @param param the request object @@ -33387,6 +38673,14 @@ export class ObjectRbacAuthorizationV1alpha1Api { return this.api.replaceClusterRole(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * replace the specified ClusterRoleBinding + * @param param the request object + */ + public replaceClusterRoleBindingWithHttpInfo(param: RbacAuthorizationV1alpha1ApiReplaceClusterRoleBindingRequest, options?: Configuration): Promise> { + return this.api.replaceClusterRoleBindingWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * replace the specified ClusterRoleBinding * @param param the request object @@ -33395,6 +38689,14 @@ export class ObjectRbacAuthorizationV1alpha1Api { return this.api.replaceClusterRoleBinding(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * replace the specified Role + * @param param the request object + */ + public replaceNamespacedRoleWithHttpInfo(param: RbacAuthorizationV1alpha1ApiReplaceNamespacedRoleRequest, options?: Configuration): Promise> { + return this.api.replaceNamespacedRoleWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * replace the specified Role * @param param the request object @@ -33403,6 +38705,14 @@ export class ObjectRbacAuthorizationV1alpha1Api { return this.api.replaceNamespacedRole(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * replace the specified RoleBinding + * @param param the request object + */ + public replaceNamespacedRoleBindingWithHttpInfo(param: RbacAuthorizationV1alpha1ApiReplaceNamespacedRoleBindingRequest, options?: Configuration): Promise> { + return this.api.replaceNamespacedRoleBindingWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * replace the specified RoleBinding * @param param the request object @@ -33426,6 +38736,14 @@ export class ObjectSchedulingApi { this.api = new ObservableSchedulingApi(configuration, requestFactory, responseProcessor); } + /** + * get information of a group + * @param param the request object + */ + public getAPIGroupWithHttpInfo(param: SchedulingApiGetAPIGroupRequest = {}, options?: Configuration): Promise> { + return this.api.getAPIGroupWithHttpInfo( options).toPromise(); + } + /** * get information of a group * @param param the request object @@ -33752,6 +39070,14 @@ export class ObjectSchedulingV1Api { this.api = new ObservableSchedulingV1Api(configuration, requestFactory, responseProcessor); } + /** + * create a PriorityClass + * @param param the request object + */ + public createPriorityClassWithHttpInfo(param: SchedulingV1ApiCreatePriorityClassRequest, options?: Configuration): Promise> { + return this.api.createPriorityClassWithHttpInfo(param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * create a PriorityClass * @param param the request object @@ -33760,6 +39086,14 @@ export class ObjectSchedulingV1Api { return this.api.createPriorityClass(param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * delete collection of PriorityClass + * @param param the request object + */ + public deleteCollectionPriorityClassWithHttpInfo(param: SchedulingV1ApiDeleteCollectionPriorityClassRequest = {}, options?: Configuration): Promise> { + return this.api.deleteCollectionPriorityClassWithHttpInfo(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); + } + /** * delete collection of PriorityClass * @param param the request object @@ -33768,6 +39102,14 @@ export class ObjectSchedulingV1Api { return this.api.deleteCollectionPriorityClass(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); } + /** + * delete a PriorityClass + * @param param the request object + */ + public deletePriorityClassWithHttpInfo(param: SchedulingV1ApiDeletePriorityClassRequest, options?: Configuration): Promise> { + return this.api.deletePriorityClassWithHttpInfo(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); + } + /** * delete a PriorityClass * @param param the request object @@ -33776,6 +39118,14 @@ export class ObjectSchedulingV1Api { return this.api.deletePriorityClass(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } + /** + * get available resources + * @param param the request object + */ + public getAPIResourcesWithHttpInfo(param: SchedulingV1ApiGetAPIResourcesRequest = {}, options?: Configuration): Promise> { + return this.api.getAPIResourcesWithHttpInfo( options).toPromise(); + } + /** * get available resources * @param param the request object @@ -33784,6 +39134,14 @@ export class ObjectSchedulingV1Api { return this.api.getAPIResources( options).toPromise(); } + /** + * list or watch objects of kind PriorityClass + * @param param the request object + */ + public listPriorityClassWithHttpInfo(param: SchedulingV1ApiListPriorityClassRequest = {}, options?: Configuration): Promise> { + return this.api.listPriorityClassWithHttpInfo(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); + } + /** * list or watch objects of kind PriorityClass * @param param the request object @@ -33792,6 +39150,14 @@ export class ObjectSchedulingV1Api { return this.api.listPriorityClass(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } + /** + * partially update the specified PriorityClass + * @param param the request object + */ + public patchPriorityClassWithHttpInfo(param: SchedulingV1ApiPatchPriorityClassRequest, options?: Configuration): Promise> { + return this.api.patchPriorityClassWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); + } + /** * partially update the specified PriorityClass * @param param the request object @@ -33800,6 +39166,14 @@ export class ObjectSchedulingV1Api { return this.api.patchPriorityClass(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); } + /** + * read the specified PriorityClass + * @param param the request object + */ + public readPriorityClassWithHttpInfo(param: SchedulingV1ApiReadPriorityClassRequest, options?: Configuration): Promise> { + return this.api.readPriorityClassWithHttpInfo(param.name, param.pretty, options).toPromise(); + } + /** * read the specified PriorityClass * @param param the request object @@ -33808,6 +39182,14 @@ export class ObjectSchedulingV1Api { return this.api.readPriorityClass(param.name, param.pretty, options).toPromise(); } + /** + * replace the specified PriorityClass + * @param param the request object + */ + public replacePriorityClassWithHttpInfo(param: SchedulingV1ApiReplacePriorityClassRequest, options?: Configuration): Promise> { + return this.api.replacePriorityClassWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * replace the specified PriorityClass * @param param the request object @@ -34134,6 +39516,14 @@ export class ObjectSchedulingV1alpha1Api { this.api = new ObservableSchedulingV1alpha1Api(configuration, requestFactory, responseProcessor); } + /** + * create a PriorityClass + * @param param the request object + */ + public createPriorityClassWithHttpInfo(param: SchedulingV1alpha1ApiCreatePriorityClassRequest, options?: Configuration): Promise> { + return this.api.createPriorityClassWithHttpInfo(param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * create a PriorityClass * @param param the request object @@ -34142,6 +39532,14 @@ export class ObjectSchedulingV1alpha1Api { return this.api.createPriorityClass(param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * delete collection of PriorityClass + * @param param the request object + */ + public deleteCollectionPriorityClassWithHttpInfo(param: SchedulingV1alpha1ApiDeleteCollectionPriorityClassRequest = {}, options?: Configuration): Promise> { + return this.api.deleteCollectionPriorityClassWithHttpInfo(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); + } + /** * delete collection of PriorityClass * @param param the request object @@ -34150,6 +39548,14 @@ export class ObjectSchedulingV1alpha1Api { return this.api.deleteCollectionPriorityClass(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); } + /** + * delete a PriorityClass + * @param param the request object + */ + public deletePriorityClassWithHttpInfo(param: SchedulingV1alpha1ApiDeletePriorityClassRequest, options?: Configuration): Promise> { + return this.api.deletePriorityClassWithHttpInfo(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); + } + /** * delete a PriorityClass * @param param the request object @@ -34158,6 +39564,14 @@ export class ObjectSchedulingV1alpha1Api { return this.api.deletePriorityClass(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } + /** + * get available resources + * @param param the request object + */ + public getAPIResourcesWithHttpInfo(param: SchedulingV1alpha1ApiGetAPIResourcesRequest = {}, options?: Configuration): Promise> { + return this.api.getAPIResourcesWithHttpInfo( options).toPromise(); + } + /** * get available resources * @param param the request object @@ -34166,6 +39580,14 @@ export class ObjectSchedulingV1alpha1Api { return this.api.getAPIResources( options).toPromise(); } + /** + * list or watch objects of kind PriorityClass + * @param param the request object + */ + public listPriorityClassWithHttpInfo(param: SchedulingV1alpha1ApiListPriorityClassRequest = {}, options?: Configuration): Promise> { + return this.api.listPriorityClassWithHttpInfo(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); + } + /** * list or watch objects of kind PriorityClass * @param param the request object @@ -34174,6 +39596,14 @@ export class ObjectSchedulingV1alpha1Api { return this.api.listPriorityClass(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } + /** + * partially update the specified PriorityClass + * @param param the request object + */ + public patchPriorityClassWithHttpInfo(param: SchedulingV1alpha1ApiPatchPriorityClassRequest, options?: Configuration): Promise> { + return this.api.patchPriorityClassWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); + } + /** * partially update the specified PriorityClass * @param param the request object @@ -34182,6 +39612,14 @@ export class ObjectSchedulingV1alpha1Api { return this.api.patchPriorityClass(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); } + /** + * read the specified PriorityClass + * @param param the request object + */ + public readPriorityClassWithHttpInfo(param: SchedulingV1alpha1ApiReadPriorityClassRequest, options?: Configuration): Promise> { + return this.api.readPriorityClassWithHttpInfo(param.name, param.pretty, options).toPromise(); + } + /** * read the specified PriorityClass * @param param the request object @@ -34190,6 +39628,14 @@ export class ObjectSchedulingV1alpha1Api { return this.api.readPriorityClass(param.name, param.pretty, options).toPromise(); } + /** + * replace the specified PriorityClass + * @param param the request object + */ + public replacePriorityClassWithHttpInfo(param: SchedulingV1alpha1ApiReplacePriorityClassRequest, options?: Configuration): Promise> { + return this.api.replacePriorityClassWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * replace the specified PriorityClass * @param param the request object @@ -34213,6 +39659,14 @@ export class ObjectStorageApi { this.api = new ObservableStorageApi(configuration, requestFactory, responseProcessor); } + /** + * get information of a group + * @param param the request object + */ + public getAPIGroupWithHttpInfo(param: StorageApiGetAPIGroupRequest = {}, options?: Configuration): Promise> { + return this.api.getAPIGroupWithHttpInfo( options).toPromise(); + } + /** * get information of a group * @param param the request object @@ -35535,6 +40989,14 @@ export class ObjectStorageV1Api { this.api = new ObservableStorageV1Api(configuration, requestFactory, responseProcessor); } + /** + * create a CSIDriver + * @param param the request object + */ + public createCSIDriverWithHttpInfo(param: StorageV1ApiCreateCSIDriverRequest, options?: Configuration): Promise> { + return this.api.createCSIDriverWithHttpInfo(param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * create a CSIDriver * @param param the request object @@ -35543,6 +41005,14 @@ export class ObjectStorageV1Api { return this.api.createCSIDriver(param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * create a CSINode + * @param param the request object + */ + public createCSINodeWithHttpInfo(param: StorageV1ApiCreateCSINodeRequest, options?: Configuration): Promise> { + return this.api.createCSINodeWithHttpInfo(param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * create a CSINode * @param param the request object @@ -35551,6 +41021,14 @@ export class ObjectStorageV1Api { return this.api.createCSINode(param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * create a StorageClass + * @param param the request object + */ + public createStorageClassWithHttpInfo(param: StorageV1ApiCreateStorageClassRequest, options?: Configuration): Promise> { + return this.api.createStorageClassWithHttpInfo(param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * create a StorageClass * @param param the request object @@ -35559,6 +41037,14 @@ export class ObjectStorageV1Api { return this.api.createStorageClass(param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * create a VolumeAttachment + * @param param the request object + */ + public createVolumeAttachmentWithHttpInfo(param: StorageV1ApiCreateVolumeAttachmentRequest, options?: Configuration): Promise> { + return this.api.createVolumeAttachmentWithHttpInfo(param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * create a VolumeAttachment * @param param the request object @@ -35567,6 +41053,14 @@ export class ObjectStorageV1Api { return this.api.createVolumeAttachment(param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * delete a CSIDriver + * @param param the request object + */ + public deleteCSIDriverWithHttpInfo(param: StorageV1ApiDeleteCSIDriverRequest, options?: Configuration): Promise> { + return this.api.deleteCSIDriverWithHttpInfo(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); + } + /** * delete a CSIDriver * @param param the request object @@ -35575,6 +41069,14 @@ export class ObjectStorageV1Api { return this.api.deleteCSIDriver(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } + /** + * delete a CSINode + * @param param the request object + */ + public deleteCSINodeWithHttpInfo(param: StorageV1ApiDeleteCSINodeRequest, options?: Configuration): Promise> { + return this.api.deleteCSINodeWithHttpInfo(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); + } + /** * delete a CSINode * @param param the request object @@ -35583,6 +41085,14 @@ export class ObjectStorageV1Api { return this.api.deleteCSINode(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } + /** + * delete collection of CSIDriver + * @param param the request object + */ + public deleteCollectionCSIDriverWithHttpInfo(param: StorageV1ApiDeleteCollectionCSIDriverRequest = {}, options?: Configuration): Promise> { + return this.api.deleteCollectionCSIDriverWithHttpInfo(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); + } + /** * delete collection of CSIDriver * @param param the request object @@ -35591,6 +41101,14 @@ export class ObjectStorageV1Api { return this.api.deleteCollectionCSIDriver(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); } + /** + * delete collection of CSINode + * @param param the request object + */ + public deleteCollectionCSINodeWithHttpInfo(param: StorageV1ApiDeleteCollectionCSINodeRequest = {}, options?: Configuration): Promise> { + return this.api.deleteCollectionCSINodeWithHttpInfo(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); + } + /** * delete collection of CSINode * @param param the request object @@ -35599,6 +41117,14 @@ export class ObjectStorageV1Api { return this.api.deleteCollectionCSINode(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); } + /** + * delete collection of StorageClass + * @param param the request object + */ + public deleteCollectionStorageClassWithHttpInfo(param: StorageV1ApiDeleteCollectionStorageClassRequest = {}, options?: Configuration): Promise> { + return this.api.deleteCollectionStorageClassWithHttpInfo(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); + } + /** * delete collection of StorageClass * @param param the request object @@ -35607,6 +41133,14 @@ export class ObjectStorageV1Api { return this.api.deleteCollectionStorageClass(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); } + /** + * delete collection of VolumeAttachment + * @param param the request object + */ + public deleteCollectionVolumeAttachmentWithHttpInfo(param: StorageV1ApiDeleteCollectionVolumeAttachmentRequest = {}, options?: Configuration): Promise> { + return this.api.deleteCollectionVolumeAttachmentWithHttpInfo(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); + } + /** * delete collection of VolumeAttachment * @param param the request object @@ -35615,6 +41149,14 @@ export class ObjectStorageV1Api { return this.api.deleteCollectionVolumeAttachment(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); } + /** + * delete a StorageClass + * @param param the request object + */ + public deleteStorageClassWithHttpInfo(param: StorageV1ApiDeleteStorageClassRequest, options?: Configuration): Promise> { + return this.api.deleteStorageClassWithHttpInfo(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); + } + /** * delete a StorageClass * @param param the request object @@ -35623,6 +41165,14 @@ export class ObjectStorageV1Api { return this.api.deleteStorageClass(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } + /** + * delete a VolumeAttachment + * @param param the request object + */ + public deleteVolumeAttachmentWithHttpInfo(param: StorageV1ApiDeleteVolumeAttachmentRequest, options?: Configuration): Promise> { + return this.api.deleteVolumeAttachmentWithHttpInfo(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); + } + /** * delete a VolumeAttachment * @param param the request object @@ -35631,6 +41181,14 @@ export class ObjectStorageV1Api { return this.api.deleteVolumeAttachment(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } + /** + * get available resources + * @param param the request object + */ + public getAPIResourcesWithHttpInfo(param: StorageV1ApiGetAPIResourcesRequest = {}, options?: Configuration): Promise> { + return this.api.getAPIResourcesWithHttpInfo( options).toPromise(); + } + /** * get available resources * @param param the request object @@ -35639,6 +41197,14 @@ export class ObjectStorageV1Api { return this.api.getAPIResources( options).toPromise(); } + /** + * list or watch objects of kind CSIDriver + * @param param the request object + */ + public listCSIDriverWithHttpInfo(param: StorageV1ApiListCSIDriverRequest = {}, options?: Configuration): Promise> { + return this.api.listCSIDriverWithHttpInfo(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); + } + /** * list or watch objects of kind CSIDriver * @param param the request object @@ -35647,6 +41213,14 @@ export class ObjectStorageV1Api { return this.api.listCSIDriver(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } + /** + * list or watch objects of kind CSINode + * @param param the request object + */ + public listCSINodeWithHttpInfo(param: StorageV1ApiListCSINodeRequest = {}, options?: Configuration): Promise> { + return this.api.listCSINodeWithHttpInfo(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); + } + /** * list or watch objects of kind CSINode * @param param the request object @@ -35655,6 +41229,14 @@ export class ObjectStorageV1Api { return this.api.listCSINode(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } + /** + * list or watch objects of kind StorageClass + * @param param the request object + */ + public listStorageClassWithHttpInfo(param: StorageV1ApiListStorageClassRequest = {}, options?: Configuration): Promise> { + return this.api.listStorageClassWithHttpInfo(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); + } + /** * list or watch objects of kind StorageClass * @param param the request object @@ -35663,6 +41245,14 @@ export class ObjectStorageV1Api { return this.api.listStorageClass(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } + /** + * list or watch objects of kind VolumeAttachment + * @param param the request object + */ + public listVolumeAttachmentWithHttpInfo(param: StorageV1ApiListVolumeAttachmentRequest = {}, options?: Configuration): Promise> { + return this.api.listVolumeAttachmentWithHttpInfo(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); + } + /** * list or watch objects of kind VolumeAttachment * @param param the request object @@ -35671,6 +41261,14 @@ export class ObjectStorageV1Api { return this.api.listVolumeAttachment(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } + /** + * partially update the specified CSIDriver + * @param param the request object + */ + public patchCSIDriverWithHttpInfo(param: StorageV1ApiPatchCSIDriverRequest, options?: Configuration): Promise> { + return this.api.patchCSIDriverWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); + } + /** * partially update the specified CSIDriver * @param param the request object @@ -35679,6 +41277,14 @@ export class ObjectStorageV1Api { return this.api.patchCSIDriver(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); } + /** + * partially update the specified CSINode + * @param param the request object + */ + public patchCSINodeWithHttpInfo(param: StorageV1ApiPatchCSINodeRequest, options?: Configuration): Promise> { + return this.api.patchCSINodeWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); + } + /** * partially update the specified CSINode * @param param the request object @@ -35687,6 +41293,14 @@ export class ObjectStorageV1Api { return this.api.patchCSINode(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); } + /** + * partially update the specified StorageClass + * @param param the request object + */ + public patchStorageClassWithHttpInfo(param: StorageV1ApiPatchStorageClassRequest, options?: Configuration): Promise> { + return this.api.patchStorageClassWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); + } + /** * partially update the specified StorageClass * @param param the request object @@ -35695,6 +41309,14 @@ export class ObjectStorageV1Api { return this.api.patchStorageClass(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); } + /** + * partially update the specified VolumeAttachment + * @param param the request object + */ + public patchVolumeAttachmentWithHttpInfo(param: StorageV1ApiPatchVolumeAttachmentRequest, options?: Configuration): Promise> { + return this.api.patchVolumeAttachmentWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); + } + /** * partially update the specified VolumeAttachment * @param param the request object @@ -35703,6 +41325,14 @@ export class ObjectStorageV1Api { return this.api.patchVolumeAttachment(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); } + /** + * partially update status of the specified VolumeAttachment + * @param param the request object + */ + public patchVolumeAttachmentStatusWithHttpInfo(param: StorageV1ApiPatchVolumeAttachmentStatusRequest, options?: Configuration): Promise> { + return this.api.patchVolumeAttachmentStatusWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); + } + /** * partially update status of the specified VolumeAttachment * @param param the request object @@ -35711,6 +41341,14 @@ export class ObjectStorageV1Api { return this.api.patchVolumeAttachmentStatus(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); } + /** + * read the specified CSIDriver + * @param param the request object + */ + public readCSIDriverWithHttpInfo(param: StorageV1ApiReadCSIDriverRequest, options?: Configuration): Promise> { + return this.api.readCSIDriverWithHttpInfo(param.name, param.pretty, options).toPromise(); + } + /** * read the specified CSIDriver * @param param the request object @@ -35719,6 +41357,14 @@ export class ObjectStorageV1Api { return this.api.readCSIDriver(param.name, param.pretty, options).toPromise(); } + /** + * read the specified CSINode + * @param param the request object + */ + public readCSINodeWithHttpInfo(param: StorageV1ApiReadCSINodeRequest, options?: Configuration): Promise> { + return this.api.readCSINodeWithHttpInfo(param.name, param.pretty, options).toPromise(); + } + /** * read the specified CSINode * @param param the request object @@ -35727,6 +41373,14 @@ export class ObjectStorageV1Api { return this.api.readCSINode(param.name, param.pretty, options).toPromise(); } + /** + * read the specified StorageClass + * @param param the request object + */ + public readStorageClassWithHttpInfo(param: StorageV1ApiReadStorageClassRequest, options?: Configuration): Promise> { + return this.api.readStorageClassWithHttpInfo(param.name, param.pretty, options).toPromise(); + } + /** * read the specified StorageClass * @param param the request object @@ -35735,6 +41389,14 @@ export class ObjectStorageV1Api { return this.api.readStorageClass(param.name, param.pretty, options).toPromise(); } + /** + * read the specified VolumeAttachment + * @param param the request object + */ + public readVolumeAttachmentWithHttpInfo(param: StorageV1ApiReadVolumeAttachmentRequest, options?: Configuration): Promise> { + return this.api.readVolumeAttachmentWithHttpInfo(param.name, param.pretty, options).toPromise(); + } + /** * read the specified VolumeAttachment * @param param the request object @@ -35743,6 +41405,14 @@ export class ObjectStorageV1Api { return this.api.readVolumeAttachment(param.name, param.pretty, options).toPromise(); } + /** + * read status of the specified VolumeAttachment + * @param param the request object + */ + public readVolumeAttachmentStatusWithHttpInfo(param: StorageV1ApiReadVolumeAttachmentStatusRequest, options?: Configuration): Promise> { + return this.api.readVolumeAttachmentStatusWithHttpInfo(param.name, param.pretty, options).toPromise(); + } + /** * read status of the specified VolumeAttachment * @param param the request object @@ -35751,6 +41421,14 @@ export class ObjectStorageV1Api { return this.api.readVolumeAttachmentStatus(param.name, param.pretty, options).toPromise(); } + /** + * replace the specified CSIDriver + * @param param the request object + */ + public replaceCSIDriverWithHttpInfo(param: StorageV1ApiReplaceCSIDriverRequest, options?: Configuration): Promise> { + return this.api.replaceCSIDriverWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * replace the specified CSIDriver * @param param the request object @@ -35759,6 +41437,14 @@ export class ObjectStorageV1Api { return this.api.replaceCSIDriver(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * replace the specified CSINode + * @param param the request object + */ + public replaceCSINodeWithHttpInfo(param: StorageV1ApiReplaceCSINodeRequest, options?: Configuration): Promise> { + return this.api.replaceCSINodeWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * replace the specified CSINode * @param param the request object @@ -35767,6 +41453,14 @@ export class ObjectStorageV1Api { return this.api.replaceCSINode(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * replace the specified StorageClass + * @param param the request object + */ + public replaceStorageClassWithHttpInfo(param: StorageV1ApiReplaceStorageClassRequest, options?: Configuration): Promise> { + return this.api.replaceStorageClassWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * replace the specified StorageClass * @param param the request object @@ -35775,6 +41469,14 @@ export class ObjectStorageV1Api { return this.api.replaceStorageClass(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * replace the specified VolumeAttachment + * @param param the request object + */ + public replaceVolumeAttachmentWithHttpInfo(param: StorageV1ApiReplaceVolumeAttachmentRequest, options?: Configuration): Promise> { + return this.api.replaceVolumeAttachmentWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * replace the specified VolumeAttachment * @param param the request object @@ -35783,6 +41485,14 @@ export class ObjectStorageV1Api { return this.api.replaceVolumeAttachment(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * replace status of the specified VolumeAttachment + * @param param the request object + */ + public replaceVolumeAttachmentStatusWithHttpInfo(param: StorageV1ApiReplaceVolumeAttachmentStatusRequest, options?: Configuration): Promise> { + return this.api.replaceVolumeAttachmentStatusWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * replace status of the specified VolumeAttachment * @param param the request object @@ -36517,6 +42227,14 @@ export class ObjectStorageV1alpha1Api { this.api = new ObservableStorageV1alpha1Api(configuration, requestFactory, responseProcessor); } + /** + * create a CSIStorageCapacity + * @param param the request object + */ + public createNamespacedCSIStorageCapacityWithHttpInfo(param: StorageV1alpha1ApiCreateNamespacedCSIStorageCapacityRequest, options?: Configuration): Promise> { + return this.api.createNamespacedCSIStorageCapacityWithHttpInfo(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * create a CSIStorageCapacity * @param param the request object @@ -36525,6 +42243,14 @@ export class ObjectStorageV1alpha1Api { return this.api.createNamespacedCSIStorageCapacity(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * create a VolumeAttachment + * @param param the request object + */ + public createVolumeAttachmentWithHttpInfo(param: StorageV1alpha1ApiCreateVolumeAttachmentRequest, options?: Configuration): Promise> { + return this.api.createVolumeAttachmentWithHttpInfo(param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * create a VolumeAttachment * @param param the request object @@ -36533,6 +42259,14 @@ export class ObjectStorageV1alpha1Api { return this.api.createVolumeAttachment(param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * delete collection of CSIStorageCapacity + * @param param the request object + */ + public deleteCollectionNamespacedCSIStorageCapacityWithHttpInfo(param: StorageV1alpha1ApiDeleteCollectionNamespacedCSIStorageCapacityRequest, options?: Configuration): Promise> { + return this.api.deleteCollectionNamespacedCSIStorageCapacityWithHttpInfo(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); + } + /** * delete collection of CSIStorageCapacity * @param param the request object @@ -36541,6 +42275,14 @@ export class ObjectStorageV1alpha1Api { return this.api.deleteCollectionNamespacedCSIStorageCapacity(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); } + /** + * delete collection of VolumeAttachment + * @param param the request object + */ + public deleteCollectionVolumeAttachmentWithHttpInfo(param: StorageV1alpha1ApiDeleteCollectionVolumeAttachmentRequest = {}, options?: Configuration): Promise> { + return this.api.deleteCollectionVolumeAttachmentWithHttpInfo(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); + } + /** * delete collection of VolumeAttachment * @param param the request object @@ -36549,6 +42291,14 @@ export class ObjectStorageV1alpha1Api { return this.api.deleteCollectionVolumeAttachment(param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); } + /** + * delete a CSIStorageCapacity + * @param param the request object + */ + public deleteNamespacedCSIStorageCapacityWithHttpInfo(param: StorageV1alpha1ApiDeleteNamespacedCSIStorageCapacityRequest, options?: Configuration): Promise> { + return this.api.deleteNamespacedCSIStorageCapacityWithHttpInfo(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); + } + /** * delete a CSIStorageCapacity * @param param the request object @@ -36557,6 +42307,14 @@ export class ObjectStorageV1alpha1Api { return this.api.deleteNamespacedCSIStorageCapacity(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } + /** + * delete a VolumeAttachment + * @param param the request object + */ + public deleteVolumeAttachmentWithHttpInfo(param: StorageV1alpha1ApiDeleteVolumeAttachmentRequest, options?: Configuration): Promise> { + return this.api.deleteVolumeAttachmentWithHttpInfo(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); + } + /** * delete a VolumeAttachment * @param param the request object @@ -36565,6 +42323,14 @@ export class ObjectStorageV1alpha1Api { return this.api.deleteVolumeAttachment(param.name, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } + /** + * get available resources + * @param param the request object + */ + public getAPIResourcesWithHttpInfo(param: StorageV1alpha1ApiGetAPIResourcesRequest = {}, options?: Configuration): Promise> { + return this.api.getAPIResourcesWithHttpInfo( options).toPromise(); + } + /** * get available resources * @param param the request object @@ -36573,6 +42339,14 @@ export class ObjectStorageV1alpha1Api { return this.api.getAPIResources( options).toPromise(); } + /** + * list or watch objects of kind CSIStorageCapacity + * @param param the request object + */ + public listCSIStorageCapacityForAllNamespacesWithHttpInfo(param: StorageV1alpha1ApiListCSIStorageCapacityForAllNamespacesRequest = {}, options?: Configuration): Promise> { + return this.api.listCSIStorageCapacityForAllNamespacesWithHttpInfo(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); + } + /** * list or watch objects of kind CSIStorageCapacity * @param param the request object @@ -36581,6 +42355,14 @@ export class ObjectStorageV1alpha1Api { return this.api.listCSIStorageCapacityForAllNamespaces(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } + /** + * list or watch objects of kind CSIStorageCapacity + * @param param the request object + */ + public listNamespacedCSIStorageCapacityWithHttpInfo(param: StorageV1alpha1ApiListNamespacedCSIStorageCapacityRequest, options?: Configuration): Promise> { + return this.api.listNamespacedCSIStorageCapacityWithHttpInfo(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); + } + /** * list or watch objects of kind CSIStorageCapacity * @param param the request object @@ -36589,6 +42371,14 @@ export class ObjectStorageV1alpha1Api { return this.api.listNamespacedCSIStorageCapacity(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } + /** + * list or watch objects of kind VolumeAttachment + * @param param the request object + */ + public listVolumeAttachmentWithHttpInfo(param: StorageV1alpha1ApiListVolumeAttachmentRequest = {}, options?: Configuration): Promise> { + return this.api.listVolumeAttachmentWithHttpInfo(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); + } + /** * list or watch objects of kind VolumeAttachment * @param param the request object @@ -36597,6 +42387,14 @@ export class ObjectStorageV1alpha1Api { return this.api.listVolumeAttachment(param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } + /** + * partially update the specified CSIStorageCapacity + * @param param the request object + */ + public patchNamespacedCSIStorageCapacityWithHttpInfo(param: StorageV1alpha1ApiPatchNamespacedCSIStorageCapacityRequest, options?: Configuration): Promise> { + return this.api.patchNamespacedCSIStorageCapacityWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); + } + /** * partially update the specified CSIStorageCapacity * @param param the request object @@ -36605,6 +42403,14 @@ export class ObjectStorageV1alpha1Api { return this.api.patchNamespacedCSIStorageCapacity(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); } + /** + * partially update the specified VolumeAttachment + * @param param the request object + */ + public patchVolumeAttachmentWithHttpInfo(param: StorageV1alpha1ApiPatchVolumeAttachmentRequest, options?: Configuration): Promise> { + return this.api.patchVolumeAttachmentWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); + } + /** * partially update the specified VolumeAttachment * @param param the request object @@ -36613,6 +42419,14 @@ export class ObjectStorageV1alpha1Api { return this.api.patchVolumeAttachment(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); } + /** + * read the specified CSIStorageCapacity + * @param param the request object + */ + public readNamespacedCSIStorageCapacityWithHttpInfo(param: StorageV1alpha1ApiReadNamespacedCSIStorageCapacityRequest, options?: Configuration): Promise> { + return this.api.readNamespacedCSIStorageCapacityWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); + } + /** * read the specified CSIStorageCapacity * @param param the request object @@ -36621,6 +42435,14 @@ export class ObjectStorageV1alpha1Api { return this.api.readNamespacedCSIStorageCapacity(param.name, param.namespace, param.pretty, options).toPromise(); } + /** + * read the specified VolumeAttachment + * @param param the request object + */ + public readVolumeAttachmentWithHttpInfo(param: StorageV1alpha1ApiReadVolumeAttachmentRequest, options?: Configuration): Promise> { + return this.api.readVolumeAttachmentWithHttpInfo(param.name, param.pretty, options).toPromise(); + } + /** * read the specified VolumeAttachment * @param param the request object @@ -36629,6 +42451,14 @@ export class ObjectStorageV1alpha1Api { return this.api.readVolumeAttachment(param.name, param.pretty, options).toPromise(); } + /** + * replace the specified CSIStorageCapacity + * @param param the request object + */ + public replaceNamespacedCSIStorageCapacityWithHttpInfo(param: StorageV1alpha1ApiReplaceNamespacedCSIStorageCapacityRequest, options?: Configuration): Promise> { + return this.api.replaceNamespacedCSIStorageCapacityWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * replace the specified CSIStorageCapacity * @param param the request object @@ -36637,6 +42467,14 @@ export class ObjectStorageV1alpha1Api { return this.api.replaceNamespacedCSIStorageCapacity(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * replace the specified VolumeAttachment + * @param param the request object + */ + public replaceVolumeAttachmentWithHttpInfo(param: StorageV1alpha1ApiReplaceVolumeAttachmentRequest, options?: Configuration): Promise> { + return this.api.replaceVolumeAttachmentWithHttpInfo(param.name, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * replace the specified VolumeAttachment * @param param the request object @@ -37068,6 +42906,14 @@ export class ObjectStorageV1beta1Api { this.api = new ObservableStorageV1beta1Api(configuration, requestFactory, responseProcessor); } + /** + * create a CSIStorageCapacity + * @param param the request object + */ + public createNamespacedCSIStorageCapacityWithHttpInfo(param: StorageV1beta1ApiCreateNamespacedCSIStorageCapacityRequest, options?: Configuration): Promise> { + return this.api.createNamespacedCSIStorageCapacityWithHttpInfo(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * create a CSIStorageCapacity * @param param the request object @@ -37076,6 +42922,14 @@ export class ObjectStorageV1beta1Api { return this.api.createNamespacedCSIStorageCapacity(param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); } + /** + * delete collection of CSIStorageCapacity + * @param param the request object + */ + public deleteCollectionNamespacedCSIStorageCapacityWithHttpInfo(param: StorageV1beta1ApiDeleteCollectionNamespacedCSIStorageCapacityRequest, options?: Configuration): Promise> { + return this.api.deleteCollectionNamespacedCSIStorageCapacityWithHttpInfo(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); + } + /** * delete collection of CSIStorageCapacity * @param param the request object @@ -37084,6 +42938,14 @@ export class ObjectStorageV1beta1Api { return this.api.deleteCollectionNamespacedCSIStorageCapacity(param.namespace, param.pretty, param._continue, param.dryRun, param.fieldSelector, param.gracePeriodSeconds, param.labelSelector, param.limit, param.orphanDependents, param.propagationPolicy, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.body, options).toPromise(); } + /** + * delete a CSIStorageCapacity + * @param param the request object + */ + public deleteNamespacedCSIStorageCapacityWithHttpInfo(param: StorageV1beta1ApiDeleteNamespacedCSIStorageCapacityRequest, options?: Configuration): Promise> { + return this.api.deleteNamespacedCSIStorageCapacityWithHttpInfo(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); + } + /** * delete a CSIStorageCapacity * @param param the request object @@ -37092,6 +42954,14 @@ export class ObjectStorageV1beta1Api { return this.api.deleteNamespacedCSIStorageCapacity(param.name, param.namespace, param.pretty, param.dryRun, param.gracePeriodSeconds, param.orphanDependents, param.propagationPolicy, param.body, options).toPromise(); } + /** + * get available resources + * @param param the request object + */ + public getAPIResourcesWithHttpInfo(param: StorageV1beta1ApiGetAPIResourcesRequest = {}, options?: Configuration): Promise> { + return this.api.getAPIResourcesWithHttpInfo( options).toPromise(); + } + /** * get available resources * @param param the request object @@ -37100,6 +42970,14 @@ export class ObjectStorageV1beta1Api { return this.api.getAPIResources( options).toPromise(); } + /** + * list or watch objects of kind CSIStorageCapacity + * @param param the request object + */ + public listCSIStorageCapacityForAllNamespacesWithHttpInfo(param: StorageV1beta1ApiListCSIStorageCapacityForAllNamespacesRequest = {}, options?: Configuration): Promise> { + return this.api.listCSIStorageCapacityForAllNamespacesWithHttpInfo(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); + } + /** * list or watch objects of kind CSIStorageCapacity * @param param the request object @@ -37108,6 +42986,14 @@ export class ObjectStorageV1beta1Api { return this.api.listCSIStorageCapacityForAllNamespaces(param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.pretty, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } + /** + * list or watch objects of kind CSIStorageCapacity + * @param param the request object + */ + public listNamespacedCSIStorageCapacityWithHttpInfo(param: StorageV1beta1ApiListNamespacedCSIStorageCapacityRequest, options?: Configuration): Promise> { + return this.api.listNamespacedCSIStorageCapacityWithHttpInfo(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); + } + /** * list or watch objects of kind CSIStorageCapacity * @param param the request object @@ -37116,6 +43002,14 @@ export class ObjectStorageV1beta1Api { return this.api.listNamespacedCSIStorageCapacity(param.namespace, param.pretty, param.allowWatchBookmarks, param._continue, param.fieldSelector, param.labelSelector, param.limit, param.resourceVersion, param.resourceVersionMatch, param.timeoutSeconds, param.watch, options).toPromise(); } + /** + * partially update the specified CSIStorageCapacity + * @param param the request object + */ + public patchNamespacedCSIStorageCapacityWithHttpInfo(param: StorageV1beta1ApiPatchNamespacedCSIStorageCapacityRequest, options?: Configuration): Promise> { + return this.api.patchNamespacedCSIStorageCapacityWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); + } + /** * partially update the specified CSIStorageCapacity * @param param the request object @@ -37124,6 +43018,14 @@ export class ObjectStorageV1beta1Api { return this.api.patchNamespacedCSIStorageCapacity(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, param.force, options).toPromise(); } + /** + * read the specified CSIStorageCapacity + * @param param the request object + */ + public readNamespacedCSIStorageCapacityWithHttpInfo(param: StorageV1beta1ApiReadNamespacedCSIStorageCapacityRequest, options?: Configuration): Promise> { + return this.api.readNamespacedCSIStorageCapacityWithHttpInfo(param.name, param.namespace, param.pretty, options).toPromise(); + } + /** * read the specified CSIStorageCapacity * @param param the request object @@ -37132,6 +43034,14 @@ export class ObjectStorageV1beta1Api { return this.api.readNamespacedCSIStorageCapacity(param.name, param.namespace, param.pretty, options).toPromise(); } + /** + * replace the specified CSIStorageCapacity + * @param param the request object + */ + public replaceNamespacedCSIStorageCapacityWithHttpInfo(param: StorageV1beta1ApiReplaceNamespacedCSIStorageCapacityRequest, options?: Configuration): Promise> { + return this.api.replaceNamespacedCSIStorageCapacityWithHttpInfo(param.name, param.namespace, param.body, param.pretty, param.dryRun, param.fieldManager, options).toPromise(); + } + /** * replace the specified CSIStorageCapacity * @param param the request object @@ -37155,6 +43065,14 @@ export class ObjectVersionApi { this.api = new ObservableVersionApi(configuration, requestFactory, responseProcessor); } + /** + * get the code version + * @param param the request object + */ + public getCodeWithHttpInfo(param: VersionApiGetCodeRequest = {}, options?: Configuration): Promise> { + return this.api.getCodeWithHttpInfo( options).toPromise(); + } + /** * get the code version * @param param the request object @@ -37178,6 +43096,14 @@ export class ObjectWellKnownApi { this.api = new ObservableWellKnownApi(configuration, requestFactory, responseProcessor); } + /** + * get service account issuer OpenID configuration, also known as the \'OIDC discovery doc\' + * @param param the request object + */ + public getServiceAccountIssuerOpenIDConfigurationWithHttpInfo(param: WellKnownApiGetServiceAccountIssuerOpenIDConfigurationRequest = {}, options?: Configuration): Promise> { + return this.api.getServiceAccountIssuerOpenIDConfigurationWithHttpInfo( options).toPromise(); + } + /** * get service account issuer OpenID configuration, also known as the \'OIDC discovery doc\' * @param param the request object diff --git a/src/gen/types/ObservableAPI.ts b/src/gen/types/ObservableAPI.ts index 6ef6d744955..cbfa9ca1c3e 100644 --- a/src/gen/types/ObservableAPI.ts +++ b/src/gen/types/ObservableAPI.ts @@ -1,4 +1,4 @@ -import { ResponseContext, RequestContext, HttpFile } from '../http/http'; +import { ResponseContext, RequestContext, HttpFile, HttpInfo } from '../http/http'; import { Configuration} from '../configuration' import { Observable, of, from } from '../rxjsStub'; import {mergeMap, map} from '../rxjsStub'; @@ -547,7 +547,7 @@ export class ObservableAdmissionregistrationApi { /** * get information of a group */ - public getAPIGroup(_options?: Configuration): Observable { + public getAPIGroupWithHttpInfo(_options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.getAPIGroup(_options); // build promise chain @@ -562,10 +562,17 @@ export class ObservableAdmissionregistrationApi { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIGroup(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIGroupWithHttpInfo(rsp))); })); } + /** + * get information of a group + */ + public getAPIGroup(_options?: Configuration): Observable { + return this.getAPIGroupWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + } import { AdmissionregistrationV1ApiRequestFactory, AdmissionregistrationV1ApiResponseProcessor} from "../apis/AdmissionregistrationV1Api"; @@ -591,7 +598,7 @@ export class ObservableAdmissionregistrationV1Api { * @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. */ - public createMutatingWebhookConfiguration(body: V1MutatingWebhookConfiguration, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public createMutatingWebhookConfigurationWithHttpInfo(body: V1MutatingWebhookConfiguration, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.createMutatingWebhookConfiguration(body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -606,10 +613,21 @@ export class ObservableAdmissionregistrationV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createMutatingWebhookConfiguration(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createMutatingWebhookConfigurationWithHttpInfo(rsp))); })); } + /** + * create a MutatingWebhookConfiguration + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public createMutatingWebhookConfiguration(body: V1MutatingWebhookConfiguration, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.createMutatingWebhookConfigurationWithHttpInfo(body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * create a ValidatingWebhookConfiguration * @param body @@ -617,7 +635,7 @@ export class ObservableAdmissionregistrationV1Api { * @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. */ - public createValidatingWebhookConfiguration(body: V1ValidatingWebhookConfiguration, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public createValidatingWebhookConfigurationWithHttpInfo(body: V1ValidatingWebhookConfiguration, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.createValidatingWebhookConfiguration(body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -632,10 +650,21 @@ export class ObservableAdmissionregistrationV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createValidatingWebhookConfiguration(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createValidatingWebhookConfigurationWithHttpInfo(rsp))); })); } + /** + * create a ValidatingWebhookConfiguration + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public createValidatingWebhookConfiguration(body: V1ValidatingWebhookConfiguration, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.createValidatingWebhookConfigurationWithHttpInfo(body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * delete collection of MutatingWebhookConfiguration * @param pretty If \'true\', then the output is pretty printed. @@ -652,7 +681,7 @@ export class ObservableAdmissionregistrationV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param body */ - public deleteCollectionMutatingWebhookConfiguration(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteCollectionMutatingWebhookConfigurationWithHttpInfo(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.deleteCollectionMutatingWebhookConfiguration(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); // build promise chain @@ -667,10 +696,30 @@ export class ObservableAdmissionregistrationV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionMutatingWebhookConfiguration(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionMutatingWebhookConfigurationWithHttpInfo(rsp))); })); } + /** + * delete collection of MutatingWebhookConfiguration + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionMutatingWebhookConfiguration(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { + return this.deleteCollectionMutatingWebhookConfigurationWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * delete collection of ValidatingWebhookConfiguration * @param pretty If \'true\', then the output is pretty printed. @@ -687,7 +736,7 @@ export class ObservableAdmissionregistrationV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param body */ - public deleteCollectionValidatingWebhookConfiguration(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteCollectionValidatingWebhookConfigurationWithHttpInfo(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.deleteCollectionValidatingWebhookConfiguration(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); // build promise chain @@ -702,10 +751,30 @@ export class ObservableAdmissionregistrationV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionValidatingWebhookConfiguration(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionValidatingWebhookConfigurationWithHttpInfo(rsp))); })); } + /** + * delete collection of ValidatingWebhookConfiguration + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionValidatingWebhookConfiguration(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { + return this.deleteCollectionValidatingWebhookConfigurationWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * delete a MutatingWebhookConfiguration * @param name name of the MutatingWebhookConfiguration @@ -716,7 +785,7 @@ export class ObservableAdmissionregistrationV1Api { * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. * @param body */ - public deleteMutatingWebhookConfiguration(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteMutatingWebhookConfigurationWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.deleteMutatingWebhookConfiguration(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); // build promise chain @@ -731,10 +800,24 @@ export class ObservableAdmissionregistrationV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteMutatingWebhookConfiguration(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteMutatingWebhookConfigurationWithHttpInfo(rsp))); })); } + /** + * delete a MutatingWebhookConfiguration + * @param name name of the MutatingWebhookConfiguration + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteMutatingWebhookConfiguration(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + return this.deleteMutatingWebhookConfigurationWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * delete a ValidatingWebhookConfiguration * @param name name of the ValidatingWebhookConfiguration @@ -745,7 +828,7 @@ export class ObservableAdmissionregistrationV1Api { * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. * @param body */ - public deleteValidatingWebhookConfiguration(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteValidatingWebhookConfigurationWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.deleteValidatingWebhookConfiguration(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); // build promise chain @@ -760,14 +843,28 @@ export class ObservableAdmissionregistrationV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteValidatingWebhookConfiguration(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteValidatingWebhookConfigurationWithHttpInfo(rsp))); })); } + /** + * delete a ValidatingWebhookConfiguration + * @param name name of the ValidatingWebhookConfiguration + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteValidatingWebhookConfiguration(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + return this.deleteValidatingWebhookConfigurationWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * get available resources */ - public getAPIResources(_options?: Configuration): Observable { + public getAPIResourcesWithHttpInfo(_options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.getAPIResources(_options); // build promise chain @@ -782,10 +879,17 @@ export class ObservableAdmissionregistrationV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResources(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResourcesWithHttpInfo(rsp))); })); } + /** + * get available resources + */ + public getAPIResources(_options?: Configuration): Observable { + return this.getAPIResourcesWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * list or watch objects of kind MutatingWebhookConfiguration * @param pretty If \'true\', then the output is pretty printed. @@ -799,7 +903,7 @@ export class ObservableAdmissionregistrationV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public listMutatingWebhookConfiguration(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listMutatingWebhookConfigurationWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.listMutatingWebhookConfiguration(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); // build promise chain @@ -814,10 +918,27 @@ export class ObservableAdmissionregistrationV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listMutatingWebhookConfiguration(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listMutatingWebhookConfigurationWithHttpInfo(rsp))); })); } + /** + * list or watch objects of kind MutatingWebhookConfiguration + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + return this.listMutatingWebhookConfigurationWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * list or watch objects of kind ValidatingWebhookConfiguration * @param pretty If \'true\', then the output is pretty printed. @@ -831,7 +952,7 @@ export class ObservableAdmissionregistrationV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public listValidatingWebhookConfiguration(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listValidatingWebhookConfigurationWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.listValidatingWebhookConfiguration(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); // build promise chain @@ -846,10 +967,27 @@ export class ObservableAdmissionregistrationV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listValidatingWebhookConfiguration(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listValidatingWebhookConfigurationWithHttpInfo(rsp))); })); } + /** + * list or watch objects of kind ValidatingWebhookConfiguration + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + return this.listValidatingWebhookConfigurationWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * partially update the specified MutatingWebhookConfiguration * @param name name of the MutatingWebhookConfiguration @@ -859,7 +997,7 @@ export class ObservableAdmissionregistrationV1Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). * @param force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + public patchMutatingWebhookConfigurationWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.patchMutatingWebhookConfiguration(name, body, pretty, dryRun, fieldManager, force, _options); // build promise chain @@ -874,10 +1012,23 @@ export class ObservableAdmissionregistrationV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchMutatingWebhookConfiguration(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchMutatingWebhookConfigurationWithHttpInfo(rsp))); })); } + /** + * partially update the specified MutatingWebhookConfiguration + * @param name name of the MutatingWebhookConfiguration + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + return this.patchMutatingWebhookConfigurationWithHttpInfo(name, body, pretty, dryRun, fieldManager, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * partially update the specified ValidatingWebhookConfiguration * @param name name of the ValidatingWebhookConfiguration @@ -887,7 +1038,7 @@ export class ObservableAdmissionregistrationV1Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). * @param force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + public patchValidatingWebhookConfigurationWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.patchValidatingWebhookConfiguration(name, body, pretty, dryRun, fieldManager, force, _options); // build promise chain @@ -902,16 +1053,29 @@ export class ObservableAdmissionregistrationV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchValidatingWebhookConfiguration(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchValidatingWebhookConfigurationWithHttpInfo(rsp))); })); } + /** + * partially update the specified ValidatingWebhookConfiguration + * @param name name of the ValidatingWebhookConfiguration + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + return this.patchValidatingWebhookConfigurationWithHttpInfo(name, body, pretty, dryRun, fieldManager, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * read the specified MutatingWebhookConfiguration * @param name name of the MutatingWebhookConfiguration * @param pretty If \'true\', then the output is pretty printed. */ - public readMutatingWebhookConfiguration(name: string, pretty?: string, _options?: Configuration): Observable { + public readMutatingWebhookConfigurationWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.readMutatingWebhookConfiguration(name, pretty, _options); // build promise chain @@ -926,16 +1090,25 @@ export class ObservableAdmissionregistrationV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readMutatingWebhookConfiguration(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readMutatingWebhookConfigurationWithHttpInfo(rsp))); })); } + /** + * read the specified MutatingWebhookConfiguration + * @param name name of the MutatingWebhookConfiguration + * @param pretty If \'true\', then the output is pretty printed. + */ + public readMutatingWebhookConfiguration(name: string, pretty?: string, _options?: Configuration): Observable { + return this.readMutatingWebhookConfigurationWithHttpInfo(name, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * read the specified ValidatingWebhookConfiguration * @param name name of the ValidatingWebhookConfiguration * @param pretty If \'true\', then the output is pretty printed. */ - public readValidatingWebhookConfiguration(name: string, pretty?: string, _options?: Configuration): Observable { + public readValidatingWebhookConfigurationWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.readValidatingWebhookConfiguration(name, pretty, _options); // build promise chain @@ -950,10 +1123,19 @@ export class ObservableAdmissionregistrationV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readValidatingWebhookConfiguration(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readValidatingWebhookConfigurationWithHttpInfo(rsp))); })); } + /** + * read the specified ValidatingWebhookConfiguration + * @param name name of the ValidatingWebhookConfiguration + * @param pretty If \'true\', then the output is pretty printed. + */ + public readValidatingWebhookConfiguration(name: string, pretty?: string, _options?: Configuration): Observable { + return this.readValidatingWebhookConfigurationWithHttpInfo(name, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * replace the specified MutatingWebhookConfiguration * @param name name of the MutatingWebhookConfiguration @@ -962,7 +1144,7 @@ export class ObservableAdmissionregistrationV1Api { * @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. */ - public replaceMutatingWebhookConfiguration(name: string, body: V1MutatingWebhookConfiguration, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public replaceMutatingWebhookConfigurationWithHttpInfo(name: string, body: V1MutatingWebhookConfiguration, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.replaceMutatingWebhookConfiguration(name, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -977,10 +1159,22 @@ export class ObservableAdmissionregistrationV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceMutatingWebhookConfiguration(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceMutatingWebhookConfigurationWithHttpInfo(rsp))); })); } + /** + * replace the specified MutatingWebhookConfiguration + * @param name name of the MutatingWebhookConfiguration + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public replaceMutatingWebhookConfiguration(name: string, body: V1MutatingWebhookConfiguration, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.replaceMutatingWebhookConfigurationWithHttpInfo(name, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * replace the specified ValidatingWebhookConfiguration * @param name name of the ValidatingWebhookConfiguration @@ -989,7 +1183,7 @@ export class ObservableAdmissionregistrationV1Api { * @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. */ - public replaceValidatingWebhookConfiguration(name: string, body: V1ValidatingWebhookConfiguration, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public replaceValidatingWebhookConfigurationWithHttpInfo(name: string, body: V1ValidatingWebhookConfiguration, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.replaceValidatingWebhookConfiguration(name, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -1004,10 +1198,22 @@ export class ObservableAdmissionregistrationV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceValidatingWebhookConfiguration(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceValidatingWebhookConfigurationWithHttpInfo(rsp))); })); } + /** + * replace the specified ValidatingWebhookConfiguration + * @param name name of the ValidatingWebhookConfiguration + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public replaceValidatingWebhookConfiguration(name: string, body: V1ValidatingWebhookConfiguration, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.replaceValidatingWebhookConfigurationWithHttpInfo(name, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + } import { ApiextensionsApiRequestFactory, ApiextensionsApiResponseProcessor} from "../apis/ApiextensionsApi"; @@ -1029,7 +1235,7 @@ export class ObservableApiextensionsApi { /** * get information of a group */ - public getAPIGroup(_options?: Configuration): Observable { + public getAPIGroupWithHttpInfo(_options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.getAPIGroup(_options); // build promise chain @@ -1044,10 +1250,17 @@ export class ObservableApiextensionsApi { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIGroup(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIGroupWithHttpInfo(rsp))); })); } + /** + * get information of a group + */ + public getAPIGroup(_options?: Configuration): Observable { + return this.getAPIGroupWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + } import { ApiextensionsV1ApiRequestFactory, ApiextensionsV1ApiResponseProcessor} from "../apis/ApiextensionsV1Api"; @@ -1073,7 +1286,7 @@ export class ObservableApiextensionsV1Api { * @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. */ - public createCustomResourceDefinition(body: V1CustomResourceDefinition, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public createCustomResourceDefinitionWithHttpInfo(body: V1CustomResourceDefinition, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.createCustomResourceDefinition(body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -1088,10 +1301,21 @@ export class ObservableApiextensionsV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createCustomResourceDefinition(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createCustomResourceDefinitionWithHttpInfo(rsp))); })); } + /** + * create a CustomResourceDefinition + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public createCustomResourceDefinition(body: V1CustomResourceDefinition, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.createCustomResourceDefinitionWithHttpInfo(body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * delete collection of CustomResourceDefinition * @param pretty If \'true\', then the output is pretty printed. @@ -1108,7 +1332,7 @@ export class ObservableApiextensionsV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param body */ - public deleteCollectionCustomResourceDefinition(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteCollectionCustomResourceDefinitionWithHttpInfo(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.deleteCollectionCustomResourceDefinition(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); // build promise chain @@ -1123,10 +1347,30 @@ export class ObservableApiextensionsV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionCustomResourceDefinition(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionCustomResourceDefinitionWithHttpInfo(rsp))); })); } + /** + * delete collection of CustomResourceDefinition + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionCustomResourceDefinition(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { + return this.deleteCollectionCustomResourceDefinitionWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * delete a CustomResourceDefinition * @param name name of the CustomResourceDefinition @@ -1137,7 +1381,7 @@ export class ObservableApiextensionsV1Api { * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. * @param body */ - public deleteCustomResourceDefinition(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteCustomResourceDefinitionWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.deleteCustomResourceDefinition(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); // build promise chain @@ -1152,15 +1396,29 @@ export class ObservableApiextensionsV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCustomResourceDefinition(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCustomResourceDefinitionWithHttpInfo(rsp))); })); } /** - * get available resources + * delete a CustomResourceDefinition + * @param name name of the CustomResourceDefinition + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 getAPIResources(_options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.getAPIResources(_options); + public deleteCustomResourceDefinition(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + return this.deleteCustomResourceDefinitionWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * get available resources + */ + public getAPIResourcesWithHttpInfo(_options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.getAPIResources(_options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -1174,10 +1432,17 @@ export class ObservableApiextensionsV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResources(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResourcesWithHttpInfo(rsp))); })); } + /** + * get available resources + */ + public getAPIResources(_options?: Configuration): Observable { + return this.getAPIResourcesWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * list or watch objects of kind CustomResourceDefinition * @param pretty If \'true\', then the output is pretty printed. @@ -1191,7 +1456,7 @@ export class ObservableApiextensionsV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public listCustomResourceDefinition(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listCustomResourceDefinitionWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.listCustomResourceDefinition(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); // build promise chain @@ -1206,10 +1471,27 @@ export class ObservableApiextensionsV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listCustomResourceDefinition(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listCustomResourceDefinitionWithHttpInfo(rsp))); })); } + /** + * list or watch objects of kind CustomResourceDefinition + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + return this.listCustomResourceDefinitionWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * partially update the specified CustomResourceDefinition * @param name name of the CustomResourceDefinition @@ -1219,7 +1501,7 @@ export class ObservableApiextensionsV1Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). * @param force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + public patchCustomResourceDefinitionWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.patchCustomResourceDefinition(name, body, pretty, dryRun, fieldManager, force, _options); // build promise chain @@ -1234,10 +1516,23 @@ export class ObservableApiextensionsV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchCustomResourceDefinition(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchCustomResourceDefinitionWithHttpInfo(rsp))); })); } + /** + * partially update the specified CustomResourceDefinition + * @param name name of the CustomResourceDefinition + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + return this.patchCustomResourceDefinitionWithHttpInfo(name, body, pretty, dryRun, fieldManager, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * partially update status of the specified CustomResourceDefinition * @param name name of the CustomResourceDefinition @@ -1247,7 +1542,7 @@ export class ObservableApiextensionsV1Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). * @param force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + public patchCustomResourceDefinitionStatusWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.patchCustomResourceDefinitionStatus(name, body, pretty, dryRun, fieldManager, force, _options); // build promise chain @@ -1262,16 +1557,29 @@ export class ObservableApiextensionsV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchCustomResourceDefinitionStatus(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchCustomResourceDefinitionStatusWithHttpInfo(rsp))); })); } + /** + * partially update status of the specified CustomResourceDefinition + * @param name name of the CustomResourceDefinition + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + return this.patchCustomResourceDefinitionStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * read the specified CustomResourceDefinition * @param name name of the CustomResourceDefinition * @param pretty If \'true\', then the output is pretty printed. */ - public readCustomResourceDefinition(name: string, pretty?: string, _options?: Configuration): Observable { + public readCustomResourceDefinitionWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.readCustomResourceDefinition(name, pretty, _options); // build promise chain @@ -1286,16 +1594,25 @@ export class ObservableApiextensionsV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readCustomResourceDefinition(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readCustomResourceDefinitionWithHttpInfo(rsp))); })); } + /** + * read the specified CustomResourceDefinition + * @param name name of the CustomResourceDefinition + * @param pretty If \'true\', then the output is pretty printed. + */ + public readCustomResourceDefinition(name: string, pretty?: string, _options?: Configuration): Observable { + return this.readCustomResourceDefinitionWithHttpInfo(name, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * read status of the specified CustomResourceDefinition * @param name name of the CustomResourceDefinition * @param pretty If \'true\', then the output is pretty printed. */ - public readCustomResourceDefinitionStatus(name: string, pretty?: string, _options?: Configuration): Observable { + public readCustomResourceDefinitionStatusWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.readCustomResourceDefinitionStatus(name, pretty, _options); // build promise chain @@ -1310,10 +1627,19 @@ export class ObservableApiextensionsV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readCustomResourceDefinitionStatus(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readCustomResourceDefinitionStatusWithHttpInfo(rsp))); })); } + /** + * read status of the specified CustomResourceDefinition + * @param name name of the CustomResourceDefinition + * @param pretty If \'true\', then the output is pretty printed. + */ + public readCustomResourceDefinitionStatus(name: string, pretty?: string, _options?: Configuration): Observable { + return this.readCustomResourceDefinitionStatusWithHttpInfo(name, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * replace the specified CustomResourceDefinition * @param name name of the CustomResourceDefinition @@ -1322,7 +1648,7 @@ export class ObservableApiextensionsV1Api { * @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. */ - public replaceCustomResourceDefinition(name: string, body: V1CustomResourceDefinition, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public replaceCustomResourceDefinitionWithHttpInfo(name: string, body: V1CustomResourceDefinition, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.replaceCustomResourceDefinition(name, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -1337,10 +1663,22 @@ export class ObservableApiextensionsV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceCustomResourceDefinition(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceCustomResourceDefinitionWithHttpInfo(rsp))); })); } + /** + * replace the specified CustomResourceDefinition + * @param name name of the CustomResourceDefinition + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public replaceCustomResourceDefinition(name: string, body: V1CustomResourceDefinition, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.replaceCustomResourceDefinitionWithHttpInfo(name, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * replace status of the specified CustomResourceDefinition * @param name name of the CustomResourceDefinition @@ -1349,7 +1687,7 @@ export class ObservableApiextensionsV1Api { * @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. */ - public replaceCustomResourceDefinitionStatus(name: string, body: V1CustomResourceDefinition, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public replaceCustomResourceDefinitionStatusWithHttpInfo(name: string, body: V1CustomResourceDefinition, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.replaceCustomResourceDefinitionStatus(name, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -1364,10 +1702,22 @@ export class ObservableApiextensionsV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceCustomResourceDefinitionStatus(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceCustomResourceDefinitionStatusWithHttpInfo(rsp))); })); } + /** + * replace status of the specified CustomResourceDefinition + * @param name name of the CustomResourceDefinition + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public replaceCustomResourceDefinitionStatus(name: string, body: V1CustomResourceDefinition, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.replaceCustomResourceDefinitionStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + } import { ApiregistrationApiRequestFactory, ApiregistrationApiResponseProcessor} from "../apis/ApiregistrationApi"; @@ -1389,7 +1739,7 @@ export class ObservableApiregistrationApi { /** * get information of a group */ - public getAPIGroup(_options?: Configuration): Observable { + public getAPIGroupWithHttpInfo(_options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.getAPIGroup(_options); // build promise chain @@ -1404,10 +1754,17 @@ export class ObservableApiregistrationApi { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIGroup(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIGroupWithHttpInfo(rsp))); })); } + /** + * get information of a group + */ + public getAPIGroup(_options?: Configuration): Observable { + return this.getAPIGroupWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + } import { ApiregistrationV1ApiRequestFactory, ApiregistrationV1ApiResponseProcessor} from "../apis/ApiregistrationV1Api"; @@ -1433,7 +1790,7 @@ export class ObservableApiregistrationV1Api { * @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. */ - public createAPIService(body: V1APIService, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public createAPIServiceWithHttpInfo(body: V1APIService, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.createAPIService(body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -1448,10 +1805,21 @@ export class ObservableApiregistrationV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createAPIService(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createAPIServiceWithHttpInfo(rsp))); })); } + /** + * create an APIService + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public createAPIService(body: V1APIService, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.createAPIServiceWithHttpInfo(body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * delete an APIService * @param name name of the APIService @@ -1462,7 +1830,7 @@ export class ObservableApiregistrationV1Api { * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. * @param body */ - public deleteAPIService(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteAPIServiceWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.deleteAPIService(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); // build promise chain @@ -1477,10 +1845,24 @@ export class ObservableApiregistrationV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteAPIService(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteAPIServiceWithHttpInfo(rsp))); })); } + /** + * delete an APIService + * @param name name of the APIService + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteAPIService(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + return this.deleteAPIServiceWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * delete collection of APIService * @param pretty If \'true\', then the output is pretty printed. @@ -1497,7 +1879,7 @@ export class ObservableApiregistrationV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param body */ - public deleteCollectionAPIService(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteCollectionAPIServiceWithHttpInfo(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.deleteCollectionAPIService(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); // build promise chain @@ -1512,14 +1894,34 @@ export class ObservableApiregistrationV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionAPIService(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionAPIServiceWithHttpInfo(rsp))); })); } + /** + * delete collection of APIService + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionAPIService(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { + return this.deleteCollectionAPIServiceWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * get available resources */ - public getAPIResources(_options?: Configuration): Observable { + public getAPIResourcesWithHttpInfo(_options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.getAPIResources(_options); // build promise chain @@ -1534,10 +1936,17 @@ export class ObservableApiregistrationV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResources(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResourcesWithHttpInfo(rsp))); })); } + /** + * get available resources + */ + public getAPIResources(_options?: Configuration): Observable { + return this.getAPIResourcesWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * list or watch objects of kind APIService * @param pretty If \'true\', then the output is pretty printed. @@ -1551,7 +1960,7 @@ export class ObservableApiregistrationV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public listAPIService(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listAPIServiceWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.listAPIService(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); // build promise chain @@ -1566,10 +1975,27 @@ export class ObservableApiregistrationV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listAPIService(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listAPIServiceWithHttpInfo(rsp))); })); } + /** + * list or watch objects of kind APIService + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + return this.listAPIServiceWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * partially update the specified APIService * @param name name of the APIService @@ -1579,7 +2005,7 @@ export class ObservableApiregistrationV1Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). * @param force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + public patchAPIServiceWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.patchAPIService(name, body, pretty, dryRun, fieldManager, force, _options); // build promise chain @@ -1594,10 +2020,23 @@ export class ObservableApiregistrationV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchAPIService(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchAPIServiceWithHttpInfo(rsp))); })); } + /** + * partially update the specified APIService + * @param name name of the APIService + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + return this.patchAPIServiceWithHttpInfo(name, body, pretty, dryRun, fieldManager, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * partially update status of the specified APIService * @param name name of the APIService @@ -1607,7 +2046,7 @@ export class ObservableApiregistrationV1Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). * @param force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + public patchAPIServiceStatusWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.patchAPIServiceStatus(name, body, pretty, dryRun, fieldManager, force, _options); // build promise chain @@ -1622,16 +2061,29 @@ export class ObservableApiregistrationV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchAPIServiceStatus(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchAPIServiceStatusWithHttpInfo(rsp))); })); } + /** + * partially update status of the specified APIService + * @param name name of the APIService + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + return this.patchAPIServiceStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * read the specified APIService * @param name name of the APIService * @param pretty If \'true\', then the output is pretty printed. */ - public readAPIService(name: string, pretty?: string, _options?: Configuration): Observable { + public readAPIServiceWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.readAPIService(name, pretty, _options); // build promise chain @@ -1646,16 +2098,25 @@ export class ObservableApiregistrationV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readAPIService(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readAPIServiceWithHttpInfo(rsp))); })); } + /** + * read the specified APIService + * @param name name of the APIService + * @param pretty If \'true\', then the output is pretty printed. + */ + public readAPIService(name: string, pretty?: string, _options?: Configuration): Observable { + return this.readAPIServiceWithHttpInfo(name, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * read status of the specified APIService * @param name name of the APIService * @param pretty If \'true\', then the output is pretty printed. */ - public readAPIServiceStatus(name: string, pretty?: string, _options?: Configuration): Observable { + public readAPIServiceStatusWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.readAPIServiceStatus(name, pretty, _options); // build promise chain @@ -1670,10 +2131,19 @@ export class ObservableApiregistrationV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readAPIServiceStatus(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readAPIServiceStatusWithHttpInfo(rsp))); })); } + /** + * read status of the specified APIService + * @param name name of the APIService + * @param pretty If \'true\', then the output is pretty printed. + */ + public readAPIServiceStatus(name: string, pretty?: string, _options?: Configuration): Observable { + return this.readAPIServiceStatusWithHttpInfo(name, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * replace the specified APIService * @param name name of the APIService @@ -1682,7 +2152,7 @@ export class ObservableApiregistrationV1Api { * @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. */ - public replaceAPIService(name: string, body: V1APIService, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public replaceAPIServiceWithHttpInfo(name: string, body: V1APIService, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.replaceAPIService(name, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -1697,10 +2167,22 @@ export class ObservableApiregistrationV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceAPIService(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceAPIServiceWithHttpInfo(rsp))); })); } + /** + * replace the specified APIService + * @param name name of the APIService + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public replaceAPIService(name: string, body: V1APIService, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.replaceAPIServiceWithHttpInfo(name, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * replace status of the specified APIService * @param name name of the APIService @@ -1709,7 +2191,7 @@ export class ObservableApiregistrationV1Api { * @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. */ - public replaceAPIServiceStatus(name: string, body: V1APIService, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public replaceAPIServiceStatusWithHttpInfo(name: string, body: V1APIService, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.replaceAPIServiceStatus(name, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -1724,10 +2206,22 @@ export class ObservableApiregistrationV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceAPIServiceStatus(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceAPIServiceStatusWithHttpInfo(rsp))); })); } + /** + * replace status of the specified APIService + * @param name name of the APIService + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public replaceAPIServiceStatus(name: string, body: V1APIService, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.replaceAPIServiceStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + } import { ApisApiRequestFactory, ApisApiResponseProcessor} from "../apis/ApisApi"; @@ -1749,7 +2243,7 @@ export class ObservableApisApi { /** * get available API versions */ - public getAPIVersions(_options?: Configuration): Observable { + public getAPIVersionsWithHttpInfo(_options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.getAPIVersions(_options); // build promise chain @@ -1764,10 +2258,17 @@ export class ObservableApisApi { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIVersions(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIVersionsWithHttpInfo(rsp))); })); } + /** + * get available API versions + */ + public getAPIVersions(_options?: Configuration): Observable { + return this.getAPIVersionsWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + } import { AppsApiRequestFactory, AppsApiResponseProcessor} from "../apis/AppsApi"; @@ -1789,7 +2290,7 @@ export class ObservableAppsApi { /** * get information of a group */ - public getAPIGroup(_options?: Configuration): Observable { + public getAPIGroupWithHttpInfo(_options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.getAPIGroup(_options); // build promise chain @@ -1804,10 +2305,17 @@ export class ObservableAppsApi { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIGroup(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIGroupWithHttpInfo(rsp))); })); } + /** + * get information of a group + */ + public getAPIGroup(_options?: Configuration): Observable { + return this.getAPIGroupWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + } import { AppsV1ApiRequestFactory, AppsV1ApiResponseProcessor} from "../apis/AppsV1Api"; @@ -1834,7 +2342,7 @@ export class ObservableAppsV1Api { * @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. */ - public createNamespacedControllerRevision(namespace: string, body: V1ControllerRevision, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public createNamespacedControllerRevisionWithHttpInfo(namespace: string, body: V1ControllerRevision, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.createNamespacedControllerRevision(namespace, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -1849,10 +2357,22 @@ export class ObservableAppsV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedControllerRevision(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedControllerRevisionWithHttpInfo(rsp))); })); } + /** + * create a ControllerRevision + * @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. + * @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. + */ + public createNamespacedControllerRevision(namespace: string, body: V1ControllerRevision, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.createNamespacedControllerRevisionWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * create a DaemonSet * @param namespace object name and auth scope, such as for teams and projects @@ -1861,7 +2381,7 @@ export class ObservableAppsV1Api { * @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. */ - public createNamespacedDaemonSet(namespace: string, body: V1DaemonSet, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public createNamespacedDaemonSetWithHttpInfo(namespace: string, body: V1DaemonSet, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.createNamespacedDaemonSet(namespace, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -1876,10 +2396,22 @@ export class ObservableAppsV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedDaemonSet(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedDaemonSetWithHttpInfo(rsp))); })); } + /** + * create a DaemonSet + * @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. + * @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. + */ + public createNamespacedDaemonSet(namespace: string, body: V1DaemonSet, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.createNamespacedDaemonSetWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * create a Deployment * @param namespace object name and auth scope, such as for teams and projects @@ -1888,7 +2420,7 @@ export class ObservableAppsV1Api { * @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. */ - public createNamespacedDeployment(namespace: string, body: V1Deployment, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public createNamespacedDeploymentWithHttpInfo(namespace: string, body: V1Deployment, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.createNamespacedDeployment(namespace, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -1903,10 +2435,22 @@ export class ObservableAppsV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedDeployment(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedDeploymentWithHttpInfo(rsp))); })); } + /** + * create a Deployment + * @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. + * @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. + */ + public createNamespacedDeployment(namespace: string, body: V1Deployment, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.createNamespacedDeploymentWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * create a ReplicaSet * @param namespace object name and auth scope, such as for teams and projects @@ -1915,7 +2459,7 @@ export class ObservableAppsV1Api { * @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. */ - public createNamespacedReplicaSet(namespace: string, body: V1ReplicaSet, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public createNamespacedReplicaSetWithHttpInfo(namespace: string, body: V1ReplicaSet, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.createNamespacedReplicaSet(namespace, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -1930,10 +2474,22 @@ export class ObservableAppsV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedReplicaSet(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedReplicaSetWithHttpInfo(rsp))); })); } + /** + * create a ReplicaSet + * @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. + * @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. + */ + public createNamespacedReplicaSet(namespace: string, body: V1ReplicaSet, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.createNamespacedReplicaSetWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * create a StatefulSet * @param namespace object name and auth scope, such as for teams and projects @@ -1942,7 +2498,7 @@ export class ObservableAppsV1Api { * @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. */ - public createNamespacedStatefulSet(namespace: string, body: V1StatefulSet, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public createNamespacedStatefulSetWithHttpInfo(namespace: string, body: V1StatefulSet, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.createNamespacedStatefulSet(namespace, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -1957,10 +2513,22 @@ export class ObservableAppsV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedStatefulSet(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedStatefulSetWithHttpInfo(rsp))); })); } + /** + * create a StatefulSet + * @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. + * @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. + */ + public createNamespacedStatefulSet(namespace: string, body: V1StatefulSet, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.createNamespacedStatefulSetWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * delete collection of ControllerRevision * @param namespace object name and auth scope, such as for teams and projects @@ -1978,7 +2546,7 @@ export class ObservableAppsV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param body */ - public deleteCollectionNamespacedControllerRevision(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteCollectionNamespacedControllerRevisionWithHttpInfo(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.deleteCollectionNamespacedControllerRevision(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); // build promise chain @@ -1993,10 +2561,31 @@ export class ObservableAppsV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedControllerRevision(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedControllerRevisionWithHttpInfo(rsp))); })); } + /** + * delete collection of ControllerRevision + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionNamespacedControllerRevision(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { + return this.deleteCollectionNamespacedControllerRevisionWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * delete collection of DaemonSet * @param namespace object name and auth scope, such as for teams and projects @@ -2014,7 +2603,7 @@ export class ObservableAppsV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param body */ - public deleteCollectionNamespacedDaemonSet(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteCollectionNamespacedDaemonSetWithHttpInfo(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.deleteCollectionNamespacedDaemonSet(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); // build promise chain @@ -2029,10 +2618,31 @@ export class ObservableAppsV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedDaemonSet(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedDaemonSetWithHttpInfo(rsp))); })); } + /** + * delete collection of DaemonSet + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionNamespacedDaemonSet(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { + return this.deleteCollectionNamespacedDaemonSetWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * delete collection of Deployment * @param namespace object name and auth scope, such as for teams and projects @@ -2050,7 +2660,7 @@ export class ObservableAppsV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param body */ - public deleteCollectionNamespacedDeployment(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteCollectionNamespacedDeploymentWithHttpInfo(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.deleteCollectionNamespacedDeployment(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); // build promise chain @@ -2065,10 +2675,31 @@ export class ObservableAppsV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedDeployment(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedDeploymentWithHttpInfo(rsp))); })); } + /** + * delete collection of Deployment + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionNamespacedDeployment(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { + return this.deleteCollectionNamespacedDeploymentWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * delete collection of ReplicaSet * @param namespace object name and auth scope, such as for teams and projects @@ -2086,7 +2717,7 @@ export class ObservableAppsV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param body */ - public deleteCollectionNamespacedReplicaSet(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteCollectionNamespacedReplicaSetWithHttpInfo(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.deleteCollectionNamespacedReplicaSet(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); // build promise chain @@ -2101,10 +2732,31 @@ export class ObservableAppsV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedReplicaSet(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedReplicaSetWithHttpInfo(rsp))); })); } + /** + * delete collection of ReplicaSet + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionNamespacedReplicaSet(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { + return this.deleteCollectionNamespacedReplicaSetWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * delete collection of StatefulSet * @param namespace object name and auth scope, such as for teams and projects @@ -2122,7 +2774,7 @@ export class ObservableAppsV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param body */ - public deleteCollectionNamespacedStatefulSet(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteCollectionNamespacedStatefulSetWithHttpInfo(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.deleteCollectionNamespacedStatefulSet(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); // build promise chain @@ -2137,10 +2789,31 @@ export class ObservableAppsV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedStatefulSet(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedStatefulSetWithHttpInfo(rsp))); })); } + /** + * delete collection of StatefulSet + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionNamespacedStatefulSet(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { + return this.deleteCollectionNamespacedStatefulSetWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * delete a ControllerRevision * @param name name of the ControllerRevision @@ -2152,7 +2825,7 @@ export class ObservableAppsV1Api { * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. * @param body */ - public deleteNamespacedControllerRevision(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteNamespacedControllerRevisionWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.deleteNamespacedControllerRevision(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); // build promise chain @@ -2167,10 +2840,25 @@ export class ObservableAppsV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedControllerRevision(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedControllerRevisionWithHttpInfo(rsp))); })); } + /** + * delete a ControllerRevision + * @param name name of the ControllerRevision + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteNamespacedControllerRevision(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + return this.deleteNamespacedControllerRevisionWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * delete a DaemonSet * @param name name of the DaemonSet @@ -2182,7 +2870,7 @@ export class ObservableAppsV1Api { * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. * @param body */ - public deleteNamespacedDaemonSet(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteNamespacedDaemonSetWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.deleteNamespacedDaemonSet(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); // build promise chain @@ -2197,10 +2885,25 @@ export class ObservableAppsV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedDaemonSet(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedDaemonSetWithHttpInfo(rsp))); })); } + /** + * delete a DaemonSet + * @param name name of the DaemonSet + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteNamespacedDaemonSet(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + return this.deleteNamespacedDaemonSetWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * delete a Deployment * @param name name of the Deployment @@ -2212,7 +2915,7 @@ export class ObservableAppsV1Api { * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. * @param body */ - public deleteNamespacedDeployment(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteNamespacedDeploymentWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.deleteNamespacedDeployment(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); // build promise chain @@ -2227,10 +2930,25 @@ export class ObservableAppsV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedDeployment(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedDeploymentWithHttpInfo(rsp))); })); } + /** + * delete a Deployment + * @param name name of the Deployment + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteNamespacedDeployment(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + return this.deleteNamespacedDeploymentWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * delete a ReplicaSet * @param name name of the ReplicaSet @@ -2242,7 +2960,7 @@ export class ObservableAppsV1Api { * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. * @param body */ - public deleteNamespacedReplicaSet(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteNamespacedReplicaSetWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.deleteNamespacedReplicaSet(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); // build promise chain @@ -2257,10 +2975,25 @@ export class ObservableAppsV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedReplicaSet(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedReplicaSetWithHttpInfo(rsp))); })); } + /** + * delete a ReplicaSet + * @param name name of the ReplicaSet + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteNamespacedReplicaSet(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + return this.deleteNamespacedReplicaSetWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * delete a StatefulSet * @param name name of the StatefulSet @@ -2272,7 +3005,7 @@ export class ObservableAppsV1Api { * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. * @param body */ - public deleteNamespacedStatefulSet(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteNamespacedStatefulSetWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.deleteNamespacedStatefulSet(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); // build promise chain @@ -2287,14 +3020,29 @@ export class ObservableAppsV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedStatefulSet(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedStatefulSetWithHttpInfo(rsp))); })); } + /** + * delete a StatefulSet + * @param name name of the StatefulSet + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteNamespacedStatefulSet(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + return this.deleteNamespacedStatefulSetWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * get available resources */ - public getAPIResources(_options?: Configuration): Observable { + public getAPIResourcesWithHttpInfo(_options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.getAPIResources(_options); // build promise chain @@ -2309,10 +3057,17 @@ export class ObservableAppsV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResources(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResourcesWithHttpInfo(rsp))); })); } + /** + * get available resources + */ + public getAPIResources(_options?: Configuration): Observable { + return this.getAPIResourcesWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * list or watch objects of kind ControllerRevision * @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. @@ -2326,7 +3081,7 @@ export class ObservableAppsV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public listControllerRevisionForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listControllerRevisionForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.listControllerRevisionForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); // build promise chain @@ -2341,12 +3096,12 @@ export class ObservableAppsV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listControllerRevisionForAllNamespaces(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listControllerRevisionForAllNamespacesWithHttpInfo(rsp))); })); } /** - * list or watch objects of kind DaemonSet + * list or watch objects of kind ControllerRevision * @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. @@ -2358,11 +3113,28 @@ export class ObservableAppsV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public listDaemonSetForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.listDaemonSetForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + public listControllerRevisionForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + return this.listControllerRevisionForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } - // build promise chain - let middlewarePreObservable = from(requestContextPromise); + /** + * list or watch objects of kind DaemonSet + * @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. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.listDaemonSetForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + + // build promise chain + let middlewarePreObservable = from(requestContextPromise); for (let middleware of this.configuration.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } @@ -2373,10 +3145,27 @@ export class ObservableAppsV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listDaemonSetForAllNamespaces(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listDaemonSetForAllNamespacesWithHttpInfo(rsp))); })); } + /** + * list or watch objects of kind DaemonSet + * @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. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + return this.listDaemonSetForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * list or watch objects of kind Deployment * @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. @@ -2390,7 +3179,7 @@ export class ObservableAppsV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public listDeploymentForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listDeploymentForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.listDeploymentForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); // build promise chain @@ -2405,10 +3194,27 @@ export class ObservableAppsV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listDeploymentForAllNamespaces(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listDeploymentForAllNamespacesWithHttpInfo(rsp))); })); } + /** + * list or watch objects of kind Deployment + * @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. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + return this.listDeploymentForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * list or watch objects of kind ControllerRevision * @param namespace object name and auth scope, such as for teams and projects @@ -2423,7 +3229,7 @@ export class ObservableAppsV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public listNamespacedControllerRevision(namespace: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listNamespacedControllerRevisionWithHttpInfo(namespace: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.listNamespacedControllerRevision(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); // build promise chain @@ -2438,10 +3244,28 @@ export class ObservableAppsV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedControllerRevision(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedControllerRevisionWithHttpInfo(rsp))); })); } + /** + * list or watch objects of kind ControllerRevision + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + return this.listNamespacedControllerRevisionWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * list or watch objects of kind DaemonSet * @param namespace object name and auth scope, such as for teams and projects @@ -2456,7 +3280,7 @@ export class ObservableAppsV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public listNamespacedDaemonSet(namespace: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listNamespacedDaemonSetWithHttpInfo(namespace: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.listNamespacedDaemonSet(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); // build promise chain @@ -2471,10 +3295,28 @@ export class ObservableAppsV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedDaemonSet(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedDaemonSetWithHttpInfo(rsp))); })); } + /** + * list or watch objects of kind DaemonSet + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + return this.listNamespacedDaemonSetWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * list or watch objects of kind Deployment * @param namespace object name and auth scope, such as for teams and projects @@ -2489,7 +3331,7 @@ export class ObservableAppsV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public listNamespacedDeployment(namespace: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listNamespacedDeploymentWithHttpInfo(namespace: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.listNamespacedDeployment(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); // build promise chain @@ -2504,10 +3346,28 @@ export class ObservableAppsV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedDeployment(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedDeploymentWithHttpInfo(rsp))); })); } + /** + * list or watch objects of kind Deployment + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + return this.listNamespacedDeploymentWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * list or watch objects of kind ReplicaSet * @param namespace object name and auth scope, such as for teams and projects @@ -2522,7 +3382,7 @@ export class ObservableAppsV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public listNamespacedReplicaSet(namespace: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listNamespacedReplicaSetWithHttpInfo(namespace: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.listNamespacedReplicaSet(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); // build promise chain @@ -2537,10 +3397,28 @@ export class ObservableAppsV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedReplicaSet(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedReplicaSetWithHttpInfo(rsp))); })); } + /** + * list or watch objects of kind ReplicaSet + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + return this.listNamespacedReplicaSetWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * list or watch objects of kind StatefulSet * @param namespace object name and auth scope, such as for teams and projects @@ -2555,7 +3433,7 @@ export class ObservableAppsV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public listNamespacedStatefulSet(namespace: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listNamespacedStatefulSetWithHttpInfo(namespace: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.listNamespacedStatefulSet(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); // build promise chain @@ -2570,10 +3448,28 @@ export class ObservableAppsV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedStatefulSet(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedStatefulSetWithHttpInfo(rsp))); })); } + /** + * list or watch objects of kind StatefulSet + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + return this.listNamespacedStatefulSetWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * list or watch objects of kind ReplicaSet * @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. @@ -2587,7 +3483,7 @@ export class ObservableAppsV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public listReplicaSetForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listReplicaSetForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.listReplicaSetForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); // build promise chain @@ -2602,10 +3498,27 @@ export class ObservableAppsV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listReplicaSetForAllNamespaces(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listReplicaSetForAllNamespacesWithHttpInfo(rsp))); })); } + /** + * list or watch objects of kind ReplicaSet + * @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. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + return this.listReplicaSetForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * list or watch objects of kind StatefulSet * @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. @@ -2619,7 +3532,7 @@ export class ObservableAppsV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public listStatefulSetForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listStatefulSetForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.listStatefulSetForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); // build promise chain @@ -2634,10 +3547,27 @@ export class ObservableAppsV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listStatefulSetForAllNamespaces(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listStatefulSetForAllNamespacesWithHttpInfo(rsp))); })); } + /** + * list or watch objects of kind StatefulSet + * @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. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + return this.listStatefulSetForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * partially update the specified ControllerRevision * @param name name of the ControllerRevision @@ -2648,7 +3578,7 @@ export class ObservableAppsV1Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). * @param force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + public patchNamespacedControllerRevisionWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.patchNamespacedControllerRevision(name, namespace, body, pretty, dryRun, fieldManager, force, _options); // build promise chain @@ -2663,10 +3593,24 @@ export class ObservableAppsV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedControllerRevision(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedControllerRevisionWithHttpInfo(rsp))); })); } + /** + * partially update the specified ControllerRevision + * @param name name of the ControllerRevision + * @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. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + return this.patchNamespacedControllerRevisionWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * partially update the specified DaemonSet * @param name name of the DaemonSet @@ -2677,7 +3621,7 @@ export class ObservableAppsV1Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). * @param force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + public patchNamespacedDaemonSetWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.patchNamespacedDaemonSet(name, namespace, body, pretty, dryRun, fieldManager, force, _options); // build promise chain @@ -2692,10 +3636,24 @@ export class ObservableAppsV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedDaemonSet(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedDaemonSetWithHttpInfo(rsp))); })); } + /** + * partially update the specified DaemonSet + * @param name name of the DaemonSet + * @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. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + return this.patchNamespacedDaemonSetWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * partially update status of the specified DaemonSet * @param name name of the DaemonSet @@ -2706,7 +3664,7 @@ export class ObservableAppsV1Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). * @param force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + public patchNamespacedDaemonSetStatusWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.patchNamespacedDaemonSetStatus(name, namespace, body, pretty, dryRun, fieldManager, force, _options); // build promise chain @@ -2721,10 +3679,24 @@ export class ObservableAppsV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedDaemonSetStatus(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedDaemonSetStatusWithHttpInfo(rsp))); })); } + /** + * partially update status of the specified DaemonSet + * @param name name of the DaemonSet + * @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. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + return this.patchNamespacedDaemonSetStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * partially update the specified Deployment * @param name name of the Deployment @@ -2735,7 +3707,7 @@ export class ObservableAppsV1Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). * @param force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + public patchNamespacedDeploymentWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.patchNamespacedDeployment(name, namespace, body, pretty, dryRun, fieldManager, force, _options); // build promise chain @@ -2750,10 +3722,24 @@ export class ObservableAppsV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedDeployment(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedDeploymentWithHttpInfo(rsp))); })); } + /** + * partially update the specified Deployment + * @param name name of the Deployment + * @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. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + return this.patchNamespacedDeploymentWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * partially update scale of the specified Deployment * @param name name of the Scale @@ -2764,7 +3750,7 @@ export class ObservableAppsV1Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). * @param force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + public patchNamespacedDeploymentScaleWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.patchNamespacedDeploymentScale(name, namespace, body, pretty, dryRun, fieldManager, force, _options); // build promise chain @@ -2779,10 +3765,24 @@ export class ObservableAppsV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedDeploymentScale(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedDeploymentScaleWithHttpInfo(rsp))); })); } + /** + * partially update scale of the specified Deployment + * @param name name of the Scale + * @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. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + return this.patchNamespacedDeploymentScaleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * partially update status of the specified Deployment * @param name name of the Deployment @@ -2793,7 +3793,7 @@ export class ObservableAppsV1Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). * @param force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + public patchNamespacedDeploymentStatusWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.patchNamespacedDeploymentStatus(name, namespace, body, pretty, dryRun, fieldManager, force, _options); // build promise chain @@ -2808,13 +3808,13 @@ export class ObservableAppsV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedDeploymentStatus(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedDeploymentStatusWithHttpInfo(rsp))); })); } /** - * partially update the specified ReplicaSet - * @param name name of the ReplicaSet + * partially update status of the specified Deployment + * @param name name of the Deployment * @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. @@ -2822,12 +3822,26 @@ export class ObservableAppsV1Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). * @param force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.patchNamespacedReplicaSet(name, namespace, body, pretty, dryRun, fieldManager, force, _options); + public patchNamespacedDeploymentStatus(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable { + return this.patchNamespacedDeploymentStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } - // build promise chain - let middlewarePreObservable = from(requestContextPromise); - for (let middleware of this.configuration.middleware) { + /** + * partially update the specified ReplicaSet + * @param name name of the ReplicaSet + * @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. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.patchNamespacedReplicaSet(name, namespace, body, pretty, dryRun, fieldManager, force, _options); + + // build promise chain + let middlewarePreObservable = from(requestContextPromise); + for (let middleware of this.configuration.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } @@ -2837,10 +3851,24 @@ export class ObservableAppsV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedReplicaSet(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedReplicaSetWithHttpInfo(rsp))); })); } + /** + * partially update the specified ReplicaSet + * @param name name of the ReplicaSet + * @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. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + return this.patchNamespacedReplicaSetWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * partially update scale of the specified ReplicaSet * @param name name of the Scale @@ -2851,7 +3879,7 @@ export class ObservableAppsV1Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). * @param force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + public patchNamespacedReplicaSetScaleWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.patchNamespacedReplicaSetScale(name, namespace, body, pretty, dryRun, fieldManager, force, _options); // build promise chain @@ -2866,10 +3894,24 @@ export class ObservableAppsV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedReplicaSetScale(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedReplicaSetScaleWithHttpInfo(rsp))); })); } + /** + * partially update scale of the specified ReplicaSet + * @param name name of the Scale + * @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. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + return this.patchNamespacedReplicaSetScaleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * partially update status of the specified ReplicaSet * @param name name of the ReplicaSet @@ -2880,7 +3922,7 @@ export class ObservableAppsV1Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). * @param force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + public patchNamespacedReplicaSetStatusWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.patchNamespacedReplicaSetStatus(name, namespace, body, pretty, dryRun, fieldManager, force, _options); // build promise chain @@ -2895,10 +3937,24 @@ export class ObservableAppsV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedReplicaSetStatus(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedReplicaSetStatusWithHttpInfo(rsp))); })); } + /** + * partially update status of the specified ReplicaSet + * @param name name of the ReplicaSet + * @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. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + return this.patchNamespacedReplicaSetStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * partially update the specified StatefulSet * @param name name of the StatefulSet @@ -2909,7 +3965,7 @@ export class ObservableAppsV1Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). * @param force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + public patchNamespacedStatefulSetWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.patchNamespacedStatefulSet(name, namespace, body, pretty, dryRun, fieldManager, force, _options); // build promise chain @@ -2924,10 +3980,24 @@ export class ObservableAppsV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedStatefulSet(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedStatefulSetWithHttpInfo(rsp))); })); } + /** + * partially update the specified StatefulSet + * @param name name of the StatefulSet + * @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. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + return this.patchNamespacedStatefulSetWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * partially update scale of the specified StatefulSet * @param name name of the Scale @@ -2938,7 +4008,7 @@ export class ObservableAppsV1Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). * @param force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + public patchNamespacedStatefulSetScaleWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.patchNamespacedStatefulSetScale(name, namespace, body, pretty, dryRun, fieldManager, force, _options); // build promise chain @@ -2953,10 +4023,24 @@ export class ObservableAppsV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedStatefulSetScale(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedStatefulSetScaleWithHttpInfo(rsp))); })); } + /** + * partially update scale of the specified StatefulSet + * @param name name of the Scale + * @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. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + return this.patchNamespacedStatefulSetScaleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * partially update status of the specified StatefulSet * @param name name of the StatefulSet @@ -2967,7 +4051,7 @@ export class ObservableAppsV1Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). * @param force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + public patchNamespacedStatefulSetStatusWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.patchNamespacedStatefulSetStatus(name, namespace, body, pretty, dryRun, fieldManager, force, _options); // build promise chain @@ -2982,17 +4066,31 @@ export class ObservableAppsV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedStatefulSetStatus(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedStatefulSetStatusWithHttpInfo(rsp))); })); } + /** + * partially update status of the specified StatefulSet + * @param name name of the StatefulSet + * @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. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + return this.patchNamespacedStatefulSetStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * read the specified ControllerRevision * @param name name of the ControllerRevision * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. */ - public readNamespacedControllerRevision(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedControllerRevisionWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.readNamespacedControllerRevision(name, namespace, pretty, _options); // build promise chain @@ -3007,17 +4105,27 @@ export class ObservableAppsV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedControllerRevision(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedControllerRevisionWithHttpInfo(rsp))); })); } + /** + * read the specified ControllerRevision + * @param name name of the ControllerRevision + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + */ + public readNamespacedControllerRevision(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + return this.readNamespacedControllerRevisionWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * read the specified DaemonSet * @param name name of the DaemonSet * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. */ - public readNamespacedDaemonSet(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedDaemonSetWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.readNamespacedDaemonSet(name, namespace, pretty, _options); // build promise chain @@ -3032,17 +4140,27 @@ export class ObservableAppsV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedDaemonSet(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedDaemonSetWithHttpInfo(rsp))); })); } + /** + * read the specified DaemonSet + * @param name name of the DaemonSet + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + */ + public readNamespacedDaemonSet(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + return this.readNamespacedDaemonSetWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * read status of the specified DaemonSet * @param name name of the DaemonSet * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. */ - public readNamespacedDaemonSetStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedDaemonSetStatusWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.readNamespacedDaemonSetStatus(name, namespace, pretty, _options); // build promise chain @@ -3057,17 +4175,27 @@ export class ObservableAppsV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedDaemonSetStatus(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedDaemonSetStatusWithHttpInfo(rsp))); })); } + /** + * read status of the specified DaemonSet + * @param name name of the DaemonSet + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + */ + public readNamespacedDaemonSetStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + return this.readNamespacedDaemonSetStatusWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * read the specified Deployment * @param name name of the Deployment * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. */ - public readNamespacedDeployment(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedDeploymentWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.readNamespacedDeployment(name, namespace, pretty, _options); // build promise chain @@ -3082,17 +4210,27 @@ export class ObservableAppsV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedDeployment(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedDeploymentWithHttpInfo(rsp))); })); } + /** + * read the specified Deployment + * @param name name of the Deployment + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + */ + public readNamespacedDeployment(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + return this.readNamespacedDeploymentWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * read scale of the specified Deployment * @param name name of the Scale * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. */ - public readNamespacedDeploymentScale(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedDeploymentScaleWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.readNamespacedDeploymentScale(name, namespace, pretty, _options); // build promise chain @@ -3107,17 +4245,27 @@ export class ObservableAppsV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedDeploymentScale(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedDeploymentScaleWithHttpInfo(rsp))); })); } + /** + * read scale of the specified Deployment + * @param name name of the Scale + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + */ + public readNamespacedDeploymentScale(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + return this.readNamespacedDeploymentScaleWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * read status of the specified Deployment * @param name name of the Deployment * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. */ - public readNamespacedDeploymentStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedDeploymentStatusWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.readNamespacedDeploymentStatus(name, namespace, pretty, _options); // build promise chain @@ -3132,17 +4280,27 @@ export class ObservableAppsV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedDeploymentStatus(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedDeploymentStatusWithHttpInfo(rsp))); })); } + /** + * read status of the specified Deployment + * @param name name of the Deployment + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + */ + public readNamespacedDeploymentStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + return this.readNamespacedDeploymentStatusWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * read the specified ReplicaSet * @param name name of the ReplicaSet * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. */ - public readNamespacedReplicaSet(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedReplicaSetWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.readNamespacedReplicaSet(name, namespace, pretty, _options); // build promise chain @@ -3157,17 +4315,27 @@ export class ObservableAppsV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedReplicaSet(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedReplicaSetWithHttpInfo(rsp))); })); } + /** + * read the specified ReplicaSet + * @param name name of the ReplicaSet + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + */ + public readNamespacedReplicaSet(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + return this.readNamespacedReplicaSetWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * read scale of the specified ReplicaSet * @param name name of the Scale * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. */ - public readNamespacedReplicaSetScale(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedReplicaSetScaleWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.readNamespacedReplicaSetScale(name, namespace, pretty, _options); // build promise chain @@ -3182,17 +4350,27 @@ export class ObservableAppsV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedReplicaSetScale(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedReplicaSetScaleWithHttpInfo(rsp))); })); } + /** + * read scale of the specified ReplicaSet + * @param name name of the Scale + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + */ + public readNamespacedReplicaSetScale(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + return this.readNamespacedReplicaSetScaleWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * read status of the specified ReplicaSet * @param name name of the ReplicaSet * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. */ - public readNamespacedReplicaSetStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedReplicaSetStatusWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.readNamespacedReplicaSetStatus(name, namespace, pretty, _options); // build promise chain @@ -3207,17 +4385,27 @@ export class ObservableAppsV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedReplicaSetStatus(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedReplicaSetStatusWithHttpInfo(rsp))); })); } + /** + * read status of the specified ReplicaSet + * @param name name of the ReplicaSet + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + */ + public readNamespacedReplicaSetStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + return this.readNamespacedReplicaSetStatusWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * read the specified StatefulSet * @param name name of the StatefulSet * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. */ - public readNamespacedStatefulSet(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedStatefulSetWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.readNamespacedStatefulSet(name, namespace, pretty, _options); // build promise chain @@ -3232,17 +4420,27 @@ export class ObservableAppsV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedStatefulSet(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedStatefulSetWithHttpInfo(rsp))); })); } + /** + * read the specified StatefulSet + * @param name name of the StatefulSet + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + */ + public readNamespacedStatefulSet(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + return this.readNamespacedStatefulSetWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * read scale of the specified StatefulSet * @param name name of the Scale * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. */ - public readNamespacedStatefulSetScale(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedStatefulSetScaleWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.readNamespacedStatefulSetScale(name, namespace, pretty, _options); // build promise chain @@ -3257,17 +4455,27 @@ export class ObservableAppsV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedStatefulSetScale(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedStatefulSetScaleWithHttpInfo(rsp))); })); } + /** + * read scale of the specified StatefulSet + * @param name name of the Scale + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + */ + public readNamespacedStatefulSetScale(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + return this.readNamespacedStatefulSetScaleWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * read status of the specified StatefulSet * @param name name of the StatefulSet * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. */ - public readNamespacedStatefulSetStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedStatefulSetStatusWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.readNamespacedStatefulSetStatus(name, namespace, pretty, _options); // build promise chain @@ -3282,10 +4490,20 @@ export class ObservableAppsV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedStatefulSetStatus(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedStatefulSetStatusWithHttpInfo(rsp))); })); } + /** + * read status of the specified StatefulSet + * @param name name of the StatefulSet + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + */ + public readNamespacedStatefulSetStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + return this.readNamespacedStatefulSetStatusWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * replace the specified ControllerRevision * @param name name of the ControllerRevision @@ -3295,7 +4513,7 @@ export class ObservableAppsV1Api { * @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. */ - public replaceNamespacedControllerRevision(name: string, namespace: string, body: V1ControllerRevision, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public replaceNamespacedControllerRevisionWithHttpInfo(name: string, namespace: string, body: V1ControllerRevision, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.replaceNamespacedControllerRevision(name, namespace, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -3310,10 +4528,23 @@ export class ObservableAppsV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedControllerRevision(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedControllerRevisionWithHttpInfo(rsp))); })); } + /** + * replace the specified ControllerRevision + * @param name name of the ControllerRevision + * @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. + * @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. + */ + public replaceNamespacedControllerRevision(name: string, namespace: string, body: V1ControllerRevision, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.replaceNamespacedControllerRevisionWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * replace the specified DaemonSet * @param name name of the DaemonSet @@ -3323,7 +4554,7 @@ export class ObservableAppsV1Api { * @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. */ - public replaceNamespacedDaemonSet(name: string, namespace: string, body: V1DaemonSet, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public replaceNamespacedDaemonSetWithHttpInfo(name: string, namespace: string, body: V1DaemonSet, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.replaceNamespacedDaemonSet(name, namespace, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -3338,10 +4569,23 @@ export class ObservableAppsV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedDaemonSet(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedDaemonSetWithHttpInfo(rsp))); })); } + /** + * replace the specified DaemonSet + * @param name name of the DaemonSet + * @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. + * @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. + */ + public replaceNamespacedDaemonSet(name: string, namespace: string, body: V1DaemonSet, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.replaceNamespacedDaemonSetWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * replace status of the specified DaemonSet * @param name name of the DaemonSet @@ -3351,7 +4595,7 @@ export class ObservableAppsV1Api { * @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. */ - public replaceNamespacedDaemonSetStatus(name: string, namespace: string, body: V1DaemonSet, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public replaceNamespacedDaemonSetStatusWithHttpInfo(name: string, namespace: string, body: V1DaemonSet, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.replaceNamespacedDaemonSetStatus(name, namespace, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -3366,25 +4610,38 @@ export class ObservableAppsV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedDaemonSetStatus(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedDaemonSetStatusWithHttpInfo(rsp))); })); } /** - * replace the specified Deployment - * @param name name of the Deployment + * replace status of the specified DaemonSet + * @param name name of the DaemonSet * @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. * @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. */ - public replaceNamespacedDeployment(name: string, namespace: string, body: V1Deployment, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.replaceNamespacedDeployment(name, namespace, body, pretty, dryRun, fieldManager, _options); + public replaceNamespacedDaemonSetStatus(name: string, namespace: string, body: V1DaemonSet, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.replaceNamespacedDaemonSetStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } - // build promise chain - let middlewarePreObservable = from(requestContextPromise); - for (let middleware of this.configuration.middleware) { + /** + * replace the specified Deployment + * @param name name of the Deployment + * @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. + * @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. + */ + public replaceNamespacedDeploymentWithHttpInfo(name: string, namespace: string, body: V1Deployment, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.replaceNamespacedDeployment(name, namespace, body, pretty, dryRun, fieldManager, _options); + + // build promise chain + let middlewarePreObservable = from(requestContextPromise); + for (let middleware of this.configuration.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } @@ -3394,10 +4651,23 @@ export class ObservableAppsV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedDeployment(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedDeploymentWithHttpInfo(rsp))); })); } + /** + * replace the specified Deployment + * @param name name of the Deployment + * @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. + * @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. + */ + public replaceNamespacedDeployment(name: string, namespace: string, body: V1Deployment, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.replaceNamespacedDeploymentWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * replace scale of the specified Deployment * @param name name of the Scale @@ -3407,7 +4677,7 @@ export class ObservableAppsV1Api { * @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. */ - public replaceNamespacedDeploymentScale(name: string, namespace: string, body: V1Scale, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public replaceNamespacedDeploymentScaleWithHttpInfo(name: string, namespace: string, body: V1Scale, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.replaceNamespacedDeploymentScale(name, namespace, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -3422,10 +4692,23 @@ export class ObservableAppsV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedDeploymentScale(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedDeploymentScaleWithHttpInfo(rsp))); })); } + /** + * replace scale of the specified Deployment + * @param name name of the Scale + * @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. + * @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. + */ + public replaceNamespacedDeploymentScale(name: string, namespace: string, body: V1Scale, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.replaceNamespacedDeploymentScaleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * replace status of the specified Deployment * @param name name of the Deployment @@ -3435,7 +4718,7 @@ export class ObservableAppsV1Api { * @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. */ - public replaceNamespacedDeploymentStatus(name: string, namespace: string, body: V1Deployment, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public replaceNamespacedDeploymentStatusWithHttpInfo(name: string, namespace: string, body: V1Deployment, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.replaceNamespacedDeploymentStatus(name, namespace, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -3450,10 +4733,23 @@ export class ObservableAppsV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedDeploymentStatus(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedDeploymentStatusWithHttpInfo(rsp))); })); } + /** + * replace status of the specified Deployment + * @param name name of the Deployment + * @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. + * @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. + */ + public replaceNamespacedDeploymentStatus(name: string, namespace: string, body: V1Deployment, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.replaceNamespacedDeploymentStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * replace the specified ReplicaSet * @param name name of the ReplicaSet @@ -3463,7 +4759,7 @@ export class ObservableAppsV1Api { * @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. */ - public replaceNamespacedReplicaSet(name: string, namespace: string, body: V1ReplicaSet, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public replaceNamespacedReplicaSetWithHttpInfo(name: string, namespace: string, body: V1ReplicaSet, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.replaceNamespacedReplicaSet(name, namespace, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -3478,10 +4774,23 @@ export class ObservableAppsV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedReplicaSet(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedReplicaSetWithHttpInfo(rsp))); })); } + /** + * replace the specified ReplicaSet + * @param name name of the ReplicaSet + * @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. + * @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. + */ + public replaceNamespacedReplicaSet(name: string, namespace: string, body: V1ReplicaSet, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.replaceNamespacedReplicaSetWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * replace scale of the specified ReplicaSet * @param name name of the Scale @@ -3491,7 +4800,7 @@ export class ObservableAppsV1Api { * @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. */ - public replaceNamespacedReplicaSetScale(name: string, namespace: string, body: V1Scale, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public replaceNamespacedReplicaSetScaleWithHttpInfo(name: string, namespace: string, body: V1Scale, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.replaceNamespacedReplicaSetScale(name, namespace, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -3506,10 +4815,23 @@ export class ObservableAppsV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedReplicaSetScale(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedReplicaSetScaleWithHttpInfo(rsp))); })); } + /** + * replace scale of the specified ReplicaSet + * @param name name of the Scale + * @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. + * @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. + */ + public replaceNamespacedReplicaSetScale(name: string, namespace: string, body: V1Scale, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.replaceNamespacedReplicaSetScaleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * replace status of the specified ReplicaSet * @param name name of the ReplicaSet @@ -3519,7 +4841,7 @@ export class ObservableAppsV1Api { * @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. */ - public replaceNamespacedReplicaSetStatus(name: string, namespace: string, body: V1ReplicaSet, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public replaceNamespacedReplicaSetStatusWithHttpInfo(name: string, namespace: string, body: V1ReplicaSet, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.replaceNamespacedReplicaSetStatus(name, namespace, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -3534,10 +4856,23 @@ export class ObservableAppsV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedReplicaSetStatus(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedReplicaSetStatusWithHttpInfo(rsp))); })); } + /** + * replace status of the specified ReplicaSet + * @param name name of the ReplicaSet + * @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. + * @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. + */ + public replaceNamespacedReplicaSetStatus(name: string, namespace: string, body: V1ReplicaSet, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.replaceNamespacedReplicaSetStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * replace the specified StatefulSet * @param name name of the StatefulSet @@ -3547,7 +4882,7 @@ export class ObservableAppsV1Api { * @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. */ - public replaceNamespacedStatefulSet(name: string, namespace: string, body: V1StatefulSet, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public replaceNamespacedStatefulSetWithHttpInfo(name: string, namespace: string, body: V1StatefulSet, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.replaceNamespacedStatefulSet(name, namespace, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -3562,10 +4897,23 @@ export class ObservableAppsV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedStatefulSet(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedStatefulSetWithHttpInfo(rsp))); })); } + /** + * replace the specified StatefulSet + * @param name name of the StatefulSet + * @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. + * @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. + */ + public replaceNamespacedStatefulSet(name: string, namespace: string, body: V1StatefulSet, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.replaceNamespacedStatefulSetWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * replace scale of the specified StatefulSet * @param name name of the Scale @@ -3575,7 +4923,7 @@ export class ObservableAppsV1Api { * @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. */ - public replaceNamespacedStatefulSetScale(name: string, namespace: string, body: V1Scale, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public replaceNamespacedStatefulSetScaleWithHttpInfo(name: string, namespace: string, body: V1Scale, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.replaceNamespacedStatefulSetScale(name, namespace, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -3590,10 +4938,23 @@ export class ObservableAppsV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedStatefulSetScale(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedStatefulSetScaleWithHttpInfo(rsp))); })); } + /** + * replace scale of the specified StatefulSet + * @param name name of the Scale + * @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. + * @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. + */ + public replaceNamespacedStatefulSetScale(name: string, namespace: string, body: V1Scale, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.replaceNamespacedStatefulSetScaleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * replace status of the specified StatefulSet * @param name name of the StatefulSet @@ -3603,7 +4964,7 @@ export class ObservableAppsV1Api { * @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. */ - public replaceNamespacedStatefulSetStatus(name: string, namespace: string, body: V1StatefulSet, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public replaceNamespacedStatefulSetStatusWithHttpInfo(name: string, namespace: string, body: V1StatefulSet, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.replaceNamespacedStatefulSetStatus(name, namespace, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -3618,10 +4979,23 @@ export class ObservableAppsV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedStatefulSetStatus(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedStatefulSetStatusWithHttpInfo(rsp))); })); } + /** + * replace status of the specified StatefulSet + * @param name name of the StatefulSet + * @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. + * @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. + */ + public replaceNamespacedStatefulSetStatus(name: string, namespace: string, body: V1StatefulSet, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.replaceNamespacedStatefulSetStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + } import { AuthenticationApiRequestFactory, AuthenticationApiResponseProcessor} from "../apis/AuthenticationApi"; @@ -3643,7 +5017,7 @@ export class ObservableAuthenticationApi { /** * get information of a group */ - public getAPIGroup(_options?: Configuration): Observable { + public getAPIGroupWithHttpInfo(_options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.getAPIGroup(_options); // build promise chain @@ -3658,10 +5032,17 @@ export class ObservableAuthenticationApi { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIGroup(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIGroupWithHttpInfo(rsp))); })); } + /** + * get information of a group + */ + public getAPIGroup(_options?: Configuration): Observable { + return this.getAPIGroupWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + } import { AuthenticationV1ApiRequestFactory, AuthenticationV1ApiResponseProcessor} from "../apis/AuthenticationV1Api"; @@ -3687,7 +5068,7 @@ export class ObservableAuthenticationV1Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. * @param pretty If \'true\', then the output is pretty printed. */ - public createTokenReview(body: V1TokenReview, dryRun?: string, fieldManager?: string, pretty?: string, _options?: Configuration): Observable { + public createTokenReviewWithHttpInfo(body: V1TokenReview, dryRun?: string, fieldManager?: string, pretty?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.createTokenReview(body, dryRun, fieldManager, pretty, _options); // build promise chain @@ -3702,14 +5083,25 @@ export class ObservableAuthenticationV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createTokenReview(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createTokenReviewWithHttpInfo(rsp))); })); } + /** + * create a TokenReview + * @param body + * @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 pretty If \'true\', then the output is pretty printed. + */ + public createTokenReview(body: V1TokenReview, dryRun?: string, fieldManager?: string, pretty?: string, _options?: Configuration): Observable { + return this.createTokenReviewWithHttpInfo(body, dryRun, fieldManager, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * get available resources */ - public getAPIResources(_options?: Configuration): Observable { + public getAPIResourcesWithHttpInfo(_options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.getAPIResources(_options); // build promise chain @@ -3724,10 +5116,17 @@ export class ObservableAuthenticationV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResources(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResourcesWithHttpInfo(rsp))); })); } + /** + * get available resources + */ + public getAPIResources(_options?: Configuration): Observable { + return this.getAPIResourcesWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + } import { AuthorizationApiRequestFactory, AuthorizationApiResponseProcessor} from "../apis/AuthorizationApi"; @@ -3749,7 +5148,7 @@ export class ObservableAuthorizationApi { /** * get information of a group */ - public getAPIGroup(_options?: Configuration): Observable { + public getAPIGroupWithHttpInfo(_options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.getAPIGroup(_options); // build promise chain @@ -3764,10 +5163,17 @@ export class ObservableAuthorizationApi { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIGroup(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIGroupWithHttpInfo(rsp))); })); } + /** + * get information of a group + */ + public getAPIGroup(_options?: Configuration): Observable { + return this.getAPIGroupWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + } import { AuthorizationV1ApiRequestFactory, AuthorizationV1ApiResponseProcessor} from "../apis/AuthorizationV1Api"; @@ -3794,7 +5200,7 @@ export class ObservableAuthorizationV1Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. * @param pretty If \'true\', then the output is pretty printed. */ - public createNamespacedLocalSubjectAccessReview(namespace: string, body: V1LocalSubjectAccessReview, dryRun?: string, fieldManager?: string, pretty?: string, _options?: Configuration): Observable { + public createNamespacedLocalSubjectAccessReviewWithHttpInfo(namespace: string, body: V1LocalSubjectAccessReview, dryRun?: string, fieldManager?: string, pretty?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.createNamespacedLocalSubjectAccessReview(namespace, body, dryRun, fieldManager, pretty, _options); // build promise chain @@ -3809,10 +5215,22 @@ export class ObservableAuthorizationV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedLocalSubjectAccessReview(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedLocalSubjectAccessReviewWithHttpInfo(rsp))); })); } + /** + * create a LocalSubjectAccessReview + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @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 pretty If \'true\', then the output is pretty printed. + */ + public createNamespacedLocalSubjectAccessReview(namespace: string, body: V1LocalSubjectAccessReview, dryRun?: string, fieldManager?: string, pretty?: string, _options?: Configuration): Observable { + return this.createNamespacedLocalSubjectAccessReviewWithHttpInfo(namespace, body, dryRun, fieldManager, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * create a SelfSubjectAccessReview * @param body @@ -3820,7 +5238,7 @@ export class ObservableAuthorizationV1Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. * @param pretty If \'true\', then the output is pretty printed. */ - public createSelfSubjectAccessReview(body: V1SelfSubjectAccessReview, dryRun?: string, fieldManager?: string, pretty?: string, _options?: Configuration): Observable { + public createSelfSubjectAccessReviewWithHttpInfo(body: V1SelfSubjectAccessReview, dryRun?: string, fieldManager?: string, pretty?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.createSelfSubjectAccessReview(body, dryRun, fieldManager, pretty, _options); // build promise chain @@ -3835,10 +5253,21 @@ export class ObservableAuthorizationV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createSelfSubjectAccessReview(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createSelfSubjectAccessReviewWithHttpInfo(rsp))); })); } + /** + * create a SelfSubjectAccessReview + * @param body + * @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 pretty If \'true\', then the output is pretty printed. + */ + public createSelfSubjectAccessReview(body: V1SelfSubjectAccessReview, dryRun?: string, fieldManager?: string, pretty?: string, _options?: Configuration): Observable { + return this.createSelfSubjectAccessReviewWithHttpInfo(body, dryRun, fieldManager, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * create a SelfSubjectRulesReview * @param body @@ -3846,7 +5275,7 @@ export class ObservableAuthorizationV1Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. * @param pretty If \'true\', then the output is pretty printed. */ - public createSelfSubjectRulesReview(body: V1SelfSubjectRulesReview, dryRun?: string, fieldManager?: string, pretty?: string, _options?: Configuration): Observable { + public createSelfSubjectRulesReviewWithHttpInfo(body: V1SelfSubjectRulesReview, dryRun?: string, fieldManager?: string, pretty?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.createSelfSubjectRulesReview(body, dryRun, fieldManager, pretty, _options); // build promise chain @@ -3861,10 +5290,21 @@ export class ObservableAuthorizationV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createSelfSubjectRulesReview(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createSelfSubjectRulesReviewWithHttpInfo(rsp))); })); } + /** + * create a SelfSubjectRulesReview + * @param body + * @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 pretty If \'true\', then the output is pretty printed. + */ + public createSelfSubjectRulesReview(body: V1SelfSubjectRulesReview, dryRun?: string, fieldManager?: string, pretty?: string, _options?: Configuration): Observable { + return this.createSelfSubjectRulesReviewWithHttpInfo(body, dryRun, fieldManager, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * create a SubjectAccessReview * @param body @@ -3872,7 +5312,7 @@ export class ObservableAuthorizationV1Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. * @param pretty If \'true\', then the output is pretty printed. */ - public createSubjectAccessReview(body: V1SubjectAccessReview, dryRun?: string, fieldManager?: string, pretty?: string, _options?: Configuration): Observable { + public createSubjectAccessReviewWithHttpInfo(body: V1SubjectAccessReview, dryRun?: string, fieldManager?: string, pretty?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.createSubjectAccessReview(body, dryRun, fieldManager, pretty, _options); // build promise chain @@ -3887,14 +5327,25 @@ export class ObservableAuthorizationV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createSubjectAccessReview(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createSubjectAccessReviewWithHttpInfo(rsp))); })); } + /** + * create a SubjectAccessReview + * @param body + * @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 pretty If \'true\', then the output is pretty printed. + */ + public createSubjectAccessReview(body: V1SubjectAccessReview, dryRun?: string, fieldManager?: string, pretty?: string, _options?: Configuration): Observable { + return this.createSubjectAccessReviewWithHttpInfo(body, dryRun, fieldManager, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * get available resources */ - public getAPIResources(_options?: Configuration): Observable { + public getAPIResourcesWithHttpInfo(_options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.getAPIResources(_options); // build promise chain @@ -3909,10 +5360,17 @@ export class ObservableAuthorizationV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResources(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResourcesWithHttpInfo(rsp))); })); } + /** + * get available resources + */ + public getAPIResources(_options?: Configuration): Observable { + return this.getAPIResourcesWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + } import { AutoscalingApiRequestFactory, AutoscalingApiResponseProcessor} from "../apis/AutoscalingApi"; @@ -3934,7 +5392,7 @@ export class ObservableAutoscalingApi { /** * get information of a group */ - public getAPIGroup(_options?: Configuration): Observable { + public getAPIGroupWithHttpInfo(_options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.getAPIGroup(_options); // build promise chain @@ -3949,10 +5407,17 @@ export class ObservableAutoscalingApi { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIGroup(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIGroupWithHttpInfo(rsp))); })); } + /** + * get information of a group + */ + public getAPIGroup(_options?: Configuration): Observable { + return this.getAPIGroupWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + } import { AutoscalingV1ApiRequestFactory, AutoscalingV1ApiResponseProcessor} from "../apis/AutoscalingV1Api"; @@ -3979,7 +5444,7 @@ export class ObservableAutoscalingV1Api { * @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. */ - public createNamespacedHorizontalPodAutoscaler(namespace: string, body: V1HorizontalPodAutoscaler, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public createNamespacedHorizontalPodAutoscalerWithHttpInfo(namespace: string, body: V1HorizontalPodAutoscaler, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.createNamespacedHorizontalPodAutoscaler(namespace, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -3994,10 +5459,22 @@ export class ObservableAutoscalingV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedHorizontalPodAutoscaler(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedHorizontalPodAutoscalerWithHttpInfo(rsp))); })); } + /** + * create a HorizontalPodAutoscaler + * @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. + * @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. + */ + public createNamespacedHorizontalPodAutoscaler(namespace: string, body: V1HorizontalPodAutoscaler, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.createNamespacedHorizontalPodAutoscalerWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * delete collection of HorizontalPodAutoscaler * @param namespace object name and auth scope, such as for teams and projects @@ -4015,7 +5492,7 @@ export class ObservableAutoscalingV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param body */ - public deleteCollectionNamespacedHorizontalPodAutoscaler(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteCollectionNamespacedHorizontalPodAutoscalerWithHttpInfo(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.deleteCollectionNamespacedHorizontalPodAutoscaler(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); // build promise chain @@ -4030,10 +5507,31 @@ export class ObservableAutoscalingV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedHorizontalPodAutoscaler(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedHorizontalPodAutoscalerWithHttpInfo(rsp))); })); } + /** + * delete collection of HorizontalPodAutoscaler + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionNamespacedHorizontalPodAutoscaler(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { + return this.deleteCollectionNamespacedHorizontalPodAutoscalerWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * delete a HorizontalPodAutoscaler * @param name name of the HorizontalPodAutoscaler @@ -4045,7 +5543,7 @@ export class ObservableAutoscalingV1Api { * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. * @param body */ - public deleteNamespacedHorizontalPodAutoscaler(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteNamespacedHorizontalPodAutoscalerWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.deleteNamespacedHorizontalPodAutoscaler(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); // build promise chain @@ -4060,14 +5558,29 @@ export class ObservableAutoscalingV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedHorizontalPodAutoscaler(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedHorizontalPodAutoscalerWithHttpInfo(rsp))); })); } /** - * get available resources + * delete a HorizontalPodAutoscaler + * @param name name of the HorizontalPodAutoscaler + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 getAPIResources(_options?: Configuration): Observable { + public deleteNamespacedHorizontalPodAutoscaler(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + return this.deleteNamespacedHorizontalPodAutoscalerWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * get available resources + */ + public getAPIResourcesWithHttpInfo(_options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.getAPIResources(_options); // build promise chain @@ -4082,10 +5595,17 @@ export class ObservableAutoscalingV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResources(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResourcesWithHttpInfo(rsp))); })); } + /** + * get available resources + */ + public getAPIResources(_options?: Configuration): Observable { + return this.getAPIResourcesWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * list or watch objects of kind HorizontalPodAutoscaler * @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. @@ -4099,7 +5619,7 @@ export class ObservableAutoscalingV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public listHorizontalPodAutoscalerForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listHorizontalPodAutoscalerForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.listHorizontalPodAutoscalerForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); // build promise chain @@ -4114,10 +5634,27 @@ export class ObservableAutoscalingV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listHorizontalPodAutoscalerForAllNamespaces(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listHorizontalPodAutoscalerForAllNamespacesWithHttpInfo(rsp))); })); } + /** + * list or watch objects of kind HorizontalPodAutoscaler + * @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. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + return this.listHorizontalPodAutoscalerForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * list or watch objects of kind HorizontalPodAutoscaler * @param namespace object name and auth scope, such as for teams and projects @@ -4132,7 +5669,7 @@ export class ObservableAutoscalingV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public listNamespacedHorizontalPodAutoscaler(namespace: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listNamespacedHorizontalPodAutoscalerWithHttpInfo(namespace: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.listNamespacedHorizontalPodAutoscaler(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); // build promise chain @@ -4147,10 +5684,28 @@ export class ObservableAutoscalingV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedHorizontalPodAutoscaler(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedHorizontalPodAutoscalerWithHttpInfo(rsp))); })); } + /** + * list or watch objects of kind HorizontalPodAutoscaler + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + return this.listNamespacedHorizontalPodAutoscalerWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * partially update the specified HorizontalPodAutoscaler * @param name name of the HorizontalPodAutoscaler @@ -4161,7 +5716,7 @@ export class ObservableAutoscalingV1Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). * @param force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + public patchNamespacedHorizontalPodAutoscalerWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.patchNamespacedHorizontalPodAutoscaler(name, namespace, body, pretty, dryRun, fieldManager, force, _options); // build promise chain @@ -4176,10 +5731,24 @@ export class ObservableAutoscalingV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedHorizontalPodAutoscaler(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedHorizontalPodAutoscalerWithHttpInfo(rsp))); })); } + /** + * partially update the specified HorizontalPodAutoscaler + * @param name name of the HorizontalPodAutoscaler + * @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. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + return this.patchNamespacedHorizontalPodAutoscalerWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * partially update status of the specified HorizontalPodAutoscaler * @param name name of the HorizontalPodAutoscaler @@ -4190,7 +5759,7 @@ export class ObservableAutoscalingV1Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). * @param force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + public patchNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.patchNamespacedHorizontalPodAutoscalerStatus(name, namespace, body, pretty, dryRun, fieldManager, force, _options); // build promise chain @@ -4205,17 +5774,31 @@ export class ObservableAutoscalingV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedHorizontalPodAutoscalerStatus(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(rsp))); })); } + /** + * partially update status of the specified HorizontalPodAutoscaler + * @param name name of the HorizontalPodAutoscaler + * @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. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + return this.patchNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * read the specified HorizontalPodAutoscaler * @param name name of the HorizontalPodAutoscaler * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. */ - public readNamespacedHorizontalPodAutoscaler(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedHorizontalPodAutoscalerWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.readNamespacedHorizontalPodAutoscaler(name, namespace, pretty, _options); // build promise chain @@ -4230,17 +5813,27 @@ export class ObservableAutoscalingV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedHorizontalPodAutoscaler(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedHorizontalPodAutoscalerWithHttpInfo(rsp))); })); } + /** + * read the specified HorizontalPodAutoscaler + * @param name name of the HorizontalPodAutoscaler + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + */ + public readNamespacedHorizontalPodAutoscaler(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + return this.readNamespacedHorizontalPodAutoscalerWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * read status of the specified HorizontalPodAutoscaler * @param name name of the HorizontalPodAutoscaler * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. */ - public readNamespacedHorizontalPodAutoscalerStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.readNamespacedHorizontalPodAutoscalerStatus(name, namespace, pretty, _options); // build promise chain @@ -4255,10 +5848,20 @@ export class ObservableAutoscalingV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedHorizontalPodAutoscalerStatus(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(rsp))); })); } + /** + * read status of the specified HorizontalPodAutoscaler + * @param name name of the HorizontalPodAutoscaler + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + */ + public readNamespacedHorizontalPodAutoscalerStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + return this.readNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * replace the specified HorizontalPodAutoscaler * @param name name of the HorizontalPodAutoscaler @@ -4268,7 +5871,7 @@ export class ObservableAutoscalingV1Api { * @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. */ - public replaceNamespacedHorizontalPodAutoscaler(name: string, namespace: string, body: V1HorizontalPodAutoscaler, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public replaceNamespacedHorizontalPodAutoscalerWithHttpInfo(name: string, namespace: string, body: V1HorizontalPodAutoscaler, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.replaceNamespacedHorizontalPodAutoscaler(name, namespace, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -4283,10 +5886,23 @@ export class ObservableAutoscalingV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedHorizontalPodAutoscaler(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedHorizontalPodAutoscalerWithHttpInfo(rsp))); })); } + /** + * replace the specified HorizontalPodAutoscaler + * @param name name of the HorizontalPodAutoscaler + * @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. + * @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. + */ + public replaceNamespacedHorizontalPodAutoscaler(name: string, namespace: string, body: V1HorizontalPodAutoscaler, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.replaceNamespacedHorizontalPodAutoscalerWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * replace status of the specified HorizontalPodAutoscaler * @param name name of the HorizontalPodAutoscaler @@ -4296,7 +5912,7 @@ export class ObservableAutoscalingV1Api { * @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. */ - public replaceNamespacedHorizontalPodAutoscalerStatus(name: string, namespace: string, body: V1HorizontalPodAutoscaler, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public replaceNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(name: string, namespace: string, body: V1HorizontalPodAutoscaler, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.replaceNamespacedHorizontalPodAutoscalerStatus(name, namespace, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -4311,10 +5927,23 @@ export class ObservableAutoscalingV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedHorizontalPodAutoscalerStatus(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(rsp))); })); } + /** + * replace status of the specified HorizontalPodAutoscaler + * @param name name of the HorizontalPodAutoscaler + * @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. + * @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. + */ + public replaceNamespacedHorizontalPodAutoscalerStatus(name: string, namespace: string, body: V1HorizontalPodAutoscaler, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.replaceNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + } import { AutoscalingV2beta1ApiRequestFactory, AutoscalingV2beta1ApiResponseProcessor} from "../apis/AutoscalingV2beta1Api"; @@ -4341,7 +5970,7 @@ export class ObservableAutoscalingV2beta1Api { * @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. */ - public createNamespacedHorizontalPodAutoscaler(namespace: string, body: V2beta1HorizontalPodAutoscaler, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public createNamespacedHorizontalPodAutoscalerWithHttpInfo(namespace: string, body: V2beta1HorizontalPodAutoscaler, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.createNamespacedHorizontalPodAutoscaler(namespace, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -4356,10 +5985,22 @@ export class ObservableAutoscalingV2beta1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedHorizontalPodAutoscaler(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedHorizontalPodAutoscalerWithHttpInfo(rsp))); })); } + /** + * create a HorizontalPodAutoscaler + * @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. + * @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. + */ + public createNamespacedHorizontalPodAutoscaler(namespace: string, body: V2beta1HorizontalPodAutoscaler, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.createNamespacedHorizontalPodAutoscalerWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * delete collection of HorizontalPodAutoscaler * @param namespace object name and auth scope, such as for teams and projects @@ -4377,7 +6018,7 @@ export class ObservableAutoscalingV2beta1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param body */ - public deleteCollectionNamespacedHorizontalPodAutoscaler(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteCollectionNamespacedHorizontalPodAutoscalerWithHttpInfo(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.deleteCollectionNamespacedHorizontalPodAutoscaler(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); // build promise chain @@ -4392,10 +6033,31 @@ export class ObservableAutoscalingV2beta1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedHorizontalPodAutoscaler(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedHorizontalPodAutoscalerWithHttpInfo(rsp))); })); } + /** + * delete collection of HorizontalPodAutoscaler + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionNamespacedHorizontalPodAutoscaler(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { + return this.deleteCollectionNamespacedHorizontalPodAutoscalerWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * delete a HorizontalPodAutoscaler * @param name name of the HorizontalPodAutoscaler @@ -4407,7 +6069,7 @@ export class ObservableAutoscalingV2beta1Api { * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. * @param body */ - public deleteNamespacedHorizontalPodAutoscaler(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteNamespacedHorizontalPodAutoscalerWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.deleteNamespacedHorizontalPodAutoscaler(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); // build promise chain @@ -4422,14 +6084,29 @@ export class ObservableAutoscalingV2beta1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedHorizontalPodAutoscaler(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedHorizontalPodAutoscalerWithHttpInfo(rsp))); })); } + /** + * delete a HorizontalPodAutoscaler + * @param name name of the HorizontalPodAutoscaler + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteNamespacedHorizontalPodAutoscaler(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + return this.deleteNamespacedHorizontalPodAutoscalerWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * get available resources */ - public getAPIResources(_options?: Configuration): Observable { + public getAPIResourcesWithHttpInfo(_options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.getAPIResources(_options); // build promise chain @@ -4444,10 +6121,17 @@ export class ObservableAutoscalingV2beta1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResources(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResourcesWithHttpInfo(rsp))); })); } + /** + * get available resources + */ + public getAPIResources(_options?: Configuration): Observable { + return this.getAPIResourcesWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * list or watch objects of kind HorizontalPodAutoscaler * @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. @@ -4461,7 +6145,7 @@ export class ObservableAutoscalingV2beta1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listHorizontalPodAutoscalerForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.listHorizontalPodAutoscalerForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); // build promise chain @@ -4476,10 +6160,27 @@ export class ObservableAutoscalingV2beta1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listHorizontalPodAutoscalerForAllNamespaces(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listHorizontalPodAutoscalerForAllNamespacesWithHttpInfo(rsp))); })); } + /** + * list or watch objects of kind HorizontalPodAutoscaler + * @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. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + return this.listHorizontalPodAutoscalerForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * list or watch objects of kind HorizontalPodAutoscaler * @param namespace object name and auth scope, such as for teams and projects @@ -4494,7 +6195,7 @@ export class ObservableAutoscalingV2beta1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listNamespacedHorizontalPodAutoscalerWithHttpInfo(namespace: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.listNamespacedHorizontalPodAutoscaler(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); // build promise chain @@ -4509,10 +6210,28 @@ export class ObservableAutoscalingV2beta1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedHorizontalPodAutoscaler(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedHorizontalPodAutoscalerWithHttpInfo(rsp))); })); } + /** + * list or watch objects of kind HorizontalPodAutoscaler + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + return this.listNamespacedHorizontalPodAutoscalerWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * partially update the specified HorizontalPodAutoscaler * @param name name of the HorizontalPodAutoscaler @@ -4523,7 +6242,7 @@ export class ObservableAutoscalingV2beta1Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + public patchNamespacedHorizontalPodAutoscalerWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.patchNamespacedHorizontalPodAutoscaler(name, namespace, body, pretty, dryRun, fieldManager, force, _options); // build promise chain @@ -4538,10 +6257,24 @@ export class ObservableAutoscalingV2beta1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedHorizontalPodAutoscaler(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedHorizontalPodAutoscalerWithHttpInfo(rsp))); })); } + /** + * partially update the specified HorizontalPodAutoscaler + * @param name name of the HorizontalPodAutoscaler + * @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. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + return this.patchNamespacedHorizontalPodAutoscalerWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * partially update status of the specified HorizontalPodAutoscaler * @param name name of the HorizontalPodAutoscaler @@ -4552,7 +6285,7 @@ export class ObservableAutoscalingV2beta1Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + public patchNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.patchNamespacedHorizontalPodAutoscalerStatus(name, namespace, body, pretty, dryRun, fieldManager, force, _options); // build promise chain @@ -4567,17 +6300,31 @@ export class ObservableAutoscalingV2beta1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedHorizontalPodAutoscalerStatus(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(rsp))); })); } + /** + * partially update status of the specified HorizontalPodAutoscaler + * @param name name of the HorizontalPodAutoscaler + * @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. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + return this.patchNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * read the specified HorizontalPodAutoscaler * @param name name of the HorizontalPodAutoscaler * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. */ - public readNamespacedHorizontalPodAutoscaler(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedHorizontalPodAutoscalerWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.readNamespacedHorizontalPodAutoscaler(name, namespace, pretty, _options); // build promise chain @@ -4592,18 +6339,28 @@ export class ObservableAutoscalingV2beta1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedHorizontalPodAutoscaler(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedHorizontalPodAutoscalerWithHttpInfo(rsp))); })); } /** - * read status of the specified HorizontalPodAutoscaler + * read the specified HorizontalPodAutoscaler * @param name name of the HorizontalPodAutoscaler * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. */ - public readNamespacedHorizontalPodAutoscalerStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.readNamespacedHorizontalPodAutoscalerStatus(name, namespace, pretty, _options); + public readNamespacedHorizontalPodAutoscaler(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + return this.readNamespacedHorizontalPodAutoscalerWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * read status of the specified HorizontalPodAutoscaler + * @param name name of the HorizontalPodAutoscaler + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + */ + public readNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.readNamespacedHorizontalPodAutoscalerStatus(name, namespace, pretty, _options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -4617,10 +6374,20 @@ export class ObservableAutoscalingV2beta1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedHorizontalPodAutoscalerStatus(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(rsp))); })); } + /** + * read status of the specified HorizontalPodAutoscaler + * @param name name of the HorizontalPodAutoscaler + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + */ + public readNamespacedHorizontalPodAutoscalerStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + return this.readNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * replace the specified HorizontalPodAutoscaler * @param name name of the HorizontalPodAutoscaler @@ -4630,7 +6397,7 @@ export class ObservableAutoscalingV2beta1Api { * @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. */ - public replaceNamespacedHorizontalPodAutoscaler(name: string, namespace: string, body: V2beta1HorizontalPodAutoscaler, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public replaceNamespacedHorizontalPodAutoscalerWithHttpInfo(name: string, namespace: string, body: V2beta1HorizontalPodAutoscaler, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.replaceNamespacedHorizontalPodAutoscaler(name, namespace, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -4645,10 +6412,23 @@ export class ObservableAutoscalingV2beta1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedHorizontalPodAutoscaler(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedHorizontalPodAutoscalerWithHttpInfo(rsp))); })); } + /** + * replace the specified HorizontalPodAutoscaler + * @param name name of the HorizontalPodAutoscaler + * @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. + * @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. + */ + public replaceNamespacedHorizontalPodAutoscaler(name: string, namespace: string, body: V2beta1HorizontalPodAutoscaler, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.replaceNamespacedHorizontalPodAutoscalerWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * replace status of the specified HorizontalPodAutoscaler * @param name name of the HorizontalPodAutoscaler @@ -4658,7 +6438,7 @@ export class ObservableAutoscalingV2beta1Api { * @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. */ - public replaceNamespacedHorizontalPodAutoscalerStatus(name: string, namespace: string, body: V2beta1HorizontalPodAutoscaler, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public replaceNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(name: string, namespace: string, body: V2beta1HorizontalPodAutoscaler, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.replaceNamespacedHorizontalPodAutoscalerStatus(name, namespace, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -4673,10 +6453,23 @@ export class ObservableAutoscalingV2beta1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedHorizontalPodAutoscalerStatus(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(rsp))); })); } + /** + * replace status of the specified HorizontalPodAutoscaler + * @param name name of the HorizontalPodAutoscaler + * @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. + * @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. + */ + public replaceNamespacedHorizontalPodAutoscalerStatus(name: string, namespace: string, body: V2beta1HorizontalPodAutoscaler, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.replaceNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + } import { AutoscalingV2beta2ApiRequestFactory, AutoscalingV2beta2ApiResponseProcessor} from "../apis/AutoscalingV2beta2Api"; @@ -4703,7 +6496,7 @@ export class ObservableAutoscalingV2beta2Api { * @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. */ - public createNamespacedHorizontalPodAutoscaler(namespace: string, body: V2beta2HorizontalPodAutoscaler, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public createNamespacedHorizontalPodAutoscalerWithHttpInfo(namespace: string, body: V2beta2HorizontalPodAutoscaler, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.createNamespacedHorizontalPodAutoscaler(namespace, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -4718,10 +6511,22 @@ export class ObservableAutoscalingV2beta2Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedHorizontalPodAutoscaler(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedHorizontalPodAutoscalerWithHttpInfo(rsp))); })); } + /** + * create a HorizontalPodAutoscaler + * @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. + * @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. + */ + public createNamespacedHorizontalPodAutoscaler(namespace: string, body: V2beta2HorizontalPodAutoscaler, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.createNamespacedHorizontalPodAutoscalerWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * delete collection of HorizontalPodAutoscaler * @param namespace object name and auth scope, such as for teams and projects @@ -4739,7 +6544,7 @@ export class ObservableAutoscalingV2beta2Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param body */ - public deleteCollectionNamespacedHorizontalPodAutoscaler(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteCollectionNamespacedHorizontalPodAutoscalerWithHttpInfo(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.deleteCollectionNamespacedHorizontalPodAutoscaler(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); // build promise chain @@ -4754,10 +6559,31 @@ export class ObservableAutoscalingV2beta2Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedHorizontalPodAutoscaler(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedHorizontalPodAutoscalerWithHttpInfo(rsp))); })); } + /** + * delete collection of HorizontalPodAutoscaler + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionNamespacedHorizontalPodAutoscaler(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { + return this.deleteCollectionNamespacedHorizontalPodAutoscalerWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * delete a HorizontalPodAutoscaler * @param name name of the HorizontalPodAutoscaler @@ -4769,7 +6595,7 @@ export class ObservableAutoscalingV2beta2Api { * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. * @param body */ - public deleteNamespacedHorizontalPodAutoscaler(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteNamespacedHorizontalPodAutoscalerWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.deleteNamespacedHorizontalPodAutoscaler(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); // build promise chain @@ -4784,14 +6610,29 @@ export class ObservableAutoscalingV2beta2Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedHorizontalPodAutoscaler(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedHorizontalPodAutoscalerWithHttpInfo(rsp))); })); } + /** + * delete a HorizontalPodAutoscaler + * @param name name of the HorizontalPodAutoscaler + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteNamespacedHorizontalPodAutoscaler(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + return this.deleteNamespacedHorizontalPodAutoscalerWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * get available resources */ - public getAPIResources(_options?: Configuration): Observable { + public getAPIResourcesWithHttpInfo(_options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.getAPIResources(_options); // build promise chain @@ -4806,10 +6647,17 @@ export class ObservableAutoscalingV2beta2Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResources(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResourcesWithHttpInfo(rsp))); })); } + /** + * get available resources + */ + public getAPIResources(_options?: Configuration): Observable { + return this.getAPIResourcesWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * list or watch objects of kind HorizontalPodAutoscaler * @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. @@ -4823,7 +6671,7 @@ export class ObservableAutoscalingV2beta2Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listHorizontalPodAutoscalerForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.listHorizontalPodAutoscalerForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); // build promise chain @@ -4838,10 +6686,27 @@ export class ObservableAutoscalingV2beta2Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listHorizontalPodAutoscalerForAllNamespaces(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listHorizontalPodAutoscalerForAllNamespacesWithHttpInfo(rsp))); })); } + /** + * list or watch objects of kind HorizontalPodAutoscaler + * @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. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + return this.listHorizontalPodAutoscalerForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * list or watch objects of kind HorizontalPodAutoscaler * @param namespace object name and auth scope, such as for teams and projects @@ -4856,7 +6721,7 @@ export class ObservableAutoscalingV2beta2Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listNamespacedHorizontalPodAutoscalerWithHttpInfo(namespace: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.listNamespacedHorizontalPodAutoscaler(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); // build promise chain @@ -4871,10 +6736,28 @@ export class ObservableAutoscalingV2beta2Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedHorizontalPodAutoscaler(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedHorizontalPodAutoscalerWithHttpInfo(rsp))); })); } + /** + * list or watch objects of kind HorizontalPodAutoscaler + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + return this.listNamespacedHorizontalPodAutoscalerWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * partially update the specified HorizontalPodAutoscaler * @param name name of the HorizontalPodAutoscaler @@ -4885,7 +6768,7 @@ export class ObservableAutoscalingV2beta2Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + public patchNamespacedHorizontalPodAutoscalerWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.patchNamespacedHorizontalPodAutoscaler(name, namespace, body, pretty, dryRun, fieldManager, force, _options); // build promise chain @@ -4900,10 +6783,24 @@ export class ObservableAutoscalingV2beta2Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedHorizontalPodAutoscaler(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedHorizontalPodAutoscalerWithHttpInfo(rsp))); })); } + /** + * partially update the specified HorizontalPodAutoscaler + * @param name name of the HorizontalPodAutoscaler + * @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. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + return this.patchNamespacedHorizontalPodAutoscalerWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * partially update status of the specified HorizontalPodAutoscaler * @param name name of the HorizontalPodAutoscaler @@ -4914,7 +6811,7 @@ export class ObservableAutoscalingV2beta2Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + public patchNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.patchNamespacedHorizontalPodAutoscalerStatus(name, namespace, body, pretty, dryRun, fieldManager, force, _options); // build promise chain @@ -4929,17 +6826,31 @@ export class ObservableAutoscalingV2beta2Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedHorizontalPodAutoscalerStatus(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(rsp))); })); } + /** + * partially update status of the specified HorizontalPodAutoscaler + * @param name name of the HorizontalPodAutoscaler + * @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. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + return this.patchNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * read the specified HorizontalPodAutoscaler * @param name name of the HorizontalPodAutoscaler * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. */ - public readNamespacedHorizontalPodAutoscaler(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedHorizontalPodAutoscalerWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.readNamespacedHorizontalPodAutoscaler(name, namespace, pretty, _options); // build promise chain @@ -4954,17 +6865,27 @@ export class ObservableAutoscalingV2beta2Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedHorizontalPodAutoscaler(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedHorizontalPodAutoscalerWithHttpInfo(rsp))); })); } + /** + * read the specified HorizontalPodAutoscaler + * @param name name of the HorizontalPodAutoscaler + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + */ + public readNamespacedHorizontalPodAutoscaler(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + return this.readNamespacedHorizontalPodAutoscalerWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * read status of the specified HorizontalPodAutoscaler * @param name name of the HorizontalPodAutoscaler * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. */ - public readNamespacedHorizontalPodAutoscalerStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.readNamespacedHorizontalPodAutoscalerStatus(name, namespace, pretty, _options); // build promise chain @@ -4979,10 +6900,20 @@ export class ObservableAutoscalingV2beta2Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedHorizontalPodAutoscalerStatus(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(rsp))); })); } + /** + * read status of the specified HorizontalPodAutoscaler + * @param name name of the HorizontalPodAutoscaler + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + */ + public readNamespacedHorizontalPodAutoscalerStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + return this.readNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * replace the specified HorizontalPodAutoscaler * @param name name of the HorizontalPodAutoscaler @@ -4992,7 +6923,7 @@ export class ObservableAutoscalingV2beta2Api { * @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. */ - public replaceNamespacedHorizontalPodAutoscaler(name: string, namespace: string, body: V2beta2HorizontalPodAutoscaler, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public replaceNamespacedHorizontalPodAutoscalerWithHttpInfo(name: string, namespace: string, body: V2beta2HorizontalPodAutoscaler, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.replaceNamespacedHorizontalPodAutoscaler(name, namespace, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -5007,10 +6938,23 @@ export class ObservableAutoscalingV2beta2Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedHorizontalPodAutoscaler(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedHorizontalPodAutoscalerWithHttpInfo(rsp))); })); } + /** + * replace the specified HorizontalPodAutoscaler + * @param name name of the HorizontalPodAutoscaler + * @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. + * @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. + */ + public replaceNamespacedHorizontalPodAutoscaler(name: string, namespace: string, body: V2beta2HorizontalPodAutoscaler, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.replaceNamespacedHorizontalPodAutoscalerWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * replace status of the specified HorizontalPodAutoscaler * @param name name of the HorizontalPodAutoscaler @@ -5020,7 +6964,7 @@ export class ObservableAutoscalingV2beta2Api { * @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. */ - public replaceNamespacedHorizontalPodAutoscalerStatus(name: string, namespace: string, body: V2beta2HorizontalPodAutoscaler, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public replaceNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(name: string, namespace: string, body: V2beta2HorizontalPodAutoscaler, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.replaceNamespacedHorizontalPodAutoscalerStatus(name, namespace, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -5035,10 +6979,23 @@ export class ObservableAutoscalingV2beta2Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedHorizontalPodAutoscalerStatus(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(rsp))); })); } + /** + * replace status of the specified HorizontalPodAutoscaler + * @param name name of the HorizontalPodAutoscaler + * @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. + * @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. + */ + public replaceNamespacedHorizontalPodAutoscalerStatus(name: string, namespace: string, body: V2beta2HorizontalPodAutoscaler, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.replaceNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + } import { BatchApiRequestFactory, BatchApiResponseProcessor} from "../apis/BatchApi"; @@ -5060,7 +7017,7 @@ export class ObservableBatchApi { /** * get information of a group */ - public getAPIGroup(_options?: Configuration): Observable { + public getAPIGroupWithHttpInfo(_options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.getAPIGroup(_options); // build promise chain @@ -5075,10 +7032,17 @@ export class ObservableBatchApi { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIGroup(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIGroupWithHttpInfo(rsp))); })); } + /** + * get information of a group + */ + public getAPIGroup(_options?: Configuration): Observable { + return this.getAPIGroupWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + } import { BatchV1ApiRequestFactory, BatchV1ApiResponseProcessor} from "../apis/BatchV1Api"; @@ -5105,7 +7069,7 @@ export class ObservableBatchV1Api { * @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. */ - public createNamespacedCronJob(namespace: string, body: V1CronJob, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public createNamespacedCronJobWithHttpInfo(namespace: string, body: V1CronJob, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.createNamespacedCronJob(namespace, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -5120,10 +7084,22 @@ export class ObservableBatchV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedCronJob(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedCronJobWithHttpInfo(rsp))); })); } + /** + * create a CronJob + * @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. + * @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. + */ + public createNamespacedCronJob(namespace: string, body: V1CronJob, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.createNamespacedCronJobWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * create a Job * @param namespace object name and auth scope, such as for teams and projects @@ -5132,7 +7108,7 @@ export class ObservableBatchV1Api { * @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. */ - public createNamespacedJob(namespace: string, body: V1Job, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public createNamespacedJobWithHttpInfo(namespace: string, body: V1Job, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.createNamespacedJob(namespace, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -5147,10 +7123,22 @@ export class ObservableBatchV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedJob(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedJobWithHttpInfo(rsp))); })); } + /** + * create a Job + * @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. + * @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. + */ + public createNamespacedJob(namespace: string, body: V1Job, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.createNamespacedJobWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * delete collection of CronJob * @param namespace object name and auth scope, such as for teams and projects @@ -5168,7 +7156,7 @@ export class ObservableBatchV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param body */ - public deleteCollectionNamespacedCronJob(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteCollectionNamespacedCronJobWithHttpInfo(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.deleteCollectionNamespacedCronJob(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); // build promise chain @@ -5183,12 +7171,12 @@ export class ObservableBatchV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedCronJob(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedCronJobWithHttpInfo(rsp))); })); } /** - * delete collection of Job + * delete collection of CronJob * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. * @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. @@ -5204,25 +7192,67 @@ export class ObservableBatchV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param body */ - public deleteCollectionNamespacedJob(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.deleteCollectionNamespacedJob(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); - - // build promise chain - let middlewarePreObservable = from(requestContextPromise); - for (let middleware of this.configuration.middleware) { - middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); - } + public deleteCollectionNamespacedCronJob(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { + return this.deleteCollectionNamespacedCronJobWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). - pipe(mergeMap((response: ResponseContext) => { - let middlewarePostObservable = of(response); - for (let middleware of this.configuration.middleware) { - middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); + /** + * delete collection of Job + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionNamespacedJobWithHttpInfo(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.deleteCollectionNamespacedJob(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + + // build promise chain + let middlewarePreObservable = from(requestContextPromise); + for (let middleware of this.configuration.middleware) { + middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); + } + + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + pipe(mergeMap((response: ResponseContext) => { + let middlewarePostObservable = of(response); + for (let middleware of this.configuration.middleware) { + middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedJob(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedJobWithHttpInfo(rsp))); })); } + /** + * delete collection of Job + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionNamespacedJob(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { + return this.deleteCollectionNamespacedJobWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * delete a CronJob * @param name name of the CronJob @@ -5234,7 +7264,7 @@ export class ObservableBatchV1Api { * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. * @param body */ - public deleteNamespacedCronJob(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteNamespacedCronJobWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.deleteNamespacedCronJob(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); // build promise chain @@ -5249,10 +7279,25 @@ export class ObservableBatchV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedCronJob(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedCronJobWithHttpInfo(rsp))); })); } + /** + * delete a CronJob + * @param name name of the CronJob + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteNamespacedCronJob(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + return this.deleteNamespacedCronJobWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * delete a Job * @param name name of the Job @@ -5264,7 +7309,7 @@ export class ObservableBatchV1Api { * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. * @param body */ - public deleteNamespacedJob(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteNamespacedJobWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.deleteNamespacedJob(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); // build promise chain @@ -5279,14 +7324,29 @@ export class ObservableBatchV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedJob(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedJobWithHttpInfo(rsp))); })); } + /** + * delete a Job + * @param name name of the Job + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteNamespacedJob(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + return this.deleteNamespacedJobWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * get available resources */ - public getAPIResources(_options?: Configuration): Observable { + public getAPIResourcesWithHttpInfo(_options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.getAPIResources(_options); // build promise chain @@ -5301,10 +7361,17 @@ export class ObservableBatchV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResources(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResourcesWithHttpInfo(rsp))); })); } + /** + * get available resources + */ + public getAPIResources(_options?: Configuration): Observable { + return this.getAPIResourcesWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * list or watch objects of kind CronJob * @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. @@ -5318,7 +7385,7 @@ export class ObservableBatchV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public listCronJobForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listCronJobForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.listCronJobForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); // build promise chain @@ -5333,10 +7400,27 @@ export class ObservableBatchV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listCronJobForAllNamespaces(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listCronJobForAllNamespacesWithHttpInfo(rsp))); })); } + /** + * list or watch objects of kind CronJob + * @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. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + return this.listCronJobForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * list or watch objects of kind Job * @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. @@ -5350,7 +7434,7 @@ export class ObservableBatchV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public listJobForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listJobForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.listJobForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); // build promise chain @@ -5365,10 +7449,27 @@ export class ObservableBatchV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listJobForAllNamespaces(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listJobForAllNamespacesWithHttpInfo(rsp))); })); } + /** + * list or watch objects of kind Job + * @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. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + return this.listJobForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * list or watch objects of kind CronJob * @param namespace object name and auth scope, such as for teams and projects @@ -5383,7 +7484,7 @@ export class ObservableBatchV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public listNamespacedCronJob(namespace: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listNamespacedCronJobWithHttpInfo(namespace: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.listNamespacedCronJob(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); // build promise chain @@ -5398,10 +7499,28 @@ export class ObservableBatchV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedCronJob(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedCronJobWithHttpInfo(rsp))); })); } + /** + * list or watch objects of kind CronJob + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + return this.listNamespacedCronJobWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * list or watch objects of kind Job * @param namespace object name and auth scope, such as for teams and projects @@ -5416,7 +7535,7 @@ export class ObservableBatchV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public listNamespacedJob(namespace: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listNamespacedJobWithHttpInfo(namespace: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.listNamespacedJob(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); // build promise chain @@ -5431,10 +7550,28 @@ export class ObservableBatchV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedJob(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedJobWithHttpInfo(rsp))); })); } + /** + * list or watch objects of kind Job + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + return this.listNamespacedJobWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * partially update the specified CronJob * @param name name of the CronJob @@ -5445,7 +7582,7 @@ export class ObservableBatchV1Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). * @param force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + public patchNamespacedCronJobWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.patchNamespacedCronJob(name, namespace, body, pretty, dryRun, fieldManager, force, _options); // build promise chain @@ -5460,10 +7597,24 @@ export class ObservableBatchV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedCronJob(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedCronJobWithHttpInfo(rsp))); })); } + /** + * partially update the specified CronJob + * @param name name of the CronJob + * @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. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + return this.patchNamespacedCronJobWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * partially update status of the specified CronJob * @param name name of the CronJob @@ -5474,7 +7625,7 @@ export class ObservableBatchV1Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). * @param force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + public patchNamespacedCronJobStatusWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.patchNamespacedCronJobStatus(name, namespace, body, pretty, dryRun, fieldManager, force, _options); // build promise chain @@ -5489,10 +7640,24 @@ export class ObservableBatchV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedCronJobStatus(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedCronJobStatusWithHttpInfo(rsp))); })); } + /** + * partially update status of the specified CronJob + * @param name name of the CronJob + * @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. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + return this.patchNamespacedCronJobStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * partially update the specified Job * @param name name of the Job @@ -5503,7 +7668,7 @@ export class ObservableBatchV1Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). * @param force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + public patchNamespacedJobWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.patchNamespacedJob(name, namespace, body, pretty, dryRun, fieldManager, force, _options); // build promise chain @@ -5518,10 +7683,24 @@ export class ObservableBatchV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedJob(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedJobWithHttpInfo(rsp))); })); } + /** + * partially update the specified Job + * @param name name of the Job + * @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. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + return this.patchNamespacedJobWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * partially update status of the specified Job * @param name name of the Job @@ -5532,7 +7711,7 @@ export class ObservableBatchV1Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). * @param force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + public patchNamespacedJobStatusWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.patchNamespacedJobStatus(name, namespace, body, pretty, dryRun, fieldManager, force, _options); // build promise chain @@ -5547,17 +7726,31 @@ export class ObservableBatchV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedJobStatus(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedJobStatusWithHttpInfo(rsp))); })); } + /** + * partially update status of the specified Job + * @param name name of the Job + * @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. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + return this.patchNamespacedJobStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * read the specified CronJob * @param name name of the CronJob * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. */ - public readNamespacedCronJob(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedCronJobWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.readNamespacedCronJob(name, namespace, pretty, _options); // build promise chain @@ -5572,17 +7765,27 @@ export class ObservableBatchV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedCronJob(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedCronJobWithHttpInfo(rsp))); })); } + /** + * read the specified CronJob + * @param name name of the CronJob + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + */ + public readNamespacedCronJob(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + return this.readNamespacedCronJobWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * read status of the specified CronJob * @param name name of the CronJob * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. */ - public readNamespacedCronJobStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedCronJobStatusWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.readNamespacedCronJobStatus(name, namespace, pretty, _options); // build promise chain @@ -5597,17 +7800,27 @@ export class ObservableBatchV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedCronJobStatus(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedCronJobStatusWithHttpInfo(rsp))); })); } + /** + * read status of the specified CronJob + * @param name name of the CronJob + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + */ + public readNamespacedCronJobStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + return this.readNamespacedCronJobStatusWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * read the specified Job * @param name name of the Job * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. */ - public readNamespacedJob(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedJobWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.readNamespacedJob(name, namespace, pretty, _options); // build promise chain @@ -5622,17 +7835,27 @@ export class ObservableBatchV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedJob(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedJobWithHttpInfo(rsp))); })); } + /** + * read the specified Job + * @param name name of the Job + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + */ + public readNamespacedJob(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + return this.readNamespacedJobWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * read status of the specified Job * @param name name of the Job * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. */ - public readNamespacedJobStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedJobStatusWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.readNamespacedJobStatus(name, namespace, pretty, _options); // build promise chain @@ -5647,10 +7870,20 @@ export class ObservableBatchV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedJobStatus(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedJobStatusWithHttpInfo(rsp))); })); } + /** + * read status of the specified Job + * @param name name of the Job + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + */ + public readNamespacedJobStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + return this.readNamespacedJobStatusWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * replace the specified CronJob * @param name name of the CronJob @@ -5660,7 +7893,7 @@ export class ObservableBatchV1Api { * @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. */ - public replaceNamespacedCronJob(name: string, namespace: string, body: V1CronJob, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public replaceNamespacedCronJobWithHttpInfo(name: string, namespace: string, body: V1CronJob, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.replaceNamespacedCronJob(name, namespace, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -5675,12 +7908,12 @@ export class ObservableBatchV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedCronJob(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedCronJobWithHttpInfo(rsp))); })); } /** - * replace status of the specified CronJob + * replace the specified CronJob * @param name name of the CronJob * @param namespace object name and auth scope, such as for teams and projects * @param body @@ -5688,7 +7921,20 @@ export class ObservableBatchV1Api { * @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. */ - public replaceNamespacedCronJobStatus(name: string, namespace: string, body: V1CronJob, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public replaceNamespacedCronJob(name: string, namespace: string, body: V1CronJob, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.replaceNamespacedCronJobWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * replace status of the specified CronJob + * @param name name of the CronJob + * @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. + * @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. + */ + public replaceNamespacedCronJobStatusWithHttpInfo(name: string, namespace: string, body: V1CronJob, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.replaceNamespacedCronJobStatus(name, namespace, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -5703,10 +7949,23 @@ export class ObservableBatchV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedCronJobStatus(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedCronJobStatusWithHttpInfo(rsp))); })); } + /** + * replace status of the specified CronJob + * @param name name of the CronJob + * @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. + * @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. + */ + public replaceNamespacedCronJobStatus(name: string, namespace: string, body: V1CronJob, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.replaceNamespacedCronJobStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * replace the specified Job * @param name name of the Job @@ -5716,7 +7975,7 @@ export class ObservableBatchV1Api { * @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. */ - public replaceNamespacedJob(name: string, namespace: string, body: V1Job, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public replaceNamespacedJobWithHttpInfo(name: string, namespace: string, body: V1Job, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.replaceNamespacedJob(name, namespace, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -5731,10 +7990,23 @@ export class ObservableBatchV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedJob(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedJobWithHttpInfo(rsp))); })); } + /** + * replace the specified Job + * @param name name of the Job + * @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. + * @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. + */ + public replaceNamespacedJob(name: string, namespace: string, body: V1Job, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.replaceNamespacedJobWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * replace status of the specified Job * @param name name of the Job @@ -5744,7 +8016,7 @@ export class ObservableBatchV1Api { * @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. */ - public replaceNamespacedJobStatus(name: string, namespace: string, body: V1Job, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public replaceNamespacedJobStatusWithHttpInfo(name: string, namespace: string, body: V1Job, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.replaceNamespacedJobStatus(name, namespace, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -5759,10 +8031,23 @@ export class ObservableBatchV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedJobStatus(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedJobStatusWithHttpInfo(rsp))); })); } + /** + * replace status of the specified Job + * @param name name of the Job + * @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. + * @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. + */ + public replaceNamespacedJobStatus(name: string, namespace: string, body: V1Job, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.replaceNamespacedJobStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + } import { BatchV1beta1ApiRequestFactory, BatchV1beta1ApiResponseProcessor} from "../apis/BatchV1beta1Api"; @@ -5789,7 +8074,7 @@ export class ObservableBatchV1beta1Api { * @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. */ - public createNamespacedCronJob(namespace: string, body: V1beta1CronJob, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public createNamespacedCronJobWithHttpInfo(namespace: string, body: V1beta1CronJob, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.createNamespacedCronJob(namespace, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -5804,10 +8089,22 @@ export class ObservableBatchV1beta1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedCronJob(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedCronJobWithHttpInfo(rsp))); })); } + /** + * create a CronJob + * @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. + * @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. + */ + public createNamespacedCronJob(namespace: string, body: V1beta1CronJob, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.createNamespacedCronJobWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * delete collection of CronJob * @param namespace object name and auth scope, such as for teams and projects @@ -5825,7 +8122,7 @@ export class ObservableBatchV1beta1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param body */ - public deleteCollectionNamespacedCronJob(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteCollectionNamespacedCronJobWithHttpInfo(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.deleteCollectionNamespacedCronJob(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); // build promise chain @@ -5840,10 +8137,31 @@ export class ObservableBatchV1beta1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedCronJob(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedCronJobWithHttpInfo(rsp))); })); } + /** + * delete collection of CronJob + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionNamespacedCronJob(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { + return this.deleteCollectionNamespacedCronJobWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * delete a CronJob * @param name name of the CronJob @@ -5855,7 +8173,7 @@ export class ObservableBatchV1beta1Api { * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. * @param body */ - public deleteNamespacedCronJob(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteNamespacedCronJobWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.deleteNamespacedCronJob(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); // build promise chain @@ -5870,14 +8188,29 @@ export class ObservableBatchV1beta1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedCronJob(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedCronJobWithHttpInfo(rsp))); })); } + /** + * delete a CronJob + * @param name name of the CronJob + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteNamespacedCronJob(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + return this.deleteNamespacedCronJobWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * get available resources */ - public getAPIResources(_options?: Configuration): Observable { + public getAPIResourcesWithHttpInfo(_options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.getAPIResources(_options); // build promise chain @@ -5892,10 +8225,17 @@ export class ObservableBatchV1beta1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResources(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResourcesWithHttpInfo(rsp))); })); } + /** + * get available resources + */ + public getAPIResources(_options?: Configuration): Observable { + return this.getAPIResourcesWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * list or watch objects of kind CronJob * @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. @@ -5909,7 +8249,7 @@ export class ObservableBatchV1beta1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listCronJobForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.listCronJobForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); // build promise chain @@ -5924,10 +8264,27 @@ export class ObservableBatchV1beta1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listCronJobForAllNamespaces(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listCronJobForAllNamespacesWithHttpInfo(rsp))); })); } + /** + * list or watch objects of kind CronJob + * @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. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + return this.listCronJobForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * list or watch objects of kind CronJob * @param namespace object name and auth scope, such as for teams and projects @@ -5942,7 +8299,7 @@ export class ObservableBatchV1beta1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listNamespacedCronJobWithHttpInfo(namespace: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.listNamespacedCronJob(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); // build promise chain @@ -5957,10 +8314,28 @@ export class ObservableBatchV1beta1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedCronJob(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedCronJobWithHttpInfo(rsp))); })); } + /** + * list or watch objects of kind CronJob + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + return this.listNamespacedCronJobWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * partially update the specified CronJob * @param name name of the CronJob @@ -5971,7 +8346,7 @@ export class ObservableBatchV1beta1Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + public patchNamespacedCronJobWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.patchNamespacedCronJob(name, namespace, body, pretty, dryRun, fieldManager, force, _options); // build promise chain @@ -5986,10 +8361,24 @@ export class ObservableBatchV1beta1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedCronJob(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedCronJobWithHttpInfo(rsp))); })); } + /** + * partially update the specified CronJob + * @param name name of the CronJob + * @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. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + return this.patchNamespacedCronJobWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * partially update status of the specified CronJob * @param name name of the CronJob @@ -6000,7 +8389,7 @@ export class ObservableBatchV1beta1Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + public patchNamespacedCronJobStatusWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.patchNamespacedCronJobStatus(name, namespace, body, pretty, dryRun, fieldManager, force, _options); // build promise chain @@ -6015,17 +8404,31 @@ export class ObservableBatchV1beta1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedCronJobStatus(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedCronJobStatusWithHttpInfo(rsp))); })); } + /** + * partially update status of the specified CronJob + * @param name name of the CronJob + * @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. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + return this.patchNamespacedCronJobStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * read the specified CronJob * @param name name of the CronJob * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. */ - public readNamespacedCronJob(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedCronJobWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.readNamespacedCronJob(name, namespace, pretty, _options); // build promise chain @@ -6040,17 +8443,27 @@ export class ObservableBatchV1beta1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedCronJob(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedCronJobWithHttpInfo(rsp))); })); } + /** + * read the specified CronJob + * @param name name of the CronJob + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + */ + public readNamespacedCronJob(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + return this.readNamespacedCronJobWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * read status of the specified CronJob * @param name name of the CronJob * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. */ - public readNamespacedCronJobStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedCronJobStatusWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.readNamespacedCronJobStatus(name, namespace, pretty, _options); // build promise chain @@ -6065,10 +8478,20 @@ export class ObservableBatchV1beta1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedCronJobStatus(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedCronJobStatusWithHttpInfo(rsp))); })); } + /** + * read status of the specified CronJob + * @param name name of the CronJob + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + */ + public readNamespacedCronJobStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + return this.readNamespacedCronJobStatusWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * replace the specified CronJob * @param name name of the CronJob @@ -6078,7 +8501,7 @@ export class ObservableBatchV1beta1Api { * @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. */ - public replaceNamespacedCronJob(name: string, namespace: string, body: V1beta1CronJob, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public replaceNamespacedCronJobWithHttpInfo(name: string, namespace: string, body: V1beta1CronJob, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.replaceNamespacedCronJob(name, namespace, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -6093,10 +8516,23 @@ export class ObservableBatchV1beta1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedCronJob(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedCronJobWithHttpInfo(rsp))); })); } + /** + * replace the specified CronJob + * @param name name of the CronJob + * @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. + * @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. + */ + public replaceNamespacedCronJob(name: string, namespace: string, body: V1beta1CronJob, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.replaceNamespacedCronJobWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * replace status of the specified CronJob * @param name name of the CronJob @@ -6106,7 +8542,7 @@ export class ObservableBatchV1beta1Api { * @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. */ - public replaceNamespacedCronJobStatus(name: string, namespace: string, body: V1beta1CronJob, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public replaceNamespacedCronJobStatusWithHttpInfo(name: string, namespace: string, body: V1beta1CronJob, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.replaceNamespacedCronJobStatus(name, namespace, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -6121,10 +8557,23 @@ export class ObservableBatchV1beta1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedCronJobStatus(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedCronJobStatusWithHttpInfo(rsp))); })); } + /** + * replace status of the specified CronJob + * @param name name of the CronJob + * @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. + * @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. + */ + public replaceNamespacedCronJobStatus(name: string, namespace: string, body: V1beta1CronJob, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.replaceNamespacedCronJobStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + } import { CertificatesApiRequestFactory, CertificatesApiResponseProcessor} from "../apis/CertificatesApi"; @@ -6146,7 +8595,7 @@ export class ObservableCertificatesApi { /** * get information of a group */ - public getAPIGroup(_options?: Configuration): Observable { + public getAPIGroupWithHttpInfo(_options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.getAPIGroup(_options); // build promise chain @@ -6161,10 +8610,17 @@ export class ObservableCertificatesApi { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIGroup(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIGroupWithHttpInfo(rsp))); })); } + /** + * get information of a group + */ + public getAPIGroup(_options?: Configuration): Observable { + return this.getAPIGroupWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + } import { CertificatesV1ApiRequestFactory, CertificatesV1ApiResponseProcessor} from "../apis/CertificatesV1Api"; @@ -6190,7 +8646,7 @@ export class ObservableCertificatesV1Api { * @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. */ - public createCertificateSigningRequest(body: V1CertificateSigningRequest, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public createCertificateSigningRequestWithHttpInfo(body: V1CertificateSigningRequest, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.createCertificateSigningRequest(body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -6205,10 +8661,21 @@ export class ObservableCertificatesV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createCertificateSigningRequest(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createCertificateSigningRequestWithHttpInfo(rsp))); })); } + /** + * create a CertificateSigningRequest + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public createCertificateSigningRequest(body: V1CertificateSigningRequest, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.createCertificateSigningRequestWithHttpInfo(body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * delete a CertificateSigningRequest * @param name name of the CertificateSigningRequest @@ -6219,7 +8686,7 @@ export class ObservableCertificatesV1Api { * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. * @param body */ - public deleteCertificateSigningRequest(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteCertificateSigningRequestWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.deleteCertificateSigningRequest(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); // build promise chain @@ -6234,10 +8701,24 @@ export class ObservableCertificatesV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCertificateSigningRequest(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCertificateSigningRequestWithHttpInfo(rsp))); })); } + /** + * delete a CertificateSigningRequest + * @param name name of the CertificateSigningRequest + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteCertificateSigningRequest(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + return this.deleteCertificateSigningRequestWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * delete collection of CertificateSigningRequest * @param pretty If \'true\', then the output is pretty printed. @@ -6254,7 +8735,7 @@ export class ObservableCertificatesV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param body */ - public deleteCollectionCertificateSigningRequest(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteCollectionCertificateSigningRequestWithHttpInfo(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.deleteCollectionCertificateSigningRequest(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); // build promise chain @@ -6269,19 +8750,39 @@ export class ObservableCertificatesV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionCertificateSigningRequest(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionCertificateSigningRequestWithHttpInfo(rsp))); })); } /** - * get available resources - */ - public getAPIResources(_options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.getAPIResources(_options); - - // build promise chain - let middlewarePreObservable = from(requestContextPromise); - for (let middleware of this.configuration.middleware) { + * delete collection of CertificateSigningRequest + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionCertificateSigningRequest(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { + return this.deleteCollectionCertificateSigningRequestWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * get available resources + */ + public getAPIResourcesWithHttpInfo(_options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.getAPIResources(_options); + + // build promise chain + let middlewarePreObservable = from(requestContextPromise); + for (let middleware of this.configuration.middleware) { middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); } @@ -6291,10 +8792,17 @@ export class ObservableCertificatesV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResources(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResourcesWithHttpInfo(rsp))); })); } + /** + * get available resources + */ + public getAPIResources(_options?: Configuration): Observable { + return this.getAPIResourcesWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * list or watch objects of kind CertificateSigningRequest * @param pretty If \'true\', then the output is pretty printed. @@ -6308,7 +8816,7 @@ export class ObservableCertificatesV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public listCertificateSigningRequest(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listCertificateSigningRequestWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.listCertificateSigningRequest(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); // build promise chain @@ -6323,10 +8831,27 @@ export class ObservableCertificatesV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listCertificateSigningRequest(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listCertificateSigningRequestWithHttpInfo(rsp))); })); } + /** + * list or watch objects of kind CertificateSigningRequest + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + return this.listCertificateSigningRequestWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * partially update the specified CertificateSigningRequest * @param name name of the CertificateSigningRequest @@ -6336,7 +8861,7 @@ export class ObservableCertificatesV1Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). * @param force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + public patchCertificateSigningRequestWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.patchCertificateSigningRequest(name, body, pretty, dryRun, fieldManager, force, _options); // build promise chain @@ -6351,10 +8876,23 @@ export class ObservableCertificatesV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchCertificateSigningRequest(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchCertificateSigningRequestWithHttpInfo(rsp))); })); } + /** + * partially update the specified CertificateSigningRequest + * @param name name of the CertificateSigningRequest + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + return this.patchCertificateSigningRequestWithHttpInfo(name, body, pretty, dryRun, fieldManager, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * partially update approval of the specified CertificateSigningRequest * @param name name of the CertificateSigningRequest @@ -6364,7 +8902,7 @@ export class ObservableCertificatesV1Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). * @param force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + public patchCertificateSigningRequestApprovalWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.patchCertificateSigningRequestApproval(name, body, pretty, dryRun, fieldManager, force, _options); // build promise chain @@ -6379,10 +8917,23 @@ export class ObservableCertificatesV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchCertificateSigningRequestApproval(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchCertificateSigningRequestApprovalWithHttpInfo(rsp))); })); } + /** + * partially update approval of the specified CertificateSigningRequest + * @param name name of the CertificateSigningRequest + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + return this.patchCertificateSigningRequestApprovalWithHttpInfo(name, body, pretty, dryRun, fieldManager, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * partially update status of the specified CertificateSigningRequest * @param name name of the CertificateSigningRequest @@ -6392,7 +8943,7 @@ export class ObservableCertificatesV1Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). * @param force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + public patchCertificateSigningRequestStatusWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.patchCertificateSigningRequestStatus(name, body, pretty, dryRun, fieldManager, force, _options); // build promise chain @@ -6407,16 +8958,29 @@ export class ObservableCertificatesV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchCertificateSigningRequestStatus(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchCertificateSigningRequestStatusWithHttpInfo(rsp))); })); } + /** + * partially update status of the specified CertificateSigningRequest + * @param name name of the CertificateSigningRequest + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + return this.patchCertificateSigningRequestStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * read the specified CertificateSigningRequest * @param name name of the CertificateSigningRequest * @param pretty If \'true\', then the output is pretty printed. */ - public readCertificateSigningRequest(name: string, pretty?: string, _options?: Configuration): Observable { + public readCertificateSigningRequestWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.readCertificateSigningRequest(name, pretty, _options); // build promise chain @@ -6431,16 +8995,25 @@ export class ObservableCertificatesV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readCertificateSigningRequest(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readCertificateSigningRequestWithHttpInfo(rsp))); })); } + /** + * read the specified CertificateSigningRequest + * @param name name of the CertificateSigningRequest + * @param pretty If \'true\', then the output is pretty printed. + */ + public readCertificateSigningRequest(name: string, pretty?: string, _options?: Configuration): Observable { + return this.readCertificateSigningRequestWithHttpInfo(name, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * read approval of the specified CertificateSigningRequest * @param name name of the CertificateSigningRequest * @param pretty If \'true\', then the output is pretty printed. */ - public readCertificateSigningRequestApproval(name: string, pretty?: string, _options?: Configuration): Observable { + public readCertificateSigningRequestApprovalWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.readCertificateSigningRequestApproval(name, pretty, _options); // build promise chain @@ -6455,16 +9028,25 @@ export class ObservableCertificatesV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readCertificateSigningRequestApproval(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readCertificateSigningRequestApprovalWithHttpInfo(rsp))); })); } + /** + * read approval of the specified CertificateSigningRequest + * @param name name of the CertificateSigningRequest + * @param pretty If \'true\', then the output is pretty printed. + */ + public readCertificateSigningRequestApproval(name: string, pretty?: string, _options?: Configuration): Observable { + return this.readCertificateSigningRequestApprovalWithHttpInfo(name, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * read status of the specified CertificateSigningRequest * @param name name of the CertificateSigningRequest * @param pretty If \'true\', then the output is pretty printed. */ - public readCertificateSigningRequestStatus(name: string, pretty?: string, _options?: Configuration): Observable { + public readCertificateSigningRequestStatusWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.readCertificateSigningRequestStatus(name, pretty, _options); // build promise chain @@ -6479,10 +9061,19 @@ export class ObservableCertificatesV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readCertificateSigningRequestStatus(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readCertificateSigningRequestStatusWithHttpInfo(rsp))); })); } + /** + * read status of the specified CertificateSigningRequest + * @param name name of the CertificateSigningRequest + * @param pretty If \'true\', then the output is pretty printed. + */ + public readCertificateSigningRequestStatus(name: string, pretty?: string, _options?: Configuration): Observable { + return this.readCertificateSigningRequestStatusWithHttpInfo(name, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * replace the specified CertificateSigningRequest * @param name name of the CertificateSigningRequest @@ -6491,7 +9082,7 @@ export class ObservableCertificatesV1Api { * @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. */ - public replaceCertificateSigningRequest(name: string, body: V1CertificateSigningRequest, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public replaceCertificateSigningRequestWithHttpInfo(name: string, body: V1CertificateSigningRequest, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.replaceCertificateSigningRequest(name, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -6506,10 +9097,22 @@ export class ObservableCertificatesV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceCertificateSigningRequest(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceCertificateSigningRequestWithHttpInfo(rsp))); })); } + /** + * replace the specified CertificateSigningRequest + * @param name name of the CertificateSigningRequest + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public replaceCertificateSigningRequest(name: string, body: V1CertificateSigningRequest, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.replaceCertificateSigningRequestWithHttpInfo(name, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * replace approval of the specified CertificateSigningRequest * @param name name of the CertificateSigningRequest @@ -6518,7 +9121,7 @@ export class ObservableCertificatesV1Api { * @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. */ - public replaceCertificateSigningRequestApproval(name: string, body: V1CertificateSigningRequest, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public replaceCertificateSigningRequestApprovalWithHttpInfo(name: string, body: V1CertificateSigningRequest, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.replaceCertificateSigningRequestApproval(name, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -6533,10 +9136,22 @@ export class ObservableCertificatesV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceCertificateSigningRequestApproval(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceCertificateSigningRequestApprovalWithHttpInfo(rsp))); })); } + /** + * replace approval of the specified CertificateSigningRequest + * @param name name of the CertificateSigningRequest + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public replaceCertificateSigningRequestApproval(name: string, body: V1CertificateSigningRequest, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.replaceCertificateSigningRequestApprovalWithHttpInfo(name, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * replace status of the specified CertificateSigningRequest * @param name name of the CertificateSigningRequest @@ -6545,7 +9160,7 @@ export class ObservableCertificatesV1Api { * @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. */ - public replaceCertificateSigningRequestStatus(name: string, body: V1CertificateSigningRequest, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public replaceCertificateSigningRequestStatusWithHttpInfo(name: string, body: V1CertificateSigningRequest, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.replaceCertificateSigningRequestStatus(name, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -6560,10 +9175,22 @@ export class ObservableCertificatesV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceCertificateSigningRequestStatus(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceCertificateSigningRequestStatusWithHttpInfo(rsp))); })); } + /** + * replace status of the specified CertificateSigningRequest + * @param name name of the CertificateSigningRequest + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public replaceCertificateSigningRequestStatus(name: string, body: V1CertificateSigningRequest, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.replaceCertificateSigningRequestStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + } import { CoordinationApiRequestFactory, CoordinationApiResponseProcessor} from "../apis/CoordinationApi"; @@ -6585,7 +9212,7 @@ export class ObservableCoordinationApi { /** * get information of a group */ - public getAPIGroup(_options?: Configuration): Observable { + public getAPIGroupWithHttpInfo(_options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.getAPIGroup(_options); // build promise chain @@ -6600,10 +9227,17 @@ export class ObservableCoordinationApi { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIGroup(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIGroupWithHttpInfo(rsp))); })); } + /** + * get information of a group + */ + public getAPIGroup(_options?: Configuration): Observable { + return this.getAPIGroupWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + } import { CoordinationV1ApiRequestFactory, CoordinationV1ApiResponseProcessor} from "../apis/CoordinationV1Api"; @@ -6630,7 +9264,7 @@ export class ObservableCoordinationV1Api { * @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. */ - public createNamespacedLease(namespace: string, body: V1Lease, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public createNamespacedLeaseWithHttpInfo(namespace: string, body: V1Lease, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.createNamespacedLease(namespace, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -6645,10 +9279,22 @@ export class ObservableCoordinationV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedLease(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedLeaseWithHttpInfo(rsp))); })); } + /** + * create a Lease + * @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. + * @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. + */ + public createNamespacedLease(namespace: string, body: V1Lease, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.createNamespacedLeaseWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * delete collection of Lease * @param namespace object name and auth scope, such as for teams and projects @@ -6666,7 +9312,7 @@ export class ObservableCoordinationV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param body */ - public deleteCollectionNamespacedLease(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteCollectionNamespacedLeaseWithHttpInfo(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.deleteCollectionNamespacedLease(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); // build promise chain @@ -6681,10 +9327,31 @@ export class ObservableCoordinationV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedLease(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedLeaseWithHttpInfo(rsp))); })); } + /** + * delete collection of Lease + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionNamespacedLease(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { + return this.deleteCollectionNamespacedLeaseWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * delete a Lease * @param name name of the Lease @@ -6696,7 +9363,7 @@ export class ObservableCoordinationV1Api { * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. * @param body */ - public deleteNamespacedLease(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteNamespacedLeaseWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.deleteNamespacedLease(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); // build promise chain @@ -6711,14 +9378,29 @@ export class ObservableCoordinationV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedLease(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedLeaseWithHttpInfo(rsp))); })); } + /** + * delete a Lease + * @param name name of the Lease + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteNamespacedLease(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + return this.deleteNamespacedLeaseWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * get available resources */ - public getAPIResources(_options?: Configuration): Observable { + public getAPIResourcesWithHttpInfo(_options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.getAPIResources(_options); // build promise chain @@ -6733,10 +9415,17 @@ export class ObservableCoordinationV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResources(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResourcesWithHttpInfo(rsp))); })); } + /** + * get available resources + */ + public getAPIResources(_options?: Configuration): Observable { + return this.getAPIResourcesWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * list or watch objects of kind Lease * @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. @@ -6750,7 +9439,7 @@ export class ObservableCoordinationV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public listLeaseForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listLeaseForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.listLeaseForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); // build promise chain @@ -6765,10 +9454,27 @@ export class ObservableCoordinationV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listLeaseForAllNamespaces(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listLeaseForAllNamespacesWithHttpInfo(rsp))); })); } + /** + * list or watch objects of kind Lease + * @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. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + return this.listLeaseForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * list or watch objects of kind Lease * @param namespace object name and auth scope, such as for teams and projects @@ -6783,7 +9489,7 @@ export class ObservableCoordinationV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public listNamespacedLease(namespace: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listNamespacedLeaseWithHttpInfo(namespace: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.listNamespacedLease(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); // build promise chain @@ -6798,10 +9504,28 @@ export class ObservableCoordinationV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedLease(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedLeaseWithHttpInfo(rsp))); })); } + /** + * list or watch objects of kind Lease + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + return this.listNamespacedLeaseWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * partially update the specified Lease * @param name name of the Lease @@ -6812,7 +9536,7 @@ export class ObservableCoordinationV1Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). * @param force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + public patchNamespacedLeaseWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.patchNamespacedLease(name, namespace, body, pretty, dryRun, fieldManager, force, _options); // build promise chain @@ -6827,17 +9551,31 @@ export class ObservableCoordinationV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedLease(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedLeaseWithHttpInfo(rsp))); })); } /** - * read the specified Lease + * partially update the specified Lease * @param name name of the Lease * @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. + * @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 force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. */ - public readNamespacedLease(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public patchNamespacedLease(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable { + return this.patchNamespacedLeaseWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * read the specified Lease + * @param name name of the Lease + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + */ + public readNamespacedLeaseWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.readNamespacedLease(name, namespace, pretty, _options); // build promise chain @@ -6852,10 +9590,20 @@ export class ObservableCoordinationV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedLease(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedLeaseWithHttpInfo(rsp))); })); } + /** + * read the specified Lease + * @param name name of the Lease + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + */ + public readNamespacedLease(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + return this.readNamespacedLeaseWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * replace the specified Lease * @param name name of the Lease @@ -6865,7 +9613,7 @@ export class ObservableCoordinationV1Api { * @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. */ - public replaceNamespacedLease(name: string, namespace: string, body: V1Lease, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public replaceNamespacedLeaseWithHttpInfo(name: string, namespace: string, body: V1Lease, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.replaceNamespacedLease(name, namespace, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -6880,10 +9628,23 @@ export class ObservableCoordinationV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedLease(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedLeaseWithHttpInfo(rsp))); })); } + /** + * replace the specified Lease + * @param name name of the Lease + * @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. + * @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. + */ + public replaceNamespacedLease(name: string, namespace: string, body: V1Lease, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.replaceNamespacedLeaseWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + } import { CoreApiRequestFactory, CoreApiResponseProcessor} from "../apis/CoreApi"; @@ -6905,7 +9666,7 @@ export class ObservableCoreApi { /** * get available API versions */ - public getAPIVersions(_options?: Configuration): Observable { + public getAPIVersionsWithHttpInfo(_options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.getAPIVersions(_options); // build promise chain @@ -6920,10 +9681,17 @@ export class ObservableCoreApi { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIVersions(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIVersionsWithHttpInfo(rsp))); })); } + /** + * get available API versions + */ + public getAPIVersions(_options?: Configuration): Observable { + return this.getAPIVersionsWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + } import { CoreV1ApiRequestFactory, CoreV1ApiResponseProcessor} from "../apis/CoreV1Api"; @@ -6948,7 +9716,7 @@ export class ObservableCoreV1Api { * @param namespace object name and auth scope, such as for teams and projects * @param path Path is the URL path to use for the current proxy request to pod. */ - public connectDeleteNamespacedPodProxy(name: string, namespace: string, path?: string, _options?: Configuration): Observable { + public connectDeleteNamespacedPodProxyWithHttpInfo(name: string, namespace: string, path?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.connectDeleteNamespacedPodProxy(name, namespace, path, _options); // build promise chain @@ -6963,10 +9731,20 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectDeleteNamespacedPodProxy(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectDeleteNamespacedPodProxyWithHttpInfo(rsp))); })); } + /** + * connect DELETE requests to proxy of Pod + * @param name name of the PodProxyOptions + * @param namespace object name and auth scope, such as for teams and projects + * @param path Path is the URL path to use for the current proxy request to pod. + */ + public connectDeleteNamespacedPodProxy(name: string, namespace: string, path?: string, _options?: Configuration): Observable { + return this.connectDeleteNamespacedPodProxyWithHttpInfo(name, namespace, path, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * connect DELETE requests to proxy of Pod * @param name name of the PodProxyOptions @@ -6974,7 +9752,7 @@ export class ObservableCoreV1Api { * @param path path to the resource * @param path2 Path is the URL path to use for the current proxy request to pod. */ - public connectDeleteNamespacedPodProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Observable { + public connectDeleteNamespacedPodProxyWithPathWithHttpInfo(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.connectDeleteNamespacedPodProxyWithPath(name, namespace, path, path2, _options); // build promise chain @@ -6989,17 +9767,28 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectDeleteNamespacedPodProxyWithPath(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectDeleteNamespacedPodProxyWithPathWithHttpInfo(rsp))); })); } + /** + * connect DELETE requests to proxy of Pod + * @param name name of the PodProxyOptions + * @param namespace object name and auth scope, such as for teams and projects + * @param path path to the resource + * @param path2 Path is the URL path to use for the current proxy request to pod. + */ + public connectDeleteNamespacedPodProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Observable { + return this.connectDeleteNamespacedPodProxyWithPathWithHttpInfo(name, namespace, path, path2, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * connect DELETE requests to proxy of Service * @param name name of the ServiceProxyOptions * @param namespace object name and auth scope, such as for teams and projects * @param path Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. */ - public connectDeleteNamespacedServiceProxy(name: string, namespace: string, path?: string, _options?: Configuration): Observable { + public connectDeleteNamespacedServiceProxyWithHttpInfo(name: string, namespace: string, path?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.connectDeleteNamespacedServiceProxy(name, namespace, path, _options); // build promise chain @@ -7014,10 +9803,20 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectDeleteNamespacedServiceProxy(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectDeleteNamespacedServiceProxyWithHttpInfo(rsp))); })); } + /** + * connect DELETE requests to proxy of Service + * @param name name of the ServiceProxyOptions + * @param namespace object name and auth scope, such as for teams and projects + * @param path Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + */ + public connectDeleteNamespacedServiceProxy(name: string, namespace: string, path?: string, _options?: Configuration): Observable { + return this.connectDeleteNamespacedServiceProxyWithHttpInfo(name, namespace, path, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * connect DELETE requests to proxy of Service * @param name name of the ServiceProxyOptions @@ -7025,7 +9824,7 @@ export class ObservableCoreV1Api { * @param path path to the resource * @param path2 Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. */ - public connectDeleteNamespacedServiceProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Observable { + public connectDeleteNamespacedServiceProxyWithPathWithHttpInfo(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.connectDeleteNamespacedServiceProxyWithPath(name, namespace, path, path2, _options); // build promise chain @@ -7040,16 +9839,27 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectDeleteNamespacedServiceProxyWithPath(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectDeleteNamespacedServiceProxyWithPathWithHttpInfo(rsp))); })); } + /** + * connect DELETE requests to proxy of Service + * @param name name of the ServiceProxyOptions + * @param namespace object name and auth scope, such as for teams and projects + * @param path path to the resource + * @param path2 Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + */ + public connectDeleteNamespacedServiceProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Observable { + return this.connectDeleteNamespacedServiceProxyWithPathWithHttpInfo(name, namespace, path, path2, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * connect DELETE requests to proxy of Node * @param name name of the NodeProxyOptions * @param path Path is the URL path to use for the current proxy request to node. */ - public connectDeleteNodeProxy(name: string, path?: string, _options?: Configuration): Observable { + public connectDeleteNodeProxyWithHttpInfo(name: string, path?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.connectDeleteNodeProxy(name, path, _options); // build promise chain @@ -7064,17 +9874,26 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectDeleteNodeProxy(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectDeleteNodeProxyWithHttpInfo(rsp))); })); } + /** + * connect DELETE requests to proxy of Node + * @param name name of the NodeProxyOptions + * @param path Path is the URL path to use for the current proxy request to node. + */ + public connectDeleteNodeProxy(name: string, path?: string, _options?: Configuration): Observable { + return this.connectDeleteNodeProxyWithHttpInfo(name, path, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * connect DELETE requests to proxy of Node * @param name name of the NodeProxyOptions * @param path path to the resource * @param path2 Path is the URL path to use for the current proxy request to node. */ - public connectDeleteNodeProxyWithPath(name: string, path: string, path2?: string, _options?: Configuration): Observable { + public connectDeleteNodeProxyWithPathWithHttpInfo(name: string, path: string, path2?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.connectDeleteNodeProxyWithPath(name, path, path2, _options); // build promise chain @@ -7089,10 +9908,20 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectDeleteNodeProxyWithPath(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectDeleteNodeProxyWithPathWithHttpInfo(rsp))); })); } + /** + * connect DELETE requests to proxy of Node + * @param name name of the NodeProxyOptions + * @param path path to the resource + * @param path2 Path is the URL path to use for the current proxy request to node. + */ + public connectDeleteNodeProxyWithPath(name: string, path: string, path2?: string, _options?: Configuration): Observable { + return this.connectDeleteNodeProxyWithPathWithHttpInfo(name, path, path2, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * connect GET requests to attach of Pod * @param name name of the PodAttachOptions @@ -7103,7 +9932,7 @@ export class ObservableCoreV1Api { * @param stdout Stdout if true indicates that stdout is to be redirected for the attach call. Defaults to true. * @param tty TTY if true indicates that a tty will be allocated for the attach call. This is passed through the container runtime so the tty is allocated on the worker node by the container runtime. Defaults to false. */ - public connectGetNamespacedPodAttach(name: string, namespace: string, container?: string, stderr?: boolean, stdin?: boolean, stdout?: boolean, tty?: boolean, _options?: Configuration): Observable { + public connectGetNamespacedPodAttachWithHttpInfo(name: string, namespace: string, container?: string, stderr?: boolean, stdin?: boolean, stdout?: boolean, tty?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.connectGetNamespacedPodAttach(name, namespace, container, stderr, stdin, stdout, tty, _options); // build promise chain @@ -7118,10 +9947,24 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectGetNamespacedPodAttach(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectGetNamespacedPodAttachWithHttpInfo(rsp))); })); } + /** + * connect GET requests to attach of Pod + * @param name name of the PodAttachOptions + * @param namespace object name and auth scope, such as for teams and projects + * @param container The container in which to execute the command. Defaults to only container if there is only one container in the pod. + * @param stderr Stderr if true indicates that stderr is to be redirected for the attach call. Defaults to true. + * @param stdin Stdin if true, redirects the standard input stream of the pod for this call. Defaults to false. + * @param stdout Stdout if true indicates that stdout is to be redirected for the attach call. Defaults to true. + * @param tty TTY if true indicates that a tty will be allocated for the attach call. This is passed through the container runtime so the tty is allocated on the worker node by the container runtime. Defaults to false. + */ + public connectGetNamespacedPodAttach(name: string, namespace: string, container?: string, stderr?: boolean, stdin?: boolean, stdout?: boolean, tty?: boolean, _options?: Configuration): Observable { + return this.connectGetNamespacedPodAttachWithHttpInfo(name, namespace, container, stderr, stdin, stdout, tty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * connect GET requests to exec of Pod * @param name name of the PodExecOptions @@ -7133,7 +9976,7 @@ export class ObservableCoreV1Api { * @param stdout Redirect the standard output stream of the pod for this call. Defaults to true. * @param tty TTY if true indicates that a tty will be allocated for the exec call. Defaults to false. */ - public connectGetNamespacedPodExec(name: string, namespace: string, command?: string, container?: string, stderr?: boolean, stdin?: boolean, stdout?: boolean, tty?: boolean, _options?: Configuration): Observable { + public connectGetNamespacedPodExecWithHttpInfo(name: string, namespace: string, command?: string, container?: string, stderr?: boolean, stdin?: boolean, stdout?: boolean, tty?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.connectGetNamespacedPodExec(name, namespace, command, container, stderr, stdin, stdout, tty, _options); // build promise chain @@ -7148,17 +9991,32 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectGetNamespacedPodExec(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectGetNamespacedPodExecWithHttpInfo(rsp))); })); } + /** + * connect GET requests to exec of Pod + * @param name name of the PodExecOptions + * @param namespace object name and auth scope, such as for teams and projects + * @param command Command is the remote command to execute. argv array. Not executed within a shell. + * @param container Container in which to execute the command. Defaults to only container if there is only one container in the pod. + * @param stderr Redirect the standard error stream of the pod for this call. Defaults to true. + * @param stdin Redirect the standard input stream of the pod for this call. Defaults to false. + * @param stdout Redirect the standard output stream of the pod for this call. Defaults to true. + * @param tty TTY if true indicates that a tty will be allocated for the exec call. Defaults to false. + */ + public connectGetNamespacedPodExec(name: string, namespace: string, command?: string, container?: string, stderr?: boolean, stdin?: boolean, stdout?: boolean, tty?: boolean, _options?: Configuration): Observable { + return this.connectGetNamespacedPodExecWithHttpInfo(name, namespace, command, container, stderr, stdin, stdout, tty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * connect GET requests to portforward of Pod * @param name name of the PodPortForwardOptions * @param namespace object name and auth scope, such as for teams and projects * @param ports List of ports to forward Required when using WebSockets */ - public connectGetNamespacedPodPortforward(name: string, namespace: string, ports?: number, _options?: Configuration): Observable { + public connectGetNamespacedPodPortforwardWithHttpInfo(name: string, namespace: string, ports?: number, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.connectGetNamespacedPodPortforward(name, namespace, ports, _options); // build promise chain @@ -7173,17 +10031,27 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectGetNamespacedPodPortforward(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectGetNamespacedPodPortforwardWithHttpInfo(rsp))); })); } + /** + * connect GET requests to portforward of Pod + * @param name name of the PodPortForwardOptions + * @param namespace object name and auth scope, such as for teams and projects + * @param ports List of ports to forward Required when using WebSockets + */ + public connectGetNamespacedPodPortforward(name: string, namespace: string, ports?: number, _options?: Configuration): Observable { + return this.connectGetNamespacedPodPortforwardWithHttpInfo(name, namespace, ports, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * connect GET requests to proxy of Pod * @param name name of the PodProxyOptions * @param namespace object name and auth scope, such as for teams and projects * @param path Path is the URL path to use for the current proxy request to pod. */ - public connectGetNamespacedPodProxy(name: string, namespace: string, path?: string, _options?: Configuration): Observable { + public connectGetNamespacedPodProxyWithHttpInfo(name: string, namespace: string, path?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.connectGetNamespacedPodProxy(name, namespace, path, _options); // build promise chain @@ -7198,10 +10066,20 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectGetNamespacedPodProxy(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectGetNamespacedPodProxyWithHttpInfo(rsp))); })); } + /** + * connect GET requests to proxy of Pod + * @param name name of the PodProxyOptions + * @param namespace object name and auth scope, such as for teams and projects + * @param path Path is the URL path to use for the current proxy request to pod. + */ + public connectGetNamespacedPodProxy(name: string, namespace: string, path?: string, _options?: Configuration): Observable { + return this.connectGetNamespacedPodProxyWithHttpInfo(name, namespace, path, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * connect GET requests to proxy of Pod * @param name name of the PodProxyOptions @@ -7209,7 +10087,7 @@ export class ObservableCoreV1Api { * @param path path to the resource * @param path2 Path is the URL path to use for the current proxy request to pod. */ - public connectGetNamespacedPodProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Observable { + public connectGetNamespacedPodProxyWithPathWithHttpInfo(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.connectGetNamespacedPodProxyWithPath(name, namespace, path, path2, _options); // build promise chain @@ -7224,17 +10102,28 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectGetNamespacedPodProxyWithPath(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectGetNamespacedPodProxyWithPathWithHttpInfo(rsp))); })); } + /** + * connect GET requests to proxy of Pod + * @param name name of the PodProxyOptions + * @param namespace object name and auth scope, such as for teams and projects + * @param path path to the resource + * @param path2 Path is the URL path to use for the current proxy request to pod. + */ + public connectGetNamespacedPodProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Observable { + return this.connectGetNamespacedPodProxyWithPathWithHttpInfo(name, namespace, path, path2, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * connect GET requests to proxy of Service * @param name name of the ServiceProxyOptions * @param namespace object name and auth scope, such as for teams and projects * @param path Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. */ - public connectGetNamespacedServiceProxy(name: string, namespace: string, path?: string, _options?: Configuration): Observable { + public connectGetNamespacedServiceProxyWithHttpInfo(name: string, namespace: string, path?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.connectGetNamespacedServiceProxy(name, namespace, path, _options); // build promise chain @@ -7249,10 +10138,20 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectGetNamespacedServiceProxy(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectGetNamespacedServiceProxyWithHttpInfo(rsp))); })); } + /** + * connect GET requests to proxy of Service + * @param name name of the ServiceProxyOptions + * @param namespace object name and auth scope, such as for teams and projects + * @param path Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + */ + public connectGetNamespacedServiceProxy(name: string, namespace: string, path?: string, _options?: Configuration): Observable { + return this.connectGetNamespacedServiceProxyWithHttpInfo(name, namespace, path, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * connect GET requests to proxy of Service * @param name name of the ServiceProxyOptions @@ -7260,7 +10159,7 @@ export class ObservableCoreV1Api { * @param path path to the resource * @param path2 Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. */ - public connectGetNamespacedServiceProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Observable { + public connectGetNamespacedServiceProxyWithPathWithHttpInfo(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.connectGetNamespacedServiceProxyWithPath(name, namespace, path, path2, _options); // build promise chain @@ -7275,16 +10174,27 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectGetNamespacedServiceProxyWithPath(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectGetNamespacedServiceProxyWithPathWithHttpInfo(rsp))); })); } + /** + * connect GET requests to proxy of Service + * @param name name of the ServiceProxyOptions + * @param namespace object name and auth scope, such as for teams and projects + * @param path path to the resource + * @param path2 Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + */ + public connectGetNamespacedServiceProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Observable { + return this.connectGetNamespacedServiceProxyWithPathWithHttpInfo(name, namespace, path, path2, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * connect GET requests to proxy of Node * @param name name of the NodeProxyOptions * @param path Path is the URL path to use for the current proxy request to node. */ - public connectGetNodeProxy(name: string, path?: string, _options?: Configuration): Observable { + public connectGetNodeProxyWithHttpInfo(name: string, path?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.connectGetNodeProxy(name, path, _options); // build promise chain @@ -7299,17 +10209,26 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectGetNodeProxy(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectGetNodeProxyWithHttpInfo(rsp))); })); } + /** + * connect GET requests to proxy of Node + * @param name name of the NodeProxyOptions + * @param path Path is the URL path to use for the current proxy request to node. + */ + public connectGetNodeProxy(name: string, path?: string, _options?: Configuration): Observable { + return this.connectGetNodeProxyWithHttpInfo(name, path, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * connect GET requests to proxy of Node * @param name name of the NodeProxyOptions * @param path path to the resource * @param path2 Path is the URL path to use for the current proxy request to node. */ - public connectGetNodeProxyWithPath(name: string, path: string, path2?: string, _options?: Configuration): Observable { + public connectGetNodeProxyWithPathWithHttpInfo(name: string, path: string, path2?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.connectGetNodeProxyWithPath(name, path, path2, _options); // build promise chain @@ -7324,17 +10243,27 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectGetNodeProxyWithPath(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectGetNodeProxyWithPathWithHttpInfo(rsp))); })); } + /** + * connect GET requests to proxy of Node + * @param name name of the NodeProxyOptions + * @param path path to the resource + * @param path2 Path is the URL path to use for the current proxy request to node. + */ + public connectGetNodeProxyWithPath(name: string, path: string, path2?: string, _options?: Configuration): Observable { + return this.connectGetNodeProxyWithPathWithHttpInfo(name, path, path2, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * connect HEAD requests to proxy of Pod * @param name name of the PodProxyOptions * @param namespace object name and auth scope, such as for teams and projects * @param path Path is the URL path to use for the current proxy request to pod. */ - public connectHeadNamespacedPodProxy(name: string, namespace: string, path?: string, _options?: Configuration): Observable { + public connectHeadNamespacedPodProxyWithHttpInfo(name: string, namespace: string, path?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.connectHeadNamespacedPodProxy(name, namespace, path, _options); // build promise chain @@ -7349,10 +10278,20 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectHeadNamespacedPodProxy(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectHeadNamespacedPodProxyWithHttpInfo(rsp))); })); } + /** + * connect HEAD requests to proxy of Pod + * @param name name of the PodProxyOptions + * @param namespace object name and auth scope, such as for teams and projects + * @param path Path is the URL path to use for the current proxy request to pod. + */ + public connectHeadNamespacedPodProxy(name: string, namespace: string, path?: string, _options?: Configuration): Observable { + return this.connectHeadNamespacedPodProxyWithHttpInfo(name, namespace, path, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * connect HEAD requests to proxy of Pod * @param name name of the PodProxyOptions @@ -7360,7 +10299,7 @@ export class ObservableCoreV1Api { * @param path path to the resource * @param path2 Path is the URL path to use for the current proxy request to pod. */ - public connectHeadNamespacedPodProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Observable { + public connectHeadNamespacedPodProxyWithPathWithHttpInfo(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.connectHeadNamespacedPodProxyWithPath(name, namespace, path, path2, _options); // build promise chain @@ -7375,17 +10314,28 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectHeadNamespacedPodProxyWithPath(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectHeadNamespacedPodProxyWithPathWithHttpInfo(rsp))); })); } + /** + * connect HEAD requests to proxy of Pod + * @param name name of the PodProxyOptions + * @param namespace object name and auth scope, such as for teams and projects + * @param path path to the resource + * @param path2 Path is the URL path to use for the current proxy request to pod. + */ + public connectHeadNamespacedPodProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Observable { + return this.connectHeadNamespacedPodProxyWithPathWithHttpInfo(name, namespace, path, path2, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * connect HEAD requests to proxy of Service * @param name name of the ServiceProxyOptions * @param namespace object name and auth scope, such as for teams and projects * @param path Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. */ - public connectHeadNamespacedServiceProxy(name: string, namespace: string, path?: string, _options?: Configuration): Observable { + public connectHeadNamespacedServiceProxyWithHttpInfo(name: string, namespace: string, path?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.connectHeadNamespacedServiceProxy(name, namespace, path, _options); // build promise chain @@ -7400,10 +10350,20 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectHeadNamespacedServiceProxy(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectHeadNamespacedServiceProxyWithHttpInfo(rsp))); })); } + /** + * connect HEAD requests to proxy of Service + * @param name name of the ServiceProxyOptions + * @param namespace object name and auth scope, such as for teams and projects + * @param path Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + */ + public connectHeadNamespacedServiceProxy(name: string, namespace: string, path?: string, _options?: Configuration): Observable { + return this.connectHeadNamespacedServiceProxyWithHttpInfo(name, namespace, path, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * connect HEAD requests to proxy of Service * @param name name of the ServiceProxyOptions @@ -7411,7 +10371,7 @@ export class ObservableCoreV1Api { * @param path path to the resource * @param path2 Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. */ - public connectHeadNamespacedServiceProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Observable { + public connectHeadNamespacedServiceProxyWithPathWithHttpInfo(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.connectHeadNamespacedServiceProxyWithPath(name, namespace, path, path2, _options); // build promise chain @@ -7426,16 +10386,27 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectHeadNamespacedServiceProxyWithPath(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectHeadNamespacedServiceProxyWithPathWithHttpInfo(rsp))); })); } + /** + * connect HEAD requests to proxy of Service + * @param name name of the ServiceProxyOptions + * @param namespace object name and auth scope, such as for teams and projects + * @param path path to the resource + * @param path2 Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + */ + public connectHeadNamespacedServiceProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Observable { + return this.connectHeadNamespacedServiceProxyWithPathWithHttpInfo(name, namespace, path, path2, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * connect HEAD requests to proxy of Node * @param name name of the NodeProxyOptions * @param path Path is the URL path to use for the current proxy request to node. */ - public connectHeadNodeProxy(name: string, path?: string, _options?: Configuration): Observable { + public connectHeadNodeProxyWithHttpInfo(name: string, path?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.connectHeadNodeProxy(name, path, _options); // build promise chain @@ -7450,17 +10421,26 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectHeadNodeProxy(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectHeadNodeProxyWithHttpInfo(rsp))); })); } + /** + * connect HEAD requests to proxy of Node + * @param name name of the NodeProxyOptions + * @param path Path is the URL path to use for the current proxy request to node. + */ + public connectHeadNodeProxy(name: string, path?: string, _options?: Configuration): Observable { + return this.connectHeadNodeProxyWithHttpInfo(name, path, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * connect HEAD requests to proxy of Node * @param name name of the NodeProxyOptions * @param path path to the resource * @param path2 Path is the URL path to use for the current proxy request to node. */ - public connectHeadNodeProxyWithPath(name: string, path: string, path2?: string, _options?: Configuration): Observable { + public connectHeadNodeProxyWithPathWithHttpInfo(name: string, path: string, path2?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.connectHeadNodeProxyWithPath(name, path, path2, _options); // build promise chain @@ -7475,17 +10455,27 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectHeadNodeProxyWithPath(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectHeadNodeProxyWithPathWithHttpInfo(rsp))); })); } /** - * connect OPTIONS requests to proxy of Pod - * @param name name of the PodProxyOptions - * @param namespace object name and auth scope, such as for teams and projects - * @param path Path is the URL path to use for the current proxy request to pod. - */ - public connectOptionsNamespacedPodProxy(name: string, namespace: string, path?: string, _options?: Configuration): Observable { + * connect HEAD requests to proxy of Node + * @param name name of the NodeProxyOptions + * @param path path to the resource + * @param path2 Path is the URL path to use for the current proxy request to node. + */ + public connectHeadNodeProxyWithPath(name: string, path: string, path2?: string, _options?: Configuration): Observable { + return this.connectHeadNodeProxyWithPathWithHttpInfo(name, path, path2, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * connect OPTIONS requests to proxy of Pod + * @param name name of the PodProxyOptions + * @param namespace object name and auth scope, such as for teams and projects + * @param path Path is the URL path to use for the current proxy request to pod. + */ + public connectOptionsNamespacedPodProxyWithHttpInfo(name: string, namespace: string, path?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.connectOptionsNamespacedPodProxy(name, namespace, path, _options); // build promise chain @@ -7500,10 +10490,20 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectOptionsNamespacedPodProxy(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectOptionsNamespacedPodProxyWithHttpInfo(rsp))); })); } + /** + * connect OPTIONS requests to proxy of Pod + * @param name name of the PodProxyOptions + * @param namespace object name and auth scope, such as for teams and projects + * @param path Path is the URL path to use for the current proxy request to pod. + */ + public connectOptionsNamespacedPodProxy(name: string, namespace: string, path?: string, _options?: Configuration): Observable { + return this.connectOptionsNamespacedPodProxyWithHttpInfo(name, namespace, path, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * connect OPTIONS requests to proxy of Pod * @param name name of the PodProxyOptions @@ -7511,7 +10511,7 @@ export class ObservableCoreV1Api { * @param path path to the resource * @param path2 Path is the URL path to use for the current proxy request to pod. */ - public connectOptionsNamespacedPodProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Observable { + public connectOptionsNamespacedPodProxyWithPathWithHttpInfo(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.connectOptionsNamespacedPodProxyWithPath(name, namespace, path, path2, _options); // build promise chain @@ -7526,17 +10526,28 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectOptionsNamespacedPodProxyWithPath(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectOptionsNamespacedPodProxyWithPathWithHttpInfo(rsp))); })); } + /** + * connect OPTIONS requests to proxy of Pod + * @param name name of the PodProxyOptions + * @param namespace object name and auth scope, such as for teams and projects + * @param path path to the resource + * @param path2 Path is the URL path to use for the current proxy request to pod. + */ + public connectOptionsNamespacedPodProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Observable { + return this.connectOptionsNamespacedPodProxyWithPathWithHttpInfo(name, namespace, path, path2, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * connect OPTIONS requests to proxy of Service * @param name name of the ServiceProxyOptions * @param namespace object name and auth scope, such as for teams and projects * @param path Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. */ - public connectOptionsNamespacedServiceProxy(name: string, namespace: string, path?: string, _options?: Configuration): Observable { + public connectOptionsNamespacedServiceProxyWithHttpInfo(name: string, namespace: string, path?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.connectOptionsNamespacedServiceProxy(name, namespace, path, _options); // build promise chain @@ -7551,10 +10562,20 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectOptionsNamespacedServiceProxy(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectOptionsNamespacedServiceProxyWithHttpInfo(rsp))); })); } + /** + * connect OPTIONS requests to proxy of Service + * @param name name of the ServiceProxyOptions + * @param namespace object name and auth scope, such as for teams and projects + * @param path Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + */ + public connectOptionsNamespacedServiceProxy(name: string, namespace: string, path?: string, _options?: Configuration): Observable { + return this.connectOptionsNamespacedServiceProxyWithHttpInfo(name, namespace, path, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * connect OPTIONS requests to proxy of Service * @param name name of the ServiceProxyOptions @@ -7562,7 +10583,7 @@ export class ObservableCoreV1Api { * @param path path to the resource * @param path2 Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. */ - public connectOptionsNamespacedServiceProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Observable { + public connectOptionsNamespacedServiceProxyWithPathWithHttpInfo(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.connectOptionsNamespacedServiceProxyWithPath(name, namespace, path, path2, _options); // build promise chain @@ -7577,16 +10598,27 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectOptionsNamespacedServiceProxyWithPath(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectOptionsNamespacedServiceProxyWithPathWithHttpInfo(rsp))); })); } + /** + * connect OPTIONS requests to proxy of Service + * @param name name of the ServiceProxyOptions + * @param namespace object name and auth scope, such as for teams and projects + * @param path path to the resource + * @param path2 Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + */ + public connectOptionsNamespacedServiceProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Observable { + return this.connectOptionsNamespacedServiceProxyWithPathWithHttpInfo(name, namespace, path, path2, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * connect OPTIONS requests to proxy of Node * @param name name of the NodeProxyOptions * @param path Path is the URL path to use for the current proxy request to node. */ - public connectOptionsNodeProxy(name: string, path?: string, _options?: Configuration): Observable { + public connectOptionsNodeProxyWithHttpInfo(name: string, path?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.connectOptionsNodeProxy(name, path, _options); // build promise chain @@ -7601,17 +10633,26 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectOptionsNodeProxy(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectOptionsNodeProxyWithHttpInfo(rsp))); })); } + /** + * connect OPTIONS requests to proxy of Node + * @param name name of the NodeProxyOptions + * @param path Path is the URL path to use for the current proxy request to node. + */ + public connectOptionsNodeProxy(name: string, path?: string, _options?: Configuration): Observable { + return this.connectOptionsNodeProxyWithHttpInfo(name, path, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * connect OPTIONS requests to proxy of Node * @param name name of the NodeProxyOptions * @param path path to the resource * @param path2 Path is the URL path to use for the current proxy request to node. */ - public connectOptionsNodeProxyWithPath(name: string, path: string, path2?: string, _options?: Configuration): Observable { + public connectOptionsNodeProxyWithPathWithHttpInfo(name: string, path: string, path2?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.connectOptionsNodeProxyWithPath(name, path, path2, _options); // build promise chain @@ -7626,17 +10667,27 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectOptionsNodeProxyWithPath(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectOptionsNodeProxyWithPathWithHttpInfo(rsp))); })); } + /** + * connect OPTIONS requests to proxy of Node + * @param name name of the NodeProxyOptions + * @param path path to the resource + * @param path2 Path is the URL path to use for the current proxy request to node. + */ + public connectOptionsNodeProxyWithPath(name: string, path: string, path2?: string, _options?: Configuration): Observable { + return this.connectOptionsNodeProxyWithPathWithHttpInfo(name, path, path2, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * connect PATCH requests to proxy of Pod * @param name name of the PodProxyOptions * @param namespace object name and auth scope, such as for teams and projects * @param path Path is the URL path to use for the current proxy request to pod. */ - public connectPatchNamespacedPodProxy(name: string, namespace: string, path?: string, _options?: Configuration): Observable { + public connectPatchNamespacedPodProxyWithHttpInfo(name: string, namespace: string, path?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.connectPatchNamespacedPodProxy(name, namespace, path, _options); // build promise chain @@ -7651,10 +10702,20 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectPatchNamespacedPodProxy(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectPatchNamespacedPodProxyWithHttpInfo(rsp))); })); } + /** + * connect PATCH requests to proxy of Pod + * @param name name of the PodProxyOptions + * @param namespace object name and auth scope, such as for teams and projects + * @param path Path is the URL path to use for the current proxy request to pod. + */ + public connectPatchNamespacedPodProxy(name: string, namespace: string, path?: string, _options?: Configuration): Observable { + return this.connectPatchNamespacedPodProxyWithHttpInfo(name, namespace, path, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * connect PATCH requests to proxy of Pod * @param name name of the PodProxyOptions @@ -7662,7 +10723,7 @@ export class ObservableCoreV1Api { * @param path path to the resource * @param path2 Path is the URL path to use for the current proxy request to pod. */ - public connectPatchNamespacedPodProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Observable { + public connectPatchNamespacedPodProxyWithPathWithHttpInfo(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.connectPatchNamespacedPodProxyWithPath(name, namespace, path, path2, _options); // build promise chain @@ -7677,17 +10738,28 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectPatchNamespacedPodProxyWithPath(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectPatchNamespacedPodProxyWithPathWithHttpInfo(rsp))); })); } + /** + * connect PATCH requests to proxy of Pod + * @param name name of the PodProxyOptions + * @param namespace object name and auth scope, such as for teams and projects + * @param path path to the resource + * @param path2 Path is the URL path to use for the current proxy request to pod. + */ + public connectPatchNamespacedPodProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Observable { + return this.connectPatchNamespacedPodProxyWithPathWithHttpInfo(name, namespace, path, path2, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * connect PATCH requests to proxy of Service * @param name name of the ServiceProxyOptions * @param namespace object name and auth scope, such as for teams and projects * @param path Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. */ - public connectPatchNamespacedServiceProxy(name: string, namespace: string, path?: string, _options?: Configuration): Observable { + public connectPatchNamespacedServiceProxyWithHttpInfo(name: string, namespace: string, path?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.connectPatchNamespacedServiceProxy(name, namespace, path, _options); // build promise chain @@ -7702,10 +10774,20 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectPatchNamespacedServiceProxy(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectPatchNamespacedServiceProxyWithHttpInfo(rsp))); })); } + /** + * connect PATCH requests to proxy of Service + * @param name name of the ServiceProxyOptions + * @param namespace object name and auth scope, such as for teams and projects + * @param path Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + */ + public connectPatchNamespacedServiceProxy(name: string, namespace: string, path?: string, _options?: Configuration): Observable { + return this.connectPatchNamespacedServiceProxyWithHttpInfo(name, namespace, path, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * connect PATCH requests to proxy of Service * @param name name of the ServiceProxyOptions @@ -7713,7 +10795,7 @@ export class ObservableCoreV1Api { * @param path path to the resource * @param path2 Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. */ - public connectPatchNamespacedServiceProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Observable { + public connectPatchNamespacedServiceProxyWithPathWithHttpInfo(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.connectPatchNamespacedServiceProxyWithPath(name, namespace, path, path2, _options); // build promise chain @@ -7728,16 +10810,27 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectPatchNamespacedServiceProxyWithPath(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectPatchNamespacedServiceProxyWithPathWithHttpInfo(rsp))); })); } + /** + * connect PATCH requests to proxy of Service + * @param name name of the ServiceProxyOptions + * @param namespace object name and auth scope, such as for teams and projects + * @param path path to the resource + * @param path2 Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + */ + public connectPatchNamespacedServiceProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Observable { + return this.connectPatchNamespacedServiceProxyWithPathWithHttpInfo(name, namespace, path, path2, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * connect PATCH requests to proxy of Node * @param name name of the NodeProxyOptions * @param path Path is the URL path to use for the current proxy request to node. */ - public connectPatchNodeProxy(name: string, path?: string, _options?: Configuration): Observable { + public connectPatchNodeProxyWithHttpInfo(name: string, path?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.connectPatchNodeProxy(name, path, _options); // build promise chain @@ -7752,17 +10845,26 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectPatchNodeProxy(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectPatchNodeProxyWithHttpInfo(rsp))); })); } + /** + * connect PATCH requests to proxy of Node + * @param name name of the NodeProxyOptions + * @param path Path is the URL path to use for the current proxy request to node. + */ + public connectPatchNodeProxy(name: string, path?: string, _options?: Configuration): Observable { + return this.connectPatchNodeProxyWithHttpInfo(name, path, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * connect PATCH requests to proxy of Node * @param name name of the NodeProxyOptions * @param path path to the resource * @param path2 Path is the URL path to use for the current proxy request to node. */ - public connectPatchNodeProxyWithPath(name: string, path: string, path2?: string, _options?: Configuration): Observable { + public connectPatchNodeProxyWithPathWithHttpInfo(name: string, path: string, path2?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.connectPatchNodeProxyWithPath(name, path, path2, _options); // build promise chain @@ -7777,10 +10879,20 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectPatchNodeProxyWithPath(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectPatchNodeProxyWithPathWithHttpInfo(rsp))); })); } + /** + * connect PATCH requests to proxy of Node + * @param name name of the NodeProxyOptions + * @param path path to the resource + * @param path2 Path is the URL path to use for the current proxy request to node. + */ + public connectPatchNodeProxyWithPath(name: string, path: string, path2?: string, _options?: Configuration): Observable { + return this.connectPatchNodeProxyWithPathWithHttpInfo(name, path, path2, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * connect POST requests to attach of Pod * @param name name of the PodAttachOptions @@ -7791,7 +10903,7 @@ export class ObservableCoreV1Api { * @param stdout Stdout if true indicates that stdout is to be redirected for the attach call. Defaults to true. * @param tty TTY if true indicates that a tty will be allocated for the attach call. This is passed through the container runtime so the tty is allocated on the worker node by the container runtime. Defaults to false. */ - public connectPostNamespacedPodAttach(name: string, namespace: string, container?: string, stderr?: boolean, stdin?: boolean, stdout?: boolean, tty?: boolean, _options?: Configuration): Observable { + public connectPostNamespacedPodAttachWithHttpInfo(name: string, namespace: string, container?: string, stderr?: boolean, stdin?: boolean, stdout?: boolean, tty?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.connectPostNamespacedPodAttach(name, namespace, container, stderr, stdin, stdout, tty, _options); // build promise chain @@ -7806,10 +10918,24 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectPostNamespacedPodAttach(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectPostNamespacedPodAttachWithHttpInfo(rsp))); })); } + /** + * connect POST requests to attach of Pod + * @param name name of the PodAttachOptions + * @param namespace object name and auth scope, such as for teams and projects + * @param container The container in which to execute the command. Defaults to only container if there is only one container in the pod. + * @param stderr Stderr if true indicates that stderr is to be redirected for the attach call. Defaults to true. + * @param stdin Stdin if true, redirects the standard input stream of the pod for this call. Defaults to false. + * @param stdout Stdout if true indicates that stdout is to be redirected for the attach call. Defaults to true. + * @param tty TTY if true indicates that a tty will be allocated for the attach call. This is passed through the container runtime so the tty is allocated on the worker node by the container runtime. Defaults to false. + */ + public connectPostNamespacedPodAttach(name: string, namespace: string, container?: string, stderr?: boolean, stdin?: boolean, stdout?: boolean, tty?: boolean, _options?: Configuration): Observable { + return this.connectPostNamespacedPodAttachWithHttpInfo(name, namespace, container, stderr, stdin, stdout, tty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * connect POST requests to exec of Pod * @param name name of the PodExecOptions @@ -7821,7 +10947,7 @@ export class ObservableCoreV1Api { * @param stdout Redirect the standard output stream of the pod for this call. Defaults to true. * @param tty TTY if true indicates that a tty will be allocated for the exec call. Defaults to false. */ - public connectPostNamespacedPodExec(name: string, namespace: string, command?: string, container?: string, stderr?: boolean, stdin?: boolean, stdout?: boolean, tty?: boolean, _options?: Configuration): Observable { + public connectPostNamespacedPodExecWithHttpInfo(name: string, namespace: string, command?: string, container?: string, stderr?: boolean, stdin?: boolean, stdout?: boolean, tty?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.connectPostNamespacedPodExec(name, namespace, command, container, stderr, stdin, stdout, tty, _options); // build promise chain @@ -7836,17 +10962,32 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectPostNamespacedPodExec(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectPostNamespacedPodExecWithHttpInfo(rsp))); })); } + /** + * connect POST requests to exec of Pod + * @param name name of the PodExecOptions + * @param namespace object name and auth scope, such as for teams and projects + * @param command Command is the remote command to execute. argv array. Not executed within a shell. + * @param container Container in which to execute the command. Defaults to only container if there is only one container in the pod. + * @param stderr Redirect the standard error stream of the pod for this call. Defaults to true. + * @param stdin Redirect the standard input stream of the pod for this call. Defaults to false. + * @param stdout Redirect the standard output stream of the pod for this call. Defaults to true. + * @param tty TTY if true indicates that a tty will be allocated for the exec call. Defaults to false. + */ + public connectPostNamespacedPodExec(name: string, namespace: string, command?: string, container?: string, stderr?: boolean, stdin?: boolean, stdout?: boolean, tty?: boolean, _options?: Configuration): Observable { + return this.connectPostNamespacedPodExecWithHttpInfo(name, namespace, command, container, stderr, stdin, stdout, tty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * connect POST requests to portforward of Pod * @param name name of the PodPortForwardOptions * @param namespace object name and auth scope, such as for teams and projects * @param ports List of ports to forward Required when using WebSockets */ - public connectPostNamespacedPodPortforward(name: string, namespace: string, ports?: number, _options?: Configuration): Observable { + public connectPostNamespacedPodPortforwardWithHttpInfo(name: string, namespace: string, ports?: number, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.connectPostNamespacedPodPortforward(name, namespace, ports, _options); // build promise chain @@ -7861,17 +11002,27 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectPostNamespacedPodPortforward(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectPostNamespacedPodPortforwardWithHttpInfo(rsp))); })); } + /** + * connect POST requests to portforward of Pod + * @param name name of the PodPortForwardOptions + * @param namespace object name and auth scope, such as for teams and projects + * @param ports List of ports to forward Required when using WebSockets + */ + public connectPostNamespacedPodPortforward(name: string, namespace: string, ports?: number, _options?: Configuration): Observable { + return this.connectPostNamespacedPodPortforwardWithHttpInfo(name, namespace, ports, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * connect POST requests to proxy of Pod * @param name name of the PodProxyOptions * @param namespace object name and auth scope, such as for teams and projects * @param path Path is the URL path to use for the current proxy request to pod. */ - public connectPostNamespacedPodProxy(name: string, namespace: string, path?: string, _options?: Configuration): Observable { + public connectPostNamespacedPodProxyWithHttpInfo(name: string, namespace: string, path?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.connectPostNamespacedPodProxy(name, namespace, path, _options); // build promise chain @@ -7886,10 +11037,20 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectPostNamespacedPodProxy(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectPostNamespacedPodProxyWithHttpInfo(rsp))); })); } + /** + * connect POST requests to proxy of Pod + * @param name name of the PodProxyOptions + * @param namespace object name and auth scope, such as for teams and projects + * @param path Path is the URL path to use for the current proxy request to pod. + */ + public connectPostNamespacedPodProxy(name: string, namespace: string, path?: string, _options?: Configuration): Observable { + return this.connectPostNamespacedPodProxyWithHttpInfo(name, namespace, path, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * connect POST requests to proxy of Pod * @param name name of the PodProxyOptions @@ -7897,7 +11058,7 @@ export class ObservableCoreV1Api { * @param path path to the resource * @param path2 Path is the URL path to use for the current proxy request to pod. */ - public connectPostNamespacedPodProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Observable { + public connectPostNamespacedPodProxyWithPathWithHttpInfo(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.connectPostNamespacedPodProxyWithPath(name, namespace, path, path2, _options); // build promise chain @@ -7912,17 +11073,28 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectPostNamespacedPodProxyWithPath(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectPostNamespacedPodProxyWithPathWithHttpInfo(rsp))); })); } + /** + * connect POST requests to proxy of Pod + * @param name name of the PodProxyOptions + * @param namespace object name and auth scope, such as for teams and projects + * @param path path to the resource + * @param path2 Path is the URL path to use for the current proxy request to pod. + */ + public connectPostNamespacedPodProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Observable { + return this.connectPostNamespacedPodProxyWithPathWithHttpInfo(name, namespace, path, path2, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * connect POST requests to proxy of Service * @param name name of the ServiceProxyOptions * @param namespace object name and auth scope, such as for teams and projects * @param path Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. */ - public connectPostNamespacedServiceProxy(name: string, namespace: string, path?: string, _options?: Configuration): Observable { + public connectPostNamespacedServiceProxyWithHttpInfo(name: string, namespace: string, path?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.connectPostNamespacedServiceProxy(name, namespace, path, _options); // build promise chain @@ -7937,10 +11109,20 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectPostNamespacedServiceProxy(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectPostNamespacedServiceProxyWithHttpInfo(rsp))); })); } + /** + * connect POST requests to proxy of Service + * @param name name of the ServiceProxyOptions + * @param namespace object name and auth scope, such as for teams and projects + * @param path Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + */ + public connectPostNamespacedServiceProxy(name: string, namespace: string, path?: string, _options?: Configuration): Observable { + return this.connectPostNamespacedServiceProxyWithHttpInfo(name, namespace, path, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * connect POST requests to proxy of Service * @param name name of the ServiceProxyOptions @@ -7948,7 +11130,7 @@ export class ObservableCoreV1Api { * @param path path to the resource * @param path2 Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. */ - public connectPostNamespacedServiceProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Observable { + public connectPostNamespacedServiceProxyWithPathWithHttpInfo(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.connectPostNamespacedServiceProxyWithPath(name, namespace, path, path2, _options); // build promise chain @@ -7963,16 +11145,27 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectPostNamespacedServiceProxyWithPath(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectPostNamespacedServiceProxyWithPathWithHttpInfo(rsp))); })); } + /** + * connect POST requests to proxy of Service + * @param name name of the ServiceProxyOptions + * @param namespace object name and auth scope, such as for teams and projects + * @param path path to the resource + * @param path2 Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + */ + public connectPostNamespacedServiceProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Observable { + return this.connectPostNamespacedServiceProxyWithPathWithHttpInfo(name, namespace, path, path2, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * connect POST requests to proxy of Node * @param name name of the NodeProxyOptions * @param path Path is the URL path to use for the current proxy request to node. */ - public connectPostNodeProxy(name: string, path?: string, _options?: Configuration): Observable { + public connectPostNodeProxyWithHttpInfo(name: string, path?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.connectPostNodeProxy(name, path, _options); // build promise chain @@ -7987,17 +11180,26 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectPostNodeProxy(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectPostNodeProxyWithHttpInfo(rsp))); })); } + /** + * connect POST requests to proxy of Node + * @param name name of the NodeProxyOptions + * @param path Path is the URL path to use for the current proxy request to node. + */ + public connectPostNodeProxy(name: string, path?: string, _options?: Configuration): Observable { + return this.connectPostNodeProxyWithHttpInfo(name, path, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * connect POST requests to proxy of Node * @param name name of the NodeProxyOptions * @param path path to the resource * @param path2 Path is the URL path to use for the current proxy request to node. */ - public connectPostNodeProxyWithPath(name: string, path: string, path2?: string, _options?: Configuration): Observable { + public connectPostNodeProxyWithPathWithHttpInfo(name: string, path: string, path2?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.connectPostNodeProxyWithPath(name, path, path2, _options); // build promise chain @@ -8012,17 +11214,27 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectPostNodeProxyWithPath(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectPostNodeProxyWithPathWithHttpInfo(rsp))); })); } + /** + * connect POST requests to proxy of Node + * @param name name of the NodeProxyOptions + * @param path path to the resource + * @param path2 Path is the URL path to use for the current proxy request to node. + */ + public connectPostNodeProxyWithPath(name: string, path: string, path2?: string, _options?: Configuration): Observable { + return this.connectPostNodeProxyWithPathWithHttpInfo(name, path, path2, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * connect PUT requests to proxy of Pod * @param name name of the PodProxyOptions * @param namespace object name and auth scope, such as for teams and projects * @param path Path is the URL path to use for the current proxy request to pod. */ - public connectPutNamespacedPodProxy(name: string, namespace: string, path?: string, _options?: Configuration): Observable { + public connectPutNamespacedPodProxyWithHttpInfo(name: string, namespace: string, path?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.connectPutNamespacedPodProxy(name, namespace, path, _options); // build promise chain @@ -8037,10 +11249,20 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectPutNamespacedPodProxy(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectPutNamespacedPodProxyWithHttpInfo(rsp))); })); } + /** + * connect PUT requests to proxy of Pod + * @param name name of the PodProxyOptions + * @param namespace object name and auth scope, such as for teams and projects + * @param path Path is the URL path to use for the current proxy request to pod. + */ + public connectPutNamespacedPodProxy(name: string, namespace: string, path?: string, _options?: Configuration): Observable { + return this.connectPutNamespacedPodProxyWithHttpInfo(name, namespace, path, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * connect PUT requests to proxy of Pod * @param name name of the PodProxyOptions @@ -8048,7 +11270,7 @@ export class ObservableCoreV1Api { * @param path path to the resource * @param path2 Path is the URL path to use for the current proxy request to pod. */ - public connectPutNamespacedPodProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Observable { + public connectPutNamespacedPodProxyWithPathWithHttpInfo(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.connectPutNamespacedPodProxyWithPath(name, namespace, path, path2, _options); // build promise chain @@ -8063,18 +11285,29 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectPutNamespacedPodProxyWithPath(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectPutNamespacedPodProxyWithPathWithHttpInfo(rsp))); })); } /** - * connect PUT requests to proxy of Service - * @param name name of the ServiceProxyOptions + * connect PUT requests to proxy of Pod + * @param name name of the PodProxyOptions * @param namespace object name and auth scope, such as for teams and projects - * @param path Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + * @param path path to the resource + * @param path2 Path is the URL path to use for the current proxy request to pod. */ - public connectPutNamespacedServiceProxy(name: string, namespace: string, path?: string, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.connectPutNamespacedServiceProxy(name, namespace, path, _options); + public connectPutNamespacedPodProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Observable { + return this.connectPutNamespacedPodProxyWithPathWithHttpInfo(name, namespace, path, path2, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * connect PUT requests to proxy of Service + * @param name name of the ServiceProxyOptions + * @param namespace object name and auth scope, such as for teams and projects + * @param path Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + */ + public connectPutNamespacedServiceProxyWithHttpInfo(name: string, namespace: string, path?: string, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.connectPutNamespacedServiceProxy(name, namespace, path, _options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -8088,10 +11321,20 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectPutNamespacedServiceProxy(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectPutNamespacedServiceProxyWithHttpInfo(rsp))); })); } + /** + * connect PUT requests to proxy of Service + * @param name name of the ServiceProxyOptions + * @param namespace object name and auth scope, such as for teams and projects + * @param path Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + */ + public connectPutNamespacedServiceProxy(name: string, namespace: string, path?: string, _options?: Configuration): Observable { + return this.connectPutNamespacedServiceProxyWithHttpInfo(name, namespace, path, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * connect PUT requests to proxy of Service * @param name name of the ServiceProxyOptions @@ -8099,7 +11342,7 @@ export class ObservableCoreV1Api { * @param path path to the resource * @param path2 Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. */ - public connectPutNamespacedServiceProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Observable { + public connectPutNamespacedServiceProxyWithPathWithHttpInfo(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.connectPutNamespacedServiceProxyWithPath(name, namespace, path, path2, _options); // build promise chain @@ -8114,16 +11357,27 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectPutNamespacedServiceProxyWithPath(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectPutNamespacedServiceProxyWithPathWithHttpInfo(rsp))); })); } + /** + * connect PUT requests to proxy of Service + * @param name name of the ServiceProxyOptions + * @param namespace object name and auth scope, such as for teams and projects + * @param path path to the resource + * @param path2 Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + */ + public connectPutNamespacedServiceProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Observable { + return this.connectPutNamespacedServiceProxyWithPathWithHttpInfo(name, namespace, path, path2, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * connect PUT requests to proxy of Node * @param name name of the NodeProxyOptions * @param path Path is the URL path to use for the current proxy request to node. */ - public connectPutNodeProxy(name: string, path?: string, _options?: Configuration): Observable { + public connectPutNodeProxyWithHttpInfo(name: string, path?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.connectPutNodeProxy(name, path, _options); // build promise chain @@ -8138,17 +11392,26 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectPutNodeProxy(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectPutNodeProxyWithHttpInfo(rsp))); })); } + /** + * connect PUT requests to proxy of Node + * @param name name of the NodeProxyOptions + * @param path Path is the URL path to use for the current proxy request to node. + */ + public connectPutNodeProxy(name: string, path?: string, _options?: Configuration): Observable { + return this.connectPutNodeProxyWithHttpInfo(name, path, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * connect PUT requests to proxy of Node * @param name name of the NodeProxyOptions * @param path path to the resource * @param path2 Path is the URL path to use for the current proxy request to node. */ - public connectPutNodeProxyWithPath(name: string, path: string, path2?: string, _options?: Configuration): Observable { + public connectPutNodeProxyWithPathWithHttpInfo(name: string, path: string, path2?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.connectPutNodeProxyWithPath(name, path, path2, _options); // build promise chain @@ -8163,10 +11426,20 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectPutNodeProxyWithPath(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.connectPutNodeProxyWithPathWithHttpInfo(rsp))); })); } + /** + * connect PUT requests to proxy of Node + * @param name name of the NodeProxyOptions + * @param path path to the resource + * @param path2 Path is the URL path to use for the current proxy request to node. + */ + public connectPutNodeProxyWithPath(name: string, path: string, path2?: string, _options?: Configuration): Observable { + return this.connectPutNodeProxyWithPathWithHttpInfo(name, path, path2, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * create a Namespace * @param body @@ -8174,7 +11447,7 @@ export class ObservableCoreV1Api { * @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. */ - public createNamespace(body: V1Namespace, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public createNamespaceWithHttpInfo(body: V1Namespace, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.createNamespace(body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -8189,10 +11462,21 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespace(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespaceWithHttpInfo(rsp))); })); } + /** + * create a Namespace + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public createNamespace(body: V1Namespace, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.createNamespaceWithHttpInfo(body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * create a Binding * @param namespace object name and auth scope, such as for teams and projects @@ -8201,7 +11485,7 @@ export class ObservableCoreV1Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. * @param pretty If \'true\', then the output is pretty printed. */ - public createNamespacedBinding(namespace: string, body: V1Binding, dryRun?: string, fieldManager?: string, pretty?: string, _options?: Configuration): Observable { + public createNamespacedBindingWithHttpInfo(namespace: string, body: V1Binding, dryRun?: string, fieldManager?: string, pretty?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.createNamespacedBinding(namespace, body, dryRun, fieldManager, pretty, _options); // build promise chain @@ -8216,10 +11500,22 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedBinding(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedBindingWithHttpInfo(rsp))); })); } + /** + * create a Binding + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @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 pretty If \'true\', then the output is pretty printed. + */ + public createNamespacedBinding(namespace: string, body: V1Binding, dryRun?: string, fieldManager?: string, pretty?: string, _options?: Configuration): Observable { + return this.createNamespacedBindingWithHttpInfo(namespace, body, dryRun, fieldManager, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * create a ConfigMap * @param namespace object name and auth scope, such as for teams and projects @@ -8228,7 +11524,7 @@ export class ObservableCoreV1Api { * @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. */ - public createNamespacedConfigMap(namespace: string, body: V1ConfigMap, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public createNamespacedConfigMapWithHttpInfo(namespace: string, body: V1ConfigMap, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.createNamespacedConfigMap(namespace, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -8243,10 +11539,22 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedConfigMap(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedConfigMapWithHttpInfo(rsp))); })); } + /** + * create a ConfigMap + * @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. + * @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. + */ + public createNamespacedConfigMap(namespace: string, body: V1ConfigMap, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.createNamespacedConfigMapWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * create Endpoints * @param namespace object name and auth scope, such as for teams and projects @@ -8255,7 +11563,7 @@ export class ObservableCoreV1Api { * @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. */ - public createNamespacedEndpoints(namespace: string, body: V1Endpoints, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public createNamespacedEndpointsWithHttpInfo(namespace: string, body: V1Endpoints, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.createNamespacedEndpoints(namespace, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -8270,10 +11578,22 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedEndpoints(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedEndpointsWithHttpInfo(rsp))); })); } + /** + * create Endpoints + * @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. + * @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. + */ + public createNamespacedEndpoints(namespace: string, body: V1Endpoints, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.createNamespacedEndpointsWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * create an Event * @param namespace object name and auth scope, such as for teams and projects @@ -8282,7 +11602,7 @@ export class ObservableCoreV1Api { * @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. */ - public createNamespacedEvent(namespace: string, body: CoreV1Event, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public createNamespacedEventWithHttpInfo(namespace: string, body: CoreV1Event, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.createNamespacedEvent(namespace, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -8297,10 +11617,22 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedEvent(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedEventWithHttpInfo(rsp))); })); } + /** + * create an Event + * @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. + * @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. + */ + public createNamespacedEvent(namespace: string, body: CoreV1Event, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.createNamespacedEventWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * create a LimitRange * @param namespace object name and auth scope, such as for teams and projects @@ -8309,7 +11641,7 @@ export class ObservableCoreV1Api { * @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. */ - public createNamespacedLimitRange(namespace: string, body: V1LimitRange, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public createNamespacedLimitRangeWithHttpInfo(namespace: string, body: V1LimitRange, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.createNamespacedLimitRange(namespace, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -8324,10 +11656,22 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedLimitRange(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedLimitRangeWithHttpInfo(rsp))); })); } + /** + * create a LimitRange + * @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. + * @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. + */ + public createNamespacedLimitRange(namespace: string, body: V1LimitRange, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.createNamespacedLimitRangeWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * create a PersistentVolumeClaim * @param namespace object name and auth scope, such as for teams and projects @@ -8336,7 +11680,7 @@ export class ObservableCoreV1Api { * @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. */ - public createNamespacedPersistentVolumeClaim(namespace: string, body: V1PersistentVolumeClaim, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public createNamespacedPersistentVolumeClaimWithHttpInfo(namespace: string, body: V1PersistentVolumeClaim, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.createNamespacedPersistentVolumeClaim(namespace, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -8351,10 +11695,22 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedPersistentVolumeClaim(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedPersistentVolumeClaimWithHttpInfo(rsp))); })); } + /** + * create a PersistentVolumeClaim + * @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. + * @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. + */ + public createNamespacedPersistentVolumeClaim(namespace: string, body: V1PersistentVolumeClaim, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.createNamespacedPersistentVolumeClaimWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * create a Pod * @param namespace object name and auth scope, such as for teams and projects @@ -8363,7 +11719,7 @@ export class ObservableCoreV1Api { * @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. */ - public createNamespacedPod(namespace: string, body: V1Pod, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public createNamespacedPodWithHttpInfo(namespace: string, body: V1Pod, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.createNamespacedPod(namespace, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -8378,10 +11734,22 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedPod(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedPodWithHttpInfo(rsp))); })); } + /** + * create a Pod + * @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. + * @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. + */ + public createNamespacedPod(namespace: string, body: V1Pod, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.createNamespacedPodWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * create binding of a Pod * @param name name of the Binding @@ -8391,7 +11759,7 @@ export class ObservableCoreV1Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. * @param pretty If \'true\', then the output is pretty printed. */ - public createNamespacedPodBinding(name: string, namespace: string, body: V1Binding, dryRun?: string, fieldManager?: string, pretty?: string, _options?: Configuration): Observable { + public createNamespacedPodBindingWithHttpInfo(name: string, namespace: string, body: V1Binding, dryRun?: string, fieldManager?: string, pretty?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.createNamespacedPodBinding(name, namespace, body, dryRun, fieldManager, pretty, _options); // build promise chain @@ -8406,10 +11774,23 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedPodBinding(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedPodBindingWithHttpInfo(rsp))); })); } + /** + * create binding of a Pod + * @param name name of the Binding + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @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 pretty If \'true\', then the output is pretty printed. + */ + public createNamespacedPodBinding(name: string, namespace: string, body: V1Binding, dryRun?: string, fieldManager?: string, pretty?: string, _options?: Configuration): Observable { + return this.createNamespacedPodBindingWithHttpInfo(name, namespace, body, dryRun, fieldManager, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * create eviction of a Pod * @param name name of the Eviction @@ -8419,7 +11800,7 @@ export class ObservableCoreV1Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. * @param pretty If \'true\', then the output is pretty printed. */ - public createNamespacedPodEviction(name: string, namespace: string, body: V1Eviction, dryRun?: string, fieldManager?: string, pretty?: string, _options?: Configuration): Observable { + public createNamespacedPodEvictionWithHttpInfo(name: string, namespace: string, body: V1Eviction, dryRun?: string, fieldManager?: string, pretty?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.createNamespacedPodEviction(name, namespace, body, dryRun, fieldManager, pretty, _options); // build promise chain @@ -8434,10 +11815,23 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedPodEviction(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedPodEvictionWithHttpInfo(rsp))); })); } + /** + * create eviction of a Pod + * @param name name of the Eviction + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @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 pretty If \'true\', then the output is pretty printed. + */ + public createNamespacedPodEviction(name: string, namespace: string, body: V1Eviction, dryRun?: string, fieldManager?: string, pretty?: string, _options?: Configuration): Observable { + return this.createNamespacedPodEvictionWithHttpInfo(name, namespace, body, dryRun, fieldManager, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * create a PodTemplate * @param namespace object name and auth scope, such as for teams and projects @@ -8446,7 +11840,7 @@ export class ObservableCoreV1Api { * @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. */ - public createNamespacedPodTemplate(namespace: string, body: V1PodTemplate, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public createNamespacedPodTemplateWithHttpInfo(namespace: string, body: V1PodTemplate, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.createNamespacedPodTemplate(namespace, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -8461,10 +11855,22 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedPodTemplate(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedPodTemplateWithHttpInfo(rsp))); })); } + /** + * create a PodTemplate + * @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. + * @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. + */ + public createNamespacedPodTemplate(namespace: string, body: V1PodTemplate, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.createNamespacedPodTemplateWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * create a ReplicationController * @param namespace object name and auth scope, such as for teams and projects @@ -8473,7 +11879,7 @@ export class ObservableCoreV1Api { * @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. */ - public createNamespacedReplicationController(namespace: string, body: V1ReplicationController, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public createNamespacedReplicationControllerWithHttpInfo(namespace: string, body: V1ReplicationController, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.createNamespacedReplicationController(namespace, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -8488,10 +11894,22 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedReplicationController(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedReplicationControllerWithHttpInfo(rsp))); })); } + /** + * create a ReplicationController + * @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. + * @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. + */ + public createNamespacedReplicationController(namespace: string, body: V1ReplicationController, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.createNamespacedReplicationControllerWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * create a ResourceQuota * @param namespace object name and auth scope, such as for teams and projects @@ -8500,7 +11918,7 @@ export class ObservableCoreV1Api { * @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. */ - public createNamespacedResourceQuota(namespace: string, body: V1ResourceQuota, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public createNamespacedResourceQuotaWithHttpInfo(namespace: string, body: V1ResourceQuota, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.createNamespacedResourceQuota(namespace, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -8515,10 +11933,22 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedResourceQuota(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedResourceQuotaWithHttpInfo(rsp))); })); } + /** + * create a ResourceQuota + * @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. + * @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. + */ + public createNamespacedResourceQuota(namespace: string, body: V1ResourceQuota, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.createNamespacedResourceQuotaWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * create a Secret * @param namespace object name and auth scope, such as for teams and projects @@ -8527,7 +11957,7 @@ export class ObservableCoreV1Api { * @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. */ - public createNamespacedSecret(namespace: string, body: V1Secret, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public createNamespacedSecretWithHttpInfo(namespace: string, body: V1Secret, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.createNamespacedSecret(namespace, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -8542,10 +11972,22 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedSecret(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedSecretWithHttpInfo(rsp))); })); } + /** + * create a Secret + * @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. + * @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. + */ + public createNamespacedSecret(namespace: string, body: V1Secret, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.createNamespacedSecretWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * create a Service * @param namespace object name and auth scope, such as for teams and projects @@ -8554,7 +11996,7 @@ export class ObservableCoreV1Api { * @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. */ - public createNamespacedService(namespace: string, body: V1Service, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public createNamespacedServiceWithHttpInfo(namespace: string, body: V1Service, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.createNamespacedService(namespace, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -8569,10 +12011,22 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedService(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedServiceWithHttpInfo(rsp))); })); } + /** + * create a Service + * @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. + * @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. + */ + public createNamespacedService(namespace: string, body: V1Service, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.createNamespacedServiceWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * create a ServiceAccount * @param namespace object name and auth scope, such as for teams and projects @@ -8581,7 +12035,7 @@ export class ObservableCoreV1Api { * @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. */ - public createNamespacedServiceAccount(namespace: string, body: V1ServiceAccount, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public createNamespacedServiceAccountWithHttpInfo(namespace: string, body: V1ServiceAccount, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.createNamespacedServiceAccount(namespace, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -8596,10 +12050,22 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedServiceAccount(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedServiceAccountWithHttpInfo(rsp))); })); } + /** + * create a ServiceAccount + * @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. + * @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. + */ + public createNamespacedServiceAccount(namespace: string, body: V1ServiceAccount, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.createNamespacedServiceAccountWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * create token of a ServiceAccount * @param name name of the TokenRequest @@ -8609,7 +12075,7 @@ export class ObservableCoreV1Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. * @param pretty If \'true\', then the output is pretty printed. */ - public createNamespacedServiceAccountToken(name: string, namespace: string, body: AuthenticationV1TokenRequest, dryRun?: string, fieldManager?: string, pretty?: string, _options?: Configuration): Observable { + public createNamespacedServiceAccountTokenWithHttpInfo(name: string, namespace: string, body: AuthenticationV1TokenRequest, dryRun?: string, fieldManager?: string, pretty?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.createNamespacedServiceAccountToken(name, namespace, body, dryRun, fieldManager, pretty, _options); // build promise chain @@ -8624,10 +12090,23 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedServiceAccountToken(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedServiceAccountTokenWithHttpInfo(rsp))); })); } + /** + * create token of a ServiceAccount + * @param name name of the TokenRequest + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @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 pretty If \'true\', then the output is pretty printed. + */ + public createNamespacedServiceAccountToken(name: string, namespace: string, body: AuthenticationV1TokenRequest, dryRun?: string, fieldManager?: string, pretty?: string, _options?: Configuration): Observable { + return this.createNamespacedServiceAccountTokenWithHttpInfo(name, namespace, body, dryRun, fieldManager, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * create a Node * @param body @@ -8635,7 +12114,7 @@ export class ObservableCoreV1Api { * @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. */ - public createNode(body: V1Node, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public createNodeWithHttpInfo(body: V1Node, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.createNode(body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -8650,10 +12129,21 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNode(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNodeWithHttpInfo(rsp))); })); } + /** + * create a Node + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public createNode(body: V1Node, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.createNodeWithHttpInfo(body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * create a PersistentVolume * @param body @@ -8661,7 +12151,7 @@ export class ObservableCoreV1Api { * @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. */ - public createPersistentVolume(body: V1PersistentVolume, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public createPersistentVolumeWithHttpInfo(body: V1PersistentVolume, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.createPersistentVolume(body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -8676,10 +12166,21 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createPersistentVolume(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createPersistentVolumeWithHttpInfo(rsp))); })); } + /** + * create a PersistentVolume + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public createPersistentVolume(body: V1PersistentVolume, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.createPersistentVolumeWithHttpInfo(body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * delete collection of ConfigMap * @param namespace object name and auth scope, such as for teams and projects @@ -8697,7 +12198,7 @@ export class ObservableCoreV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param body */ - public deleteCollectionNamespacedConfigMap(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteCollectionNamespacedConfigMapWithHttpInfo(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.deleteCollectionNamespacedConfigMap(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); // build promise chain @@ -8712,10 +12213,31 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedConfigMap(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedConfigMapWithHttpInfo(rsp))); })); } + /** + * delete collection of ConfigMap + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionNamespacedConfigMap(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { + return this.deleteCollectionNamespacedConfigMapWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * delete collection of Endpoints * @param namespace object name and auth scope, such as for teams and projects @@ -8733,7 +12255,7 @@ export class ObservableCoreV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param body */ - public deleteCollectionNamespacedEndpoints(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteCollectionNamespacedEndpointsWithHttpInfo(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.deleteCollectionNamespacedEndpoints(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); // build promise chain @@ -8748,10 +12270,31 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedEndpoints(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedEndpointsWithHttpInfo(rsp))); })); } + /** + * delete collection of Endpoints + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionNamespacedEndpoints(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { + return this.deleteCollectionNamespacedEndpointsWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * delete collection of Event * @param namespace object name and auth scope, such as for teams and projects @@ -8769,7 +12312,7 @@ export class ObservableCoreV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param body */ - public deleteCollectionNamespacedEvent(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteCollectionNamespacedEventWithHttpInfo(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.deleteCollectionNamespacedEvent(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); // build promise chain @@ -8784,10 +12327,31 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedEvent(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedEventWithHttpInfo(rsp))); })); } + /** + * delete collection of Event + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionNamespacedEvent(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { + return this.deleteCollectionNamespacedEventWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * delete collection of LimitRange * @param namespace object name and auth scope, such as for teams and projects @@ -8805,7 +12369,7 @@ export class ObservableCoreV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param body */ - public deleteCollectionNamespacedLimitRange(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteCollectionNamespacedLimitRangeWithHttpInfo(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.deleteCollectionNamespacedLimitRange(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); // build promise chain @@ -8820,10 +12384,31 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedLimitRange(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedLimitRangeWithHttpInfo(rsp))); })); } + /** + * delete collection of LimitRange + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionNamespacedLimitRange(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { + return this.deleteCollectionNamespacedLimitRangeWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * delete collection of PersistentVolumeClaim * @param namespace object name and auth scope, such as for teams and projects @@ -8841,7 +12426,7 @@ export class ObservableCoreV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param body */ - public deleteCollectionNamespacedPersistentVolumeClaim(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteCollectionNamespacedPersistentVolumeClaimWithHttpInfo(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.deleteCollectionNamespacedPersistentVolumeClaim(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); // build promise chain @@ -8856,10 +12441,31 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedPersistentVolumeClaim(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedPersistentVolumeClaimWithHttpInfo(rsp))); })); } + /** + * delete collection of PersistentVolumeClaim + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionNamespacedPersistentVolumeClaim(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { + return this.deleteCollectionNamespacedPersistentVolumeClaimWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * delete collection of Pod * @param namespace object name and auth scope, such as for teams and projects @@ -8877,7 +12483,7 @@ export class ObservableCoreV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param body */ - public deleteCollectionNamespacedPod(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteCollectionNamespacedPodWithHttpInfo(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.deleteCollectionNamespacedPod(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); // build promise chain @@ -8892,10 +12498,31 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedPod(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedPodWithHttpInfo(rsp))); })); } + /** + * delete collection of Pod + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionNamespacedPod(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { + return this.deleteCollectionNamespacedPodWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * delete collection of PodTemplate * @param namespace object name and auth scope, such as for teams and projects @@ -8913,7 +12540,7 @@ export class ObservableCoreV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param body */ - public deleteCollectionNamespacedPodTemplate(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteCollectionNamespacedPodTemplateWithHttpInfo(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.deleteCollectionNamespacedPodTemplate(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); // build promise chain @@ -8928,10 +12555,31 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedPodTemplate(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedPodTemplateWithHttpInfo(rsp))); })); } + /** + * delete collection of PodTemplate + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionNamespacedPodTemplate(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { + return this.deleteCollectionNamespacedPodTemplateWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * delete collection of ReplicationController * @param namespace object name and auth scope, such as for teams and projects @@ -8949,7 +12597,7 @@ export class ObservableCoreV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param body */ - public deleteCollectionNamespacedReplicationController(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteCollectionNamespacedReplicationControllerWithHttpInfo(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.deleteCollectionNamespacedReplicationController(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); // build promise chain @@ -8964,10 +12612,31 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedReplicationController(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedReplicationControllerWithHttpInfo(rsp))); })); } + /** + * delete collection of ReplicationController + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionNamespacedReplicationController(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { + return this.deleteCollectionNamespacedReplicationControllerWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * delete collection of ResourceQuota * @param namespace object name and auth scope, such as for teams and projects @@ -8985,7 +12654,7 @@ export class ObservableCoreV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param body */ - public deleteCollectionNamespacedResourceQuota(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteCollectionNamespacedResourceQuotaWithHttpInfo(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.deleteCollectionNamespacedResourceQuota(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); // build promise chain @@ -9000,10 +12669,31 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedResourceQuota(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedResourceQuotaWithHttpInfo(rsp))); })); } + /** + * delete collection of ResourceQuota + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionNamespacedResourceQuota(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { + return this.deleteCollectionNamespacedResourceQuotaWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * delete collection of Secret * @param namespace object name and auth scope, such as for teams and projects @@ -9021,7 +12711,7 @@ export class ObservableCoreV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param body */ - public deleteCollectionNamespacedSecret(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteCollectionNamespacedSecretWithHttpInfo(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.deleteCollectionNamespacedSecret(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); // build promise chain @@ -9036,10 +12726,31 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedSecret(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedSecretWithHttpInfo(rsp))); })); } + /** + * delete collection of Secret + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionNamespacedSecret(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { + return this.deleteCollectionNamespacedSecretWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * delete collection of ServiceAccount * @param namespace object name and auth scope, such as for teams and projects @@ -9057,7 +12768,7 @@ export class ObservableCoreV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param body */ - public deleteCollectionNamespacedServiceAccount(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteCollectionNamespacedServiceAccountWithHttpInfo(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.deleteCollectionNamespacedServiceAccount(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); // build promise chain @@ -9072,10 +12783,31 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedServiceAccount(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedServiceAccountWithHttpInfo(rsp))); })); } + /** + * delete collection of ServiceAccount + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionNamespacedServiceAccount(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { + return this.deleteCollectionNamespacedServiceAccountWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * delete collection of Node * @param pretty If \'true\', then the output is pretty printed. @@ -9092,7 +12824,7 @@ export class ObservableCoreV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param body */ - public deleteCollectionNode(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteCollectionNodeWithHttpInfo(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.deleteCollectionNode(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); // build promise chain @@ -9107,12 +12839,12 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNode(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNodeWithHttpInfo(rsp))); })); } /** - * delete collection of PersistentVolume + * delete collection of Node * @param pretty If \'true\', then the output is pretty printed. * @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 @@ -9127,7 +12859,27 @@ export class ObservableCoreV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param body */ - public deleteCollectionPersistentVolume(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteCollectionNode(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { + return this.deleteCollectionNodeWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * delete collection of PersistentVolume + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionPersistentVolumeWithHttpInfo(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.deleteCollectionPersistentVolume(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); // build promise chain @@ -9142,10 +12894,30 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionPersistentVolume(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionPersistentVolumeWithHttpInfo(rsp))); })); } + /** + * delete collection of PersistentVolume + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionPersistentVolume(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { + return this.deleteCollectionPersistentVolumeWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * delete a Namespace * @param name name of the Namespace @@ -9156,7 +12928,7 @@ export class ObservableCoreV1Api { * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. * @param body */ - public deleteNamespace(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteNamespaceWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.deleteNamespace(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); // build promise chain @@ -9171,10 +12943,24 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespace(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespaceWithHttpInfo(rsp))); })); } + /** + * delete a Namespace + * @param name name of the Namespace + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteNamespace(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + return this.deleteNamespaceWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * delete a ConfigMap * @param name name of the ConfigMap @@ -9186,7 +12972,7 @@ export class ObservableCoreV1Api { * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. * @param body */ - public deleteNamespacedConfigMap(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteNamespacedConfigMapWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.deleteNamespacedConfigMap(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); // build promise chain @@ -9201,10 +12987,25 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedConfigMap(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedConfigMapWithHttpInfo(rsp))); })); } + /** + * delete a ConfigMap + * @param name name of the ConfigMap + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteNamespacedConfigMap(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + return this.deleteNamespacedConfigMapWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * delete Endpoints * @param name name of the Endpoints @@ -9216,7 +13017,7 @@ export class ObservableCoreV1Api { * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. * @param body */ - public deleteNamespacedEndpoints(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteNamespacedEndpointsWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.deleteNamespacedEndpoints(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); // build promise chain @@ -9231,10 +13032,25 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedEndpoints(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedEndpointsWithHttpInfo(rsp))); })); } + /** + * delete Endpoints + * @param name name of the Endpoints + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteNamespacedEndpoints(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + return this.deleteNamespacedEndpointsWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * delete an Event * @param name name of the Event @@ -9246,7 +13062,7 @@ export class ObservableCoreV1Api { * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. * @param body */ - public deleteNamespacedEvent(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteNamespacedEventWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.deleteNamespacedEvent(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); // build promise chain @@ -9261,10 +13077,25 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedEvent(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedEventWithHttpInfo(rsp))); })); } + /** + * delete an Event + * @param name name of the Event + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteNamespacedEvent(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + return this.deleteNamespacedEventWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * delete a LimitRange * @param name name of the LimitRange @@ -9276,7 +13107,7 @@ export class ObservableCoreV1Api { * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. * @param body */ - public deleteNamespacedLimitRange(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteNamespacedLimitRangeWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.deleteNamespacedLimitRange(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); // build promise chain @@ -9291,10 +13122,25 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedLimitRange(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedLimitRangeWithHttpInfo(rsp))); })); } + /** + * delete a LimitRange + * @param name name of the LimitRange + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteNamespacedLimitRange(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + return this.deleteNamespacedLimitRangeWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * delete a PersistentVolumeClaim * @param name name of the PersistentVolumeClaim @@ -9306,7 +13152,7 @@ export class ObservableCoreV1Api { * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. * @param body */ - public deleteNamespacedPersistentVolumeClaim(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteNamespacedPersistentVolumeClaimWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.deleteNamespacedPersistentVolumeClaim(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); // build promise chain @@ -9321,10 +13167,25 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedPersistentVolumeClaim(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedPersistentVolumeClaimWithHttpInfo(rsp))); })); } + /** + * delete a PersistentVolumeClaim + * @param name name of the PersistentVolumeClaim + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteNamespacedPersistentVolumeClaim(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + return this.deleteNamespacedPersistentVolumeClaimWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * delete a Pod * @param name name of the Pod @@ -9336,7 +13197,7 @@ export class ObservableCoreV1Api { * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. * @param body */ - public deleteNamespacedPod(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteNamespacedPodWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.deleteNamespacedPod(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); // build promise chain @@ -9351,10 +13212,25 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedPod(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedPodWithHttpInfo(rsp))); })); } + /** + * delete a Pod + * @param name name of the Pod + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteNamespacedPod(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + return this.deleteNamespacedPodWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * delete a PodTemplate * @param name name of the PodTemplate @@ -9366,7 +13242,7 @@ export class ObservableCoreV1Api { * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. * @param body */ - public deleteNamespacedPodTemplate(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteNamespacedPodTemplateWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.deleteNamespacedPodTemplate(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); // build promise chain @@ -9381,10 +13257,25 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedPodTemplate(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedPodTemplateWithHttpInfo(rsp))); })); } + /** + * delete a PodTemplate + * @param name name of the PodTemplate + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteNamespacedPodTemplate(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + return this.deleteNamespacedPodTemplateWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * delete a ReplicationController * @param name name of the ReplicationController @@ -9396,7 +13287,7 @@ export class ObservableCoreV1Api { * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. * @param body */ - public deleteNamespacedReplicationController(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteNamespacedReplicationControllerWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.deleteNamespacedReplicationController(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); // build promise chain @@ -9411,10 +13302,25 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedReplicationController(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedReplicationControllerWithHttpInfo(rsp))); })); } + /** + * delete a ReplicationController + * @param name name of the ReplicationController + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteNamespacedReplicationController(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + return this.deleteNamespacedReplicationControllerWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * delete a ResourceQuota * @param name name of the ResourceQuota @@ -9426,7 +13332,7 @@ export class ObservableCoreV1Api { * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. * @param body */ - public deleteNamespacedResourceQuota(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteNamespacedResourceQuotaWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.deleteNamespacedResourceQuota(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); // build promise chain @@ -9441,10 +13347,25 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedResourceQuota(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedResourceQuotaWithHttpInfo(rsp))); })); } + /** + * delete a ResourceQuota + * @param name name of the ResourceQuota + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteNamespacedResourceQuota(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + return this.deleteNamespacedResourceQuotaWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * delete a Secret * @param name name of the Secret @@ -9456,7 +13377,7 @@ export class ObservableCoreV1Api { * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. * @param body */ - public deleteNamespacedSecret(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteNamespacedSecretWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.deleteNamespacedSecret(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); // build promise chain @@ -9471,10 +13392,25 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedSecret(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedSecretWithHttpInfo(rsp))); })); } + /** + * delete a Secret + * @param name name of the Secret + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteNamespacedSecret(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + return this.deleteNamespacedSecretWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * delete a Service * @param name name of the Service @@ -9486,7 +13422,7 @@ export class ObservableCoreV1Api { * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. * @param body */ - public deleteNamespacedService(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteNamespacedServiceWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.deleteNamespacedService(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); // build promise chain @@ -9501,10 +13437,25 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedService(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedServiceWithHttpInfo(rsp))); })); } + /** + * delete a Service + * @param name name of the Service + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteNamespacedService(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + return this.deleteNamespacedServiceWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * delete a ServiceAccount * @param name name of the ServiceAccount @@ -9516,7 +13467,7 @@ export class ObservableCoreV1Api { * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. * @param body */ - public deleteNamespacedServiceAccount(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteNamespacedServiceAccountWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.deleteNamespacedServiceAccount(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); // build promise chain @@ -9531,10 +13482,25 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedServiceAccount(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedServiceAccountWithHttpInfo(rsp))); })); } + /** + * delete a ServiceAccount + * @param name name of the ServiceAccount + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteNamespacedServiceAccount(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + return this.deleteNamespacedServiceAccountWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * delete a Node * @param name name of the Node @@ -9545,7 +13511,7 @@ export class ObservableCoreV1Api { * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. * @param body */ - public deleteNode(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteNodeWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.deleteNode(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); // build promise chain @@ -9560,10 +13526,24 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNode(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNodeWithHttpInfo(rsp))); })); } + /** + * delete a Node + * @param name name of the Node + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteNode(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + return this.deleteNodeWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * delete a PersistentVolume * @param name name of the PersistentVolume @@ -9574,7 +13554,7 @@ export class ObservableCoreV1Api { * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. * @param body */ - public deletePersistentVolume(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deletePersistentVolumeWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.deletePersistentVolume(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); // build promise chain @@ -9589,14 +13569,28 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deletePersistentVolume(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deletePersistentVolumeWithHttpInfo(rsp))); })); } /** - * get available resources + * delete a PersistentVolume + * @param name name of the PersistentVolume + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 getAPIResources(_options?: Configuration): Observable { + public deletePersistentVolume(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + return this.deletePersistentVolumeWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * get available resources + */ + public getAPIResourcesWithHttpInfo(_options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.getAPIResources(_options); // build promise chain @@ -9611,10 +13605,17 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResources(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResourcesWithHttpInfo(rsp))); })); } + /** + * get available resources + */ + public getAPIResources(_options?: Configuration): Observable { + return this.getAPIResourcesWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * list objects of kind ComponentStatus * @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. @@ -9628,7 +13629,7 @@ export class ObservableCoreV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public listComponentStatus(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listComponentStatusWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.listComponentStatus(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); // build promise chain @@ -9643,10 +13644,27 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listComponentStatus(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listComponentStatusWithHttpInfo(rsp))); })); } + /** + * list objects of kind ComponentStatus + * @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. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + return this.listComponentStatusWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * list or watch objects of kind ConfigMap * @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. @@ -9660,7 +13678,7 @@ export class ObservableCoreV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public listConfigMapForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listConfigMapForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.listConfigMapForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); // build promise chain @@ -9675,10 +13693,27 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listConfigMapForAllNamespaces(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listConfigMapForAllNamespacesWithHttpInfo(rsp))); })); } + /** + * list or watch objects of kind ConfigMap + * @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. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + return this.listConfigMapForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * list or watch objects of kind Endpoints * @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. @@ -9692,7 +13727,7 @@ export class ObservableCoreV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public listEndpointsForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listEndpointsForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.listEndpointsForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); // build promise chain @@ -9707,10 +13742,27 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listEndpointsForAllNamespaces(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listEndpointsForAllNamespacesWithHttpInfo(rsp))); })); } + /** + * list or watch objects of kind Endpoints + * @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. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + return this.listEndpointsForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * list or watch objects of kind Event * @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. @@ -9724,7 +13776,7 @@ export class ObservableCoreV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public listEventForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listEventForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.listEventForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); // build promise chain @@ -9739,10 +13791,27 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listEventForAllNamespaces(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listEventForAllNamespacesWithHttpInfo(rsp))); })); } + /** + * list or watch objects of kind Event + * @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. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + return this.listEventForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * list or watch objects of kind LimitRange * @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. @@ -9756,7 +13825,7 @@ export class ObservableCoreV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public listLimitRangeForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listLimitRangeForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.listLimitRangeForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); // build promise chain @@ -9771,10 +13840,27 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listLimitRangeForAllNamespaces(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listLimitRangeForAllNamespacesWithHttpInfo(rsp))); })); } + /** + * list or watch objects of kind LimitRange + * @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. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + return this.listLimitRangeForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * list or watch objects of kind Namespace * @param pretty If \'true\', then the output is pretty printed. @@ -9788,7 +13874,7 @@ export class ObservableCoreV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public listNamespace(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listNamespaceWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.listNamespace(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); // build promise chain @@ -9803,10 +13889,27 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespace(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespaceWithHttpInfo(rsp))); })); } + /** + * list or watch objects of kind Namespace + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + return this.listNamespaceWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * list or watch objects of kind ConfigMap * @param namespace object name and auth scope, such as for teams and projects @@ -9821,7 +13924,7 @@ export class ObservableCoreV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public listNamespacedConfigMap(namespace: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listNamespacedConfigMapWithHttpInfo(namespace: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.listNamespacedConfigMap(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); // build promise chain @@ -9836,10 +13939,28 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedConfigMap(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedConfigMapWithHttpInfo(rsp))); })); } + /** + * list or watch objects of kind ConfigMap + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + return this.listNamespacedConfigMapWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * list or watch objects of kind Endpoints * @param namespace object name and auth scope, such as for teams and projects @@ -9854,7 +13975,7 @@ export class ObservableCoreV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public listNamespacedEndpoints(namespace: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listNamespacedEndpointsWithHttpInfo(namespace: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.listNamespacedEndpoints(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); // build promise chain @@ -9869,10 +13990,28 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedEndpoints(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedEndpointsWithHttpInfo(rsp))); })); } + /** + * list or watch objects of kind Endpoints + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + return this.listNamespacedEndpointsWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * list or watch objects of kind Event * @param namespace object name and auth scope, such as for teams and projects @@ -9887,7 +14026,7 @@ export class ObservableCoreV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public listNamespacedEvent(namespace: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listNamespacedEventWithHttpInfo(namespace: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.listNamespacedEvent(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); // build promise chain @@ -9902,10 +14041,28 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedEvent(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedEventWithHttpInfo(rsp))); })); } + /** + * list or watch objects of kind Event + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + return this.listNamespacedEventWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * list or watch objects of kind LimitRange * @param namespace object name and auth scope, such as for teams and projects @@ -9920,7 +14077,7 @@ export class ObservableCoreV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public listNamespacedLimitRange(namespace: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listNamespacedLimitRangeWithHttpInfo(namespace: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.listNamespacedLimitRange(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); // build promise chain @@ -9935,10 +14092,28 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedLimitRange(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedLimitRangeWithHttpInfo(rsp))); })); } + /** + * list or watch objects of kind LimitRange + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + return this.listNamespacedLimitRangeWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * list or watch objects of kind PersistentVolumeClaim * @param namespace object name and auth scope, such as for teams and projects @@ -9953,7 +14128,7 @@ export class ObservableCoreV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public listNamespacedPersistentVolumeClaim(namespace: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listNamespacedPersistentVolumeClaimWithHttpInfo(namespace: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.listNamespacedPersistentVolumeClaim(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); // build promise chain @@ -9968,10 +14143,28 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedPersistentVolumeClaim(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedPersistentVolumeClaimWithHttpInfo(rsp))); })); } + /** + * list or watch objects of kind PersistentVolumeClaim + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + return this.listNamespacedPersistentVolumeClaimWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * list or watch objects of kind Pod * @param namespace object name and auth scope, such as for teams and projects @@ -9986,7 +14179,7 @@ export class ObservableCoreV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public listNamespacedPod(namespace: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listNamespacedPodWithHttpInfo(namespace: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.listNamespacedPod(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); // build promise chain @@ -10001,12 +14194,12 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedPod(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedPodWithHttpInfo(rsp))); })); } /** - * list or watch objects of kind PodTemplate + * list or watch objects of kind Pod * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. * @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. @@ -10019,27 +14212,12 @@ export class ObservableCoreV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public listNamespacedPodTemplate(namespace: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.listNamespacedPodTemplate(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); - - // build promise chain - let middlewarePreObservable = from(requestContextPromise); - for (let middleware of this.configuration.middleware) { - middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); - } - - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). - pipe(mergeMap((response: ResponseContext) => { - let middlewarePostObservable = of(response); - for (let middleware of this.configuration.middleware) { - middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); - } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedPodTemplate(rsp))); - })); + public listNamespacedPod(namespace: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + return this.listNamespacedPodWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } /** - * list or watch objects of kind ReplicationController + * list or watch objects of kind PodTemplate * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. * @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. @@ -10052,8 +14230,8 @@ export class ObservableCoreV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public listNamespacedReplicationController(namespace: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.listNamespacedReplicationController(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + public listNamespacedPodTemplateWithHttpInfo(namespace: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.listNamespacedPodTemplate(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -10067,12 +14245,12 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedReplicationController(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedPodTemplateWithHttpInfo(rsp))); })); } /** - * list or watch objects of kind ResourceQuota + * list or watch objects of kind PodTemplate * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. * @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. @@ -10085,27 +14263,12 @@ export class ObservableCoreV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public listNamespacedResourceQuota(namespace: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.listNamespacedResourceQuota(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); - - // build promise chain - let middlewarePreObservable = from(requestContextPromise); - for (let middleware of this.configuration.middleware) { - middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); - } - - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). - pipe(mergeMap((response: ResponseContext) => { - let middlewarePostObservable = of(response); - for (let middleware of this.configuration.middleware) { - middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); - } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedResourceQuota(rsp))); - })); + public listNamespacedPodTemplate(namespace: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + return this.listNamespacedPodTemplateWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } /** - * list or watch objects of kind Secret + * list or watch objects of kind ReplicationController * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. * @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. @@ -10118,8 +14281,8 @@ export class ObservableCoreV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public listNamespacedSecret(namespace: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.listNamespacedSecret(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + public listNamespacedReplicationControllerWithHttpInfo(namespace: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.listNamespacedReplicationController(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -10133,12 +14296,12 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedSecret(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedReplicationControllerWithHttpInfo(rsp))); })); } /** - * list or watch objects of kind Service + * list or watch objects of kind ReplicationController * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. * @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. @@ -10151,7 +14314,127 @@ export class ObservableCoreV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public listNamespacedService(namespace: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listNamespacedReplicationController(namespace: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + return this.listNamespacedReplicationControllerWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * list or watch objects of kind ResourceQuota + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.listNamespacedResourceQuota(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + + // build promise chain + let middlewarePreObservable = from(requestContextPromise); + for (let middleware of this.configuration.middleware) { + middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); + } + + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + pipe(mergeMap((response: ResponseContext) => { + let middlewarePostObservable = of(response); + for (let middleware of this.configuration.middleware) { + middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); + } + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedResourceQuotaWithHttpInfo(rsp))); + })); + } + + /** + * list or watch objects of kind ResourceQuota + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + return this.listNamespacedResourceQuotaWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * list or watch objects of kind Secret + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.listNamespacedSecret(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + + // build promise chain + let middlewarePreObservable = from(requestContextPromise); + for (let middleware of this.configuration.middleware) { + middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); + } + + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + pipe(mergeMap((response: ResponseContext) => { + let middlewarePostObservable = of(response); + for (let middleware of this.configuration.middleware) { + middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); + } + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedSecretWithHttpInfo(rsp))); + })); + } + + /** + * list or watch objects of kind Secret + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + return this.listNamespacedSecretWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * list or watch objects of kind Service + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.listNamespacedService(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); // build promise chain @@ -10166,10 +14449,28 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedService(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedServiceWithHttpInfo(rsp))); })); } + /** + * list or watch objects of kind Service + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + return this.listNamespacedServiceWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * list or watch objects of kind ServiceAccount * @param namespace object name and auth scope, such as for teams and projects @@ -10184,7 +14485,7 @@ export class ObservableCoreV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public listNamespacedServiceAccount(namespace: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listNamespacedServiceAccountWithHttpInfo(namespace: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.listNamespacedServiceAccount(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); // build promise chain @@ -10199,10 +14500,28 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedServiceAccount(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedServiceAccountWithHttpInfo(rsp))); })); } + /** + * list or watch objects of kind ServiceAccount + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + return this.listNamespacedServiceAccountWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * list or watch objects of kind Node * @param pretty If \'true\', then the output is pretty printed. @@ -10216,7 +14535,7 @@ export class ObservableCoreV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public listNode(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listNodeWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.listNode(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); // build promise chain @@ -10231,10 +14550,27 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNode(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNodeWithHttpInfo(rsp))); })); } + /** + * list or watch objects of kind Node + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + return this.listNodeWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * list or watch objects of kind PersistentVolume * @param pretty If \'true\', then the output is pretty printed. @@ -10248,7 +14584,7 @@ export class ObservableCoreV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public listPersistentVolume(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listPersistentVolumeWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.listPersistentVolume(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); // build promise chain @@ -10263,10 +14599,27 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listPersistentVolume(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listPersistentVolumeWithHttpInfo(rsp))); })); } + /** + * list or watch objects of kind PersistentVolume + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + return this.listPersistentVolumeWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * list or watch objects of kind PersistentVolumeClaim * @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. @@ -10280,7 +14633,7 @@ export class ObservableCoreV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public listPersistentVolumeClaimForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listPersistentVolumeClaimForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.listPersistentVolumeClaimForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); // build promise chain @@ -10295,10 +14648,27 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listPersistentVolumeClaimForAllNamespaces(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listPersistentVolumeClaimForAllNamespacesWithHttpInfo(rsp))); })); } + /** + * list or watch objects of kind PersistentVolumeClaim + * @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. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + return this.listPersistentVolumeClaimForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * list or watch objects of kind Pod * @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. @@ -10312,7 +14682,7 @@ export class ObservableCoreV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public listPodForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listPodForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.listPodForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); // build promise chain @@ -10327,10 +14697,27 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listPodForAllNamespaces(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listPodForAllNamespacesWithHttpInfo(rsp))); })); } + /** + * list or watch objects of kind Pod + * @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. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + return this.listPodForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * list or watch objects of kind PodTemplate * @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. @@ -10344,7 +14731,7 @@ export class ObservableCoreV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public listPodTemplateForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listPodTemplateForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.listPodTemplateForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); // build promise chain @@ -10359,10 +14746,27 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listPodTemplateForAllNamespaces(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listPodTemplateForAllNamespacesWithHttpInfo(rsp))); })); } + /** + * list or watch objects of kind PodTemplate + * @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. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + return this.listPodTemplateForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * list or watch objects of kind ReplicationController * @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. @@ -10376,7 +14780,7 @@ export class ObservableCoreV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public listReplicationControllerForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listReplicationControllerForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.listReplicationControllerForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); // build promise chain @@ -10391,10 +14795,27 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listReplicationControllerForAllNamespaces(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listReplicationControllerForAllNamespacesWithHttpInfo(rsp))); })); } + /** + * list or watch objects of kind ReplicationController + * @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. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + return this.listReplicationControllerForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * list or watch objects of kind ResourceQuota * @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. @@ -10408,7 +14829,7 @@ export class ObservableCoreV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public listResourceQuotaForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listResourceQuotaForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.listResourceQuotaForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); // build promise chain @@ -10423,10 +14844,27 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listResourceQuotaForAllNamespaces(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listResourceQuotaForAllNamespacesWithHttpInfo(rsp))); })); } + /** + * list or watch objects of kind ResourceQuota + * @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. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + return this.listResourceQuotaForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * list or watch objects of kind Secret * @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. @@ -10440,7 +14878,7 @@ export class ObservableCoreV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public listSecretForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listSecretForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.listSecretForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); // build promise chain @@ -10455,10 +14893,27 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listSecretForAllNamespaces(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listSecretForAllNamespacesWithHttpInfo(rsp))); })); } + /** + * list or watch objects of kind Secret + * @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. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + return this.listSecretForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * list or watch objects of kind ServiceAccount * @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. @@ -10472,7 +14927,7 @@ export class ObservableCoreV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public listServiceAccountForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listServiceAccountForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.listServiceAccountForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); // build promise chain @@ -10487,10 +14942,27 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listServiceAccountForAllNamespaces(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listServiceAccountForAllNamespacesWithHttpInfo(rsp))); })); } + /** + * list or watch objects of kind ServiceAccount + * @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. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + return this.listServiceAccountForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * list or watch objects of kind Service * @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. @@ -10504,7 +14976,7 @@ export class ObservableCoreV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public listServiceForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listServiceForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.listServiceForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); // build promise chain @@ -10519,10 +14991,27 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listServiceForAllNamespaces(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listServiceForAllNamespacesWithHttpInfo(rsp))); })); } + /** + * list or watch objects of kind Service + * @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. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + return this.listServiceForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * partially update the specified Namespace * @param name name of the Namespace @@ -10532,7 +15021,7 @@ export class ObservableCoreV1Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). * @param force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + public patchNamespaceWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.patchNamespace(name, body, pretty, dryRun, fieldManager, force, _options); // build promise chain @@ -10547,10 +15036,23 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespace(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespaceWithHttpInfo(rsp))); })); } + /** + * partially update the specified Namespace + * @param name name of the Namespace + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + return this.patchNamespaceWithHttpInfo(name, body, pretty, dryRun, fieldManager, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * partially update status of the specified Namespace * @param name name of the Namespace @@ -10560,8 +15062,50 @@ export class ObservableCoreV1Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). * @param force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.patchNamespaceStatus(name, body, pretty, dryRun, fieldManager, force, _options); + public patchNamespaceStatusWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.patchNamespaceStatus(name, body, pretty, dryRun, fieldManager, force, _options); + + // build promise chain + let middlewarePreObservable = from(requestContextPromise); + for (let middleware of this.configuration.middleware) { + middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); + } + + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + pipe(mergeMap((response: ResponseContext) => { + let middlewarePostObservable = of(response); + for (let middleware of this.configuration.middleware) { + middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); + } + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespaceStatusWithHttpInfo(rsp))); + })); + } + + /** + * partially update status of the specified Namespace + * @param name name of the Namespace + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + return this.patchNamespaceStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * partially update the specified ConfigMap + * @param name name of the ConfigMap + * @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. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.patchNamespacedConfigMap(name, namespace, body, pretty, dryRun, fieldManager, force, _options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -10575,7 +15119,7 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespaceStatus(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedConfigMapWithHttpInfo(rsp))); })); } @@ -10590,7 +15134,21 @@ 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 patchNamespacedConfigMap(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.patchNamespacedConfigMap(name, namespace, body, pretty, dryRun, fieldManager, force, _options); + return this.patchNamespacedConfigMapWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * partially update the specified Endpoints + * @param name name of the Endpoints + * @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. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.patchNamespacedEndpoints(name, namespace, body, pretty, dryRun, fieldManager, force, _options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -10604,7 +15162,7 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedConfigMap(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedEndpointsWithHttpInfo(rsp))); })); } @@ -10619,7 +15177,21 @@ 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 patchNamespacedEndpoints(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.patchNamespacedEndpoints(name, namespace, body, pretty, dryRun, fieldManager, force, _options); + return this.patchNamespacedEndpointsWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * partially update the specified Event + * @param name name of the Event + * @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. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.patchNamespacedEvent(name, namespace, body, pretty, dryRun, fieldManager, force, _options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -10633,7 +15205,7 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedEndpoints(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedEventWithHttpInfo(rsp))); })); } @@ -10648,7 +15220,21 @@ 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 patchNamespacedEvent(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.patchNamespacedEvent(name, namespace, body, pretty, dryRun, fieldManager, force, _options); + return this.patchNamespacedEventWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * partially update the specified LimitRange + * @param name name of the LimitRange + * @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. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.patchNamespacedLimitRange(name, namespace, body, pretty, dryRun, fieldManager, force, _options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -10662,7 +15248,7 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedEvent(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedLimitRangeWithHttpInfo(rsp))); })); } @@ -10677,7 +15263,21 @@ 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 patchNamespacedLimitRange(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.patchNamespacedLimitRange(name, namespace, body, pretty, dryRun, fieldManager, force, _options); + return this.patchNamespacedLimitRangeWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * partially update the specified PersistentVolumeClaim + * @param name name of the PersistentVolumeClaim + * @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. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.patchNamespacedPersistentVolumeClaim(name, namespace, body, pretty, dryRun, fieldManager, force, _options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -10691,7 +15291,7 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedLimitRange(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedPersistentVolumeClaimWithHttpInfo(rsp))); })); } @@ -10706,7 +15306,21 @@ 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 patchNamespacedPersistentVolumeClaim(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.patchNamespacedPersistentVolumeClaim(name, namespace, body, pretty, dryRun, fieldManager, force, _options); + return this.patchNamespacedPersistentVolumeClaimWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * partially update status of the specified PersistentVolumeClaim + * @param name name of the PersistentVolumeClaim + * @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. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.patchNamespacedPersistentVolumeClaimStatus(name, namespace, body, pretty, dryRun, fieldManager, force, _options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -10720,7 +15334,7 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedPersistentVolumeClaim(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedPersistentVolumeClaimStatusWithHttpInfo(rsp))); })); } @@ -10735,7 +15349,21 @@ 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 patchNamespacedPersistentVolumeClaimStatus(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.patchNamespacedPersistentVolumeClaimStatus(name, namespace, body, pretty, dryRun, fieldManager, force, _options); + return this.patchNamespacedPersistentVolumeClaimStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * partially update the specified Pod + * @param name name of the Pod + * @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. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.patchNamespacedPod(name, namespace, body, pretty, dryRun, fieldManager, force, _options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -10749,7 +15377,7 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedPersistentVolumeClaimStatus(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedPodWithHttpInfo(rsp))); })); } @@ -10764,7 +15392,21 @@ 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 patchNamespacedPod(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.patchNamespacedPod(name, namespace, body, pretty, dryRun, fieldManager, force, _options); + return this.patchNamespacedPodWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * partially update ephemeralcontainers of the specified Pod + * @param name name of the Pod + * @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. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.patchNamespacedPodEphemeralcontainers(name, namespace, body, pretty, dryRun, fieldManager, force, _options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -10778,7 +15420,7 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedPod(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedPodEphemeralcontainersWithHttpInfo(rsp))); })); } @@ -10793,7 +15435,21 @@ 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 patchNamespacedPodEphemeralcontainers(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.patchNamespacedPodEphemeralcontainers(name, namespace, body, pretty, dryRun, fieldManager, force, _options); + return this.patchNamespacedPodEphemeralcontainersWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * partially update status of the specified Pod + * @param name name of the Pod + * @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. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.patchNamespacedPodStatus(name, namespace, body, pretty, dryRun, fieldManager, force, _options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -10807,7 +15463,7 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedPodEphemeralcontainers(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedPodStatusWithHttpInfo(rsp))); })); } @@ -10822,7 +15478,21 @@ 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 patchNamespacedPodStatus(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.patchNamespacedPodStatus(name, namespace, body, pretty, dryRun, fieldManager, force, _options); + return this.patchNamespacedPodStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * partially update the specified PodTemplate + * @param name name of the PodTemplate + * @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. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.patchNamespacedPodTemplate(name, namespace, body, pretty, dryRun, fieldManager, force, _options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -10836,7 +15506,7 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedPodStatus(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedPodTemplateWithHttpInfo(rsp))); })); } @@ -10851,7 +15521,21 @@ 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 patchNamespacedPodTemplate(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.patchNamespacedPodTemplate(name, namespace, body, pretty, dryRun, fieldManager, force, _options); + return this.patchNamespacedPodTemplateWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * partially update the specified ReplicationController + * @param name name of the ReplicationController + * @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. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.patchNamespacedReplicationController(name, namespace, body, pretty, dryRun, fieldManager, force, _options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -10865,7 +15549,7 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedPodTemplate(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedReplicationControllerWithHttpInfo(rsp))); })); } @@ -10880,7 +15564,21 @@ 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 patchNamespacedReplicationController(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.patchNamespacedReplicationController(name, namespace, body, pretty, dryRun, fieldManager, force, _options); + return this.patchNamespacedReplicationControllerWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * partially update scale of the specified ReplicationController + * @param name name of the Scale + * @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. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.patchNamespacedReplicationControllerScale(name, namespace, body, pretty, dryRun, fieldManager, force, _options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -10894,7 +15592,7 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedReplicationController(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedReplicationControllerScaleWithHttpInfo(rsp))); })); } @@ -10909,7 +15607,21 @@ 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 patchNamespacedReplicationControllerScale(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.patchNamespacedReplicationControllerScale(name, namespace, body, pretty, dryRun, fieldManager, force, _options); + return this.patchNamespacedReplicationControllerScaleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * partially update status of the specified ReplicationController + * @param name name of the ReplicationController + * @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. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.patchNamespacedReplicationControllerStatus(name, namespace, body, pretty, dryRun, fieldManager, force, _options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -10923,7 +15635,7 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedReplicationControllerScale(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedReplicationControllerStatusWithHttpInfo(rsp))); })); } @@ -10938,7 +15650,21 @@ 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 patchNamespacedReplicationControllerStatus(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.patchNamespacedReplicationControllerStatus(name, namespace, body, pretty, dryRun, fieldManager, force, _options); + return this.patchNamespacedReplicationControllerStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * partially update the specified ResourceQuota + * @param name name of the ResourceQuota + * @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. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.patchNamespacedResourceQuota(name, namespace, body, pretty, dryRun, fieldManager, force, _options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -10952,7 +15678,7 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedReplicationControllerStatus(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedResourceQuotaWithHttpInfo(rsp))); })); } @@ -10967,7 +15693,21 @@ 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 patchNamespacedResourceQuota(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.patchNamespacedResourceQuota(name, namespace, body, pretty, dryRun, fieldManager, force, _options); + return this.patchNamespacedResourceQuotaWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * partially update status of the specified ResourceQuota + * @param name name of the ResourceQuota + * @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. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.patchNamespacedResourceQuotaStatus(name, namespace, body, pretty, dryRun, fieldManager, force, _options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -10981,7 +15721,7 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedResourceQuota(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedResourceQuotaStatusWithHttpInfo(rsp))); })); } @@ -10996,7 +15736,21 @@ 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 patchNamespacedResourceQuotaStatus(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.patchNamespacedResourceQuotaStatus(name, namespace, body, pretty, dryRun, fieldManager, force, _options); + return this.patchNamespacedResourceQuotaStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * partially update the specified Secret + * @param name name of the Secret + * @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. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.patchNamespacedSecret(name, namespace, body, pretty, dryRun, fieldManager, force, _options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -11010,7 +15764,7 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedResourceQuotaStatus(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedSecretWithHttpInfo(rsp))); })); } @@ -11025,7 +15779,21 @@ 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 patchNamespacedSecret(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.patchNamespacedSecret(name, namespace, body, pretty, dryRun, fieldManager, force, _options); + return this.patchNamespacedSecretWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * partially update the specified Service + * @param name name of the Service + * @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. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.patchNamespacedService(name, namespace, body, pretty, dryRun, fieldManager, force, _options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -11039,7 +15807,7 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedSecret(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedServiceWithHttpInfo(rsp))); })); } @@ -11054,7 +15822,21 @@ 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 patchNamespacedService(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.patchNamespacedService(name, namespace, body, pretty, dryRun, fieldManager, force, _options); + return this.patchNamespacedServiceWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * partially update the specified ServiceAccount + * @param name name of the ServiceAccount + * @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. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.patchNamespacedServiceAccount(name, namespace, body, pretty, dryRun, fieldManager, force, _options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -11068,13 +15850,27 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedService(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedServiceAccountWithHttpInfo(rsp))); })); } /** - * partially update the specified ServiceAccount - * @param name name of the ServiceAccount + * partially update the specified ServiceAccount + * @param name name of the ServiceAccount + * @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. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + return this.patchNamespacedServiceAccountWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * partially update status of the specified Service + * @param name name of the Service * @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. @@ -11082,8 +15878,8 @@ export class ObservableCoreV1Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). * @param force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.patchNamespacedServiceAccount(name, namespace, body, pretty, dryRun, fieldManager, force, _options); + public patchNamespacedServiceStatusWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.patchNamespacedServiceStatus(name, namespace, body, pretty, dryRun, fieldManager, force, _options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -11097,7 +15893,7 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedServiceAccount(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedServiceStatusWithHttpInfo(rsp))); })); } @@ -11112,22 +15908,7 @@ 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 patchNamespacedServiceStatus(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.patchNamespacedServiceStatus(name, namespace, body, pretty, dryRun, fieldManager, force, _options); - - // build promise chain - let middlewarePreObservable = from(requestContextPromise); - for (let middleware of this.configuration.middleware) { - middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); - } - - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). - pipe(mergeMap((response: ResponseContext) => { - let middlewarePostObservable = of(response); - for (let middleware of this.configuration.middleware) { - middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); - } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedServiceStatus(rsp))); - })); + return this.patchNamespacedServiceStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } /** @@ -11139,7 +15920,7 @@ export class ObservableCoreV1Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). * @param force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + public patchNodeWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.patchNode(name, body, pretty, dryRun, fieldManager, force, _options); // build promise chain @@ -11154,10 +15935,23 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNode(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNodeWithHttpInfo(rsp))); })); } + /** + * partially update the specified Node + * @param name name of the Node + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + return this.patchNodeWithHttpInfo(name, body, pretty, dryRun, fieldManager, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * partially update status of the specified Node * @param name name of the Node @@ -11167,7 +15961,7 @@ export class ObservableCoreV1Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). * @param force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + public patchNodeStatusWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.patchNodeStatus(name, body, pretty, dryRun, fieldManager, force, _options); // build promise chain @@ -11182,10 +15976,23 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNodeStatus(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNodeStatusWithHttpInfo(rsp))); })); } + /** + * partially update status of the specified Node + * @param name name of the Node + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + return this.patchNodeStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * partially update the specified PersistentVolume * @param name name of the PersistentVolume @@ -11195,7 +16002,7 @@ export class ObservableCoreV1Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). * @param force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + public patchPersistentVolumeWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.patchPersistentVolume(name, body, pretty, dryRun, fieldManager, force, _options); // build promise chain @@ -11210,10 +16017,23 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchPersistentVolume(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchPersistentVolumeWithHttpInfo(rsp))); })); } + /** + * partially update the specified PersistentVolume + * @param name name of the PersistentVolume + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + return this.patchPersistentVolumeWithHttpInfo(name, body, pretty, dryRun, fieldManager, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * partially update status of the specified PersistentVolume * @param name name of the PersistentVolume @@ -11223,7 +16043,7 @@ export class ObservableCoreV1Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). * @param force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + public patchPersistentVolumeStatusWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.patchPersistentVolumeStatus(name, body, pretty, dryRun, fieldManager, force, _options); // build promise chain @@ -11238,16 +16058,29 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchPersistentVolumeStatus(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchPersistentVolumeStatusWithHttpInfo(rsp))); })); } + /** + * partially update status of the specified PersistentVolume + * @param name name of the PersistentVolume + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + return this.patchPersistentVolumeStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * read the specified ComponentStatus * @param name name of the ComponentStatus * @param pretty If \'true\', then the output is pretty printed. */ - public readComponentStatus(name: string, pretty?: string, _options?: Configuration): Observable { + public readComponentStatusWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.readComponentStatus(name, pretty, _options); // build promise chain @@ -11262,16 +16095,25 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readComponentStatus(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readComponentStatusWithHttpInfo(rsp))); })); } + /** + * read the specified ComponentStatus + * @param name name of the ComponentStatus + * @param pretty If \'true\', then the output is pretty printed. + */ + public readComponentStatus(name: string, pretty?: string, _options?: Configuration): Observable { + return this.readComponentStatusWithHttpInfo(name, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * read the specified Namespace * @param name name of the Namespace * @param pretty If \'true\', then the output is pretty printed. */ - public readNamespace(name: string, pretty?: string, _options?: Configuration): Observable { + public readNamespaceWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.readNamespace(name, pretty, _options); // build promise chain @@ -11286,16 +16128,25 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespace(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespaceWithHttpInfo(rsp))); })); } + /** + * read the specified Namespace + * @param name name of the Namespace + * @param pretty If \'true\', then the output is pretty printed. + */ + public readNamespace(name: string, pretty?: string, _options?: Configuration): Observable { + return this.readNamespaceWithHttpInfo(name, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * read status of the specified Namespace * @param name name of the Namespace * @param pretty If \'true\', then the output is pretty printed. */ - public readNamespaceStatus(name: string, pretty?: string, _options?: Configuration): Observable { + public readNamespaceStatusWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.readNamespaceStatus(name, pretty, _options); // build promise chain @@ -11310,17 +16161,26 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespaceStatus(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespaceStatusWithHttpInfo(rsp))); })); } + /** + * read status of the specified Namespace + * @param name name of the Namespace + * @param pretty If \'true\', then the output is pretty printed. + */ + public readNamespaceStatus(name: string, pretty?: string, _options?: Configuration): Observable { + return this.readNamespaceStatusWithHttpInfo(name, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * read the specified ConfigMap * @param name name of the ConfigMap * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. */ - public readNamespacedConfigMap(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedConfigMapWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.readNamespacedConfigMap(name, namespace, pretty, _options); // build promise chain @@ -11335,17 +16195,27 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedConfigMap(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedConfigMapWithHttpInfo(rsp))); })); } + /** + * read the specified ConfigMap + * @param name name of the ConfigMap + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + */ + public readNamespacedConfigMap(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + return this.readNamespacedConfigMapWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * read the specified Endpoints * @param name name of the Endpoints * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. */ - public readNamespacedEndpoints(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedEndpointsWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.readNamespacedEndpoints(name, namespace, pretty, _options); // build promise chain @@ -11360,17 +16230,27 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedEndpoints(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedEndpointsWithHttpInfo(rsp))); })); } + /** + * read the specified Endpoints + * @param name name of the Endpoints + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + */ + public readNamespacedEndpoints(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + return this.readNamespacedEndpointsWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * read the specified Event * @param name name of the Event * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. */ - public readNamespacedEvent(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedEventWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.readNamespacedEvent(name, namespace, pretty, _options); // build promise chain @@ -11385,17 +16265,27 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedEvent(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedEventWithHttpInfo(rsp))); })); } + /** + * read the specified Event + * @param name name of the Event + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + */ + public readNamespacedEvent(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + return this.readNamespacedEventWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * read the specified LimitRange * @param name name of the LimitRange * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. */ - public readNamespacedLimitRange(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedLimitRangeWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.readNamespacedLimitRange(name, namespace, pretty, _options); // build promise chain @@ -11410,17 +16300,27 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedLimitRange(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedLimitRangeWithHttpInfo(rsp))); })); } + /** + * read the specified LimitRange + * @param name name of the LimitRange + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + */ + public readNamespacedLimitRange(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + return this.readNamespacedLimitRangeWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * read the specified PersistentVolumeClaim * @param name name of the PersistentVolumeClaim * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. */ - public readNamespacedPersistentVolumeClaim(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedPersistentVolumeClaimWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.readNamespacedPersistentVolumeClaim(name, namespace, pretty, _options); // build promise chain @@ -11435,17 +16335,27 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedPersistentVolumeClaim(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedPersistentVolumeClaimWithHttpInfo(rsp))); })); } + /** + * read the specified PersistentVolumeClaim + * @param name name of the PersistentVolumeClaim + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + */ + public readNamespacedPersistentVolumeClaim(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + return this.readNamespacedPersistentVolumeClaimWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * read status of the specified PersistentVolumeClaim * @param name name of the PersistentVolumeClaim * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. */ - public readNamespacedPersistentVolumeClaimStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedPersistentVolumeClaimStatusWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.readNamespacedPersistentVolumeClaimStatus(name, namespace, pretty, _options); // build promise chain @@ -11460,17 +16370,27 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedPersistentVolumeClaimStatus(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedPersistentVolumeClaimStatusWithHttpInfo(rsp))); })); } + /** + * read status of the specified PersistentVolumeClaim + * @param name name of the PersistentVolumeClaim + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + */ + public readNamespacedPersistentVolumeClaimStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + return this.readNamespacedPersistentVolumeClaimStatusWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * read the specified Pod * @param name name of the Pod * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. */ - public readNamespacedPod(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedPodWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.readNamespacedPod(name, namespace, pretty, _options); // build promise chain @@ -11485,17 +16405,27 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedPod(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedPodWithHttpInfo(rsp))); })); } + /** + * read the specified Pod + * @param name name of the Pod + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + */ + public readNamespacedPod(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + return this.readNamespacedPodWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * read ephemeralcontainers of the specified Pod * @param name name of the Pod * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. */ - public readNamespacedPodEphemeralcontainers(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedPodEphemeralcontainersWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.readNamespacedPodEphemeralcontainers(name, namespace, pretty, _options); // build promise chain @@ -11510,10 +16440,20 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedPodEphemeralcontainers(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedPodEphemeralcontainersWithHttpInfo(rsp))); })); } + /** + * read ephemeralcontainers of the specified Pod + * @param name name of the Pod + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + */ + public readNamespacedPodEphemeralcontainers(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + return this.readNamespacedPodEphemeralcontainersWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * read log of the specified Pod * @param name name of the Pod @@ -11528,7 +16468,7 @@ export class ObservableCoreV1Api { * @param tailLines If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime * @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, tailLines?: number, timestamps?: boolean, _options?: Configuration): Observable { + public readNamespacedPodLogWithHttpInfo(name: string, namespace: string, container?: string, follow?: boolean, insecureSkipTLSVerifyBackend?: boolean, limitBytes?: number, pretty?: string, previous?: boolean, sinceSeconds?: number, tailLines?: number, timestamps?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.readNamespacedPodLog(name, namespace, container, follow, insecureSkipTLSVerifyBackend, limitBytes, pretty, previous, sinceSeconds, tailLines, timestamps, _options); // build promise chain @@ -11543,17 +16483,35 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedPodLog(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedPodLogWithHttpInfo(rsp))); })); } + /** + * read log of the specified Pod + * @param name name of the Pod + * @param namespace object name and auth scope, such as for teams and projects + * @param container The container for which to stream logs. Defaults to only container if there is one container in the pod. + * @param follow Follow the log stream of the pod. Defaults to false. + * @param insecureSkipTLSVerifyBackend insecureSkipTLSVerifyBackend indicates that the apiserver should not confirm the validity of the serving certificate of the backend it is connecting to. This will make the HTTPS connection between the apiserver and the backend insecure. This means the apiserver cannot verify the log data it is receiving came from the real kubelet. If the kubelet is configured to verify the apiserver\'s TLS credentials, it does not mean the connection to the real kubelet is vulnerable to a man in the middle attack (e.g. an attacker could not intercept the actual log data coming from the real kubelet). + * @param limitBytes If set, the number of bytes to read from the server before terminating the log output. This may not display a complete final line of logging, and may return slightly more or slightly less than the specified limit. + * @param pretty If \'true\', then the output is pretty printed. + * @param previous Return previous terminated container logs. Defaults to false. + * @param sinceSeconds A relative time in seconds before the current time from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified. + * @param tailLines If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime + * @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, tailLines?: number, timestamps?: boolean, _options?: Configuration): Observable { + return this.readNamespacedPodLogWithHttpInfo(name, namespace, container, follow, insecureSkipTLSVerifyBackend, limitBytes, pretty, previous, sinceSeconds, tailLines, timestamps, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * read status of the specified Pod * @param name name of the Pod * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. */ - public readNamespacedPodStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedPodStatusWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.readNamespacedPodStatus(name, namespace, pretty, _options); // build promise chain @@ -11568,17 +16526,27 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedPodStatus(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedPodStatusWithHttpInfo(rsp))); })); } + /** + * read status of the specified Pod + * @param name name of the Pod + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + */ + public readNamespacedPodStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + return this.readNamespacedPodStatusWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * read the specified PodTemplate * @param name name of the PodTemplate * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. */ - public readNamespacedPodTemplate(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedPodTemplateWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.readNamespacedPodTemplate(name, namespace, pretty, _options); // build promise chain @@ -11593,17 +16561,27 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedPodTemplate(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedPodTemplateWithHttpInfo(rsp))); })); } + /** + * read the specified PodTemplate + * @param name name of the PodTemplate + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + */ + public readNamespacedPodTemplate(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + return this.readNamespacedPodTemplateWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * read the specified ReplicationController * @param name name of the ReplicationController * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. */ - public readNamespacedReplicationController(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedReplicationControllerWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.readNamespacedReplicationController(name, namespace, pretty, _options); // build promise chain @@ -11618,17 +16596,27 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedReplicationController(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedReplicationControllerWithHttpInfo(rsp))); })); } + /** + * read the specified ReplicationController + * @param name name of the ReplicationController + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + */ + public readNamespacedReplicationController(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + return this.readNamespacedReplicationControllerWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * read scale of the specified ReplicationController * @param name name of the Scale * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. */ - public readNamespacedReplicationControllerScale(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedReplicationControllerScaleWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.readNamespacedReplicationControllerScale(name, namespace, pretty, _options); // build promise chain @@ -11643,17 +16631,27 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedReplicationControllerScale(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedReplicationControllerScaleWithHttpInfo(rsp))); })); } + /** + * read scale of the specified ReplicationController + * @param name name of the Scale + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + */ + public readNamespacedReplicationControllerScale(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + return this.readNamespacedReplicationControllerScaleWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * read status of the specified ReplicationController * @param name name of the ReplicationController * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. */ - public readNamespacedReplicationControllerStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedReplicationControllerStatusWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.readNamespacedReplicationControllerStatus(name, namespace, pretty, _options); // build promise chain @@ -11668,17 +16666,27 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedReplicationControllerStatus(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedReplicationControllerStatusWithHttpInfo(rsp))); })); } + /** + * read status of the specified ReplicationController + * @param name name of the ReplicationController + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + */ + public readNamespacedReplicationControllerStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + return this.readNamespacedReplicationControllerStatusWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * read the specified ResourceQuota * @param name name of the ResourceQuota * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. */ - public readNamespacedResourceQuota(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedResourceQuotaWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.readNamespacedResourceQuota(name, namespace, pretty, _options); // build promise chain @@ -11693,17 +16701,27 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedResourceQuota(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedResourceQuotaWithHttpInfo(rsp))); })); } + /** + * read the specified ResourceQuota + * @param name name of the ResourceQuota + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + */ + public readNamespacedResourceQuota(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + return this.readNamespacedResourceQuotaWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * read status of the specified ResourceQuota * @param name name of the ResourceQuota * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. */ - public readNamespacedResourceQuotaStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedResourceQuotaStatusWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.readNamespacedResourceQuotaStatus(name, namespace, pretty, _options); // build promise chain @@ -11718,17 +16736,27 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedResourceQuotaStatus(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedResourceQuotaStatusWithHttpInfo(rsp))); })); } + /** + * read status of the specified ResourceQuota + * @param name name of the ResourceQuota + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + */ + public readNamespacedResourceQuotaStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + return this.readNamespacedResourceQuotaStatusWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * read the specified Secret * @param name name of the Secret * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. */ - public readNamespacedSecret(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedSecretWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.readNamespacedSecret(name, namespace, pretty, _options); // build promise chain @@ -11743,17 +16771,27 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedSecret(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedSecretWithHttpInfo(rsp))); })); } + /** + * read the specified Secret + * @param name name of the Secret + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + */ + public readNamespacedSecret(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + return this.readNamespacedSecretWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * read the specified Service * @param name name of the Service * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. */ - public readNamespacedService(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedServiceWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.readNamespacedService(name, namespace, pretty, _options); // build promise chain @@ -11768,17 +16806,27 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedService(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedServiceWithHttpInfo(rsp))); })); } + /** + * read the specified Service + * @param name name of the Service + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + */ + public readNamespacedService(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + return this.readNamespacedServiceWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * read the specified ServiceAccount * @param name name of the ServiceAccount * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. */ - public readNamespacedServiceAccount(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedServiceAccountWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.readNamespacedServiceAccount(name, namespace, pretty, _options); // build promise chain @@ -11793,17 +16841,27 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedServiceAccount(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedServiceAccountWithHttpInfo(rsp))); })); } + /** + * read the specified ServiceAccount + * @param name name of the ServiceAccount + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + */ + public readNamespacedServiceAccount(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + return this.readNamespacedServiceAccountWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * read status of the specified Service * @param name name of the Service * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. */ - public readNamespacedServiceStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedServiceStatusWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.readNamespacedServiceStatus(name, namespace, pretty, _options); // build promise chain @@ -11818,16 +16876,26 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedServiceStatus(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedServiceStatusWithHttpInfo(rsp))); })); } + /** + * read status of the specified Service + * @param name name of the Service + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + */ + public readNamespacedServiceStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + return this.readNamespacedServiceStatusWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * read the specified Node * @param name name of the Node * @param pretty If \'true\', then the output is pretty printed. */ - public readNode(name: string, pretty?: string, _options?: Configuration): Observable { + public readNodeWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.readNode(name, pretty, _options); // build promise chain @@ -11842,16 +16910,25 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNode(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNodeWithHttpInfo(rsp))); })); } + /** + * read the specified Node + * @param name name of the Node + * @param pretty If \'true\', then the output is pretty printed. + */ + public readNode(name: string, pretty?: string, _options?: Configuration): Observable { + return this.readNodeWithHttpInfo(name, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * read status of the specified Node * @param name name of the Node * @param pretty If \'true\', then the output is pretty printed. */ - public readNodeStatus(name: string, pretty?: string, _options?: Configuration): Observable { + public readNodeStatusWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.readNodeStatus(name, pretty, _options); // build promise chain @@ -11866,16 +16943,25 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNodeStatus(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNodeStatusWithHttpInfo(rsp))); })); } + /** + * read status of the specified Node + * @param name name of the Node + * @param pretty If \'true\', then the output is pretty printed. + */ + public readNodeStatus(name: string, pretty?: string, _options?: Configuration): Observable { + return this.readNodeStatusWithHttpInfo(name, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * read the specified PersistentVolume * @param name name of the PersistentVolume * @param pretty If \'true\', then the output is pretty printed. */ - public readPersistentVolume(name: string, pretty?: string, _options?: Configuration): Observable { + public readPersistentVolumeWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.readPersistentVolume(name, pretty, _options); // build promise chain @@ -11890,16 +16976,25 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readPersistentVolume(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readPersistentVolumeWithHttpInfo(rsp))); })); } + /** + * read the specified PersistentVolume + * @param name name of the PersistentVolume + * @param pretty If \'true\', then the output is pretty printed. + */ + public readPersistentVolume(name: string, pretty?: string, _options?: Configuration): Observable { + return this.readPersistentVolumeWithHttpInfo(name, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * read status of the specified PersistentVolume * @param name name of the PersistentVolume * @param pretty If \'true\', then the output is pretty printed. */ - public readPersistentVolumeStatus(name: string, pretty?: string, _options?: Configuration): Observable { + public readPersistentVolumeStatusWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.readPersistentVolumeStatus(name, pretty, _options); // build promise chain @@ -11914,10 +17009,19 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readPersistentVolumeStatus(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readPersistentVolumeStatusWithHttpInfo(rsp))); })); } + /** + * read status of the specified PersistentVolume + * @param name name of the PersistentVolume + * @param pretty If \'true\', then the output is pretty printed. + */ + public readPersistentVolumeStatus(name: string, pretty?: string, _options?: Configuration): Observable { + return this.readPersistentVolumeStatusWithHttpInfo(name, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * replace the specified Namespace * @param name name of the Namespace @@ -11926,7 +17030,7 @@ export class ObservableCoreV1Api { * @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. */ - public replaceNamespace(name: string, body: V1Namespace, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public replaceNamespaceWithHttpInfo(name: string, body: V1Namespace, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.replaceNamespace(name, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -11941,10 +17045,22 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespace(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespaceWithHttpInfo(rsp))); })); } + /** + * replace the specified Namespace + * @param name name of the Namespace + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public replaceNamespace(name: string, body: V1Namespace, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.replaceNamespaceWithHttpInfo(name, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * replace finalize of the specified Namespace * @param name name of the Namespace @@ -11953,7 +17069,7 @@ export class ObservableCoreV1Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. * @param pretty If \'true\', then the output is pretty printed. */ - public replaceNamespaceFinalize(name: string, body: V1Namespace, dryRun?: string, fieldManager?: string, pretty?: string, _options?: Configuration): Observable { + public replaceNamespaceFinalizeWithHttpInfo(name: string, body: V1Namespace, dryRun?: string, fieldManager?: string, pretty?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.replaceNamespaceFinalize(name, body, dryRun, fieldManager, pretty, _options); // build promise chain @@ -11968,10 +17084,22 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespaceFinalize(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespaceFinalizeWithHttpInfo(rsp))); })); } + /** + * replace finalize of the specified Namespace + * @param name name of the Namespace + * @param body + * @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 pretty If \'true\', then the output is pretty printed. + */ + public replaceNamespaceFinalize(name: string, body: V1Namespace, dryRun?: string, fieldManager?: string, pretty?: string, _options?: Configuration): Observable { + return this.replaceNamespaceFinalizeWithHttpInfo(name, body, dryRun, fieldManager, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * replace status of the specified Namespace * @param name name of the Namespace @@ -11980,7 +17108,7 @@ export class ObservableCoreV1Api { * @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. */ - public replaceNamespaceStatus(name: string, body: V1Namespace, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public replaceNamespaceStatusWithHttpInfo(name: string, body: V1Namespace, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.replaceNamespaceStatus(name, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -11995,10 +17123,22 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespaceStatus(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespaceStatusWithHttpInfo(rsp))); })); } + /** + * replace status of the specified Namespace + * @param name name of the Namespace + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public replaceNamespaceStatus(name: string, body: V1Namespace, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.replaceNamespaceStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * replace the specified ConfigMap * @param name name of the ConfigMap @@ -12008,7 +17148,7 @@ export class ObservableCoreV1Api { * @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. */ - public replaceNamespacedConfigMap(name: string, namespace: string, body: V1ConfigMap, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public replaceNamespacedConfigMapWithHttpInfo(name: string, namespace: string, body: V1ConfigMap, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.replaceNamespacedConfigMap(name, namespace, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -12023,10 +17163,23 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedConfigMap(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedConfigMapWithHttpInfo(rsp))); })); } + /** + * replace the specified ConfigMap + * @param name name of the ConfigMap + * @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. + * @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. + */ + public replaceNamespacedConfigMap(name: string, namespace: string, body: V1ConfigMap, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.replaceNamespacedConfigMapWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * replace the specified Endpoints * @param name name of the Endpoints @@ -12036,7 +17189,7 @@ export class ObservableCoreV1Api { * @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. */ - public replaceNamespacedEndpoints(name: string, namespace: string, body: V1Endpoints, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public replaceNamespacedEndpointsWithHttpInfo(name: string, namespace: string, body: V1Endpoints, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.replaceNamespacedEndpoints(name, namespace, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -12051,10 +17204,23 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedEndpoints(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedEndpointsWithHttpInfo(rsp))); })); } + /** + * replace the specified Endpoints + * @param name name of the Endpoints + * @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. + * @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. + */ + public replaceNamespacedEndpoints(name: string, namespace: string, body: V1Endpoints, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.replaceNamespacedEndpointsWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * replace the specified Event * @param name name of the Event @@ -12064,7 +17230,7 @@ export class ObservableCoreV1Api { * @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. */ - public replaceNamespacedEvent(name: string, namespace: string, body: CoreV1Event, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public replaceNamespacedEventWithHttpInfo(name: string, namespace: string, body: CoreV1Event, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.replaceNamespacedEvent(name, namespace, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -12079,10 +17245,23 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedEvent(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedEventWithHttpInfo(rsp))); })); } + /** + * replace the specified Event + * @param name name of the Event + * @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. + * @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. + */ + public replaceNamespacedEvent(name: string, namespace: string, body: CoreV1Event, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.replaceNamespacedEventWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * replace the specified LimitRange * @param name name of the LimitRange @@ -12092,7 +17271,7 @@ export class ObservableCoreV1Api { * @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. */ - public replaceNamespacedLimitRange(name: string, namespace: string, body: V1LimitRange, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public replaceNamespacedLimitRangeWithHttpInfo(name: string, namespace: string, body: V1LimitRange, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.replaceNamespacedLimitRange(name, namespace, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -12107,10 +17286,23 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedLimitRange(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedLimitRangeWithHttpInfo(rsp))); })); } + /** + * replace the specified LimitRange + * @param name name of the LimitRange + * @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. + * @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. + */ + public replaceNamespacedLimitRange(name: string, namespace: string, body: V1LimitRange, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.replaceNamespacedLimitRangeWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * replace the specified PersistentVolumeClaim * @param name name of the PersistentVolumeClaim @@ -12120,7 +17312,7 @@ export class ObservableCoreV1Api { * @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. */ - public replaceNamespacedPersistentVolumeClaim(name: string, namespace: string, body: V1PersistentVolumeClaim, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public replaceNamespacedPersistentVolumeClaimWithHttpInfo(name: string, namespace: string, body: V1PersistentVolumeClaim, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.replaceNamespacedPersistentVolumeClaim(name, namespace, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -12135,10 +17327,23 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedPersistentVolumeClaim(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedPersistentVolumeClaimWithHttpInfo(rsp))); })); } + /** + * replace the specified PersistentVolumeClaim + * @param name name of the PersistentVolumeClaim + * @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. + * @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. + */ + public replaceNamespacedPersistentVolumeClaim(name: string, namespace: string, body: V1PersistentVolumeClaim, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.replaceNamespacedPersistentVolumeClaimWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * replace status of the specified PersistentVolumeClaim * @param name name of the PersistentVolumeClaim @@ -12148,7 +17353,7 @@ export class ObservableCoreV1Api { * @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. */ - public replaceNamespacedPersistentVolumeClaimStatus(name: string, namespace: string, body: V1PersistentVolumeClaim, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public replaceNamespacedPersistentVolumeClaimStatusWithHttpInfo(name: string, namespace: string, body: V1PersistentVolumeClaim, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.replaceNamespacedPersistentVolumeClaimStatus(name, namespace, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -12163,10 +17368,23 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedPersistentVolumeClaimStatus(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedPersistentVolumeClaimStatusWithHttpInfo(rsp))); })); } + /** + * replace status of the specified PersistentVolumeClaim + * @param name name of the PersistentVolumeClaim + * @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. + * @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. + */ + public replaceNamespacedPersistentVolumeClaimStatus(name: string, namespace: string, body: V1PersistentVolumeClaim, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.replaceNamespacedPersistentVolumeClaimStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * replace the specified Pod * @param name name of the Pod @@ -12176,7 +17394,7 @@ export class ObservableCoreV1Api { * @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. */ - public replaceNamespacedPod(name: string, namespace: string, body: V1Pod, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public replaceNamespacedPodWithHttpInfo(name: string, namespace: string, body: V1Pod, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.replaceNamespacedPod(name, namespace, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -12191,10 +17409,23 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedPod(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedPodWithHttpInfo(rsp))); })); } + /** + * replace the specified Pod + * @param name name of the Pod + * @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. + * @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. + */ + public replaceNamespacedPod(name: string, namespace: string, body: V1Pod, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.replaceNamespacedPodWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * replace ephemeralcontainers of the specified Pod * @param name name of the Pod @@ -12204,7 +17435,7 @@ export class ObservableCoreV1Api { * @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. */ - public replaceNamespacedPodEphemeralcontainers(name: string, namespace: string, body: V1Pod, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public replaceNamespacedPodEphemeralcontainersWithHttpInfo(name: string, namespace: string, body: V1Pod, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.replaceNamespacedPodEphemeralcontainers(name, namespace, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -12219,10 +17450,23 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedPodEphemeralcontainers(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedPodEphemeralcontainersWithHttpInfo(rsp))); })); } + /** + * replace ephemeralcontainers of the specified Pod + * @param name name of the Pod + * @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. + * @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. + */ + public replaceNamespacedPodEphemeralcontainers(name: string, namespace: string, body: V1Pod, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.replaceNamespacedPodEphemeralcontainersWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * replace status of the specified Pod * @param name name of the Pod @@ -12232,7 +17476,7 @@ export class ObservableCoreV1Api { * @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. */ - public replaceNamespacedPodStatus(name: string, namespace: string, body: V1Pod, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public replaceNamespacedPodStatusWithHttpInfo(name: string, namespace: string, body: V1Pod, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.replaceNamespacedPodStatus(name, namespace, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -12247,10 +17491,23 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedPodStatus(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedPodStatusWithHttpInfo(rsp))); })); } + /** + * replace status of the specified Pod + * @param name name of the Pod + * @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. + * @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. + */ + public replaceNamespacedPodStatus(name: string, namespace: string, body: V1Pod, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.replaceNamespacedPodStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * replace the specified PodTemplate * @param name name of the PodTemplate @@ -12260,7 +17517,7 @@ export class ObservableCoreV1Api { * @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. */ - public replaceNamespacedPodTemplate(name: string, namespace: string, body: V1PodTemplate, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public replaceNamespacedPodTemplateWithHttpInfo(name: string, namespace: string, body: V1PodTemplate, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.replaceNamespacedPodTemplate(name, namespace, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -12275,10 +17532,23 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedPodTemplate(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedPodTemplateWithHttpInfo(rsp))); })); } + /** + * replace the specified PodTemplate + * @param name name of the PodTemplate + * @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. + * @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. + */ + public replaceNamespacedPodTemplate(name: string, namespace: string, body: V1PodTemplate, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.replaceNamespacedPodTemplateWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * replace the specified ReplicationController * @param name name of the ReplicationController @@ -12288,7 +17558,7 @@ export class ObservableCoreV1Api { * @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. */ - public replaceNamespacedReplicationController(name: string, namespace: string, body: V1ReplicationController, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public replaceNamespacedReplicationControllerWithHttpInfo(name: string, namespace: string, body: V1ReplicationController, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.replaceNamespacedReplicationController(name, namespace, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -12303,10 +17573,23 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedReplicationController(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedReplicationControllerWithHttpInfo(rsp))); })); } + /** + * replace the specified ReplicationController + * @param name name of the ReplicationController + * @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. + * @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. + */ + public replaceNamespacedReplicationController(name: string, namespace: string, body: V1ReplicationController, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.replaceNamespacedReplicationControllerWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * replace scale of the specified ReplicationController * @param name name of the Scale @@ -12316,7 +17599,7 @@ export class ObservableCoreV1Api { * @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. */ - public replaceNamespacedReplicationControllerScale(name: string, namespace: string, body: V1Scale, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public replaceNamespacedReplicationControllerScaleWithHttpInfo(name: string, namespace: string, body: V1Scale, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.replaceNamespacedReplicationControllerScale(name, namespace, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -12331,10 +17614,23 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedReplicationControllerScale(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedReplicationControllerScaleWithHttpInfo(rsp))); })); } + /** + * replace scale of the specified ReplicationController + * @param name name of the Scale + * @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. + * @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. + */ + public replaceNamespacedReplicationControllerScale(name: string, namespace: string, body: V1Scale, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.replaceNamespacedReplicationControllerScaleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * replace status of the specified ReplicationController * @param name name of the ReplicationController @@ -12344,7 +17640,7 @@ export class ObservableCoreV1Api { * @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. */ - public replaceNamespacedReplicationControllerStatus(name: string, namespace: string, body: V1ReplicationController, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public replaceNamespacedReplicationControllerStatusWithHttpInfo(name: string, namespace: string, body: V1ReplicationController, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.replaceNamespacedReplicationControllerStatus(name, namespace, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -12359,10 +17655,23 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedReplicationControllerStatus(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedReplicationControllerStatusWithHttpInfo(rsp))); })); } + /** + * replace status of the specified ReplicationController + * @param name name of the ReplicationController + * @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. + * @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. + */ + public replaceNamespacedReplicationControllerStatus(name: string, namespace: string, body: V1ReplicationController, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.replaceNamespacedReplicationControllerStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * replace the specified ResourceQuota * @param name name of the ResourceQuota @@ -12372,7 +17681,7 @@ export class ObservableCoreV1Api { * @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. */ - public replaceNamespacedResourceQuota(name: string, namespace: string, body: V1ResourceQuota, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public replaceNamespacedResourceQuotaWithHttpInfo(name: string, namespace: string, body: V1ResourceQuota, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.replaceNamespacedResourceQuota(name, namespace, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -12387,10 +17696,23 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedResourceQuota(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedResourceQuotaWithHttpInfo(rsp))); })); } + /** + * replace the specified ResourceQuota + * @param name name of the ResourceQuota + * @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. + * @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. + */ + public replaceNamespacedResourceQuota(name: string, namespace: string, body: V1ResourceQuota, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.replaceNamespacedResourceQuotaWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * replace status of the specified ResourceQuota * @param name name of the ResourceQuota @@ -12400,7 +17722,7 @@ export class ObservableCoreV1Api { * @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. */ - public replaceNamespacedResourceQuotaStatus(name: string, namespace: string, body: V1ResourceQuota, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public replaceNamespacedResourceQuotaStatusWithHttpInfo(name: string, namespace: string, body: V1ResourceQuota, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.replaceNamespacedResourceQuotaStatus(name, namespace, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -12415,10 +17737,23 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedResourceQuotaStatus(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedResourceQuotaStatusWithHttpInfo(rsp))); })); } + /** + * replace status of the specified ResourceQuota + * @param name name of the ResourceQuota + * @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. + * @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. + */ + public replaceNamespacedResourceQuotaStatus(name: string, namespace: string, body: V1ResourceQuota, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.replaceNamespacedResourceQuotaStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * replace the specified Secret * @param name name of the Secret @@ -12428,7 +17763,7 @@ export class ObservableCoreV1Api { * @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. */ - public replaceNamespacedSecret(name: string, namespace: string, body: V1Secret, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public replaceNamespacedSecretWithHttpInfo(name: string, namespace: string, body: V1Secret, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.replaceNamespacedSecret(name, namespace, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -12443,10 +17778,23 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedSecret(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedSecretWithHttpInfo(rsp))); })); } + /** + * replace the specified Secret + * @param name name of the Secret + * @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. + * @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. + */ + public replaceNamespacedSecret(name: string, namespace: string, body: V1Secret, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.replaceNamespacedSecretWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * replace the specified Service * @param name name of the Service @@ -12456,7 +17804,7 @@ export class ObservableCoreV1Api { * @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. */ - public replaceNamespacedService(name: string, namespace: string, body: V1Service, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public replaceNamespacedServiceWithHttpInfo(name: string, namespace: string, body: V1Service, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.replaceNamespacedService(name, namespace, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -12471,10 +17819,23 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedService(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedServiceWithHttpInfo(rsp))); })); } + /** + * replace the specified Service + * @param name name of the Service + * @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. + * @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. + */ + public replaceNamespacedService(name: string, namespace: string, body: V1Service, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.replaceNamespacedServiceWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * replace the specified ServiceAccount * @param name name of the ServiceAccount @@ -12484,7 +17845,7 @@ export class ObservableCoreV1Api { * @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. */ - public replaceNamespacedServiceAccount(name: string, namespace: string, body: V1ServiceAccount, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public replaceNamespacedServiceAccountWithHttpInfo(name: string, namespace: string, body: V1ServiceAccount, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.replaceNamespacedServiceAccount(name, namespace, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -12499,10 +17860,23 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedServiceAccount(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedServiceAccountWithHttpInfo(rsp))); })); } + /** + * replace the specified ServiceAccount + * @param name name of the ServiceAccount + * @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. + * @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. + */ + public replaceNamespacedServiceAccount(name: string, namespace: string, body: V1ServiceAccount, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.replaceNamespacedServiceAccountWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * replace status of the specified Service * @param name name of the Service @@ -12512,7 +17886,7 @@ export class ObservableCoreV1Api { * @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. */ - public replaceNamespacedServiceStatus(name: string, namespace: string, body: V1Service, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public replaceNamespacedServiceStatusWithHttpInfo(name: string, namespace: string, body: V1Service, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.replaceNamespacedServiceStatus(name, namespace, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -12527,10 +17901,23 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedServiceStatus(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedServiceStatusWithHttpInfo(rsp))); })); } + /** + * replace status of the specified Service + * @param name name of the Service + * @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. + * @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. + */ + public replaceNamespacedServiceStatus(name: string, namespace: string, body: V1Service, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.replaceNamespacedServiceStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * replace the specified Node * @param name name of the Node @@ -12539,7 +17926,7 @@ export class ObservableCoreV1Api { * @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. */ - public replaceNode(name: string, body: V1Node, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public replaceNodeWithHttpInfo(name: string, body: V1Node, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.replaceNode(name, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -12554,10 +17941,22 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNode(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNodeWithHttpInfo(rsp))); })); } + /** + * replace the specified Node + * @param name name of the Node + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public replaceNode(name: string, body: V1Node, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.replaceNodeWithHttpInfo(name, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * replace status of the specified Node * @param name name of the Node @@ -12566,7 +17965,7 @@ export class ObservableCoreV1Api { * @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. */ - public replaceNodeStatus(name: string, body: V1Node, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public replaceNodeStatusWithHttpInfo(name: string, body: V1Node, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.replaceNodeStatus(name, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -12581,10 +17980,22 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNodeStatus(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNodeStatusWithHttpInfo(rsp))); })); } + /** + * replace status of the specified Node + * @param name name of the Node + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public replaceNodeStatus(name: string, body: V1Node, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.replaceNodeStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * replace the specified PersistentVolume * @param name name of the PersistentVolume @@ -12593,7 +18004,7 @@ export class ObservableCoreV1Api { * @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. */ - public replacePersistentVolume(name: string, body: V1PersistentVolume, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public replacePersistentVolumeWithHttpInfo(name: string, body: V1PersistentVolume, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.replacePersistentVolume(name, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -12608,10 +18019,22 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replacePersistentVolume(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replacePersistentVolumeWithHttpInfo(rsp))); })); } + /** + * replace the specified PersistentVolume + * @param name name of the PersistentVolume + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public replacePersistentVolume(name: string, body: V1PersistentVolume, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.replacePersistentVolumeWithHttpInfo(name, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * replace status of the specified PersistentVolume * @param name name of the PersistentVolume @@ -12620,7 +18043,7 @@ export class ObservableCoreV1Api { * @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. */ - public replacePersistentVolumeStatus(name: string, body: V1PersistentVolume, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public replacePersistentVolumeStatusWithHttpInfo(name: string, body: V1PersistentVolume, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.replacePersistentVolumeStatus(name, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -12635,10 +18058,22 @@ export class ObservableCoreV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replacePersistentVolumeStatus(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replacePersistentVolumeStatusWithHttpInfo(rsp))); })); } + /** + * replace status of the specified PersistentVolume + * @param name name of the PersistentVolume + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public replacePersistentVolumeStatus(name: string, body: V1PersistentVolume, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.replacePersistentVolumeStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + } import { CustomObjectsApiRequestFactory, CustomObjectsApiResponseProcessor} from "../apis/CustomObjectsApi"; @@ -12667,7 +18102,7 @@ export class ObservableCustomObjectsApi { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). */ - public createClusterCustomObject(group: string, version: string, plural: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public createClusterCustomObjectWithHttpInfo(group: string, version: string, plural: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.createClusterCustomObject(group, version, plural, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -12682,10 +18117,24 @@ export class ObservableCustomObjectsApi { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createClusterCustomObject(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createClusterCustomObjectWithHttpInfo(rsp))); })); } + /** + * Creates a cluster scoped Custom object + * @param group The custom resource\'s group name + * @param version The custom resource\'s version + * @param plural The custom resource\'s plural name. For TPRs this would be lowercase plural kind. + * @param body The JSON schema of the Resource to create. + * @param pretty If \'true\', then the output is pretty printed. + * @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). + */ + public createClusterCustomObject(group: string, version: string, plural: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.createClusterCustomObjectWithHttpInfo(group, version, plural, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * Creates a namespace scoped Custom object * @param group The custom resource\'s group name @@ -12697,7 +18146,7 @@ export class ObservableCustomObjectsApi { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. */ - public createNamespacedCustomObject(group: string, version: string, namespace: string, plural: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public createNamespacedCustomObjectWithHttpInfo(group: string, version: string, namespace: string, plural: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.createNamespacedCustomObject(group, version, namespace, plural, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -12712,7 +18161,53 @@ export class ObservableCustomObjectsApi { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedCustomObject(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedCustomObjectWithHttpInfo(rsp))); + })); + } + + /** + * Creates a namespace scoped Custom object + * @param group The custom resource\'s group name + * @param version The custom resource\'s version + * @param namespace The custom resource\'s namespace + * @param plural The custom resource\'s plural name. For TPRs this would be lowercase plural kind. + * @param body The JSON schema of the Resource to create. + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public createNamespacedCustomObject(group: string, version: string, namespace: string, plural: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.createNamespacedCustomObjectWithHttpInfo(group, version, namespace, plural, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * Deletes the specified cluster scoped custom object + * @param group the custom resource\'s group + * @param version the custom resource\'s version + * @param plural the custom object\'s plural name. For TPRs this would be lowercase plural kind. + * @param name the custom object\'s name + * @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 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. + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param body + */ + public deleteClusterCustomObjectWithHttpInfo(group: string, version: string, plural: string, name: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, dryRun?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.deleteClusterCustomObject(group, version, plural, name, gracePeriodSeconds, orphanDependents, propagationPolicy, dryRun, body, _options); + + // build promise chain + let middlewarePreObservable = from(requestContextPromise); + for (let middleware of this.configuration.middleware) { + middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); + } + + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + pipe(mergeMap((response: ResponseContext) => { + let middlewarePostObservable = of(response); + for (let middleware of this.configuration.middleware) { + middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); + } + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteClusterCustomObjectWithHttpInfo(rsp))); })); } @@ -12729,7 +18224,23 @@ export class ObservableCustomObjectsApi { * @param body */ public deleteClusterCustomObject(group: string, version: string, plural: string, name: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, dryRun?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.deleteClusterCustomObject(group, version, plural, name, gracePeriodSeconds, orphanDependents, propagationPolicy, dryRun, body, _options); + return this.deleteClusterCustomObjectWithHttpInfo(group, version, plural, name, gracePeriodSeconds, orphanDependents, propagationPolicy, dryRun, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * Delete collection of cluster scoped custom objects + * @param group The custom resource\'s group name + * @param version The custom resource\'s version + * @param plural The custom resource\'s plural name. For TPRs this would be lowercase plural kind. + * @param pretty If \'true\', then the output is pretty printed. + * @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 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. + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param body + */ + public deleteCollectionClusterCustomObjectWithHttpInfo(group: string, version: string, plural: string, pretty?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, dryRun?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.deleteCollectionClusterCustomObject(group, version, plural, pretty, gracePeriodSeconds, orphanDependents, propagationPolicy, dryRun, body, _options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -12743,7 +18254,7 @@ export class ObservableCustomObjectsApi { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteClusterCustomObject(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionClusterCustomObjectWithHttpInfo(rsp))); })); } @@ -12760,7 +18271,24 @@ export class ObservableCustomObjectsApi { * @param body */ public deleteCollectionClusterCustomObject(group: string, version: string, plural: string, pretty?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, dryRun?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.deleteCollectionClusterCustomObject(group, version, plural, pretty, gracePeriodSeconds, orphanDependents, propagationPolicy, dryRun, body, _options); + return this.deleteCollectionClusterCustomObjectWithHttpInfo(group, version, plural, pretty, gracePeriodSeconds, orphanDependents, propagationPolicy, dryRun, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * Delete collection of namespace scoped custom objects + * @param group The custom resource\'s group name + * @param version The custom resource\'s version + * @param namespace The custom resource\'s namespace + * @param plural The custom resource\'s plural name. For TPRs this would be lowercase plural kind. + * @param pretty If \'true\', then the output is pretty printed. + * @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 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. + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param body + */ + public deleteCollectionNamespacedCustomObjectWithHttpInfo(group: string, version: string, namespace: string, plural: string, pretty?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, dryRun?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.deleteCollectionNamespacedCustomObject(group, version, namespace, plural, pretty, gracePeriodSeconds, orphanDependents, propagationPolicy, dryRun, body, _options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -12774,7 +18302,7 @@ export class ObservableCustomObjectsApi { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionClusterCustomObject(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedCustomObjectWithHttpInfo(rsp))); })); } @@ -12792,22 +18320,7 @@ export class ObservableCustomObjectsApi { * @param body */ public deleteCollectionNamespacedCustomObject(group: string, version: string, namespace: string, plural: string, pretty?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, dryRun?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.deleteCollectionNamespacedCustomObject(group, version, namespace, plural, pretty, gracePeriodSeconds, orphanDependents, propagationPolicy, dryRun, body, _options); - - // build promise chain - let middlewarePreObservable = from(requestContextPromise); - for (let middleware of this.configuration.middleware) { - middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); - } - - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). - pipe(mergeMap((response: ResponseContext) => { - let middlewarePostObservable = of(response); - for (let middleware of this.configuration.middleware) { - middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); - } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedCustomObject(rsp))); - })); + return this.deleteCollectionNamespacedCustomObjectWithHttpInfo(group, version, namespace, plural, pretty, gracePeriodSeconds, orphanDependents, propagationPolicy, dryRun, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } /** @@ -12823,7 +18336,7 @@ export class ObservableCustomObjectsApi { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed * @param body */ - public deleteNamespacedCustomObject(group: string, version: string, namespace: string, plural: string, name: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, dryRun?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteNamespacedCustomObjectWithHttpInfo(group: string, version: string, namespace: string, plural: string, name: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, dryRun?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.deleteNamespacedCustomObject(group, version, namespace, plural, name, gracePeriodSeconds, orphanDependents, propagationPolicy, dryRun, body, _options); // build promise chain @@ -12838,16 +18351,33 @@ export class ObservableCustomObjectsApi { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedCustomObject(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedCustomObjectWithHttpInfo(rsp))); })); } + /** + * Deletes the specified namespace scoped custom object + * @param group the custom resource\'s group + * @param version the custom resource\'s version + * @param namespace The custom resource\'s namespace + * @param plural the custom resource\'s plural name. For TPRs this would be lowercase plural kind. + * @param name the custom object\'s name + * @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 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. + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param body + */ + public deleteNamespacedCustomObject(group: string, version: string, namespace: string, plural: string, name: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, dryRun?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + return this.deleteNamespacedCustomObjectWithHttpInfo(group, version, namespace, plural, name, gracePeriodSeconds, orphanDependents, propagationPolicy, dryRun, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * get available resources * @param group The custom resource\'s group name * @param version The custom resource\'s version */ - public getAPIResources(group: string, version: string, _options?: Configuration): Observable { + public getAPIResourcesWithHttpInfo(group: string, version: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.getAPIResources(group, version, _options); // build promise chain @@ -12862,10 +18392,19 @@ export class ObservableCustomObjectsApi { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResources(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResourcesWithHttpInfo(rsp))); })); } + /** + * get available resources + * @param group The custom resource\'s group name + * @param version The custom resource\'s version + */ + public getAPIResources(group: string, version: string, _options?: Configuration): Observable { + return this.getAPIResourcesWithHttpInfo(group, version, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * Returns a cluster scoped custom object * @param group the custom resource\'s group @@ -12873,7 +18412,7 @@ export class ObservableCustomObjectsApi { * @param plural the custom object\'s plural name. For TPRs this would be lowercase plural kind. * @param name the custom object\'s name */ - public getClusterCustomObject(group: string, version: string, plural: string, name: string, _options?: Configuration): Observable { + public getClusterCustomObjectWithHttpInfo(group: string, version: string, plural: string, name: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.getClusterCustomObject(group, version, plural, name, _options); // build promise chain @@ -12888,10 +18427,21 @@ export class ObservableCustomObjectsApi { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getClusterCustomObject(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getClusterCustomObjectWithHttpInfo(rsp))); })); } + /** + * Returns a cluster scoped custom object + * @param group the custom resource\'s group + * @param version the custom resource\'s version + * @param plural the custom object\'s plural name. For TPRs this would be lowercase plural kind. + * @param name the custom object\'s name + */ + public getClusterCustomObject(group: string, version: string, plural: string, name: string, _options?: Configuration): Observable { + return this.getClusterCustomObjectWithHttpInfo(group, version, plural, name, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * read scale of the specified custom object * @param group the custom resource\'s group @@ -12899,7 +18449,7 @@ export class ObservableCustomObjectsApi { * @param plural the custom resource\'s plural name. For TPRs this would be lowercase plural kind. * @param name the custom object\'s name */ - public getClusterCustomObjectScale(group: string, version: string, plural: string, name: string, _options?: Configuration): Observable { + public getClusterCustomObjectScaleWithHttpInfo(group: string, version: string, plural: string, name: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.getClusterCustomObjectScale(group, version, plural, name, _options); // build promise chain @@ -12914,10 +18464,21 @@ export class ObservableCustomObjectsApi { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getClusterCustomObjectScale(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getClusterCustomObjectScaleWithHttpInfo(rsp))); })); } + /** + * read scale of the specified custom object + * @param group the custom resource\'s group + * @param version the custom resource\'s version + * @param plural the custom resource\'s plural name. For TPRs this would be lowercase plural kind. + * @param name the custom object\'s name + */ + public getClusterCustomObjectScale(group: string, version: string, plural: string, name: string, _options?: Configuration): Observable { + return this.getClusterCustomObjectScaleWithHttpInfo(group, version, plural, name, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * read status of the specified cluster scoped custom object * @param group the custom resource\'s group @@ -12925,7 +18486,7 @@ export class ObservableCustomObjectsApi { * @param plural the custom resource\'s plural name. For TPRs this would be lowercase plural kind. * @param name the custom object\'s name */ - public getClusterCustomObjectStatus(group: string, version: string, plural: string, name: string, _options?: Configuration): Observable { + public getClusterCustomObjectStatusWithHttpInfo(group: string, version: string, plural: string, name: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.getClusterCustomObjectStatus(group, version, plural, name, _options); // build promise chain @@ -12940,10 +18501,21 @@ export class ObservableCustomObjectsApi { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getClusterCustomObjectStatus(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getClusterCustomObjectStatusWithHttpInfo(rsp))); })); } + /** + * read status of the specified cluster scoped custom object + * @param group the custom resource\'s group + * @param version the custom resource\'s version + * @param plural the custom resource\'s plural name. For TPRs this would be lowercase plural kind. + * @param name the custom object\'s name + */ + public getClusterCustomObjectStatus(group: string, version: string, plural: string, name: string, _options?: Configuration): Observable { + return this.getClusterCustomObjectStatusWithHttpInfo(group, version, plural, name, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * Returns a namespace scoped custom object * @param group the custom resource\'s group @@ -12952,7 +18524,7 @@ export class ObservableCustomObjectsApi { * @param plural the custom resource\'s plural name. For TPRs this would be lowercase plural kind. * @param name the custom object\'s name */ - public getNamespacedCustomObject(group: string, version: string, namespace: string, plural: string, name: string, _options?: Configuration): Observable { + public getNamespacedCustomObjectWithHttpInfo(group: string, version: string, namespace: string, plural: string, name: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.getNamespacedCustomObject(group, version, namespace, plural, name, _options); // build promise chain @@ -12967,10 +18539,22 @@ export class ObservableCustomObjectsApi { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getNamespacedCustomObject(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getNamespacedCustomObjectWithHttpInfo(rsp))); })); } + /** + * Returns a namespace scoped custom object + * @param group the custom resource\'s group + * @param version the custom resource\'s version + * @param namespace The custom resource\'s namespace + * @param plural the custom resource\'s plural name. For TPRs this would be lowercase plural kind. + * @param name the custom object\'s name + */ + public getNamespacedCustomObject(group: string, version: string, namespace: string, plural: string, name: string, _options?: Configuration): Observable { + return this.getNamespacedCustomObjectWithHttpInfo(group, version, namespace, plural, name, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * read scale of the specified namespace scoped custom object * @param group the custom resource\'s group @@ -12979,7 +18563,7 @@ export class ObservableCustomObjectsApi { * @param plural the custom resource\'s plural name. For TPRs this would be lowercase plural kind. * @param name the custom object\'s name */ - public getNamespacedCustomObjectScale(group: string, version: string, namespace: string, plural: string, name: string, _options?: Configuration): Observable { + public getNamespacedCustomObjectScaleWithHttpInfo(group: string, version: string, namespace: string, plural: string, name: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.getNamespacedCustomObjectScale(group, version, namespace, plural, name, _options); // build promise chain @@ -12994,10 +18578,22 @@ export class ObservableCustomObjectsApi { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getNamespacedCustomObjectScale(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getNamespacedCustomObjectScaleWithHttpInfo(rsp))); })); } + /** + * read scale of the specified namespace scoped custom object + * @param group the custom resource\'s group + * @param version the custom resource\'s version + * @param namespace The custom resource\'s namespace + * @param plural the custom resource\'s plural name. For TPRs this would be lowercase plural kind. + * @param name the custom object\'s name + */ + public getNamespacedCustomObjectScale(group: string, version: string, namespace: string, plural: string, name: string, _options?: Configuration): Observable { + return this.getNamespacedCustomObjectScaleWithHttpInfo(group, version, namespace, plural, name, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * read status of the specified namespace scoped custom object * @param group the custom resource\'s group @@ -13006,7 +18602,7 @@ export class ObservableCustomObjectsApi { * @param plural the custom resource\'s plural name. For TPRs this would be lowercase plural kind. * @param name the custom object\'s name */ - public getNamespacedCustomObjectStatus(group: string, version: string, namespace: string, plural: string, name: string, _options?: Configuration): Observable { + public getNamespacedCustomObjectStatusWithHttpInfo(group: string, version: string, namespace: string, plural: string, name: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.getNamespacedCustomObjectStatus(group, version, namespace, plural, name, _options); // build promise chain @@ -13021,10 +18617,22 @@ export class ObservableCustomObjectsApi { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getNamespacedCustomObjectStatus(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getNamespacedCustomObjectStatusWithHttpInfo(rsp))); })); } + /** + * read status of the specified namespace scoped custom object + * @param group the custom resource\'s group + * @param version the custom resource\'s version + * @param namespace The custom resource\'s namespace + * @param plural the custom resource\'s plural name. For TPRs this would be lowercase plural kind. + * @param name the custom object\'s name + */ + public getNamespacedCustomObjectStatus(group: string, version: string, namespace: string, plural: string, name: string, _options?: Configuration): Observable { + return this.getNamespacedCustomObjectStatusWithHttpInfo(group, version, namespace, plural, name, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * list or watch cluster scoped custom objects * @param group The custom resource\'s group name @@ -13041,7 +18649,7 @@ export class ObservableCustomObjectsApi { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. */ - public listClusterCustomObject(group: string, version: string, plural: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listClusterCustomObjectWithHttpInfo(group: string, version: string, plural: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.listClusterCustomObject(group, version, plural, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); // build promise chain @@ -13056,10 +18664,30 @@ export class ObservableCustomObjectsApi { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listClusterCustomObject(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listClusterCustomObjectWithHttpInfo(rsp))); })); } + /** + * list or watch cluster scoped custom objects + * @param group The custom resource\'s group name + * @param version The custom resource\'s version + * @param plural The custom resource\'s plural name. For TPRs this would be lowercase plural kind. + * @param pretty If \'true\', then the output is pretty printed. + * @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. If the feature gate WatchBookmarks is not enabled in apiserver, 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 When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it\'s 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. + */ + public listClusterCustomObject(group: string, version: string, plural: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + return this.listClusterCustomObjectWithHttpInfo(group, version, plural, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * list or watch namespace scoped custom objects * @param group The custom resource\'s group name @@ -13077,7 +18705,7 @@ export class ObservableCustomObjectsApi { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. */ - public listNamespacedCustomObject(group: string, version: string, namespace: string, plural: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listNamespacedCustomObjectWithHttpInfo(group: string, version: string, namespace: string, plural: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.listNamespacedCustomObject(group, version, namespace, plural, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); // build promise chain @@ -13092,10 +18720,31 @@ export class ObservableCustomObjectsApi { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedCustomObject(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedCustomObjectWithHttpInfo(rsp))); })); } + /** + * list or watch namespace scoped custom objects + * @param group The custom resource\'s group name + * @param version The custom resource\'s version + * @param namespace The custom resource\'s namespace + * @param plural The custom resource\'s plural name. For TPRs this would be lowercase plural kind. + * @param pretty If \'true\', then the output is pretty printed. + * @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. If the feature gate WatchBookmarks is not enabled in apiserver, 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 When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it\'s 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. + */ + public listNamespacedCustomObject(group: string, version: string, namespace: string, plural: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + return this.listNamespacedCustomObjectWithHttpInfo(group, version, namespace, plural, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * patch the specified cluster scoped custom object * @param group the custom resource\'s group @@ -13107,7 +18756,7 @@ export class ObservableCustomObjectsApi { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). * @param force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + public patchClusterCustomObjectWithHttpInfo(group: string, version: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.patchClusterCustomObject(group, version, plural, name, body, dryRun, fieldManager, force, _options); // build promise chain @@ -13122,10 +18771,25 @@ export class ObservableCustomObjectsApi { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchClusterCustomObject(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchClusterCustomObjectWithHttpInfo(rsp))); })); } + /** + * patch the specified cluster scoped custom object + * @param group the custom resource\'s group + * @param version the custom resource\'s version + * @param plural the custom object\'s plural name. For TPRs this would be lowercase plural kind. + * @param name the custom object\'s name + * @param body The JSON schema of the Resource to patch. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + return this.patchClusterCustomObjectWithHttpInfo(group, version, plural, name, body, dryRun, fieldManager, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * partially update scale of the specified cluster scoped custom object * @param group the custom resource\'s group @@ -13137,7 +18801,7 @@ export class ObservableCustomObjectsApi { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). * @param force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + public patchClusterCustomObjectScaleWithHttpInfo(group: string, version: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.patchClusterCustomObjectScale(group, version, plural, name, body, dryRun, fieldManager, force, _options); // build promise chain @@ -13152,10 +18816,25 @@ export class ObservableCustomObjectsApi { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchClusterCustomObjectScale(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchClusterCustomObjectScaleWithHttpInfo(rsp))); })); } + /** + * partially update scale of the specified cluster scoped custom object + * @param group the custom resource\'s group + * @param version the custom resource\'s version + * @param plural the custom resource\'s plural name. For TPRs this would be lowercase plural kind. + * @param name the custom object\'s name + * @param body + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + return this.patchClusterCustomObjectScaleWithHttpInfo(group, version, plural, name, body, dryRun, fieldManager, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * partially update status of the specified cluster scoped custom object * @param group the custom resource\'s group @@ -13167,7 +18846,7 @@ export class ObservableCustomObjectsApi { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). * @param force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + public patchClusterCustomObjectStatusWithHttpInfo(group: string, version: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.patchClusterCustomObjectStatus(group, version, plural, name, body, dryRun, fieldManager, force, _options); // build promise chain @@ -13182,10 +18861,25 @@ export class ObservableCustomObjectsApi { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchClusterCustomObjectStatus(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchClusterCustomObjectStatusWithHttpInfo(rsp))); })); } + /** + * partially update status of the specified cluster scoped custom object + * @param group the custom resource\'s group + * @param version the custom resource\'s version + * @param plural the custom resource\'s plural name. For TPRs this would be lowercase plural kind. + * @param name the custom object\'s name + * @param body + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + return this.patchClusterCustomObjectStatusWithHttpInfo(group, version, plural, name, body, dryRun, fieldManager, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * patch the specified namespace scoped custom object * @param group the custom resource\'s group @@ -13198,7 +18892,7 @@ export class ObservableCustomObjectsApi { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). * @param force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + public patchNamespacedCustomObjectWithHttpInfo(group: string, version: string, namespace: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.patchNamespacedCustomObject(group, version, namespace, plural, name, body, dryRun, fieldManager, force, _options); // build promise chain @@ -13213,10 +18907,26 @@ export class ObservableCustomObjectsApi { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedCustomObject(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedCustomObjectWithHttpInfo(rsp))); })); } + /** + * patch the specified namespace scoped custom object + * @param group the custom resource\'s group + * @param version the custom resource\'s version + * @param namespace The custom resource\'s namespace + * @param plural the custom resource\'s plural name. For TPRs this would be lowercase plural kind. + * @param name the custom object\'s name + * @param body The JSON schema of the Resource to patch. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + return this.patchNamespacedCustomObjectWithHttpInfo(group, version, namespace, plural, name, body, dryRun, fieldManager, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * partially update scale of the specified namespace scoped custom object * @param group the custom resource\'s group @@ -13229,7 +18939,7 @@ export class ObservableCustomObjectsApi { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). * @param force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + public patchNamespacedCustomObjectScaleWithHttpInfo(group: string, version: string, namespace: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.patchNamespacedCustomObjectScale(group, version, namespace, plural, name, body, dryRun, fieldManager, force, _options); // build promise chain @@ -13244,10 +18954,26 @@ export class ObservableCustomObjectsApi { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedCustomObjectScale(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedCustomObjectScaleWithHttpInfo(rsp))); })); } + /** + * partially update scale of the specified namespace scoped custom object + * @param group the custom resource\'s group + * @param version the custom resource\'s version + * @param namespace The custom resource\'s namespace + * @param plural the custom resource\'s plural name. For TPRs this would be lowercase plural kind. + * @param name the custom object\'s name + * @param body + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + return this.patchNamespacedCustomObjectScaleWithHttpInfo(group, version, namespace, plural, name, body, dryRun, fieldManager, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * partially update status of the specified namespace scoped custom object * @param group the custom resource\'s group @@ -13260,7 +18986,7 @@ export class ObservableCustomObjectsApi { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). * @param force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + public patchNamespacedCustomObjectStatusWithHttpInfo(group: string, version: string, namespace: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.patchNamespacedCustomObjectStatus(group, version, namespace, plural, name, body, dryRun, fieldManager, force, _options); // build promise chain @@ -13275,10 +19001,26 @@ export class ObservableCustomObjectsApi { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedCustomObjectStatus(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedCustomObjectStatusWithHttpInfo(rsp))); })); } + /** + * partially update status of the specified namespace scoped custom object + * @param group the custom resource\'s group + * @param version the custom resource\'s version + * @param namespace The custom resource\'s namespace + * @param plural the custom resource\'s plural name. For TPRs this would be lowercase plural kind. + * @param name the custom object\'s name + * @param body + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + return this.patchNamespacedCustomObjectStatusWithHttpInfo(group, version, namespace, plural, name, body, dryRun, fieldManager, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * replace the specified cluster scoped custom object * @param group the custom resource\'s group @@ -13289,7 +19031,7 @@ export class ObservableCustomObjectsApi { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. */ - public replaceClusterCustomObject(group: string, version: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public replaceClusterCustomObjectWithHttpInfo(group: string, version: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.replaceClusterCustomObject(group, version, plural, name, body, dryRun, fieldManager, _options); // build promise chain @@ -13304,10 +19046,24 @@ export class ObservableCustomObjectsApi { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceClusterCustomObject(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceClusterCustomObjectWithHttpInfo(rsp))); })); } + /** + * replace the specified cluster scoped custom object + * @param group the custom resource\'s group + * @param version the custom resource\'s version + * @param plural the custom object\'s plural name. For TPRs this would be lowercase plural kind. + * @param name the custom object\'s name + * @param body The JSON schema of the Resource to replace. + * @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. + */ + public replaceClusterCustomObject(group: string, version: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.replaceClusterCustomObjectWithHttpInfo(group, version, plural, name, body, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * replace scale of the specified cluster scoped custom object * @param group the custom resource\'s group @@ -13318,7 +19074,7 @@ export class ObservableCustomObjectsApi { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. */ - public replaceClusterCustomObjectScale(group: string, version: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public replaceClusterCustomObjectScaleWithHttpInfo(group: string, version: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.replaceClusterCustomObjectScale(group, version, plural, name, body, dryRun, fieldManager, _options); // build promise chain @@ -13333,10 +19089,24 @@ export class ObservableCustomObjectsApi { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceClusterCustomObjectScale(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceClusterCustomObjectScaleWithHttpInfo(rsp))); })); } + /** + * replace scale of the specified cluster scoped custom object + * @param group the custom resource\'s group + * @param version the custom resource\'s version + * @param plural the custom resource\'s plural name. For TPRs this would be lowercase plural kind. + * @param name the custom object\'s name + * @param body + * @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. + */ + public replaceClusterCustomObjectScale(group: string, version: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.replaceClusterCustomObjectScaleWithHttpInfo(group, version, plural, name, body, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * replace status of the cluster scoped specified custom object * @param group the custom resource\'s group @@ -13347,7 +19117,7 @@ export class ObservableCustomObjectsApi { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. */ - public replaceClusterCustomObjectStatus(group: string, version: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public replaceClusterCustomObjectStatusWithHttpInfo(group: string, version: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.replaceClusterCustomObjectStatus(group, version, plural, name, body, dryRun, fieldManager, _options); // build promise chain @@ -13362,10 +19132,24 @@ export class ObservableCustomObjectsApi { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceClusterCustomObjectStatus(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceClusterCustomObjectStatusWithHttpInfo(rsp))); })); } + /** + * replace status of the cluster scoped specified custom object + * @param group the custom resource\'s group + * @param version the custom resource\'s version + * @param plural the custom resource\'s plural name. For TPRs this would be lowercase plural kind. + * @param name the custom object\'s name + * @param body + * @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. + */ + public replaceClusterCustomObjectStatus(group: string, version: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.replaceClusterCustomObjectStatusWithHttpInfo(group, version, plural, name, body, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * replace the specified namespace scoped custom object * @param group the custom resource\'s group @@ -13377,7 +19161,7 @@ export class ObservableCustomObjectsApi { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. */ - public replaceNamespacedCustomObject(group: string, version: string, namespace: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public replaceNamespacedCustomObjectWithHttpInfo(group: string, version: string, namespace: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.replaceNamespacedCustomObject(group, version, namespace, plural, name, body, dryRun, fieldManager, _options); // build promise chain @@ -13392,10 +19176,25 @@ export class ObservableCustomObjectsApi { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedCustomObject(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedCustomObjectWithHttpInfo(rsp))); })); } + /** + * replace the specified namespace scoped custom object + * @param group the custom resource\'s group + * @param version the custom resource\'s version + * @param namespace The custom resource\'s namespace + * @param plural the custom resource\'s plural name. For TPRs this would be lowercase plural kind. + * @param name the custom object\'s name + * @param body The JSON schema of the Resource to replace. + * @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. + */ + public replaceNamespacedCustomObject(group: string, version: string, namespace: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.replaceNamespacedCustomObjectWithHttpInfo(group, version, namespace, plural, name, body, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * replace scale of the specified namespace scoped custom object * @param group the custom resource\'s group @@ -13407,7 +19206,7 @@ export class ObservableCustomObjectsApi { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. */ - public replaceNamespacedCustomObjectScale(group: string, version: string, namespace: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public replaceNamespacedCustomObjectScaleWithHttpInfo(group: string, version: string, namespace: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.replaceNamespacedCustomObjectScale(group, version, namespace, plural, name, body, dryRun, fieldManager, _options); // build promise chain @@ -13422,10 +19221,25 @@ export class ObservableCustomObjectsApi { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedCustomObjectScale(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedCustomObjectScaleWithHttpInfo(rsp))); })); } + /** + * replace scale of the specified namespace scoped custom object + * @param group the custom resource\'s group + * @param version the custom resource\'s version + * @param namespace The custom resource\'s namespace + * @param plural the custom resource\'s plural name. For TPRs this would be lowercase plural kind. + * @param name the custom object\'s name + * @param body + * @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. + */ + public replaceNamespacedCustomObjectScale(group: string, version: string, namespace: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.replaceNamespacedCustomObjectScaleWithHttpInfo(group, version, namespace, plural, name, body, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * replace status of the specified namespace scoped custom object * @param group the custom resource\'s group @@ -13437,7 +19251,7 @@ export class ObservableCustomObjectsApi { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. */ - public replaceNamespacedCustomObjectStatus(group: string, version: string, namespace: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public replaceNamespacedCustomObjectStatusWithHttpInfo(group: string, version: string, namespace: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.replaceNamespacedCustomObjectStatus(group, version, namespace, plural, name, body, dryRun, fieldManager, _options); // build promise chain @@ -13452,10 +19266,25 @@ export class ObservableCustomObjectsApi { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedCustomObjectStatus(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedCustomObjectStatusWithHttpInfo(rsp))); })); } + /** + * replace status of the specified namespace scoped custom object + * @param group the custom resource\'s group + * @param version the custom resource\'s version + * @param namespace The custom resource\'s namespace + * @param plural the custom resource\'s plural name. For TPRs this would be lowercase plural kind. + * @param name the custom object\'s name + * @param body + * @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. + */ + public replaceNamespacedCustomObjectStatus(group: string, version: string, namespace: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.replaceNamespacedCustomObjectStatusWithHttpInfo(group, version, namespace, plural, name, body, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + } import { DiscoveryApiRequestFactory, DiscoveryApiResponseProcessor} from "../apis/DiscoveryApi"; @@ -13477,7 +19306,7 @@ export class ObservableDiscoveryApi { /** * get information of a group */ - public getAPIGroup(_options?: Configuration): Observable { + public getAPIGroupWithHttpInfo(_options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.getAPIGroup(_options); // build promise chain @@ -13492,10 +19321,17 @@ export class ObservableDiscoveryApi { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIGroup(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIGroupWithHttpInfo(rsp))); })); } + /** + * get information of a group + */ + public getAPIGroup(_options?: Configuration): Observable { + return this.getAPIGroupWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + } import { DiscoveryV1ApiRequestFactory, DiscoveryV1ApiResponseProcessor} from "../apis/DiscoveryV1Api"; @@ -13522,7 +19358,7 @@ export class ObservableDiscoveryV1Api { * @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. */ - public createNamespacedEndpointSlice(namespace: string, body: V1EndpointSlice, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public createNamespacedEndpointSliceWithHttpInfo(namespace: string, body: V1EndpointSlice, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.createNamespacedEndpointSlice(namespace, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -13537,10 +19373,22 @@ export class ObservableDiscoveryV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedEndpointSlice(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedEndpointSliceWithHttpInfo(rsp))); })); } + /** + * create an EndpointSlice + * @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. + * @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. + */ + public createNamespacedEndpointSlice(namespace: string, body: V1EndpointSlice, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.createNamespacedEndpointSliceWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * delete collection of EndpointSlice * @param namespace object name and auth scope, such as for teams and projects @@ -13558,7 +19406,7 @@ export class ObservableDiscoveryV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param body */ - public deleteCollectionNamespacedEndpointSlice(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteCollectionNamespacedEndpointSliceWithHttpInfo(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.deleteCollectionNamespacedEndpointSlice(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); // build promise chain @@ -13573,10 +19421,31 @@ export class ObservableDiscoveryV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedEndpointSlice(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedEndpointSliceWithHttpInfo(rsp))); })); } + /** + * delete collection of EndpointSlice + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionNamespacedEndpointSlice(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { + return this.deleteCollectionNamespacedEndpointSliceWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * delete an EndpointSlice * @param name name of the EndpointSlice @@ -13588,7 +19457,7 @@ export class ObservableDiscoveryV1Api { * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. * @param body */ - public deleteNamespacedEndpointSlice(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteNamespacedEndpointSliceWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.deleteNamespacedEndpointSlice(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); // build promise chain @@ -13603,14 +19472,29 @@ export class ObservableDiscoveryV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedEndpointSlice(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedEndpointSliceWithHttpInfo(rsp))); })); } + /** + * delete an EndpointSlice + * @param name name of the EndpointSlice + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteNamespacedEndpointSlice(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + return this.deleteNamespacedEndpointSliceWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * get available resources */ - public getAPIResources(_options?: Configuration): Observable { + public getAPIResourcesWithHttpInfo(_options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.getAPIResources(_options); // build promise chain @@ -13625,10 +19509,17 @@ export class ObservableDiscoveryV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResources(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResourcesWithHttpInfo(rsp))); })); } + /** + * get available resources + */ + public getAPIResources(_options?: Configuration): Observable { + return this.getAPIResourcesWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * list or watch objects of kind EndpointSlice * @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. @@ -13642,7 +19533,7 @@ export class ObservableDiscoveryV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public listEndpointSliceForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listEndpointSliceForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.listEndpointSliceForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); // build promise chain @@ -13657,10 +19548,27 @@ export class ObservableDiscoveryV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listEndpointSliceForAllNamespaces(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listEndpointSliceForAllNamespacesWithHttpInfo(rsp))); })); } + /** + * list or watch objects of kind EndpointSlice + * @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. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + return this.listEndpointSliceForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * list or watch objects of kind EndpointSlice * @param namespace object name and auth scope, such as for teams and projects @@ -13675,7 +19583,7 @@ export class ObservableDiscoveryV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public listNamespacedEndpointSlice(namespace: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listNamespacedEndpointSliceWithHttpInfo(namespace: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.listNamespacedEndpointSlice(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); // build promise chain @@ -13690,10 +19598,28 @@ export class ObservableDiscoveryV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedEndpointSlice(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedEndpointSliceWithHttpInfo(rsp))); })); } + /** + * list or watch objects of kind EndpointSlice + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + return this.listNamespacedEndpointSliceWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * partially update the specified EndpointSlice * @param name name of the EndpointSlice @@ -13704,7 +19630,7 @@ export class ObservableDiscoveryV1Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). * @param force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + public patchNamespacedEndpointSliceWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.patchNamespacedEndpointSlice(name, namespace, body, pretty, dryRun, fieldManager, force, _options); // build promise chain @@ -13719,17 +19645,31 @@ export class ObservableDiscoveryV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedEndpointSlice(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedEndpointSliceWithHttpInfo(rsp))); })); } + /** + * partially update the specified EndpointSlice + * @param name name of the EndpointSlice + * @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. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + return this.patchNamespacedEndpointSliceWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * read the specified EndpointSlice * @param name name of the EndpointSlice * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. */ - public readNamespacedEndpointSlice(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedEndpointSliceWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.readNamespacedEndpointSlice(name, namespace, pretty, _options); // build promise chain @@ -13744,10 +19684,20 @@ export class ObservableDiscoveryV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedEndpointSlice(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedEndpointSliceWithHttpInfo(rsp))); })); } + /** + * read the specified EndpointSlice + * @param name name of the EndpointSlice + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + */ + public readNamespacedEndpointSlice(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + return this.readNamespacedEndpointSliceWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * replace the specified EndpointSlice * @param name name of the EndpointSlice @@ -13757,7 +19707,7 @@ export class ObservableDiscoveryV1Api { * @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. */ - public replaceNamespacedEndpointSlice(name: string, namespace: string, body: V1EndpointSlice, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public replaceNamespacedEndpointSliceWithHttpInfo(name: string, namespace: string, body: V1EndpointSlice, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.replaceNamespacedEndpointSlice(name, namespace, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -13772,10 +19722,23 @@ export class ObservableDiscoveryV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedEndpointSlice(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedEndpointSliceWithHttpInfo(rsp))); })); } + /** + * replace the specified EndpointSlice + * @param name name of the EndpointSlice + * @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. + * @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. + */ + public replaceNamespacedEndpointSlice(name: string, namespace: string, body: V1EndpointSlice, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.replaceNamespacedEndpointSliceWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + } import { DiscoveryV1beta1ApiRequestFactory, DiscoveryV1beta1ApiResponseProcessor} from "../apis/DiscoveryV1beta1Api"; @@ -13802,7 +19765,7 @@ export class ObservableDiscoveryV1beta1Api { * @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. */ - public createNamespacedEndpointSlice(namespace: string, body: V1beta1EndpointSlice, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public createNamespacedEndpointSliceWithHttpInfo(namespace: string, body: V1beta1EndpointSlice, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.createNamespacedEndpointSlice(namespace, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -13817,10 +19780,22 @@ export class ObservableDiscoveryV1beta1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedEndpointSlice(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedEndpointSliceWithHttpInfo(rsp))); })); } + /** + * create an EndpointSlice + * @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. + * @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. + */ + public createNamespacedEndpointSlice(namespace: string, body: V1beta1EndpointSlice, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.createNamespacedEndpointSliceWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * delete collection of EndpointSlice * @param namespace object name and auth scope, such as for teams and projects @@ -13838,7 +19813,7 @@ export class ObservableDiscoveryV1beta1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param body */ - public deleteCollectionNamespacedEndpointSlice(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteCollectionNamespacedEndpointSliceWithHttpInfo(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.deleteCollectionNamespacedEndpointSlice(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); // build promise chain @@ -13853,10 +19828,31 @@ export class ObservableDiscoveryV1beta1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedEndpointSlice(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedEndpointSliceWithHttpInfo(rsp))); })); } + /** + * delete collection of EndpointSlice + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionNamespacedEndpointSlice(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { + return this.deleteCollectionNamespacedEndpointSliceWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * delete an EndpointSlice * @param name name of the EndpointSlice @@ -13868,7 +19864,7 @@ export class ObservableDiscoveryV1beta1Api { * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. * @param body */ - public deleteNamespacedEndpointSlice(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteNamespacedEndpointSliceWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.deleteNamespacedEndpointSlice(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); // build promise chain @@ -13883,14 +19879,29 @@ export class ObservableDiscoveryV1beta1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedEndpointSlice(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedEndpointSliceWithHttpInfo(rsp))); })); } + /** + * delete an EndpointSlice + * @param name name of the EndpointSlice + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteNamespacedEndpointSlice(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + return this.deleteNamespacedEndpointSliceWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * get available resources */ - public getAPIResources(_options?: Configuration): Observable { + public getAPIResourcesWithHttpInfo(_options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.getAPIResources(_options); // build promise chain @@ -13905,10 +19916,17 @@ export class ObservableDiscoveryV1beta1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResources(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResourcesWithHttpInfo(rsp))); })); } + /** + * get available resources + */ + public getAPIResources(_options?: Configuration): Observable { + return this.getAPIResourcesWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * list or watch objects of kind EndpointSlice * @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. @@ -13922,7 +19940,7 @@ export class ObservableDiscoveryV1beta1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listEndpointSliceForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.listEndpointSliceForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); // build promise chain @@ -13937,10 +19955,27 @@ export class ObservableDiscoveryV1beta1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listEndpointSliceForAllNamespaces(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listEndpointSliceForAllNamespacesWithHttpInfo(rsp))); })); } + /** + * list or watch objects of kind EndpointSlice + * @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. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + return this.listEndpointSliceForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * list or watch objects of kind EndpointSlice * @param namespace object name and auth scope, such as for teams and projects @@ -13955,7 +19990,7 @@ export class ObservableDiscoveryV1beta1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listNamespacedEndpointSliceWithHttpInfo(namespace: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.listNamespacedEndpointSlice(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); // build promise chain @@ -13970,10 +20005,28 @@ export class ObservableDiscoveryV1beta1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedEndpointSlice(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedEndpointSliceWithHttpInfo(rsp))); })); } + /** + * list or watch objects of kind EndpointSlice + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + return this.listNamespacedEndpointSliceWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * partially update the specified EndpointSlice * @param name name of the EndpointSlice @@ -13984,7 +20037,7 @@ export class ObservableDiscoveryV1beta1Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + public patchNamespacedEndpointSliceWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.patchNamespacedEndpointSlice(name, namespace, body, pretty, dryRun, fieldManager, force, _options); // build promise chain @@ -13999,17 +20052,31 @@ export class ObservableDiscoveryV1beta1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedEndpointSlice(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedEndpointSliceWithHttpInfo(rsp))); })); } + /** + * partially update the specified EndpointSlice + * @param name name of the EndpointSlice + * @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. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + return this.patchNamespacedEndpointSliceWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * read the specified EndpointSlice * @param name name of the EndpointSlice * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. */ - public readNamespacedEndpointSlice(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedEndpointSliceWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.readNamespacedEndpointSlice(name, namespace, pretty, _options); // build promise chain @@ -14024,10 +20091,20 @@ export class ObservableDiscoveryV1beta1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedEndpointSlice(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedEndpointSliceWithHttpInfo(rsp))); })); } + /** + * read the specified EndpointSlice + * @param name name of the EndpointSlice + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + */ + public readNamespacedEndpointSlice(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + return this.readNamespacedEndpointSliceWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * replace the specified EndpointSlice * @param name name of the EndpointSlice @@ -14037,7 +20114,7 @@ export class ObservableDiscoveryV1beta1Api { * @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. */ - public replaceNamespacedEndpointSlice(name: string, namespace: string, body: V1beta1EndpointSlice, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public replaceNamespacedEndpointSliceWithHttpInfo(name: string, namespace: string, body: V1beta1EndpointSlice, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.replaceNamespacedEndpointSlice(name, namespace, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -14052,10 +20129,23 @@ export class ObservableDiscoveryV1beta1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedEndpointSlice(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedEndpointSliceWithHttpInfo(rsp))); })); } + /** + * replace the specified EndpointSlice + * @param name name of the EndpointSlice + * @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. + * @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. + */ + public replaceNamespacedEndpointSlice(name: string, namespace: string, body: V1beta1EndpointSlice, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.replaceNamespacedEndpointSliceWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + } import { EventsApiRequestFactory, EventsApiResponseProcessor} from "../apis/EventsApi"; @@ -14077,7 +20167,7 @@ export class ObservableEventsApi { /** * get information of a group */ - public getAPIGroup(_options?: Configuration): Observable { + public getAPIGroupWithHttpInfo(_options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.getAPIGroup(_options); // build promise chain @@ -14092,10 +20182,17 @@ export class ObservableEventsApi { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIGroup(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIGroupWithHttpInfo(rsp))); })); } + /** + * get information of a group + */ + public getAPIGroup(_options?: Configuration): Observable { + return this.getAPIGroupWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + } import { EventsV1ApiRequestFactory, EventsV1ApiResponseProcessor} from "../apis/EventsV1Api"; @@ -14122,7 +20219,7 @@ export class ObservableEventsV1Api { * @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. */ - public createNamespacedEvent(namespace: string, body: EventsV1Event, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public createNamespacedEventWithHttpInfo(namespace: string, body: EventsV1Event, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.createNamespacedEvent(namespace, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -14137,10 +20234,22 @@ export class ObservableEventsV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedEvent(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedEventWithHttpInfo(rsp))); })); } + /** + * create an Event + * @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. + * @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. + */ + public createNamespacedEvent(namespace: string, body: EventsV1Event, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.createNamespacedEventWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * delete collection of Event * @param namespace object name and auth scope, such as for teams and projects @@ -14158,7 +20267,7 @@ export class ObservableEventsV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param body */ - public deleteCollectionNamespacedEvent(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteCollectionNamespacedEventWithHttpInfo(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.deleteCollectionNamespacedEvent(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); // build promise chain @@ -14173,10 +20282,31 @@ export class ObservableEventsV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedEvent(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedEventWithHttpInfo(rsp))); })); } + /** + * delete collection of Event + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionNamespacedEvent(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { + return this.deleteCollectionNamespacedEventWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * delete an Event * @param name name of the Event @@ -14188,7 +20318,7 @@ export class ObservableEventsV1Api { * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. * @param body */ - public deleteNamespacedEvent(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteNamespacedEventWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.deleteNamespacedEvent(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); // build promise chain @@ -14203,14 +20333,29 @@ export class ObservableEventsV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedEvent(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedEventWithHttpInfo(rsp))); })); } + /** + * delete an Event + * @param name name of the Event + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteNamespacedEvent(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + return this.deleteNamespacedEventWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * get available resources */ - public getAPIResources(_options?: Configuration): Observable { + public getAPIResourcesWithHttpInfo(_options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.getAPIResources(_options); // build promise chain @@ -14225,10 +20370,17 @@ export class ObservableEventsV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResources(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResourcesWithHttpInfo(rsp))); })); } + /** + * get available resources + */ + public getAPIResources(_options?: Configuration): Observable { + return this.getAPIResourcesWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * list or watch objects of kind Event * @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. @@ -14242,7 +20394,7 @@ export class ObservableEventsV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public listEventForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listEventForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.listEventForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); // build promise chain @@ -14257,10 +20409,27 @@ export class ObservableEventsV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listEventForAllNamespaces(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listEventForAllNamespacesWithHttpInfo(rsp))); })); } + /** + * list or watch objects of kind Event + * @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. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + return this.listEventForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * list or watch objects of kind Event * @param namespace object name and auth scope, such as for teams and projects @@ -14275,7 +20444,7 @@ export class ObservableEventsV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public listNamespacedEvent(namespace: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listNamespacedEventWithHttpInfo(namespace: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.listNamespacedEvent(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); // build promise chain @@ -14290,10 +20459,28 @@ export class ObservableEventsV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedEvent(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedEventWithHttpInfo(rsp))); })); } + /** + * list or watch objects of kind Event + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + return this.listNamespacedEventWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * partially update the specified Event * @param name name of the Event @@ -14304,7 +20491,7 @@ export class ObservableEventsV1Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). * @param force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + public patchNamespacedEventWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.patchNamespacedEvent(name, namespace, body, pretty, dryRun, fieldManager, force, _options); // build promise chain @@ -14319,17 +20506,31 @@ export class ObservableEventsV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedEvent(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedEventWithHttpInfo(rsp))); })); } + /** + * partially update the specified Event + * @param name name of the Event + * @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. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + return this.patchNamespacedEventWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * read the specified Event * @param name name of the Event * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. */ - public readNamespacedEvent(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedEventWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.readNamespacedEvent(name, namespace, pretty, _options); // build promise chain @@ -14344,10 +20545,20 @@ export class ObservableEventsV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedEvent(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedEventWithHttpInfo(rsp))); })); } + /** + * read the specified Event + * @param name name of the Event + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + */ + public readNamespacedEvent(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + return this.readNamespacedEventWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * replace the specified Event * @param name name of the Event @@ -14357,7 +20568,7 @@ export class ObservableEventsV1Api { * @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. */ - public replaceNamespacedEvent(name: string, namespace: string, body: EventsV1Event, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public replaceNamespacedEventWithHttpInfo(name: string, namespace: string, body: EventsV1Event, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.replaceNamespacedEvent(name, namespace, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -14372,10 +20583,23 @@ export class ObservableEventsV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedEvent(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedEventWithHttpInfo(rsp))); })); } + /** + * replace the specified Event + * @param name name of the Event + * @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. + * @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. + */ + public replaceNamespacedEvent(name: string, namespace: string, body: EventsV1Event, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.replaceNamespacedEventWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + } import { EventsV1beta1ApiRequestFactory, EventsV1beta1ApiResponseProcessor} from "../apis/EventsV1beta1Api"; @@ -14398,12 +20622,60 @@ export class ObservableEventsV1beta1Api { * create an Event * @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. - * @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 pretty If \'true\', then the output is pretty printed. + * @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. + */ + public createNamespacedEventWithHttpInfo(namespace: string, body: V1beta1Event, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.createNamespacedEvent(namespace, body, pretty, dryRun, fieldManager, _options); + + // build promise chain + let middlewarePreObservable = from(requestContextPromise); + for (let middleware of this.configuration.middleware) { + middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); + } + + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + pipe(mergeMap((response: ResponseContext) => { + let middlewarePostObservable = of(response); + for (let middleware of this.configuration.middleware) { + middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); + } + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedEventWithHttpInfo(rsp))); + })); + } + + /** + * create an Event + * @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. + * @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. + */ + public createNamespacedEvent(namespace: string, body: V1beta1Event, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.createNamespacedEventWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * delete collection of Event + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body */ - public createNamespacedEvent(namespace: string, body: V1beta1Event, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.createNamespacedEvent(namespace, body, pretty, dryRun, fieldManager, _options); + public deleteCollectionNamespacedEventWithHttpInfo(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.deleteCollectionNamespacedEvent(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -14417,7 +20689,7 @@ export class ObservableEventsV1beta1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedEvent(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedEventWithHttpInfo(rsp))); })); } @@ -14439,22 +20711,7 @@ export class ObservableEventsV1beta1Api { * @param body */ public deleteCollectionNamespacedEvent(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.deleteCollectionNamespacedEvent(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); - - // build promise chain - let middlewarePreObservable = from(requestContextPromise); - for (let middleware of this.configuration.middleware) { - middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); - } - - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). - pipe(mergeMap((response: ResponseContext) => { - let middlewarePostObservable = of(response); - for (let middleware of this.configuration.middleware) { - middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); - } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedEvent(rsp))); - })); + return this.deleteCollectionNamespacedEventWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } /** @@ -14468,7 +20725,7 @@ export class ObservableEventsV1beta1Api { * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. * @param body */ - public deleteNamespacedEvent(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteNamespacedEventWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.deleteNamespacedEvent(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); // build promise chain @@ -14483,14 +20740,29 @@ export class ObservableEventsV1beta1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedEvent(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedEventWithHttpInfo(rsp))); })); } + /** + * delete an Event + * @param name name of the Event + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteNamespacedEvent(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + return this.deleteNamespacedEventWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * get available resources */ - public getAPIResources(_options?: Configuration): Observable { + public getAPIResourcesWithHttpInfo(_options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.getAPIResources(_options); // build promise chain @@ -14505,10 +20777,17 @@ export class ObservableEventsV1beta1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResources(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResourcesWithHttpInfo(rsp))); })); } + /** + * get available resources + */ + public getAPIResources(_options?: Configuration): Observable { + return this.getAPIResourcesWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * list or watch objects of kind Event * @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. @@ -14522,7 +20801,7 @@ export class ObservableEventsV1beta1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listEventForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.listEventForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); // build promise chain @@ -14537,10 +20816,27 @@ export class ObservableEventsV1beta1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listEventForAllNamespaces(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listEventForAllNamespacesWithHttpInfo(rsp))); })); } + /** + * list or watch objects of kind Event + * @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. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + return this.listEventForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * list or watch objects of kind Event * @param namespace object name and auth scope, such as for teams and projects @@ -14555,7 +20851,7 @@ export class ObservableEventsV1beta1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listNamespacedEventWithHttpInfo(namespace: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.listNamespacedEvent(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); // build promise chain @@ -14570,10 +20866,28 @@ export class ObservableEventsV1beta1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedEvent(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedEventWithHttpInfo(rsp))); })); } + /** + * list or watch objects of kind Event + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + return this.listNamespacedEventWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * partially update the specified Event * @param name name of the Event @@ -14584,7 +20898,7 @@ export class ObservableEventsV1beta1Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + public patchNamespacedEventWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.patchNamespacedEvent(name, namespace, body, pretty, dryRun, fieldManager, force, _options); // build promise chain @@ -14599,17 +20913,31 @@ export class ObservableEventsV1beta1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedEvent(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedEventWithHttpInfo(rsp))); })); } + /** + * partially update the specified Event + * @param name name of the Event + * @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. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + return this.patchNamespacedEventWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * read the specified Event * @param name name of the Event * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. */ - public readNamespacedEvent(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedEventWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.readNamespacedEvent(name, namespace, pretty, _options); // build promise chain @@ -14624,10 +20952,20 @@ export class ObservableEventsV1beta1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedEvent(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedEventWithHttpInfo(rsp))); })); } + /** + * read the specified Event + * @param name name of the Event + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + */ + public readNamespacedEvent(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + return this.readNamespacedEventWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * replace the specified Event * @param name name of the Event @@ -14637,7 +20975,7 @@ export class ObservableEventsV1beta1Api { * @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. */ - public replaceNamespacedEvent(name: string, namespace: string, body: V1beta1Event, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public replaceNamespacedEventWithHttpInfo(name: string, namespace: string, body: V1beta1Event, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.replaceNamespacedEvent(name, namespace, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -14652,10 +20990,23 @@ export class ObservableEventsV1beta1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedEvent(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedEventWithHttpInfo(rsp))); })); } + /** + * replace the specified Event + * @param name name of the Event + * @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. + * @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. + */ + public replaceNamespacedEvent(name: string, namespace: string, body: V1beta1Event, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.replaceNamespacedEventWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + } import { FlowcontrolApiserverApiRequestFactory, FlowcontrolApiserverApiResponseProcessor} from "../apis/FlowcontrolApiserverApi"; @@ -14677,7 +21028,7 @@ export class ObservableFlowcontrolApiserverApi { /** * get information of a group */ - public getAPIGroup(_options?: Configuration): Observable { + public getAPIGroupWithHttpInfo(_options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.getAPIGroup(_options); // build promise chain @@ -14692,10 +21043,17 @@ export class ObservableFlowcontrolApiserverApi { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIGroup(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIGroupWithHttpInfo(rsp))); })); } + /** + * get information of a group + */ + public getAPIGroup(_options?: Configuration): Observable { + return this.getAPIGroupWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + } import { FlowcontrolApiserverV1beta1ApiRequestFactory, FlowcontrolApiserverV1beta1ApiResponseProcessor} from "../apis/FlowcontrolApiserverV1beta1Api"; @@ -14721,7 +21079,7 @@ export class ObservableFlowcontrolApiserverV1beta1Api { * @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. */ - public createFlowSchema(body: V1beta1FlowSchema, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public createFlowSchemaWithHttpInfo(body: V1beta1FlowSchema, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.createFlowSchema(body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -14736,10 +21094,21 @@ export class ObservableFlowcontrolApiserverV1beta1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createFlowSchema(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createFlowSchemaWithHttpInfo(rsp))); })); } + /** + * create a FlowSchema + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public createFlowSchema(body: V1beta1FlowSchema, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.createFlowSchemaWithHttpInfo(body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * create a PriorityLevelConfiguration * @param body @@ -14747,7 +21116,7 @@ export class ObservableFlowcontrolApiserverV1beta1Api { * @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. */ - public createPriorityLevelConfiguration(body: V1beta1PriorityLevelConfiguration, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public createPriorityLevelConfigurationWithHttpInfo(body: V1beta1PriorityLevelConfiguration, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.createPriorityLevelConfiguration(body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -14762,10 +21131,21 @@ export class ObservableFlowcontrolApiserverV1beta1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createPriorityLevelConfiguration(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createPriorityLevelConfigurationWithHttpInfo(rsp))); })); } + /** + * create a PriorityLevelConfiguration + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public createPriorityLevelConfiguration(body: V1beta1PriorityLevelConfiguration, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.createPriorityLevelConfigurationWithHttpInfo(body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * delete collection of FlowSchema * @param pretty If \'true\', then the output is pretty printed. @@ -14782,7 +21162,7 @@ export class ObservableFlowcontrolApiserverV1beta1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param body */ - public deleteCollectionFlowSchema(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteCollectionFlowSchemaWithHttpInfo(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.deleteCollectionFlowSchema(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); // build promise chain @@ -14797,10 +21177,30 @@ export class ObservableFlowcontrolApiserverV1beta1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionFlowSchema(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionFlowSchemaWithHttpInfo(rsp))); })); } + /** + * delete collection of FlowSchema + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionFlowSchema(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { + return this.deleteCollectionFlowSchemaWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * delete collection of PriorityLevelConfiguration * @param pretty If \'true\', then the output is pretty printed. @@ -14817,7 +21217,7 @@ export class ObservableFlowcontrolApiserverV1beta1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param body */ - public deleteCollectionPriorityLevelConfiguration(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteCollectionPriorityLevelConfigurationWithHttpInfo(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.deleteCollectionPriorityLevelConfiguration(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); // build promise chain @@ -14832,10 +21232,30 @@ export class ObservableFlowcontrolApiserverV1beta1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionPriorityLevelConfiguration(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionPriorityLevelConfigurationWithHttpInfo(rsp))); })); } + /** + * delete collection of PriorityLevelConfiguration + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionPriorityLevelConfiguration(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { + return this.deleteCollectionPriorityLevelConfigurationWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * delete a FlowSchema * @param name name of the FlowSchema @@ -14846,7 +21266,7 @@ export class ObservableFlowcontrolApiserverV1beta1Api { * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. * @param body */ - public deleteFlowSchema(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteFlowSchemaWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.deleteFlowSchema(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); // build promise chain @@ -14861,10 +21281,24 @@ export class ObservableFlowcontrolApiserverV1beta1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteFlowSchema(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteFlowSchemaWithHttpInfo(rsp))); })); } + /** + * delete a FlowSchema + * @param name name of the FlowSchema + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteFlowSchema(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + return this.deleteFlowSchemaWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * delete a PriorityLevelConfiguration * @param name name of the PriorityLevelConfiguration @@ -14875,7 +21309,7 @@ export class ObservableFlowcontrolApiserverV1beta1Api { * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. * @param body */ - public deletePriorityLevelConfiguration(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deletePriorityLevelConfigurationWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.deletePriorityLevelConfiguration(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); // build promise chain @@ -14890,14 +21324,28 @@ export class ObservableFlowcontrolApiserverV1beta1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deletePriorityLevelConfiguration(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deletePriorityLevelConfigurationWithHttpInfo(rsp))); })); } + /** + * delete a PriorityLevelConfiguration + * @param name name of the PriorityLevelConfiguration + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deletePriorityLevelConfiguration(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + return this.deletePriorityLevelConfigurationWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * get available resources */ - public getAPIResources(_options?: Configuration): Observable { + public getAPIResourcesWithHttpInfo(_options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.getAPIResources(_options); // build promise chain @@ -14912,7 +21360,46 @@ export class ObservableFlowcontrolApiserverV1beta1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResources(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResourcesWithHttpInfo(rsp))); + })); + } + + /** + * get available resources + */ + public getAPIResources(_options?: Configuration): Observable { + return this.getAPIResourcesWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * list or watch objects of kind FlowSchema + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.listFlowSchema(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + + // build promise chain + let middlewarePreObservable = from(requestContextPromise); + for (let middleware of this.configuration.middleware) { + middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); + } + + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + pipe(mergeMap((response: ResponseContext) => { + let middlewarePostObservable = of(response); + for (let middleware of this.configuration.middleware) { + middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); + } + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listFlowSchemaWithHttpInfo(rsp))); })); } @@ -14930,22 +21417,7 @@ export class ObservableFlowcontrolApiserverV1beta1Api { * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.listFlowSchema(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); - - // build promise chain - let middlewarePreObservable = from(requestContextPromise); - for (let middleware of this.configuration.middleware) { - middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); - } - - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). - pipe(mergeMap((response: ResponseContext) => { - let middlewarePostObservable = of(response); - for (let middleware of this.configuration.middleware) { - middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); - } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listFlowSchema(rsp))); - })); + return this.listFlowSchemaWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } /** @@ -14961,7 +21433,7 @@ export class ObservableFlowcontrolApiserverV1beta1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listPriorityLevelConfigurationWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.listPriorityLevelConfiguration(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); // build promise chain @@ -14976,10 +21448,27 @@ export class ObservableFlowcontrolApiserverV1beta1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listPriorityLevelConfiguration(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listPriorityLevelConfigurationWithHttpInfo(rsp))); })); } + /** + * list or watch objects of kind PriorityLevelConfiguration + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + return this.listPriorityLevelConfigurationWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * partially update the specified FlowSchema * @param name name of the FlowSchema @@ -14989,7 +21478,7 @@ export class ObservableFlowcontrolApiserverV1beta1Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + public patchFlowSchemaWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.patchFlowSchema(name, body, pretty, dryRun, fieldManager, force, _options); // build promise chain @@ -15004,10 +21493,23 @@ export class ObservableFlowcontrolApiserverV1beta1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchFlowSchema(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchFlowSchemaWithHttpInfo(rsp))); })); } + /** + * partially update the specified FlowSchema + * @param name name of the FlowSchema + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + return this.patchFlowSchemaWithHttpInfo(name, body, pretty, dryRun, fieldManager, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * partially update status of the specified FlowSchema * @param name name of the FlowSchema @@ -15017,7 +21519,7 @@ export class ObservableFlowcontrolApiserverV1beta1Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + public patchFlowSchemaStatusWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.patchFlowSchemaStatus(name, body, pretty, dryRun, fieldManager, force, _options); // build promise chain @@ -15032,10 +21534,23 @@ export class ObservableFlowcontrolApiserverV1beta1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchFlowSchemaStatus(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchFlowSchemaStatusWithHttpInfo(rsp))); })); } + /** + * partially update status of the specified FlowSchema + * @param name name of the FlowSchema + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + return this.patchFlowSchemaStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * partially update the specified PriorityLevelConfiguration * @param name name of the PriorityLevelConfiguration @@ -15045,7 +21560,7 @@ export class ObservableFlowcontrolApiserverV1beta1Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + public patchPriorityLevelConfigurationWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.patchPriorityLevelConfiguration(name, body, pretty, dryRun, fieldManager, force, _options); // build promise chain @@ -15060,10 +21575,23 @@ export class ObservableFlowcontrolApiserverV1beta1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchPriorityLevelConfiguration(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchPriorityLevelConfigurationWithHttpInfo(rsp))); })); } + /** + * partially update the specified PriorityLevelConfiguration + * @param name name of the PriorityLevelConfiguration + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + return this.patchPriorityLevelConfigurationWithHttpInfo(name, body, pretty, dryRun, fieldManager, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * partially update status of the specified PriorityLevelConfiguration * @param name name of the PriorityLevelConfiguration @@ -15073,7 +21601,7 @@ export class ObservableFlowcontrolApiserverV1beta1Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + public patchPriorityLevelConfigurationStatusWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.patchPriorityLevelConfigurationStatus(name, body, pretty, dryRun, fieldManager, force, _options); // build promise chain @@ -15088,16 +21616,29 @@ export class ObservableFlowcontrolApiserverV1beta1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchPriorityLevelConfigurationStatus(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchPriorityLevelConfigurationStatusWithHttpInfo(rsp))); })); } + /** + * partially update status of the specified PriorityLevelConfiguration + * @param name name of the PriorityLevelConfiguration + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + return this.patchPriorityLevelConfigurationStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * read the specified FlowSchema * @param name name of the FlowSchema * @param pretty If \'true\', then the output is pretty printed. */ - public readFlowSchema(name: string, pretty?: string, _options?: Configuration): Observable { + public readFlowSchemaWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.readFlowSchema(name, pretty, _options); // build promise chain @@ -15112,16 +21653,25 @@ export class ObservableFlowcontrolApiserverV1beta1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readFlowSchema(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readFlowSchemaWithHttpInfo(rsp))); })); } + /** + * read the specified FlowSchema + * @param name name of the FlowSchema + * @param pretty If \'true\', then the output is pretty printed. + */ + public readFlowSchema(name: string, pretty?: string, _options?: Configuration): Observable { + return this.readFlowSchemaWithHttpInfo(name, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * read status of the specified FlowSchema * @param name name of the FlowSchema * @param pretty If \'true\', then the output is pretty printed. */ - public readFlowSchemaStatus(name: string, pretty?: string, _options?: Configuration): Observable { + public readFlowSchemaStatusWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.readFlowSchemaStatus(name, pretty, _options); // build promise chain @@ -15136,16 +21686,25 @@ export class ObservableFlowcontrolApiserverV1beta1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readFlowSchemaStatus(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readFlowSchemaStatusWithHttpInfo(rsp))); })); } + /** + * read status of the specified FlowSchema + * @param name name of the FlowSchema + * @param pretty If \'true\', then the output is pretty printed. + */ + public readFlowSchemaStatus(name: string, pretty?: string, _options?: Configuration): Observable { + return this.readFlowSchemaStatusWithHttpInfo(name, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * read the specified PriorityLevelConfiguration * @param name name of the PriorityLevelConfiguration * @param pretty If \'true\', then the output is pretty printed. */ - public readPriorityLevelConfiguration(name: string, pretty?: string, _options?: Configuration): Observable { + public readPriorityLevelConfigurationWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.readPriorityLevelConfiguration(name, pretty, _options); // build promise chain @@ -15160,16 +21719,25 @@ export class ObservableFlowcontrolApiserverV1beta1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readPriorityLevelConfiguration(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readPriorityLevelConfigurationWithHttpInfo(rsp))); })); } + /** + * read the specified PriorityLevelConfiguration + * @param name name of the PriorityLevelConfiguration + * @param pretty If \'true\', then the output is pretty printed. + */ + public readPriorityLevelConfiguration(name: string, pretty?: string, _options?: Configuration): Observable { + return this.readPriorityLevelConfigurationWithHttpInfo(name, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * read status of the specified PriorityLevelConfiguration * @param name name of the PriorityLevelConfiguration * @param pretty If \'true\', then the output is pretty printed. */ - public readPriorityLevelConfigurationStatus(name: string, pretty?: string, _options?: Configuration): Observable { + public readPriorityLevelConfigurationStatusWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.readPriorityLevelConfigurationStatus(name, pretty, _options); // build promise chain @@ -15184,10 +21752,19 @@ export class ObservableFlowcontrolApiserverV1beta1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readPriorityLevelConfigurationStatus(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readPriorityLevelConfigurationStatusWithHttpInfo(rsp))); })); } + /** + * read status of the specified PriorityLevelConfiguration + * @param name name of the PriorityLevelConfiguration + * @param pretty If \'true\', then the output is pretty printed. + */ + public readPriorityLevelConfigurationStatus(name: string, pretty?: string, _options?: Configuration): Observable { + return this.readPriorityLevelConfigurationStatusWithHttpInfo(name, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * replace the specified FlowSchema * @param name name of the FlowSchema @@ -15196,7 +21773,7 @@ export class ObservableFlowcontrolApiserverV1beta1Api { * @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. */ - public replaceFlowSchema(name: string, body: V1beta1FlowSchema, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public replaceFlowSchemaWithHttpInfo(name: string, body: V1beta1FlowSchema, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.replaceFlowSchema(name, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -15211,10 +21788,22 @@ export class ObservableFlowcontrolApiserverV1beta1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceFlowSchema(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceFlowSchemaWithHttpInfo(rsp))); })); } + /** + * replace the specified FlowSchema + * @param name name of the FlowSchema + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public replaceFlowSchema(name: string, body: V1beta1FlowSchema, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.replaceFlowSchemaWithHttpInfo(name, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * replace status of the specified FlowSchema * @param name name of the FlowSchema @@ -15223,7 +21812,7 @@ export class ObservableFlowcontrolApiserverV1beta1Api { * @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. */ - public replaceFlowSchemaStatus(name: string, body: V1beta1FlowSchema, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public replaceFlowSchemaStatusWithHttpInfo(name: string, body: V1beta1FlowSchema, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.replaceFlowSchemaStatus(name, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -15238,10 +21827,22 @@ export class ObservableFlowcontrolApiserverV1beta1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceFlowSchemaStatus(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceFlowSchemaStatusWithHttpInfo(rsp))); })); } + /** + * replace status of the specified FlowSchema + * @param name name of the FlowSchema + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public replaceFlowSchemaStatus(name: string, body: V1beta1FlowSchema, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.replaceFlowSchemaStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * replace the specified PriorityLevelConfiguration * @param name name of the PriorityLevelConfiguration @@ -15250,7 +21851,7 @@ export class ObservableFlowcontrolApiserverV1beta1Api { * @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. */ - public replacePriorityLevelConfiguration(name: string, body: V1beta1PriorityLevelConfiguration, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public replacePriorityLevelConfigurationWithHttpInfo(name: string, body: V1beta1PriorityLevelConfiguration, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.replacePriorityLevelConfiguration(name, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -15265,10 +21866,22 @@ export class ObservableFlowcontrolApiserverV1beta1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replacePriorityLevelConfiguration(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replacePriorityLevelConfigurationWithHttpInfo(rsp))); })); } + /** + * replace the specified PriorityLevelConfiguration + * @param name name of the PriorityLevelConfiguration + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public replacePriorityLevelConfiguration(name: string, body: V1beta1PriorityLevelConfiguration, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.replacePriorityLevelConfigurationWithHttpInfo(name, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * replace status of the specified PriorityLevelConfiguration * @param name name of the PriorityLevelConfiguration @@ -15277,7 +21890,7 @@ export class ObservableFlowcontrolApiserverV1beta1Api { * @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. */ - public replacePriorityLevelConfigurationStatus(name: string, body: V1beta1PriorityLevelConfiguration, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public replacePriorityLevelConfigurationStatusWithHttpInfo(name: string, body: V1beta1PriorityLevelConfiguration, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.replacePriorityLevelConfigurationStatus(name, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -15292,10 +21905,22 @@ export class ObservableFlowcontrolApiserverV1beta1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replacePriorityLevelConfigurationStatus(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replacePriorityLevelConfigurationStatusWithHttpInfo(rsp))); })); } + /** + * replace status of the specified PriorityLevelConfiguration + * @param name name of the PriorityLevelConfiguration + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public replacePriorityLevelConfigurationStatus(name: string, body: V1beta1PriorityLevelConfiguration, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.replacePriorityLevelConfigurationStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + } import { InternalApiserverApiRequestFactory, InternalApiserverApiResponseProcessor} from "../apis/InternalApiserverApi"; @@ -15317,7 +21942,7 @@ export class ObservableInternalApiserverApi { /** * get information of a group */ - public getAPIGroup(_options?: Configuration): Observable { + public getAPIGroupWithHttpInfo(_options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.getAPIGroup(_options); // build promise chain @@ -15332,10 +21957,17 @@ export class ObservableInternalApiserverApi { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIGroup(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIGroupWithHttpInfo(rsp))); })); } + /** + * get information of a group + */ + public getAPIGroup(_options?: Configuration): Observable { + return this.getAPIGroupWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + } import { InternalApiserverV1alpha1ApiRequestFactory, InternalApiserverV1alpha1ApiResponseProcessor} from "../apis/InternalApiserverV1alpha1Api"; @@ -15361,7 +21993,7 @@ export class ObservableInternalApiserverV1alpha1Api { * @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. */ - public createStorageVersion(body: V1alpha1StorageVersion, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public createStorageVersionWithHttpInfo(body: V1alpha1StorageVersion, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.createStorageVersion(body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -15376,10 +22008,21 @@ export class ObservableInternalApiserverV1alpha1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createStorageVersion(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createStorageVersionWithHttpInfo(rsp))); })); } + /** + * create a StorageVersion + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public createStorageVersion(body: V1alpha1StorageVersion, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.createStorageVersionWithHttpInfo(body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * delete collection of StorageVersion * @param pretty If \'true\', then the output is pretty printed. @@ -15396,7 +22039,7 @@ export class ObservableInternalApiserverV1alpha1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param body */ - public deleteCollectionStorageVersion(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteCollectionStorageVersionWithHttpInfo(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.deleteCollectionStorageVersion(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); // build promise chain @@ -15411,7 +22054,56 @@ export class ObservableInternalApiserverV1alpha1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionStorageVersion(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionStorageVersionWithHttpInfo(rsp))); + })); + } + + /** + * delete collection of StorageVersion + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionStorageVersion(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { + return this.deleteCollectionStorageVersionWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * delete a StorageVersion + * @param name name of the StorageVersion + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteStorageVersionWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.deleteStorageVersion(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + + // build promise chain + let middlewarePreObservable = from(requestContextPromise); + for (let middleware of this.configuration.middleware) { + middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); + } + + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + pipe(mergeMap((response: ResponseContext) => { + let middlewarePostObservable = of(response); + for (let middleware of this.configuration.middleware) { + middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); + } + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteStorageVersionWithHttpInfo(rsp))); })); } @@ -15426,7 +22118,14 @@ export class ObservableInternalApiserverV1alpha1Api { * @param body */ public deleteStorageVersion(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.deleteStorageVersion(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + return this.deleteStorageVersionWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * get available resources + */ + public getAPIResourcesWithHttpInfo(_options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.getAPIResources(_options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -15440,15 +22139,32 @@ export class ObservableInternalApiserverV1alpha1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteStorageVersion(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResourcesWithHttpInfo(rsp))); })); } /** * get available resources */ - public getAPIResources(_options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.getAPIResources(_options); + public getAPIResources(_options?: Configuration): Observable { + return this.getAPIResourcesWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * list or watch objects of kind StorageVersion + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.listStorageVersion(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -15462,7 +22178,7 @@ export class ObservableInternalApiserverV1alpha1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResources(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listStorageVersionWithHttpInfo(rsp))); })); } @@ -15480,22 +22196,7 @@ 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 listStorageVersion(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.listStorageVersion(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); - - // build promise chain - let middlewarePreObservable = from(requestContextPromise); - for (let middleware of this.configuration.middleware) { - middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); - } - - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). - pipe(mergeMap((response: ResponseContext) => { - let middlewarePostObservable = of(response); - for (let middleware of this.configuration.middleware) { - middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); - } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listStorageVersion(rsp))); - })); + return this.listStorageVersionWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } /** @@ -15507,7 +22208,7 @@ export class ObservableInternalApiserverV1alpha1Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). * @param force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + public patchStorageVersionWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.patchStorageVersion(name, body, pretty, dryRun, fieldManager, force, _options); // build promise chain @@ -15522,10 +22223,23 @@ export class ObservableInternalApiserverV1alpha1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchStorageVersion(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchStorageVersionWithHttpInfo(rsp))); })); } + /** + * partially update the specified StorageVersion + * @param name name of the StorageVersion + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + return this.patchStorageVersionWithHttpInfo(name, body, pretty, dryRun, fieldManager, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * partially update status of the specified StorageVersion * @param name name of the StorageVersion @@ -15535,7 +22249,7 @@ export class ObservableInternalApiserverV1alpha1Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). * @param force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + public patchStorageVersionStatusWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.patchStorageVersionStatus(name, body, pretty, dryRun, fieldManager, force, _options); // build promise chain @@ -15550,16 +22264,29 @@ export class ObservableInternalApiserverV1alpha1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchStorageVersionStatus(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchStorageVersionStatusWithHttpInfo(rsp))); })); } + /** + * partially update status of the specified StorageVersion + * @param name name of the StorageVersion + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + return this.patchStorageVersionStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * read the specified StorageVersion * @param name name of the StorageVersion * @param pretty If \'true\', then the output is pretty printed. */ - public readStorageVersion(name: string, pretty?: string, _options?: Configuration): Observable { + public readStorageVersionWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.readStorageVersion(name, pretty, _options); // build promise chain @@ -15574,16 +22301,25 @@ export class ObservableInternalApiserverV1alpha1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readStorageVersion(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readStorageVersionWithHttpInfo(rsp))); })); } + /** + * read the specified StorageVersion + * @param name name of the StorageVersion + * @param pretty If \'true\', then the output is pretty printed. + */ + public readStorageVersion(name: string, pretty?: string, _options?: Configuration): Observable { + return this.readStorageVersionWithHttpInfo(name, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * read status of the specified StorageVersion * @param name name of the StorageVersion * @param pretty If \'true\', then the output is pretty printed. */ - public readStorageVersionStatus(name: string, pretty?: string, _options?: Configuration): Observable { + public readStorageVersionStatusWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.readStorageVersionStatus(name, pretty, _options); // build promise chain @@ -15598,10 +22334,19 @@ export class ObservableInternalApiserverV1alpha1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readStorageVersionStatus(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readStorageVersionStatusWithHttpInfo(rsp))); })); } + /** + * read status of the specified StorageVersion + * @param name name of the StorageVersion + * @param pretty If \'true\', then the output is pretty printed. + */ + public readStorageVersionStatus(name: string, pretty?: string, _options?: Configuration): Observable { + return this.readStorageVersionStatusWithHttpInfo(name, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * replace the specified StorageVersion * @param name name of the StorageVersion @@ -15610,7 +22355,7 @@ export class ObservableInternalApiserverV1alpha1Api { * @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. */ - public replaceStorageVersion(name: string, body: V1alpha1StorageVersion, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public replaceStorageVersionWithHttpInfo(name: string, body: V1alpha1StorageVersion, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.replaceStorageVersion(name, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -15625,10 +22370,22 @@ export class ObservableInternalApiserverV1alpha1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceStorageVersion(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceStorageVersionWithHttpInfo(rsp))); })); } + /** + * replace the specified StorageVersion + * @param name name of the StorageVersion + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public replaceStorageVersion(name: string, body: V1alpha1StorageVersion, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.replaceStorageVersionWithHttpInfo(name, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * replace status of the specified StorageVersion * @param name name of the StorageVersion @@ -15637,7 +22394,7 @@ export class ObservableInternalApiserverV1alpha1Api { * @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. */ - public replaceStorageVersionStatus(name: string, body: V1alpha1StorageVersion, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public replaceStorageVersionStatusWithHttpInfo(name: string, body: V1alpha1StorageVersion, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.replaceStorageVersionStatus(name, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -15652,10 +22409,22 @@ export class ObservableInternalApiserverV1alpha1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceStorageVersionStatus(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceStorageVersionStatusWithHttpInfo(rsp))); })); } + /** + * replace status of the specified StorageVersion + * @param name name of the StorageVersion + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public replaceStorageVersionStatus(name: string, body: V1alpha1StorageVersion, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.replaceStorageVersionStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + } import { LogsApiRequestFactory, LogsApiResponseProcessor} from "../apis/LogsApi"; @@ -15677,7 +22446,7 @@ export class ObservableLogsApi { /** * @param logpath path to the log */ - public logFileHandler(logpath: string, _options?: Configuration): Observable { + public logFileHandlerWithHttpInfo(logpath: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.logFileHandler(logpath, _options); // build promise chain @@ -15692,13 +22461,20 @@ export class ObservableLogsApi { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.logFileHandler(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.logFileHandlerWithHttpInfo(rsp))); })); } + /** + * @param logpath path to the log + */ + public logFileHandler(logpath: string, _options?: Configuration): Observable { + return this.logFileHandlerWithHttpInfo(logpath, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** */ - public logFileListHandler(_options?: Configuration): Observable { + public logFileListHandlerWithHttpInfo(_options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.logFileListHandler(_options); // build promise chain @@ -15713,10 +22489,16 @@ export class ObservableLogsApi { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.logFileListHandler(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.logFileListHandlerWithHttpInfo(rsp))); })); } + /** + */ + public logFileListHandler(_options?: Configuration): Observable { + return this.logFileListHandlerWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + } import { NetworkingApiRequestFactory, NetworkingApiResponseProcessor} from "../apis/NetworkingApi"; @@ -15738,7 +22520,7 @@ export class ObservableNetworkingApi { /** * get information of a group */ - public getAPIGroup(_options?: Configuration): Observable { + public getAPIGroupWithHttpInfo(_options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.getAPIGroup(_options); // build promise chain @@ -15753,10 +22535,17 @@ export class ObservableNetworkingApi { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIGroup(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIGroupWithHttpInfo(rsp))); })); } + /** + * get information of a group + */ + public getAPIGroup(_options?: Configuration): Observable { + return this.getAPIGroupWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + } import { NetworkingV1ApiRequestFactory, NetworkingV1ApiResponseProcessor} from "../apis/NetworkingV1Api"; @@ -15782,7 +22571,7 @@ export class ObservableNetworkingV1Api { * @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. */ - public createIngressClass(body: V1IngressClass, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public createIngressClassWithHttpInfo(body: V1IngressClass, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.createIngressClass(body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -15797,10 +22586,21 @@ export class ObservableNetworkingV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createIngressClass(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createIngressClassWithHttpInfo(rsp))); })); } + /** + * create an IngressClass + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public createIngressClass(body: V1IngressClass, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.createIngressClassWithHttpInfo(body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * create an Ingress * @param namespace object name and auth scope, such as for teams and projects @@ -15809,7 +22609,7 @@ export class ObservableNetworkingV1Api { * @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. */ - public createNamespacedIngress(namespace: string, body: V1Ingress, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public createNamespacedIngressWithHttpInfo(namespace: string, body: V1Ingress, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.createNamespacedIngress(namespace, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -15824,7 +22624,46 @@ export class ObservableNetworkingV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedIngress(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedIngressWithHttpInfo(rsp))); + })); + } + + /** + * create an Ingress + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public createNamespacedIngress(namespace: string, body: V1Ingress, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.createNamespacedIngressWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * create a NetworkPolicy + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public createNamespacedNetworkPolicyWithHttpInfo(namespace: string, body: V1NetworkPolicy, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.createNamespacedNetworkPolicy(namespace, body, pretty, dryRun, fieldManager, _options); + + // build promise chain + let middlewarePreObservable = from(requestContextPromise); + for (let middleware of this.configuration.middleware) { + middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); + } + + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + pipe(mergeMap((response: ResponseContext) => { + let middlewarePostObservable = of(response); + for (let middleware of this.configuration.middleware) { + middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); + } + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedNetworkPolicyWithHttpInfo(rsp))); })); } @@ -15837,7 +22676,27 @@ export class ObservableNetworkingV1Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. */ public createNamespacedNetworkPolicy(namespace: string, body: V1NetworkPolicy, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.createNamespacedNetworkPolicy(namespace, body, pretty, dryRun, fieldManager, _options); + return this.createNamespacedNetworkPolicyWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * delete collection of IngressClass + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionIngressClassWithHttpInfo(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.deleteCollectionIngressClass(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -15851,7 +22710,7 @@ export class ObservableNetworkingV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedNetworkPolicy(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionIngressClassWithHttpInfo(rsp))); })); } @@ -15872,7 +22731,28 @@ export class ObservableNetworkingV1Api { * @param body */ public deleteCollectionIngressClass(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.deleteCollectionIngressClass(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + return this.deleteCollectionIngressClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * delete collection of Ingress + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionNamespacedIngressWithHttpInfo(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.deleteCollectionNamespacedIngress(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -15886,7 +22766,7 @@ export class ObservableNetworkingV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionIngressClass(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedIngressWithHttpInfo(rsp))); })); } @@ -15908,7 +22788,28 @@ export class ObservableNetworkingV1Api { * @param body */ public deleteCollectionNamespacedIngress(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.deleteCollectionNamespacedIngress(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + return this.deleteCollectionNamespacedIngressWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * delete collection of NetworkPolicy + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionNamespacedNetworkPolicyWithHttpInfo(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.deleteCollectionNamespacedNetworkPolicy(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -15922,7 +22823,7 @@ export class ObservableNetworkingV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedIngress(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedNetworkPolicyWithHttpInfo(rsp))); })); } @@ -15944,7 +22845,21 @@ export class ObservableNetworkingV1Api { * @param body */ public deleteCollectionNamespacedNetworkPolicy(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.deleteCollectionNamespacedNetworkPolicy(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + return this.deleteCollectionNamespacedNetworkPolicyWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * delete an IngressClass + * @param name name of the IngressClass + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteIngressClassWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.deleteIngressClass(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -15958,7 +22873,7 @@ export class ObservableNetworkingV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedNetworkPolicy(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteIngressClassWithHttpInfo(rsp))); })); } @@ -15973,7 +22888,22 @@ export class ObservableNetworkingV1Api { * @param body */ public deleteIngressClass(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.deleteIngressClass(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + return this.deleteIngressClassWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * delete an Ingress + * @param name name of the Ingress + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteNamespacedIngressWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.deleteNamespacedIngress(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -15987,13 +22917,28 @@ export class ObservableNetworkingV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteIngressClass(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedIngressWithHttpInfo(rsp))); })); } /** - * delete an Ingress - * @param name name of the Ingress + * delete an Ingress + * @param name name of the Ingress + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteNamespacedIngress(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + return this.deleteNamespacedIngressWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * delete a NetworkPolicy + * @param name name of the NetworkPolicy * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. * @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 @@ -16002,8 +22947,8 @@ export class ObservableNetworkingV1Api { * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. * @param body */ - public deleteNamespacedIngress(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.deleteNamespacedIngress(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedNetworkPolicyWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.deleteNamespacedNetworkPolicy(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -16017,7 +22962,7 @@ export class ObservableNetworkingV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedIngress(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedNetworkPolicyWithHttpInfo(rsp))); })); } @@ -16033,28 +22978,13 @@ export class ObservableNetworkingV1Api { * @param body */ public deleteNamespacedNetworkPolicy(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.deleteNamespacedNetworkPolicy(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); - - // build promise chain - let middlewarePreObservable = from(requestContextPromise); - for (let middleware of this.configuration.middleware) { - middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); - } - - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). - pipe(mergeMap((response: ResponseContext) => { - let middlewarePostObservable = of(response); - for (let middleware of this.configuration.middleware) { - middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); - } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedNetworkPolicy(rsp))); - })); + return this.deleteNamespacedNetworkPolicyWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } /** * get available resources */ - public getAPIResources(_options?: Configuration): Observable { + public getAPIResourcesWithHttpInfo(_options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.getAPIResources(_options); // build promise chain @@ -16069,10 +22999,17 @@ export class ObservableNetworkingV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResources(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResourcesWithHttpInfo(rsp))); })); } + /** + * get available resources + */ + public getAPIResources(_options?: Configuration): Observable { + return this.getAPIResourcesWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * list or watch objects of kind IngressClass * @param pretty If \'true\', then the output is pretty printed. @@ -16086,7 +23023,7 @@ export class ObservableNetworkingV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public listIngressClass(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listIngressClassWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.listIngressClass(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); // build promise chain @@ -16101,10 +23038,27 @@ export class ObservableNetworkingV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listIngressClass(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listIngressClassWithHttpInfo(rsp))); })); } + /** + * list or watch objects of kind IngressClass + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + return this.listIngressClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * list or watch objects of kind Ingress * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -16118,7 +23072,7 @@ export class ObservableNetworkingV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public listIngressForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listIngressForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.listIngressForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); // build promise chain @@ -16133,10 +23087,27 @@ export class ObservableNetworkingV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listIngressForAllNamespaces(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listIngressForAllNamespacesWithHttpInfo(rsp))); })); } + /** + * list or watch objects of kind Ingress + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + return this.listIngressForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * list or watch objects of kind Ingress * @param namespace object name and auth scope, such as for teams and projects @@ -16151,7 +23122,7 @@ export class ObservableNetworkingV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public listNamespacedIngress(namespace: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listNamespacedIngressWithHttpInfo(namespace: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.listNamespacedIngress(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); // build promise chain @@ -16166,10 +23137,28 @@ export class ObservableNetworkingV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedIngress(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedIngressWithHttpInfo(rsp))); })); } + /** + * list or watch objects of kind Ingress + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + return this.listNamespacedIngressWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * list or watch objects of kind NetworkPolicy * @param namespace object name and auth scope, such as for teams and projects @@ -16184,7 +23173,7 @@ export class ObservableNetworkingV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public listNamespacedNetworkPolicy(namespace: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listNamespacedNetworkPolicyWithHttpInfo(namespace: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.listNamespacedNetworkPolicy(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); // build promise chain @@ -16199,10 +23188,28 @@ export class ObservableNetworkingV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedNetworkPolicy(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedNetworkPolicyWithHttpInfo(rsp))); })); } + /** + * list or watch objects of kind NetworkPolicy + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + return this.listNamespacedNetworkPolicyWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * list or watch objects of kind NetworkPolicy * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -16216,7 +23223,7 @@ export class ObservableNetworkingV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public listNetworkPolicyForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listNetworkPolicyForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.listNetworkPolicyForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); // build promise chain @@ -16231,10 +23238,27 @@ export class ObservableNetworkingV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNetworkPolicyForAllNamespaces(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNetworkPolicyForAllNamespacesWithHttpInfo(rsp))); })); } + /** + * list or watch objects of kind NetworkPolicy + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + return this.listNetworkPolicyForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * partially update the specified IngressClass * @param name name of the IngressClass @@ -16244,7 +23268,7 @@ export class ObservableNetworkingV1Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). * @param force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + public patchIngressClassWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.patchIngressClass(name, body, pretty, dryRun, fieldManager, force, _options); // build promise chain @@ -16259,10 +23283,23 @@ export class ObservableNetworkingV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchIngressClass(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchIngressClassWithHttpInfo(rsp))); })); } + /** + * partially update the specified IngressClass + * @param name name of the IngressClass + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + return this.patchIngressClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * partially update the specified Ingress * @param name name of the Ingress @@ -16273,7 +23310,7 @@ export class ObservableNetworkingV1Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). * @param force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + public patchNamespacedIngressWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.patchNamespacedIngress(name, namespace, body, pretty, dryRun, fieldManager, force, _options); // build promise chain @@ -16288,10 +23325,24 @@ export class ObservableNetworkingV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedIngress(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedIngressWithHttpInfo(rsp))); })); } + /** + * partially update the specified Ingress + * @param name name of the Ingress + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + return this.patchNamespacedIngressWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * partially update status of the specified Ingress * @param name name of the Ingress @@ -16302,7 +23353,7 @@ export class ObservableNetworkingV1Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). * @param force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + public patchNamespacedIngressStatusWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.patchNamespacedIngressStatus(name, namespace, body, pretty, dryRun, fieldManager, force, _options); // build promise chain @@ -16317,10 +23368,24 @@ export class ObservableNetworkingV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedIngressStatus(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedIngressStatusWithHttpInfo(rsp))); })); } + /** + * partially update status of the specified Ingress + * @param name name of the Ingress + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + return this.patchNamespacedIngressStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * partially update the specified NetworkPolicy * @param name name of the NetworkPolicy @@ -16331,7 +23396,7 @@ export class ObservableNetworkingV1Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). * @param force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + public patchNamespacedNetworkPolicyWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.patchNamespacedNetworkPolicy(name, namespace, body, pretty, dryRun, fieldManager, force, _options); // build promise chain @@ -16346,16 +23411,30 @@ export class ObservableNetworkingV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedNetworkPolicy(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedNetworkPolicyWithHttpInfo(rsp))); })); } + /** + * partially update the specified NetworkPolicy + * @param name name of the NetworkPolicy + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + return this.patchNamespacedNetworkPolicyWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * read the specified IngressClass * @param name name of the IngressClass * @param pretty If \'true\', then the output is pretty printed. */ - public readIngressClass(name: string, pretty?: string, _options?: Configuration): Observable { + public readIngressClassWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.readIngressClass(name, pretty, _options); // build promise chain @@ -16370,17 +23449,26 @@ export class ObservableNetworkingV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readIngressClass(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readIngressClassWithHttpInfo(rsp))); })); } + /** + * read the specified IngressClass + * @param name name of the IngressClass + * @param pretty If \'true\', then the output is pretty printed. + */ + public readIngressClass(name: string, pretty?: string, _options?: Configuration): Observable { + return this.readIngressClassWithHttpInfo(name, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * read the specified Ingress * @param name name of the Ingress * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. */ - public readNamespacedIngress(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedIngressWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.readNamespacedIngress(name, namespace, pretty, _options); // build promise chain @@ -16395,17 +23483,27 @@ export class ObservableNetworkingV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedIngress(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedIngressWithHttpInfo(rsp))); })); } + /** + * read the specified Ingress + * @param name name of the Ingress + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + */ + public readNamespacedIngress(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + return this.readNamespacedIngressWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * read status of the specified Ingress * @param name name of the Ingress * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. */ - public readNamespacedIngressStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedIngressStatusWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.readNamespacedIngressStatus(name, namespace, pretty, _options); // build promise chain @@ -16420,17 +23518,27 @@ export class ObservableNetworkingV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedIngressStatus(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedIngressStatusWithHttpInfo(rsp))); })); } + /** + * read status of the specified Ingress + * @param name name of the Ingress + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + */ + public readNamespacedIngressStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + return this.readNamespacedIngressStatusWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * read the specified NetworkPolicy * @param name name of the NetworkPolicy * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. */ - public readNamespacedNetworkPolicy(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedNetworkPolicyWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.readNamespacedNetworkPolicy(name, namespace, pretty, _options); // build promise chain @@ -16445,10 +23553,20 @@ export class ObservableNetworkingV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedNetworkPolicy(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedNetworkPolicyWithHttpInfo(rsp))); })); } + /** + * read the specified NetworkPolicy + * @param name name of the NetworkPolicy + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + */ + public readNamespacedNetworkPolicy(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + return this.readNamespacedNetworkPolicyWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * replace the specified IngressClass * @param name name of the IngressClass @@ -16457,7 +23575,7 @@ export class ObservableNetworkingV1Api { * @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. */ - public replaceIngressClass(name: string, body: V1IngressClass, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public replaceIngressClassWithHttpInfo(name: string, body: V1IngressClass, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.replaceIngressClass(name, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -16472,10 +23590,22 @@ export class ObservableNetworkingV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceIngressClass(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceIngressClassWithHttpInfo(rsp))); })); } + /** + * replace the specified IngressClass + * @param name name of the IngressClass + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public replaceIngressClass(name: string, body: V1IngressClass, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.replaceIngressClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * replace the specified Ingress * @param name name of the Ingress @@ -16485,7 +23615,7 @@ export class ObservableNetworkingV1Api { * @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. */ - public replaceNamespacedIngress(name: string, namespace: string, body: V1Ingress, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public replaceNamespacedIngressWithHttpInfo(name: string, namespace: string, body: V1Ingress, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.replaceNamespacedIngress(name, namespace, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -16500,10 +23630,23 @@ export class ObservableNetworkingV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedIngress(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedIngressWithHttpInfo(rsp))); })); } + /** + * replace the specified Ingress + * @param name name of the Ingress + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public replaceNamespacedIngress(name: string, namespace: string, body: V1Ingress, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.replaceNamespacedIngressWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * replace status of the specified Ingress * @param name name of the Ingress @@ -16513,7 +23656,7 @@ export class ObservableNetworkingV1Api { * @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. */ - public replaceNamespacedIngressStatus(name: string, namespace: string, body: V1Ingress, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public replaceNamespacedIngressStatusWithHttpInfo(name: string, namespace: string, body: V1Ingress, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.replaceNamespacedIngressStatus(name, namespace, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -16528,10 +23671,23 @@ export class ObservableNetworkingV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedIngressStatus(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedIngressStatusWithHttpInfo(rsp))); })); } + /** + * replace status of the specified Ingress + * @param name name of the Ingress + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public replaceNamespacedIngressStatus(name: string, namespace: string, body: V1Ingress, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.replaceNamespacedIngressStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * replace the specified NetworkPolicy * @param name name of the NetworkPolicy @@ -16541,7 +23697,7 @@ export class ObservableNetworkingV1Api { * @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. */ - public replaceNamespacedNetworkPolicy(name: string, namespace: string, body: V1NetworkPolicy, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public replaceNamespacedNetworkPolicyWithHttpInfo(name: string, namespace: string, body: V1NetworkPolicy, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.replaceNamespacedNetworkPolicy(name, namespace, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -16556,10 +23712,23 @@ export class ObservableNetworkingV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedNetworkPolicy(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedNetworkPolicyWithHttpInfo(rsp))); })); } + /** + * replace the specified NetworkPolicy + * @param name name of the NetworkPolicy + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public replaceNamespacedNetworkPolicy(name: string, namespace: string, body: V1NetworkPolicy, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.replaceNamespacedNetworkPolicyWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + } import { NodeApiRequestFactory, NodeApiResponseProcessor} from "../apis/NodeApi"; @@ -16581,7 +23750,7 @@ export class ObservableNodeApi { /** * get information of a group */ - public getAPIGroup(_options?: Configuration): Observable { + public getAPIGroupWithHttpInfo(_options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.getAPIGroup(_options); // build promise chain @@ -16596,10 +23765,17 @@ export class ObservableNodeApi { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIGroup(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIGroupWithHttpInfo(rsp))); })); } + /** + * get information of a group + */ + public getAPIGroup(_options?: Configuration): Observable { + return this.getAPIGroupWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + } import { NodeV1ApiRequestFactory, NodeV1ApiResponseProcessor} from "../apis/NodeV1Api"; @@ -16625,7 +23801,7 @@ export class ObservableNodeV1Api { * @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. */ - public createRuntimeClass(body: V1RuntimeClass, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public createRuntimeClassWithHttpInfo(body: V1RuntimeClass, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.createRuntimeClass(body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -16640,10 +23816,21 @@ export class ObservableNodeV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createRuntimeClass(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createRuntimeClassWithHttpInfo(rsp))); })); } + /** + * create a RuntimeClass + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public createRuntimeClass(body: V1RuntimeClass, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.createRuntimeClassWithHttpInfo(body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * delete collection of RuntimeClass * @param pretty If \'true\', then the output is pretty printed. @@ -16660,7 +23847,7 @@ export class ObservableNodeV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param body */ - public deleteCollectionRuntimeClass(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteCollectionRuntimeClassWithHttpInfo(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.deleteCollectionRuntimeClass(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); // build promise chain @@ -16675,10 +23862,30 @@ export class ObservableNodeV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionRuntimeClass(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionRuntimeClassWithHttpInfo(rsp))); })); } + /** + * delete collection of RuntimeClass + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionRuntimeClass(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { + return this.deleteCollectionRuntimeClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * delete a RuntimeClass * @param name name of the RuntimeClass @@ -16689,7 +23896,7 @@ export class ObservableNodeV1Api { * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. * @param body */ - public deleteRuntimeClass(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteRuntimeClassWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.deleteRuntimeClass(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); // build promise chain @@ -16704,14 +23911,28 @@ export class ObservableNodeV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteRuntimeClass(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteRuntimeClassWithHttpInfo(rsp))); })); } + /** + * delete a RuntimeClass + * @param name name of the RuntimeClass + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteRuntimeClass(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + return this.deleteRuntimeClassWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * get available resources */ - public getAPIResources(_options?: Configuration): Observable { + public getAPIResourcesWithHttpInfo(_options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.getAPIResources(_options); // build promise chain @@ -16726,10 +23947,17 @@ export class ObservableNodeV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResources(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResourcesWithHttpInfo(rsp))); })); } + /** + * get available resources + */ + public getAPIResources(_options?: Configuration): Observable { + return this.getAPIResourcesWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * list or watch objects of kind RuntimeClass * @param pretty If \'true\', then the output is pretty printed. @@ -16743,7 +23971,7 @@ export class ObservableNodeV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public listRuntimeClass(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listRuntimeClassWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.listRuntimeClass(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); // build promise chain @@ -16758,10 +23986,27 @@ export class ObservableNodeV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listRuntimeClass(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listRuntimeClassWithHttpInfo(rsp))); })); } + /** + * list or watch objects of kind RuntimeClass + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + return this.listRuntimeClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * partially update the specified RuntimeClass * @param name name of the RuntimeClass @@ -16771,7 +24016,7 @@ export class ObservableNodeV1Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). * @param force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + public patchRuntimeClassWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.patchRuntimeClass(name, body, pretty, dryRun, fieldManager, force, _options); // build promise chain @@ -16786,16 +24031,29 @@ export class ObservableNodeV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchRuntimeClass(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchRuntimeClassWithHttpInfo(rsp))); })); } + /** + * partially update the specified RuntimeClass + * @param name name of the RuntimeClass + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + return this.patchRuntimeClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * read the specified RuntimeClass * @param name name of the RuntimeClass * @param pretty If \'true\', then the output is pretty printed. */ - public readRuntimeClass(name: string, pretty?: string, _options?: Configuration): Observable { + public readRuntimeClassWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.readRuntimeClass(name, pretty, _options); // build promise chain @@ -16810,10 +24068,19 @@ export class ObservableNodeV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readRuntimeClass(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readRuntimeClassWithHttpInfo(rsp))); })); } + /** + * read the specified RuntimeClass + * @param name name of the RuntimeClass + * @param pretty If \'true\', then the output is pretty printed. + */ + public readRuntimeClass(name: string, pretty?: string, _options?: Configuration): Observable { + return this.readRuntimeClassWithHttpInfo(name, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * replace the specified RuntimeClass * @param name name of the RuntimeClass @@ -16822,7 +24089,7 @@ export class ObservableNodeV1Api { * @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. */ - public replaceRuntimeClass(name: string, body: V1RuntimeClass, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public replaceRuntimeClassWithHttpInfo(name: string, body: V1RuntimeClass, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.replaceRuntimeClass(name, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -16837,10 +24104,22 @@ export class ObservableNodeV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceRuntimeClass(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceRuntimeClassWithHttpInfo(rsp))); })); } + /** + * replace the specified RuntimeClass + * @param name name of the RuntimeClass + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public replaceRuntimeClass(name: string, body: V1RuntimeClass, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.replaceRuntimeClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + } import { NodeV1alpha1ApiRequestFactory, NodeV1alpha1ApiResponseProcessor} from "../apis/NodeV1alpha1Api"; @@ -16866,7 +24145,7 @@ export class ObservableNodeV1alpha1Api { * @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. */ - public createRuntimeClass(body: V1alpha1RuntimeClass, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public createRuntimeClassWithHttpInfo(body: V1alpha1RuntimeClass, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.createRuntimeClass(body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -16881,10 +24160,21 @@ export class ObservableNodeV1alpha1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createRuntimeClass(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createRuntimeClassWithHttpInfo(rsp))); })); } + /** + * create a RuntimeClass + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public createRuntimeClass(body: V1alpha1RuntimeClass, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.createRuntimeClassWithHttpInfo(body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * delete collection of RuntimeClass * @param pretty If \'true\', then the output is pretty printed. @@ -16901,7 +24191,7 @@ export class ObservableNodeV1alpha1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param body */ - public deleteCollectionRuntimeClass(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteCollectionRuntimeClassWithHttpInfo(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.deleteCollectionRuntimeClass(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); // build promise chain @@ -16916,10 +24206,30 @@ export class ObservableNodeV1alpha1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionRuntimeClass(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionRuntimeClassWithHttpInfo(rsp))); })); } + /** + * delete collection of RuntimeClass + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionRuntimeClass(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { + return this.deleteCollectionRuntimeClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * delete a RuntimeClass * @param name name of the RuntimeClass @@ -16930,7 +24240,7 @@ export class ObservableNodeV1alpha1Api { * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. * @param body */ - public deleteRuntimeClass(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteRuntimeClassWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.deleteRuntimeClass(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); // build promise chain @@ -16945,14 +24255,28 @@ export class ObservableNodeV1alpha1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteRuntimeClass(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteRuntimeClassWithHttpInfo(rsp))); })); } + /** + * delete a RuntimeClass + * @param name name of the RuntimeClass + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteRuntimeClass(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + return this.deleteRuntimeClassWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * get available resources */ - public getAPIResources(_options?: Configuration): Observable { + public getAPIResourcesWithHttpInfo(_options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.getAPIResources(_options); // build promise chain @@ -16967,10 +24291,17 @@ export class ObservableNodeV1alpha1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResources(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResourcesWithHttpInfo(rsp))); })); } + /** + * get available resources + */ + public getAPIResources(_options?: Configuration): Observable { + return this.getAPIResourcesWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * list or watch objects of kind RuntimeClass * @param pretty If \'true\', then the output is pretty printed. @@ -16984,7 +24315,7 @@ export class ObservableNodeV1alpha1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listRuntimeClassWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.listRuntimeClass(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); // build promise chain @@ -16999,10 +24330,27 @@ export class ObservableNodeV1alpha1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listRuntimeClass(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listRuntimeClassWithHttpInfo(rsp))); })); } + /** + * list or watch objects of kind RuntimeClass + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + return this.listRuntimeClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * partially update the specified RuntimeClass * @param name name of the RuntimeClass @@ -17012,7 +24360,7 @@ export class ObservableNodeV1alpha1Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + public patchRuntimeClassWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.patchRuntimeClass(name, body, pretty, dryRun, fieldManager, force, _options); // build promise chain @@ -17027,16 +24375,29 @@ export class ObservableNodeV1alpha1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchRuntimeClass(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchRuntimeClassWithHttpInfo(rsp))); })); } + /** + * partially update the specified RuntimeClass + * @param name name of the RuntimeClass + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + return this.patchRuntimeClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * read the specified RuntimeClass * @param name name of the RuntimeClass * @param pretty If \'true\', then the output is pretty printed. */ - public readRuntimeClass(name: string, pretty?: string, _options?: Configuration): Observable { + public readRuntimeClassWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.readRuntimeClass(name, pretty, _options); // build promise chain @@ -17051,10 +24412,19 @@ export class ObservableNodeV1alpha1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readRuntimeClass(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readRuntimeClassWithHttpInfo(rsp))); })); } + /** + * read the specified RuntimeClass + * @param name name of the RuntimeClass + * @param pretty If \'true\', then the output is pretty printed. + */ + public readRuntimeClass(name: string, pretty?: string, _options?: Configuration): Observable { + return this.readRuntimeClassWithHttpInfo(name, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * replace the specified RuntimeClass * @param name name of the RuntimeClass @@ -17063,7 +24433,7 @@ export class ObservableNodeV1alpha1Api { * @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. */ - public replaceRuntimeClass(name: string, body: V1alpha1RuntimeClass, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public replaceRuntimeClassWithHttpInfo(name: string, body: V1alpha1RuntimeClass, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.replaceRuntimeClass(name, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -17078,10 +24448,22 @@ export class ObservableNodeV1alpha1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceRuntimeClass(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceRuntimeClassWithHttpInfo(rsp))); })); } + /** + * replace the specified RuntimeClass + * @param name name of the RuntimeClass + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public replaceRuntimeClass(name: string, body: V1alpha1RuntimeClass, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.replaceRuntimeClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + } import { NodeV1beta1ApiRequestFactory, NodeV1beta1ApiResponseProcessor} from "../apis/NodeV1beta1Api"; @@ -17107,7 +24489,7 @@ export class ObservableNodeV1beta1Api { * @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. */ - public createRuntimeClass(body: V1beta1RuntimeClass, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public createRuntimeClassWithHttpInfo(body: V1beta1RuntimeClass, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.createRuntimeClass(body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -17122,10 +24504,21 @@ export class ObservableNodeV1beta1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createRuntimeClass(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createRuntimeClassWithHttpInfo(rsp))); })); } + /** + * create a RuntimeClass + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public createRuntimeClass(body: V1beta1RuntimeClass, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.createRuntimeClassWithHttpInfo(body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * delete collection of RuntimeClass * @param pretty If \'true\', then the output is pretty printed. @@ -17142,7 +24535,7 @@ export class ObservableNodeV1beta1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param body */ - public deleteCollectionRuntimeClass(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteCollectionRuntimeClassWithHttpInfo(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.deleteCollectionRuntimeClass(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); // build promise chain @@ -17157,10 +24550,30 @@ export class ObservableNodeV1beta1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionRuntimeClass(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionRuntimeClassWithHttpInfo(rsp))); })); } + /** + * delete collection of RuntimeClass + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionRuntimeClass(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { + return this.deleteCollectionRuntimeClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * delete a RuntimeClass * @param name name of the RuntimeClass @@ -17171,7 +24584,7 @@ export class ObservableNodeV1beta1Api { * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. * @param body */ - public deleteRuntimeClass(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteRuntimeClassWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.deleteRuntimeClass(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); // build promise chain @@ -17186,14 +24599,28 @@ export class ObservableNodeV1beta1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteRuntimeClass(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteRuntimeClassWithHttpInfo(rsp))); })); } + /** + * delete a RuntimeClass + * @param name name of the RuntimeClass + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteRuntimeClass(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + return this.deleteRuntimeClassWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * get available resources */ - public getAPIResources(_options?: Configuration): Observable { + public getAPIResourcesWithHttpInfo(_options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.getAPIResources(_options); // build promise chain @@ -17208,10 +24635,17 @@ export class ObservableNodeV1beta1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResources(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResourcesWithHttpInfo(rsp))); })); } + /** + * get available resources + */ + public getAPIResources(_options?: Configuration): Observable { + return this.getAPIResourcesWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * list or watch objects of kind RuntimeClass * @param pretty If \'true\', then the output is pretty printed. @@ -17225,7 +24659,7 @@ export class ObservableNodeV1beta1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listRuntimeClassWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.listRuntimeClass(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); // build promise chain @@ -17240,10 +24674,27 @@ export class ObservableNodeV1beta1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listRuntimeClass(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listRuntimeClassWithHttpInfo(rsp))); })); } + /** + * list or watch objects of kind RuntimeClass + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + return this.listRuntimeClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * partially update the specified RuntimeClass * @param name name of the RuntimeClass @@ -17253,7 +24704,7 @@ export class ObservableNodeV1beta1Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + public patchRuntimeClassWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.patchRuntimeClass(name, body, pretty, dryRun, fieldManager, force, _options); // build promise chain @@ -17268,16 +24719,29 @@ export class ObservableNodeV1beta1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchRuntimeClass(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchRuntimeClassWithHttpInfo(rsp))); })); } + /** + * partially update the specified RuntimeClass + * @param name name of the RuntimeClass + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + return this.patchRuntimeClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * read the specified RuntimeClass * @param name name of the RuntimeClass * @param pretty If \'true\', then the output is pretty printed. */ - public readRuntimeClass(name: string, pretty?: string, _options?: Configuration): Observable { + public readRuntimeClassWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.readRuntimeClass(name, pretty, _options); // build promise chain @@ -17292,10 +24756,19 @@ export class ObservableNodeV1beta1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readRuntimeClass(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readRuntimeClassWithHttpInfo(rsp))); })); } + /** + * read the specified RuntimeClass + * @param name name of the RuntimeClass + * @param pretty If \'true\', then the output is pretty printed. + */ + public readRuntimeClass(name: string, pretty?: string, _options?: Configuration): Observable { + return this.readRuntimeClassWithHttpInfo(name, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * replace the specified RuntimeClass * @param name name of the RuntimeClass @@ -17304,7 +24777,7 @@ export class ObservableNodeV1beta1Api { * @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. */ - public replaceRuntimeClass(name: string, body: V1beta1RuntimeClass, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public replaceRuntimeClassWithHttpInfo(name: string, body: V1beta1RuntimeClass, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.replaceRuntimeClass(name, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -17319,10 +24792,22 @@ export class ObservableNodeV1beta1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceRuntimeClass(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceRuntimeClassWithHttpInfo(rsp))); })); } + /** + * replace the specified RuntimeClass + * @param name name of the RuntimeClass + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public replaceRuntimeClass(name: string, body: V1beta1RuntimeClass, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.replaceRuntimeClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + } import { OpenidApiRequestFactory, OpenidApiResponseProcessor} from "../apis/OpenidApi"; @@ -17344,7 +24829,7 @@ export class ObservableOpenidApi { /** * get service account issuer OpenID JSON Web Key Set (contains public token verification keys) */ - public getServiceAccountIssuerOpenIDKeyset(_options?: Configuration): Observable { + public getServiceAccountIssuerOpenIDKeysetWithHttpInfo(_options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.getServiceAccountIssuerOpenIDKeyset(_options); // build promise chain @@ -17359,10 +24844,17 @@ export class ObservableOpenidApi { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getServiceAccountIssuerOpenIDKeyset(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getServiceAccountIssuerOpenIDKeysetWithHttpInfo(rsp))); })); } + /** + * get service account issuer OpenID JSON Web Key Set (contains public token verification keys) + */ + public getServiceAccountIssuerOpenIDKeyset(_options?: Configuration): Observable { + return this.getServiceAccountIssuerOpenIDKeysetWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + } import { PolicyApiRequestFactory, PolicyApiResponseProcessor} from "../apis/PolicyApi"; @@ -17384,7 +24876,7 @@ export class ObservablePolicyApi { /** * get information of a group */ - public getAPIGroup(_options?: Configuration): Observable { + public getAPIGroupWithHttpInfo(_options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.getAPIGroup(_options); // build promise chain @@ -17399,10 +24891,17 @@ export class ObservablePolicyApi { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIGroup(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIGroupWithHttpInfo(rsp))); })); } + /** + * get information of a group + */ + public getAPIGroup(_options?: Configuration): Observable { + return this.getAPIGroupWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + } import { PolicyV1ApiRequestFactory, PolicyV1ApiResponseProcessor} from "../apis/PolicyV1Api"; @@ -17429,7 +24928,7 @@ export class ObservablePolicyV1Api { * @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. */ - public createNamespacedPodDisruptionBudget(namespace: string, body: V1PodDisruptionBudget, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public createNamespacedPodDisruptionBudgetWithHttpInfo(namespace: string, body: V1PodDisruptionBudget, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.createNamespacedPodDisruptionBudget(namespace, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -17444,10 +24943,22 @@ export class ObservablePolicyV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedPodDisruptionBudget(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedPodDisruptionBudgetWithHttpInfo(rsp))); })); } + /** + * create a PodDisruptionBudget + * @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. + * @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. + */ + public createNamespacedPodDisruptionBudget(namespace: string, body: V1PodDisruptionBudget, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.createNamespacedPodDisruptionBudgetWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * delete collection of PodDisruptionBudget * @param namespace object name and auth scope, such as for teams and projects @@ -17465,7 +24976,7 @@ export class ObservablePolicyV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param body */ - public deleteCollectionNamespacedPodDisruptionBudget(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteCollectionNamespacedPodDisruptionBudgetWithHttpInfo(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.deleteCollectionNamespacedPodDisruptionBudget(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); // build promise chain @@ -17480,10 +24991,31 @@ export class ObservablePolicyV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedPodDisruptionBudget(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedPodDisruptionBudgetWithHttpInfo(rsp))); })); } + /** + * delete collection of PodDisruptionBudget + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionNamespacedPodDisruptionBudget(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { + return this.deleteCollectionNamespacedPodDisruptionBudgetWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * delete a PodDisruptionBudget * @param name name of the PodDisruptionBudget @@ -17495,7 +25027,7 @@ export class ObservablePolicyV1Api { * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. * @param body */ - public deleteNamespacedPodDisruptionBudget(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteNamespacedPodDisruptionBudgetWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.deleteNamespacedPodDisruptionBudget(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); // build promise chain @@ -17510,7 +25042,44 @@ export class ObservablePolicyV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedPodDisruptionBudget(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedPodDisruptionBudgetWithHttpInfo(rsp))); + })); + } + + /** + * delete a PodDisruptionBudget + * @param name name of the PodDisruptionBudget + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteNamespacedPodDisruptionBudget(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + return this.deleteNamespacedPodDisruptionBudgetWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * get available resources + */ + public getAPIResourcesWithHttpInfo(_options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.getAPIResources(_options); + + // build promise chain + let middlewarePreObservable = from(requestContextPromise); + for (let middleware of this.configuration.middleware) { + middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); + } + + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + pipe(mergeMap((response: ResponseContext) => { + let middlewarePostObservable = of(response); + for (let middleware of this.configuration.middleware) { + middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); + } + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResourcesWithHttpInfo(rsp))); })); } @@ -17518,7 +25087,25 @@ export class ObservablePolicyV1Api { * get available resources */ public getAPIResources(_options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.getAPIResources(_options); + return this.getAPIResourcesWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * list or watch objects of kind PodDisruptionBudget + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.listNamespacedPodDisruptionBudget(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -17532,7 +25119,7 @@ export class ObservablePolicyV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResources(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedPodDisruptionBudgetWithHttpInfo(rsp))); })); } @@ -17551,7 +25138,24 @@ 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 listNamespacedPodDisruptionBudget(namespace: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.listNamespacedPodDisruptionBudget(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return this.listNamespacedPodDisruptionBudgetWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * list or watch objects of kind PodDisruptionBudget + * @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. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.listPodDisruptionBudgetForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -17565,7 +25169,7 @@ export class ObservablePolicyV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedPodDisruptionBudget(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listPodDisruptionBudgetForAllNamespacesWithHttpInfo(rsp))); })); } @@ -17583,7 +25187,21 @@ 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 listPodDisruptionBudgetForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.listPodDisruptionBudgetForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return this.listPodDisruptionBudgetForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * partially update the specified PodDisruptionBudget + * @param name name of the PodDisruptionBudget + * @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. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.patchNamespacedPodDisruptionBudget(name, namespace, body, pretty, dryRun, fieldManager, force, _options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -17597,7 +25215,7 @@ export class ObservablePolicyV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listPodDisruptionBudgetForAllNamespaces(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedPodDisruptionBudgetWithHttpInfo(rsp))); })); } @@ -17612,7 +25230,21 @@ 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 patchNamespacedPodDisruptionBudget(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.patchNamespacedPodDisruptionBudget(name, namespace, body, pretty, dryRun, fieldManager, force, _options); + return this.patchNamespacedPodDisruptionBudgetWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * partially update status of the specified PodDisruptionBudget + * @param name name of the PodDisruptionBudget + * @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. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.patchNamespacedPodDisruptionBudgetStatus(name, namespace, body, pretty, dryRun, fieldManager, force, _options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -17626,7 +25258,7 @@ export class ObservablePolicyV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedPodDisruptionBudget(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedPodDisruptionBudgetStatusWithHttpInfo(rsp))); })); } @@ -17641,7 +25273,17 @@ 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 patchNamespacedPodDisruptionBudgetStatus(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.patchNamespacedPodDisruptionBudgetStatus(name, namespace, body, pretty, dryRun, fieldManager, force, _options); + return this.patchNamespacedPodDisruptionBudgetStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * read the specified PodDisruptionBudget + * @param name name of the PodDisruptionBudget + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + */ + public readNamespacedPodDisruptionBudgetWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.readNamespacedPodDisruptionBudget(name, namespace, pretty, _options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -17655,7 +25297,7 @@ export class ObservablePolicyV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedPodDisruptionBudgetStatus(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedPodDisruptionBudgetWithHttpInfo(rsp))); })); } @@ -17666,7 +25308,17 @@ export class ObservablePolicyV1Api { * @param pretty If \'true\', then the output is pretty printed. */ public readNamespacedPodDisruptionBudget(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.readNamespacedPodDisruptionBudget(name, namespace, pretty, _options); + return this.readNamespacedPodDisruptionBudgetWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * read status of the specified PodDisruptionBudget + * @param name name of the PodDisruptionBudget + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + */ + public readNamespacedPodDisruptionBudgetStatusWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.readNamespacedPodDisruptionBudgetStatus(name, namespace, pretty, _options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -17680,7 +25332,7 @@ export class ObservablePolicyV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedPodDisruptionBudget(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedPodDisruptionBudgetStatusWithHttpInfo(rsp))); })); } @@ -17691,7 +25343,20 @@ export class ObservablePolicyV1Api { * @param pretty If \'true\', then the output is pretty printed. */ public readNamespacedPodDisruptionBudgetStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.readNamespacedPodDisruptionBudgetStatus(name, namespace, pretty, _options); + return this.readNamespacedPodDisruptionBudgetStatusWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * replace the specified PodDisruptionBudget + * @param name name of the PodDisruptionBudget + * @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. + * @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. + */ + public replaceNamespacedPodDisruptionBudgetWithHttpInfo(name: string, namespace: string, body: V1PodDisruptionBudget, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.replaceNamespacedPodDisruptionBudget(name, namespace, body, pretty, dryRun, fieldManager, _options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -17705,12 +25370,25 @@ export class ObservablePolicyV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedPodDisruptionBudgetStatus(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedPodDisruptionBudgetWithHttpInfo(rsp))); })); } /** - * replace the specified PodDisruptionBudget + * replace the specified PodDisruptionBudget + * @param name name of the PodDisruptionBudget + * @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. + * @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. + */ + public replaceNamespacedPodDisruptionBudget(name: string, namespace: string, body: V1PodDisruptionBudget, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.replaceNamespacedPodDisruptionBudgetWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * replace status of the specified PodDisruptionBudget * @param name name of the PodDisruptionBudget * @param namespace object name and auth scope, such as for teams and projects * @param body @@ -17718,8 +25396,8 @@ export class ObservablePolicyV1Api { * @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. */ - public replaceNamespacedPodDisruptionBudget(name: string, namespace: string, body: V1PodDisruptionBudget, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.replaceNamespacedPodDisruptionBudget(name, namespace, body, pretty, dryRun, fieldManager, _options); + public replaceNamespacedPodDisruptionBudgetStatusWithHttpInfo(name: string, namespace: string, body: V1PodDisruptionBudget, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.replaceNamespacedPodDisruptionBudgetStatus(name, namespace, body, pretty, dryRun, fieldManager, _options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -17733,7 +25411,7 @@ export class ObservablePolicyV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedPodDisruptionBudget(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedPodDisruptionBudgetStatusWithHttpInfo(rsp))); })); } @@ -17747,22 +25425,7 @@ export class ObservablePolicyV1Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. */ public replaceNamespacedPodDisruptionBudgetStatus(name: string, namespace: string, body: V1PodDisruptionBudget, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.replaceNamespacedPodDisruptionBudgetStatus(name, namespace, body, pretty, dryRun, fieldManager, _options); - - // build promise chain - let middlewarePreObservable = from(requestContextPromise); - for (let middleware of this.configuration.middleware) { - middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); - } - - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). - pipe(mergeMap((response: ResponseContext) => { - let middlewarePostObservable = of(response); - for (let middleware of this.configuration.middleware) { - middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); - } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedPodDisruptionBudgetStatus(rsp))); - })); + return this.replaceNamespacedPodDisruptionBudgetStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } } @@ -17791,7 +25454,7 @@ export class ObservablePolicyV1beta1Api { * @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. */ - public createNamespacedPodDisruptionBudget(namespace: string, body: V1beta1PodDisruptionBudget, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public createNamespacedPodDisruptionBudgetWithHttpInfo(namespace: string, body: V1beta1PodDisruptionBudget, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.createNamespacedPodDisruptionBudget(namespace, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -17806,10 +25469,22 @@ export class ObservablePolicyV1beta1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedPodDisruptionBudget(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedPodDisruptionBudgetWithHttpInfo(rsp))); })); } + /** + * create a PodDisruptionBudget + * @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. + * @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. + */ + public createNamespacedPodDisruptionBudget(namespace: string, body: V1beta1PodDisruptionBudget, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.createNamespacedPodDisruptionBudgetWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * create a PodSecurityPolicy * @param body @@ -17817,7 +25492,7 @@ export class ObservablePolicyV1beta1Api { * @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. */ - public createPodSecurityPolicy(body: V1beta1PodSecurityPolicy, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public createPodSecurityPolicyWithHttpInfo(body: V1beta1PodSecurityPolicy, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.createPodSecurityPolicy(body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -17832,10 +25507,21 @@ export class ObservablePolicyV1beta1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createPodSecurityPolicy(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createPodSecurityPolicyWithHttpInfo(rsp))); })); } + /** + * create a PodSecurityPolicy + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public createPodSecurityPolicy(body: V1beta1PodSecurityPolicy, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.createPodSecurityPolicyWithHttpInfo(body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * delete collection of PodDisruptionBudget * @param namespace object name and auth scope, such as for teams and projects @@ -17853,7 +25539,7 @@ export class ObservablePolicyV1beta1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param body */ - public deleteCollectionNamespacedPodDisruptionBudget(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteCollectionNamespacedPodDisruptionBudgetWithHttpInfo(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.deleteCollectionNamespacedPodDisruptionBudget(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); // build promise chain @@ -17868,10 +25554,31 @@ export class ObservablePolicyV1beta1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedPodDisruptionBudget(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedPodDisruptionBudgetWithHttpInfo(rsp))); })); } + /** + * delete collection of PodDisruptionBudget + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionNamespacedPodDisruptionBudget(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { + return this.deleteCollectionNamespacedPodDisruptionBudgetWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * delete collection of PodSecurityPolicy * @param pretty If \'true\', then the output is pretty printed. @@ -17888,7 +25595,7 @@ export class ObservablePolicyV1beta1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param body */ - public deleteCollectionPodSecurityPolicy(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteCollectionPodSecurityPolicyWithHttpInfo(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.deleteCollectionPodSecurityPolicy(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); // build promise chain @@ -17903,10 +25610,30 @@ export class ObservablePolicyV1beta1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionPodSecurityPolicy(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionPodSecurityPolicyWithHttpInfo(rsp))); })); } + /** + * delete collection of PodSecurityPolicy + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionPodSecurityPolicy(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { + return this.deleteCollectionPodSecurityPolicyWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * delete a PodDisruptionBudget * @param name name of the PodDisruptionBudget @@ -17918,7 +25645,7 @@ export class ObservablePolicyV1beta1Api { * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. * @param body */ - public deleteNamespacedPodDisruptionBudget(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteNamespacedPodDisruptionBudgetWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.deleteNamespacedPodDisruptionBudget(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); // build promise chain @@ -17933,10 +25660,25 @@ export class ObservablePolicyV1beta1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedPodDisruptionBudget(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedPodDisruptionBudgetWithHttpInfo(rsp))); })); } + /** + * delete a PodDisruptionBudget + * @param name name of the PodDisruptionBudget + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteNamespacedPodDisruptionBudget(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + return this.deleteNamespacedPodDisruptionBudgetWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * delete a PodSecurityPolicy * @param name name of the PodSecurityPolicy @@ -17947,7 +25689,7 @@ export class ObservablePolicyV1beta1Api { * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. * @param body */ - public deletePodSecurityPolicy(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deletePodSecurityPolicyWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.deletePodSecurityPolicy(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); // build promise chain @@ -17962,14 +25704,28 @@ export class ObservablePolicyV1beta1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deletePodSecurityPolicy(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deletePodSecurityPolicyWithHttpInfo(rsp))); })); } + /** + * delete a PodSecurityPolicy + * @param name name of the PodSecurityPolicy + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deletePodSecurityPolicy(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + return this.deletePodSecurityPolicyWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * get available resources */ - public getAPIResources(_options?: Configuration): Observable { + public getAPIResourcesWithHttpInfo(_options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.getAPIResources(_options); // build promise chain @@ -17984,10 +25740,17 @@ export class ObservablePolicyV1beta1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResources(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResourcesWithHttpInfo(rsp))); })); } + /** + * get available resources + */ + public getAPIResources(_options?: Configuration): Observable { + return this.getAPIResourcesWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * list or watch objects of kind PodDisruptionBudget * @param namespace object name and auth scope, such as for teams and projects @@ -18002,7 +25765,7 @@ export class ObservablePolicyV1beta1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listNamespacedPodDisruptionBudgetWithHttpInfo(namespace: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.listNamespacedPodDisruptionBudget(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); // build promise chain @@ -18017,10 +25780,28 @@ export class ObservablePolicyV1beta1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedPodDisruptionBudget(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedPodDisruptionBudgetWithHttpInfo(rsp))); })); } + /** + * list or watch objects of kind PodDisruptionBudget + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + return this.listNamespacedPodDisruptionBudgetWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * list or watch objects of kind PodDisruptionBudget * @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. @@ -18034,7 +25815,7 @@ export class ObservablePolicyV1beta1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listPodDisruptionBudgetForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.listPodDisruptionBudgetForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); // build promise chain @@ -18049,10 +25830,27 @@ export class ObservablePolicyV1beta1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listPodDisruptionBudgetForAllNamespaces(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listPodDisruptionBudgetForAllNamespacesWithHttpInfo(rsp))); })); } + /** + * list or watch objects of kind PodDisruptionBudget + * @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. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + return this.listPodDisruptionBudgetForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * list or watch objects of kind PodSecurityPolicy * @param pretty If \'true\', then the output is pretty printed. @@ -18066,7 +25864,7 @@ export class ObservablePolicyV1beta1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public listPodSecurityPolicy(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listPodSecurityPolicyWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.listPodSecurityPolicy(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); // build promise chain @@ -18081,10 +25879,27 @@ export class ObservablePolicyV1beta1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listPodSecurityPolicy(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listPodSecurityPolicyWithHttpInfo(rsp))); })); } + /** + * list or watch objects of kind PodSecurityPolicy + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public listPodSecurityPolicy(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + return this.listPodSecurityPolicyWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * partially update the specified PodDisruptionBudget * @param name name of the PodDisruptionBudget @@ -18095,7 +25910,7 @@ export class ObservablePolicyV1beta1Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + public patchNamespacedPodDisruptionBudgetWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.patchNamespacedPodDisruptionBudget(name, namespace, body, pretty, dryRun, fieldManager, force, _options); // build promise chain @@ -18110,10 +25925,24 @@ export class ObservablePolicyV1beta1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedPodDisruptionBudget(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedPodDisruptionBudgetWithHttpInfo(rsp))); })); } + /** + * partially update the specified PodDisruptionBudget + * @param name name of the PodDisruptionBudget + * @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. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + return this.patchNamespacedPodDisruptionBudgetWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * partially update status of the specified PodDisruptionBudget * @param name name of the PodDisruptionBudget @@ -18124,7 +25953,7 @@ export class ObservablePolicyV1beta1Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + public patchNamespacedPodDisruptionBudgetStatusWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.patchNamespacedPodDisruptionBudgetStatus(name, namespace, body, pretty, dryRun, fieldManager, force, _options); // build promise chain @@ -18139,10 +25968,24 @@ export class ObservablePolicyV1beta1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedPodDisruptionBudgetStatus(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedPodDisruptionBudgetStatusWithHttpInfo(rsp))); })); } + /** + * partially update status of the specified PodDisruptionBudget + * @param name name of the PodDisruptionBudget + * @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. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + return this.patchNamespacedPodDisruptionBudgetStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * partially update the specified PodSecurityPolicy * @param name name of the PodSecurityPolicy @@ -18152,7 +25995,7 @@ export class ObservablePolicyV1beta1Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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 force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. */ - public patchPodSecurityPolicy(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable { + public patchPodSecurityPolicyWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.patchPodSecurityPolicy(name, body, pretty, dryRun, fieldManager, force, _options); // build promise chain @@ -18167,17 +26010,30 @@ export class ObservablePolicyV1beta1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchPodSecurityPolicy(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchPodSecurityPolicyWithHttpInfo(rsp))); })); } + /** + * partially update the specified PodSecurityPolicy + * @param name name of the PodSecurityPolicy + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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 force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + */ + public patchPodSecurityPolicy(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable { + return this.patchPodSecurityPolicyWithHttpInfo(name, body, pretty, dryRun, fieldManager, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * read the specified PodDisruptionBudget * @param name name of the PodDisruptionBudget * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. */ - public readNamespacedPodDisruptionBudget(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedPodDisruptionBudgetWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.readNamespacedPodDisruptionBudget(name, namespace, pretty, _options); // build promise chain @@ -18192,17 +26048,27 @@ export class ObservablePolicyV1beta1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedPodDisruptionBudget(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedPodDisruptionBudgetWithHttpInfo(rsp))); })); } + /** + * read the specified PodDisruptionBudget + * @param name name of the PodDisruptionBudget + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + */ + public readNamespacedPodDisruptionBudget(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + return this.readNamespacedPodDisruptionBudgetWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * read status of the specified PodDisruptionBudget * @param name name of the PodDisruptionBudget * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. */ - public readNamespacedPodDisruptionBudgetStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedPodDisruptionBudgetStatusWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.readNamespacedPodDisruptionBudgetStatus(name, namespace, pretty, _options); // build promise chain @@ -18217,16 +26083,26 @@ export class ObservablePolicyV1beta1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedPodDisruptionBudgetStatus(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedPodDisruptionBudgetStatusWithHttpInfo(rsp))); })); } + /** + * read status of the specified PodDisruptionBudget + * @param name name of the PodDisruptionBudget + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + */ + public readNamespacedPodDisruptionBudgetStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + return this.readNamespacedPodDisruptionBudgetStatusWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * read the specified PodSecurityPolicy * @param name name of the PodSecurityPolicy * @param pretty If \'true\', then the output is pretty printed. */ - public readPodSecurityPolicy(name: string, pretty?: string, _options?: Configuration): Observable { + public readPodSecurityPolicyWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.readPodSecurityPolicy(name, pretty, _options); // build promise chain @@ -18241,10 +26117,19 @@ export class ObservablePolicyV1beta1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readPodSecurityPolicy(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readPodSecurityPolicyWithHttpInfo(rsp))); })); } + /** + * read the specified PodSecurityPolicy + * @param name name of the PodSecurityPolicy + * @param pretty If \'true\', then the output is pretty printed. + */ + public readPodSecurityPolicy(name: string, pretty?: string, _options?: Configuration): Observable { + return this.readPodSecurityPolicyWithHttpInfo(name, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * replace the specified PodDisruptionBudget * @param name name of the PodDisruptionBudget @@ -18254,7 +26139,7 @@ export class ObservablePolicyV1beta1Api { * @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. */ - public replaceNamespacedPodDisruptionBudget(name: string, namespace: string, body: V1beta1PodDisruptionBudget, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public replaceNamespacedPodDisruptionBudgetWithHttpInfo(name: string, namespace: string, body: V1beta1PodDisruptionBudget, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.replaceNamespacedPodDisruptionBudget(name, namespace, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -18269,10 +26154,23 @@ export class ObservablePolicyV1beta1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedPodDisruptionBudget(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedPodDisruptionBudgetWithHttpInfo(rsp))); })); } + /** + * replace the specified PodDisruptionBudget + * @param name name of the PodDisruptionBudget + * @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. + * @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. + */ + public replaceNamespacedPodDisruptionBudget(name: string, namespace: string, body: V1beta1PodDisruptionBudget, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.replaceNamespacedPodDisruptionBudgetWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * replace status of the specified PodDisruptionBudget * @param name name of the PodDisruptionBudget @@ -18282,7 +26180,7 @@ export class ObservablePolicyV1beta1Api { * @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. */ - public replaceNamespacedPodDisruptionBudgetStatus(name: string, namespace: string, body: V1beta1PodDisruptionBudget, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public replaceNamespacedPodDisruptionBudgetStatusWithHttpInfo(name: string, namespace: string, body: V1beta1PodDisruptionBudget, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.replaceNamespacedPodDisruptionBudgetStatus(name, namespace, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -18297,10 +26195,23 @@ export class ObservablePolicyV1beta1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedPodDisruptionBudgetStatus(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedPodDisruptionBudgetStatusWithHttpInfo(rsp))); })); } + /** + * replace status of the specified PodDisruptionBudget + * @param name name of the PodDisruptionBudget + * @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. + * @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. + */ + public replaceNamespacedPodDisruptionBudgetStatus(name: string, namespace: string, body: V1beta1PodDisruptionBudget, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.replaceNamespacedPodDisruptionBudgetStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * replace the specified PodSecurityPolicy * @param name name of the PodSecurityPolicy @@ -18309,7 +26220,7 @@ export class ObservablePolicyV1beta1Api { * @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. */ - public replacePodSecurityPolicy(name: string, body: V1beta1PodSecurityPolicy, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public replacePodSecurityPolicyWithHttpInfo(name: string, body: V1beta1PodSecurityPolicy, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.replacePodSecurityPolicy(name, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -18324,10 +26235,22 @@ export class ObservablePolicyV1beta1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replacePodSecurityPolicy(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replacePodSecurityPolicyWithHttpInfo(rsp))); })); } + /** + * replace the specified PodSecurityPolicy + * @param name name of the PodSecurityPolicy + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public replacePodSecurityPolicy(name: string, body: V1beta1PodSecurityPolicy, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.replacePodSecurityPolicyWithHttpInfo(name, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + } import { RbacAuthorizationApiRequestFactory, RbacAuthorizationApiResponseProcessor} from "../apis/RbacAuthorizationApi"; @@ -18349,7 +26272,7 @@ export class ObservableRbacAuthorizationApi { /** * get information of a group */ - public getAPIGroup(_options?: Configuration): Observable { + public getAPIGroupWithHttpInfo(_options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.getAPIGroup(_options); // build promise chain @@ -18364,10 +26287,17 @@ export class ObservableRbacAuthorizationApi { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIGroup(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIGroupWithHttpInfo(rsp))); })); } + /** + * get information of a group + */ + public getAPIGroup(_options?: Configuration): Observable { + return this.getAPIGroupWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + } import { RbacAuthorizationV1ApiRequestFactory, RbacAuthorizationV1ApiResponseProcessor} from "../apis/RbacAuthorizationV1Api"; @@ -18393,7 +26323,7 @@ export class ObservableRbacAuthorizationV1Api { * @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. */ - public createClusterRole(body: V1ClusterRole, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public createClusterRoleWithHttpInfo(body: V1ClusterRole, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.createClusterRole(body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -18408,10 +26338,21 @@ export class ObservableRbacAuthorizationV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createClusterRole(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createClusterRoleWithHttpInfo(rsp))); })); } + /** + * create a ClusterRole + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public createClusterRole(body: V1ClusterRole, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.createClusterRoleWithHttpInfo(body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * create a ClusterRoleBinding * @param body @@ -18419,7 +26360,7 @@ export class ObservableRbacAuthorizationV1Api { * @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. */ - public createClusterRoleBinding(body: V1ClusterRoleBinding, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public createClusterRoleBindingWithHttpInfo(body: V1ClusterRoleBinding, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.createClusterRoleBinding(body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -18434,10 +26375,21 @@ export class ObservableRbacAuthorizationV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createClusterRoleBinding(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createClusterRoleBindingWithHttpInfo(rsp))); })); } + /** + * create a ClusterRoleBinding + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public createClusterRoleBinding(body: V1ClusterRoleBinding, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.createClusterRoleBindingWithHttpInfo(body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * create a Role * @param namespace object name and auth scope, such as for teams and projects @@ -18446,7 +26398,7 @@ export class ObservableRbacAuthorizationV1Api { * @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. */ - public createNamespacedRole(namespace: string, body: V1Role, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public createNamespacedRoleWithHttpInfo(namespace: string, body: V1Role, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.createNamespacedRole(namespace, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -18461,10 +26413,22 @@ export class ObservableRbacAuthorizationV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedRole(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedRoleWithHttpInfo(rsp))); })); } + /** + * create a Role + * @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. + * @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. + */ + public createNamespacedRole(namespace: string, body: V1Role, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.createNamespacedRoleWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * create a RoleBinding * @param namespace object name and auth scope, such as for teams and projects @@ -18473,7 +26437,7 @@ export class ObservableRbacAuthorizationV1Api { * @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. */ - public createNamespacedRoleBinding(namespace: string, body: V1RoleBinding, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public createNamespacedRoleBindingWithHttpInfo(namespace: string, body: V1RoleBinding, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.createNamespacedRoleBinding(namespace, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -18488,10 +26452,22 @@ export class ObservableRbacAuthorizationV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedRoleBinding(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedRoleBindingWithHttpInfo(rsp))); })); } + /** + * create a RoleBinding + * @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. + * @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. + */ + public createNamespacedRoleBinding(namespace: string, body: V1RoleBinding, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.createNamespacedRoleBindingWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * delete a ClusterRole * @param name name of the ClusterRole @@ -18502,7 +26478,7 @@ export class ObservableRbacAuthorizationV1Api { * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. * @param body */ - public deleteClusterRole(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteClusterRoleWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.deleteClusterRole(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); // build promise chain @@ -18517,10 +26493,24 @@ export class ObservableRbacAuthorizationV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteClusterRole(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteClusterRoleWithHttpInfo(rsp))); })); } + /** + * delete a ClusterRole + * @param name name of the ClusterRole + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteClusterRole(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + return this.deleteClusterRoleWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * delete a ClusterRoleBinding * @param name name of the ClusterRoleBinding @@ -18531,7 +26521,7 @@ export class ObservableRbacAuthorizationV1Api { * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. * @param body */ - public deleteClusterRoleBinding(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteClusterRoleBindingWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.deleteClusterRoleBinding(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); // build promise chain @@ -18546,10 +26536,24 @@ export class ObservableRbacAuthorizationV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteClusterRoleBinding(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteClusterRoleBindingWithHttpInfo(rsp))); })); } + /** + * delete a ClusterRoleBinding + * @param name name of the ClusterRoleBinding + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteClusterRoleBinding(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + return this.deleteClusterRoleBindingWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * delete collection of ClusterRole * @param pretty If \'true\', then the output is pretty printed. @@ -18566,7 +26570,7 @@ export class ObservableRbacAuthorizationV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param body */ - public deleteCollectionClusterRole(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteCollectionClusterRoleWithHttpInfo(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.deleteCollectionClusterRole(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); // build promise chain @@ -18581,10 +26585,30 @@ export class ObservableRbacAuthorizationV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionClusterRole(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionClusterRoleWithHttpInfo(rsp))); })); } + /** + * delete collection of ClusterRole + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionClusterRole(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { + return this.deleteCollectionClusterRoleWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * delete collection of ClusterRoleBinding * @param pretty If \'true\', then the output is pretty printed. @@ -18601,7 +26625,7 @@ export class ObservableRbacAuthorizationV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param body */ - public deleteCollectionClusterRoleBinding(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteCollectionClusterRoleBindingWithHttpInfo(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.deleteCollectionClusterRoleBinding(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); // build promise chain @@ -18616,10 +26640,30 @@ export class ObservableRbacAuthorizationV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionClusterRoleBinding(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionClusterRoleBindingWithHttpInfo(rsp))); })); } + /** + * delete collection of ClusterRoleBinding + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionClusterRoleBinding(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { + return this.deleteCollectionClusterRoleBindingWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * delete collection of Role * @param namespace object name and auth scope, such as for teams and projects @@ -18637,7 +26681,7 @@ export class ObservableRbacAuthorizationV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param body */ - public deleteCollectionNamespacedRole(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteCollectionNamespacedRoleWithHttpInfo(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.deleteCollectionNamespacedRole(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); // build promise chain @@ -18652,10 +26696,31 @@ export class ObservableRbacAuthorizationV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedRole(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedRoleWithHttpInfo(rsp))); })); } + /** + * delete collection of Role + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionNamespacedRole(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { + return this.deleteCollectionNamespacedRoleWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * delete collection of RoleBinding * @param namespace object name and auth scope, such as for teams and projects @@ -18673,7 +26738,7 @@ export class ObservableRbacAuthorizationV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param body */ - public deleteCollectionNamespacedRoleBinding(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteCollectionNamespacedRoleBindingWithHttpInfo(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.deleteCollectionNamespacedRoleBinding(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); // build promise chain @@ -18688,10 +26753,31 @@ export class ObservableRbacAuthorizationV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedRoleBinding(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedRoleBindingWithHttpInfo(rsp))); })); } + /** + * delete collection of RoleBinding + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionNamespacedRoleBinding(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { + return this.deleteCollectionNamespacedRoleBindingWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * delete a Role * @param name name of the Role @@ -18703,7 +26789,7 @@ export class ObservableRbacAuthorizationV1Api { * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. * @param body */ - public deleteNamespacedRole(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteNamespacedRoleWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.deleteNamespacedRole(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); // build promise chain @@ -18718,7 +26804,52 @@ export class ObservableRbacAuthorizationV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedRole(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedRoleWithHttpInfo(rsp))); + })); + } + + /** + * delete a Role + * @param name name of the Role + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteNamespacedRole(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + return this.deleteNamespacedRoleWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * delete a RoleBinding + * @param name name of the RoleBinding + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteNamespacedRoleBindingWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.deleteNamespacedRoleBinding(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + + // build promise chain + let middlewarePreObservable = from(requestContextPromise); + for (let middleware of this.configuration.middleware) { + middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); + } + + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + pipe(mergeMap((response: ResponseContext) => { + let middlewarePostObservable = of(response); + for (let middleware of this.configuration.middleware) { + middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); + } + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedRoleBindingWithHttpInfo(rsp))); })); } @@ -18734,7 +26865,14 @@ export class ObservableRbacAuthorizationV1Api { * @param body */ public deleteNamespacedRoleBinding(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.deleteNamespacedRoleBinding(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + return this.deleteNamespacedRoleBindingWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * get available resources + */ + public getAPIResourcesWithHttpInfo(_options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.getAPIResources(_options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -18748,7 +26886,7 @@ export class ObservableRbacAuthorizationV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedRoleBinding(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResourcesWithHttpInfo(rsp))); })); } @@ -18756,7 +26894,24 @@ export class ObservableRbacAuthorizationV1Api { * get available resources */ public getAPIResources(_options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.getAPIResources(_options); + return this.getAPIResourcesWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * list or watch objects of kind ClusterRole + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.listClusterRole(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -18770,7 +26925,7 @@ export class ObservableRbacAuthorizationV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResources(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listClusterRoleWithHttpInfo(rsp))); })); } @@ -18788,7 +26943,24 @@ 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 listClusterRole(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.listClusterRole(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return this.listClusterRoleWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * list or watch objects of kind ClusterRoleBinding + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.listClusterRoleBinding(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -18802,7 +26974,7 @@ export class ObservableRbacAuthorizationV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listClusterRole(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listClusterRoleBindingWithHttpInfo(rsp))); })); } @@ -18820,7 +26992,25 @@ 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 listClusterRoleBinding(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.listClusterRoleBinding(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return this.listClusterRoleBindingWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * list or watch objects of kind Role + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.listNamespacedRole(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -18834,7 +27024,7 @@ export class ObservableRbacAuthorizationV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listClusterRoleBinding(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedRoleWithHttpInfo(rsp))); })); } @@ -18853,7 +27043,25 @@ 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 listNamespacedRole(namespace: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.listNamespacedRole(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return this.listNamespacedRoleWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * list or watch objects of kind RoleBinding + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.listNamespacedRoleBinding(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -18867,7 +27075,7 @@ export class ObservableRbacAuthorizationV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedRole(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedRoleBindingWithHttpInfo(rsp))); })); } @@ -18886,7 +27094,24 @@ 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 listNamespacedRoleBinding(namespace: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.listNamespacedRoleBinding(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return this.listNamespacedRoleBindingWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * list or watch objects of kind RoleBinding + * @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. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.listRoleBindingForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -18900,7 +27125,7 @@ export class ObservableRbacAuthorizationV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedRoleBinding(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listRoleBindingForAllNamespacesWithHttpInfo(rsp))); })); } @@ -18918,7 +27143,24 @@ 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 listRoleBindingForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.listRoleBindingForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return this.listRoleBindingForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * list or watch objects of kind Role + * @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. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.listRoleForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -18932,7 +27174,7 @@ export class ObservableRbacAuthorizationV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listRoleBindingForAllNamespaces(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listRoleForAllNamespacesWithHttpInfo(rsp))); })); } @@ -18950,7 +27192,20 @@ 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 listRoleForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.listRoleForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return this.listRoleForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * partially update the specified ClusterRole + * @param name name of the ClusterRole + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.patchClusterRole(name, body, pretty, dryRun, fieldManager, force, _options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -18964,7 +27219,7 @@ export class ObservableRbacAuthorizationV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listRoleForAllNamespaces(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchClusterRoleWithHttpInfo(rsp))); })); } @@ -18978,7 +27233,20 @@ 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 patchClusterRole(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.patchClusterRole(name, body, pretty, dryRun, fieldManager, force, _options); + return this.patchClusterRoleWithHttpInfo(name, body, pretty, dryRun, fieldManager, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * partially update the specified ClusterRoleBinding + * @param name name of the ClusterRoleBinding + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.patchClusterRoleBinding(name, body, pretty, dryRun, fieldManager, force, _options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -18992,7 +27260,7 @@ export class ObservableRbacAuthorizationV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchClusterRole(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchClusterRoleBindingWithHttpInfo(rsp))); })); } @@ -19006,7 +27274,21 @@ 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 patchClusterRoleBinding(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.patchClusterRoleBinding(name, body, pretty, dryRun, fieldManager, force, _options); + return this.patchClusterRoleBindingWithHttpInfo(name, body, pretty, dryRun, fieldManager, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * partially update the specified Role + * @param name name of the Role + * @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. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.patchNamespacedRole(name, namespace, body, pretty, dryRun, fieldManager, force, _options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -19020,7 +27302,7 @@ export class ObservableRbacAuthorizationV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchClusterRoleBinding(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedRoleWithHttpInfo(rsp))); })); } @@ -19035,7 +27317,21 @@ 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 patchNamespacedRole(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.patchNamespacedRole(name, namespace, body, pretty, dryRun, fieldManager, force, _options); + return this.patchNamespacedRoleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * partially update the specified RoleBinding + * @param name name of the RoleBinding + * @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. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.patchNamespacedRoleBinding(name, namespace, body, pretty, dryRun, fieldManager, force, _options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -19049,7 +27345,7 @@ export class ObservableRbacAuthorizationV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedRole(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedRoleBindingWithHttpInfo(rsp))); })); } @@ -19064,7 +27360,16 @@ 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 patchNamespacedRoleBinding(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.patchNamespacedRoleBinding(name, namespace, body, pretty, dryRun, fieldManager, force, _options); + return this.patchNamespacedRoleBindingWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * read the specified ClusterRole + * @param name name of the ClusterRole + * @param pretty If \'true\', then the output is pretty printed. + */ + public readClusterRoleWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.readClusterRole(name, pretty, _options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -19078,7 +27383,7 @@ export class ObservableRbacAuthorizationV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedRoleBinding(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readClusterRoleWithHttpInfo(rsp))); })); } @@ -19088,7 +27393,16 @@ export class ObservableRbacAuthorizationV1Api { * @param pretty If \'true\', then the output is pretty printed. */ public readClusterRole(name: string, pretty?: string, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.readClusterRole(name, pretty, _options); + return this.readClusterRoleWithHttpInfo(name, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * read the specified ClusterRoleBinding + * @param name name of the ClusterRoleBinding + * @param pretty If \'true\', then the output is pretty printed. + */ + public readClusterRoleBindingWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.readClusterRoleBinding(name, pretty, _options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -19102,7 +27416,7 @@ export class ObservableRbacAuthorizationV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readClusterRole(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readClusterRoleBindingWithHttpInfo(rsp))); })); } @@ -19112,7 +27426,17 @@ export class ObservableRbacAuthorizationV1Api { * @param pretty If \'true\', then the output is pretty printed. */ public readClusterRoleBinding(name: string, pretty?: string, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.readClusterRoleBinding(name, pretty, _options); + return this.readClusterRoleBindingWithHttpInfo(name, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * read the specified Role + * @param name name of the Role + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + */ + public readNamespacedRoleWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.readNamespacedRole(name, namespace, pretty, _options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -19126,7 +27450,7 @@ export class ObservableRbacAuthorizationV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readClusterRoleBinding(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedRoleWithHttpInfo(rsp))); })); } @@ -19137,7 +27461,17 @@ export class ObservableRbacAuthorizationV1Api { * @param pretty If \'true\', then the output is pretty printed. */ public readNamespacedRole(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.readNamespacedRole(name, namespace, pretty, _options); + return this.readNamespacedRoleWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * read the specified RoleBinding + * @param name name of the RoleBinding + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + */ + public readNamespacedRoleBindingWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.readNamespacedRoleBinding(name, namespace, pretty, _options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -19151,7 +27485,7 @@ export class ObservableRbacAuthorizationV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedRole(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedRoleBindingWithHttpInfo(rsp))); })); } @@ -19162,7 +27496,19 @@ export class ObservableRbacAuthorizationV1Api { * @param pretty If \'true\', then the output is pretty printed. */ public readNamespacedRoleBinding(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.readNamespacedRoleBinding(name, namespace, pretty, _options); + return this.readNamespacedRoleBindingWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * replace the specified ClusterRole + * @param name name of the ClusterRole + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public replaceClusterRoleWithHttpInfo(name: string, body: V1ClusterRole, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.replaceClusterRole(name, body, pretty, dryRun, fieldManager, _options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -19176,7 +27522,7 @@ export class ObservableRbacAuthorizationV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedRoleBinding(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceClusterRoleWithHttpInfo(rsp))); })); } @@ -19189,7 +27535,19 @@ export class ObservableRbacAuthorizationV1Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. */ public replaceClusterRole(name: string, body: V1ClusterRole, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.replaceClusterRole(name, body, pretty, dryRun, fieldManager, _options); + return this.replaceClusterRoleWithHttpInfo(name, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * replace the specified ClusterRoleBinding + * @param name name of the ClusterRoleBinding + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public replaceClusterRoleBindingWithHttpInfo(name: string, body: V1ClusterRoleBinding, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.replaceClusterRoleBinding(name, body, pretty, dryRun, fieldManager, _options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -19203,7 +27561,7 @@ export class ObservableRbacAuthorizationV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceClusterRole(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceClusterRoleBindingWithHttpInfo(rsp))); })); } @@ -19216,7 +27574,20 @@ export class ObservableRbacAuthorizationV1Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. */ public replaceClusterRoleBinding(name: string, body: V1ClusterRoleBinding, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.replaceClusterRoleBinding(name, body, pretty, dryRun, fieldManager, _options); + return this.replaceClusterRoleBindingWithHttpInfo(name, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * replace the specified Role + * @param name name of the Role + * @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. + * @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. + */ + public replaceNamespacedRoleWithHttpInfo(name: string, namespace: string, body: V1Role, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.replaceNamespacedRole(name, namespace, body, pretty, dryRun, fieldManager, _options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -19230,7 +27601,7 @@ export class ObservableRbacAuthorizationV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceClusterRoleBinding(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedRoleWithHttpInfo(rsp))); })); } @@ -19244,7 +27615,20 @@ export class ObservableRbacAuthorizationV1Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. */ public replaceNamespacedRole(name: string, namespace: string, body: V1Role, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.replaceNamespacedRole(name, namespace, body, pretty, dryRun, fieldManager, _options); + return this.replaceNamespacedRoleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * replace the specified RoleBinding + * @param name name of the RoleBinding + * @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. + * @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. + */ + public replaceNamespacedRoleBindingWithHttpInfo(name: string, namespace: string, body: V1RoleBinding, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.replaceNamespacedRoleBinding(name, namespace, body, pretty, dryRun, fieldManager, _options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -19258,7 +27642,7 @@ export class ObservableRbacAuthorizationV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedRole(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedRoleBindingWithHttpInfo(rsp))); })); } @@ -19271,8 +27655,37 @@ export class ObservableRbacAuthorizationV1Api { * @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. */ - public replaceNamespacedRoleBinding(name: string, namespace: string, body: V1RoleBinding, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.replaceNamespacedRoleBinding(name, namespace, body, pretty, dryRun, fieldManager, _options); + public replaceNamespacedRoleBinding(name: string, namespace: string, body: V1RoleBinding, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.replaceNamespacedRoleBindingWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + +} + +import { RbacAuthorizationV1alpha1ApiRequestFactory, RbacAuthorizationV1alpha1ApiResponseProcessor} from "../apis/RbacAuthorizationV1alpha1Api"; +export class ObservableRbacAuthorizationV1alpha1Api { + private requestFactory: RbacAuthorizationV1alpha1ApiRequestFactory; + private responseProcessor: RbacAuthorizationV1alpha1ApiResponseProcessor; + private configuration: Configuration; + + public constructor( + configuration: Configuration, + requestFactory?: RbacAuthorizationV1alpha1ApiRequestFactory, + responseProcessor?: RbacAuthorizationV1alpha1ApiResponseProcessor + ) { + this.configuration = configuration; + this.requestFactory = requestFactory || new RbacAuthorizationV1alpha1ApiRequestFactory(configuration); + this.responseProcessor = responseProcessor || new RbacAuthorizationV1alpha1ApiResponseProcessor(); + } + + /** + * create a ClusterRole + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public createClusterRoleWithHttpInfo(body: V1alpha1ClusterRole, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.createClusterRole(body, pretty, dryRun, fieldManager, _options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -19286,28 +27699,10 @@ export class ObservableRbacAuthorizationV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedRoleBinding(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createClusterRoleWithHttpInfo(rsp))); })); } -} - -import { RbacAuthorizationV1alpha1ApiRequestFactory, RbacAuthorizationV1alpha1ApiResponseProcessor} from "../apis/RbacAuthorizationV1alpha1Api"; -export class ObservableRbacAuthorizationV1alpha1Api { - private requestFactory: RbacAuthorizationV1alpha1ApiRequestFactory; - private responseProcessor: RbacAuthorizationV1alpha1ApiResponseProcessor; - private configuration: Configuration; - - public constructor( - configuration: Configuration, - requestFactory?: RbacAuthorizationV1alpha1ApiRequestFactory, - responseProcessor?: RbacAuthorizationV1alpha1ApiResponseProcessor - ) { - this.configuration = configuration; - this.requestFactory = requestFactory || new RbacAuthorizationV1alpha1ApiRequestFactory(configuration); - this.responseProcessor = responseProcessor || new RbacAuthorizationV1alpha1ApiResponseProcessor(); - } - /** * create a ClusterRole * @param body @@ -19316,7 +27711,18 @@ export class ObservableRbacAuthorizationV1alpha1Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. */ public createClusterRole(body: V1alpha1ClusterRole, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.createClusterRole(body, pretty, dryRun, fieldManager, _options); + return this.createClusterRoleWithHttpInfo(body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * create a ClusterRoleBinding + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public createClusterRoleBindingWithHttpInfo(body: V1alpha1ClusterRoleBinding, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.createClusterRoleBinding(body, pretty, dryRun, fieldManager, _options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -19330,7 +27736,7 @@ export class ObservableRbacAuthorizationV1alpha1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createClusterRole(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createClusterRoleBindingWithHttpInfo(rsp))); })); } @@ -19342,7 +27748,19 @@ export class ObservableRbacAuthorizationV1alpha1Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. */ public createClusterRoleBinding(body: V1alpha1ClusterRoleBinding, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.createClusterRoleBinding(body, pretty, dryRun, fieldManager, _options); + return this.createClusterRoleBindingWithHttpInfo(body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * create a Role + * @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. + * @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. + */ + public createNamespacedRoleWithHttpInfo(namespace: string, body: V1alpha1Role, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.createNamespacedRole(namespace, body, pretty, dryRun, fieldManager, _options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -19356,7 +27774,7 @@ export class ObservableRbacAuthorizationV1alpha1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createClusterRoleBinding(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedRoleWithHttpInfo(rsp))); })); } @@ -19369,7 +27787,19 @@ export class ObservableRbacAuthorizationV1alpha1Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. */ public createNamespacedRole(namespace: string, body: V1alpha1Role, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.createNamespacedRole(namespace, body, pretty, dryRun, fieldManager, _options); + return this.createNamespacedRoleWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * create a RoleBinding + * @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. + * @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. + */ + public createNamespacedRoleBindingWithHttpInfo(namespace: string, body: V1alpha1RoleBinding, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.createNamespacedRoleBinding(namespace, body, pretty, dryRun, fieldManager, _options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -19383,7 +27813,7 @@ export class ObservableRbacAuthorizationV1alpha1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedRole(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedRoleBindingWithHttpInfo(rsp))); })); } @@ -19396,7 +27826,21 @@ export class ObservableRbacAuthorizationV1alpha1Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. */ public createNamespacedRoleBinding(namespace: string, body: V1alpha1RoleBinding, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.createNamespacedRoleBinding(namespace, body, pretty, dryRun, fieldManager, _options); + return this.createNamespacedRoleBindingWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * delete a ClusterRole + * @param name name of the ClusterRole + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteClusterRoleWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.deleteClusterRole(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -19410,7 +27854,7 @@ export class ObservableRbacAuthorizationV1alpha1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedRoleBinding(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteClusterRoleWithHttpInfo(rsp))); })); } @@ -19425,7 +27869,21 @@ export class ObservableRbacAuthorizationV1alpha1Api { * @param body */ public deleteClusterRole(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.deleteClusterRole(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + return this.deleteClusterRoleWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * delete a ClusterRoleBinding + * @param name name of the ClusterRoleBinding + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteClusterRoleBindingWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.deleteClusterRoleBinding(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -19439,7 +27897,7 @@ export class ObservableRbacAuthorizationV1alpha1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteClusterRole(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteClusterRoleBindingWithHttpInfo(rsp))); })); } @@ -19454,7 +27912,27 @@ export class ObservableRbacAuthorizationV1alpha1Api { * @param body */ public deleteClusterRoleBinding(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.deleteClusterRoleBinding(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + return this.deleteClusterRoleBindingWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * delete collection of ClusterRole + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionClusterRoleWithHttpInfo(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.deleteCollectionClusterRole(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -19468,7 +27946,7 @@ export class ObservableRbacAuthorizationV1alpha1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteClusterRoleBinding(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionClusterRoleWithHttpInfo(rsp))); })); } @@ -19489,7 +27967,27 @@ export class ObservableRbacAuthorizationV1alpha1Api { * @param body */ public deleteCollectionClusterRole(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.deleteCollectionClusterRole(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + return this.deleteCollectionClusterRoleWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * delete collection of ClusterRoleBinding + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionClusterRoleBindingWithHttpInfo(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.deleteCollectionClusterRoleBinding(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -19503,7 +28001,7 @@ export class ObservableRbacAuthorizationV1alpha1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionClusterRole(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionClusterRoleBindingWithHttpInfo(rsp))); })); } @@ -19524,7 +28022,28 @@ export class ObservableRbacAuthorizationV1alpha1Api { * @param body */ public deleteCollectionClusterRoleBinding(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.deleteCollectionClusterRoleBinding(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + return this.deleteCollectionClusterRoleBindingWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * delete collection of Role + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionNamespacedRoleWithHttpInfo(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.deleteCollectionNamespacedRole(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -19538,7 +28057,7 @@ export class ObservableRbacAuthorizationV1alpha1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionClusterRoleBinding(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedRoleWithHttpInfo(rsp))); })); } @@ -19560,7 +28079,28 @@ export class ObservableRbacAuthorizationV1alpha1Api { * @param body */ public deleteCollectionNamespacedRole(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.deleteCollectionNamespacedRole(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + return this.deleteCollectionNamespacedRoleWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * delete collection of RoleBinding + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionNamespacedRoleBindingWithHttpInfo(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.deleteCollectionNamespacedRoleBinding(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -19574,7 +28114,7 @@ export class ObservableRbacAuthorizationV1alpha1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedRole(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedRoleBindingWithHttpInfo(rsp))); })); } @@ -19596,7 +28136,22 @@ export class ObservableRbacAuthorizationV1alpha1Api { * @param body */ public deleteCollectionNamespacedRoleBinding(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.deleteCollectionNamespacedRoleBinding(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + return this.deleteCollectionNamespacedRoleBindingWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * delete a Role + * @param name name of the Role + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteNamespacedRoleWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.deleteNamespacedRole(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -19610,7 +28165,7 @@ export class ObservableRbacAuthorizationV1alpha1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedRoleBinding(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedRoleWithHttpInfo(rsp))); })); } @@ -19626,7 +28181,22 @@ export class ObservableRbacAuthorizationV1alpha1Api { * @param body */ public deleteNamespacedRole(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.deleteNamespacedRole(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + return this.deleteNamespacedRoleWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * delete a RoleBinding + * @param name name of the RoleBinding + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteNamespacedRoleBindingWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.deleteNamespacedRoleBinding(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -19640,7 +28210,7 @@ export class ObservableRbacAuthorizationV1alpha1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedRole(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedRoleBindingWithHttpInfo(rsp))); })); } @@ -19656,7 +28226,14 @@ export class ObservableRbacAuthorizationV1alpha1Api { * @param body */ public deleteNamespacedRoleBinding(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.deleteNamespacedRoleBinding(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + return this.deleteNamespacedRoleBindingWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * get available resources + */ + public getAPIResourcesWithHttpInfo(_options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.getAPIResources(_options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -19670,7 +28247,7 @@ export class ObservableRbacAuthorizationV1alpha1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedRoleBinding(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResourcesWithHttpInfo(rsp))); })); } @@ -19678,7 +28255,24 @@ export class ObservableRbacAuthorizationV1alpha1Api { * get available resources */ public getAPIResources(_options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.getAPIResources(_options); + return this.getAPIResourcesWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * list or watch objects of kind ClusterRole + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.listClusterRole(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -19692,7 +28286,7 @@ export class ObservableRbacAuthorizationV1alpha1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResources(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listClusterRoleWithHttpInfo(rsp))); })); } @@ -19710,7 +28304,24 @@ export class ObservableRbacAuthorizationV1alpha1Api { * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.listClusterRole(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return this.listClusterRoleWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * list or watch objects of kind ClusterRoleBinding + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.listClusterRoleBinding(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -19724,7 +28335,7 @@ export class ObservableRbacAuthorizationV1alpha1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listClusterRole(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listClusterRoleBindingWithHttpInfo(rsp))); })); } @@ -19742,7 +28353,25 @@ export class ObservableRbacAuthorizationV1alpha1Api { * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.listClusterRoleBinding(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return this.listClusterRoleBindingWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * list or watch objects of kind Role + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.listNamespacedRole(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -19756,7 +28385,7 @@ export class ObservableRbacAuthorizationV1alpha1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listClusterRoleBinding(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedRoleWithHttpInfo(rsp))); })); } @@ -19775,22 +28404,7 @@ export class ObservableRbacAuthorizationV1alpha1Api { * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.listNamespacedRole(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); - - // build promise chain - let middlewarePreObservable = from(requestContextPromise); - for (let middleware of this.configuration.middleware) { - middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); - } - - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). - pipe(mergeMap((response: ResponseContext) => { - let middlewarePostObservable = of(response); - for (let middleware of this.configuration.middleware) { - middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); - } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedRole(rsp))); - })); + return this.listNamespacedRoleWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } /** @@ -19807,7 +28421,7 @@ export class ObservableRbacAuthorizationV1alpha1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listNamespacedRoleBindingWithHttpInfo(namespace: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.listNamespacedRoleBinding(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); // build promise chain @@ -19822,10 +28436,28 @@ export class ObservableRbacAuthorizationV1alpha1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedRoleBinding(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedRoleBindingWithHttpInfo(rsp))); })); } + /** + * list or watch objects of kind RoleBinding + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + return this.listNamespacedRoleBindingWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * list or watch objects of kind RoleBinding * @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. @@ -19839,7 +28471,7 @@ export class ObservableRbacAuthorizationV1alpha1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listRoleBindingForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.listRoleBindingForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); // build promise chain @@ -19854,10 +28486,27 @@ export class ObservableRbacAuthorizationV1alpha1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listRoleBindingForAllNamespaces(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listRoleBindingForAllNamespacesWithHttpInfo(rsp))); })); } + /** + * list or watch objects of kind RoleBinding + * @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. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + return this.listRoleBindingForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * list or watch objects of kind Role * @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. @@ -19871,7 +28520,7 @@ export class ObservableRbacAuthorizationV1alpha1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listRoleForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.listRoleForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); // build promise chain @@ -19886,10 +28535,27 @@ export class ObservableRbacAuthorizationV1alpha1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listRoleForAllNamespaces(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listRoleForAllNamespacesWithHttpInfo(rsp))); })); } + /** + * list or watch objects of kind Role + * @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. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + return this.listRoleForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * partially update the specified ClusterRole * @param name name of the ClusterRole @@ -19899,7 +28565,7 @@ export class ObservableRbacAuthorizationV1alpha1Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + public patchClusterRoleWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.patchClusterRole(name, body, pretty, dryRun, fieldManager, force, _options); // build promise chain @@ -19914,10 +28580,23 @@ export class ObservableRbacAuthorizationV1alpha1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchClusterRole(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchClusterRoleWithHttpInfo(rsp))); })); } + /** + * partially update the specified ClusterRole + * @param name name of the ClusterRole + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + return this.patchClusterRoleWithHttpInfo(name, body, pretty, dryRun, fieldManager, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * partially update the specified ClusterRoleBinding * @param name name of the ClusterRoleBinding @@ -19927,7 +28606,7 @@ export class ObservableRbacAuthorizationV1alpha1Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + public patchClusterRoleBindingWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.patchClusterRoleBinding(name, body, pretty, dryRun, fieldManager, force, _options); // build promise chain @@ -19942,10 +28621,23 @@ export class ObservableRbacAuthorizationV1alpha1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchClusterRoleBinding(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchClusterRoleBindingWithHttpInfo(rsp))); })); } + /** + * partially update the specified ClusterRoleBinding + * @param name name of the ClusterRoleBinding + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + return this.patchClusterRoleBindingWithHttpInfo(name, body, pretty, dryRun, fieldManager, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * partially update the specified Role * @param name name of the Role @@ -19956,7 +28648,7 @@ export class ObservableRbacAuthorizationV1alpha1Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + public patchNamespacedRoleWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.patchNamespacedRole(name, namespace, body, pretty, dryRun, fieldManager, force, _options); // build promise chain @@ -19971,10 +28663,24 @@ export class ObservableRbacAuthorizationV1alpha1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedRole(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedRoleWithHttpInfo(rsp))); })); } + /** + * partially update the specified Role + * @param name name of the Role + * @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. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + return this.patchNamespacedRoleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * partially update the specified RoleBinding * @param name name of the RoleBinding @@ -19985,7 +28691,7 @@ export class ObservableRbacAuthorizationV1alpha1Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + public patchNamespacedRoleBindingWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.patchNamespacedRoleBinding(name, namespace, body, pretty, dryRun, fieldManager, force, _options); // build promise chain @@ -20000,16 +28706,30 @@ export class ObservableRbacAuthorizationV1alpha1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedRoleBinding(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedRoleBindingWithHttpInfo(rsp))); })); } + /** + * partially update the specified RoleBinding + * @param name name of the RoleBinding + * @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. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + return this.patchNamespacedRoleBindingWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * read the specified ClusterRole * @param name name of the ClusterRole * @param pretty If \'true\', then the output is pretty printed. */ - public readClusterRole(name: string, pretty?: string, _options?: Configuration): Observable { + public readClusterRoleWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.readClusterRole(name, pretty, _options); // build promise chain @@ -20024,16 +28744,25 @@ export class ObservableRbacAuthorizationV1alpha1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readClusterRole(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readClusterRoleWithHttpInfo(rsp))); })); } + /** + * read the specified ClusterRole + * @param name name of the ClusterRole + * @param pretty If \'true\', then the output is pretty printed. + */ + public readClusterRole(name: string, pretty?: string, _options?: Configuration): Observable { + return this.readClusterRoleWithHttpInfo(name, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * read the specified ClusterRoleBinding * @param name name of the ClusterRoleBinding * @param pretty If \'true\', then the output is pretty printed. */ - public readClusterRoleBinding(name: string, pretty?: string, _options?: Configuration): Observable { + public readClusterRoleBindingWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.readClusterRoleBinding(name, pretty, _options); // build promise chain @@ -20048,17 +28777,26 @@ export class ObservableRbacAuthorizationV1alpha1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readClusterRoleBinding(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readClusterRoleBindingWithHttpInfo(rsp))); })); } + /** + * read the specified ClusterRoleBinding + * @param name name of the ClusterRoleBinding + * @param pretty If \'true\', then the output is pretty printed. + */ + public readClusterRoleBinding(name: string, pretty?: string, _options?: Configuration): Observable { + return this.readClusterRoleBindingWithHttpInfo(name, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * read the specified Role * @param name name of the Role * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. */ - public readNamespacedRole(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedRoleWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.readNamespacedRole(name, namespace, pretty, _options); // build promise chain @@ -20073,17 +28811,27 @@ export class ObservableRbacAuthorizationV1alpha1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedRole(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedRoleWithHttpInfo(rsp))); })); } + /** + * read the specified Role + * @param name name of the Role + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + */ + public readNamespacedRole(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + return this.readNamespacedRoleWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * read the specified RoleBinding * @param name name of the RoleBinding * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. */ - public readNamespacedRoleBinding(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedRoleBindingWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.readNamespacedRoleBinding(name, namespace, pretty, _options); // build promise chain @@ -20098,10 +28846,20 @@ export class ObservableRbacAuthorizationV1alpha1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedRoleBinding(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedRoleBindingWithHttpInfo(rsp))); })); } + /** + * read the specified RoleBinding + * @param name name of the RoleBinding + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + */ + public readNamespacedRoleBinding(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + return this.readNamespacedRoleBindingWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * replace the specified ClusterRole * @param name name of the ClusterRole @@ -20110,7 +28868,7 @@ export class ObservableRbacAuthorizationV1alpha1Api { * @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. */ - public replaceClusterRole(name: string, body: V1alpha1ClusterRole, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public replaceClusterRoleWithHttpInfo(name: string, body: V1alpha1ClusterRole, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.replaceClusterRole(name, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -20125,10 +28883,22 @@ export class ObservableRbacAuthorizationV1alpha1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceClusterRole(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceClusterRoleWithHttpInfo(rsp))); })); } + /** + * replace the specified ClusterRole + * @param name name of the ClusterRole + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public replaceClusterRole(name: string, body: V1alpha1ClusterRole, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.replaceClusterRoleWithHttpInfo(name, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * replace the specified ClusterRoleBinding * @param name name of the ClusterRoleBinding @@ -20137,7 +28907,7 @@ export class ObservableRbacAuthorizationV1alpha1Api { * @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. */ - public replaceClusterRoleBinding(name: string, body: V1alpha1ClusterRoleBinding, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public replaceClusterRoleBindingWithHttpInfo(name: string, body: V1alpha1ClusterRoleBinding, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.replaceClusterRoleBinding(name, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -20152,10 +28922,22 @@ export class ObservableRbacAuthorizationV1alpha1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceClusterRoleBinding(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceClusterRoleBindingWithHttpInfo(rsp))); })); } + /** + * replace the specified ClusterRoleBinding + * @param name name of the ClusterRoleBinding + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public replaceClusterRoleBinding(name: string, body: V1alpha1ClusterRoleBinding, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.replaceClusterRoleBindingWithHttpInfo(name, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * replace the specified Role * @param name name of the Role @@ -20165,7 +28947,7 @@ export class ObservableRbacAuthorizationV1alpha1Api { * @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. */ - public replaceNamespacedRole(name: string, namespace: string, body: V1alpha1Role, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public replaceNamespacedRoleWithHttpInfo(name: string, namespace: string, body: V1alpha1Role, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.replaceNamespacedRole(name, namespace, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -20180,10 +28962,23 @@ export class ObservableRbacAuthorizationV1alpha1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedRole(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedRoleWithHttpInfo(rsp))); })); } + /** + * replace the specified Role + * @param name name of the Role + * @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. + * @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. + */ + public replaceNamespacedRole(name: string, namespace: string, body: V1alpha1Role, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.replaceNamespacedRoleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * replace the specified RoleBinding * @param name name of the RoleBinding @@ -20193,7 +28988,7 @@ export class ObservableRbacAuthorizationV1alpha1Api { * @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. */ - public replaceNamespacedRoleBinding(name: string, namespace: string, body: V1alpha1RoleBinding, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public replaceNamespacedRoleBindingWithHttpInfo(name: string, namespace: string, body: V1alpha1RoleBinding, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.replaceNamespacedRoleBinding(name, namespace, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -20208,10 +29003,23 @@ export class ObservableRbacAuthorizationV1alpha1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedRoleBinding(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedRoleBindingWithHttpInfo(rsp))); })); } + /** + * replace the specified RoleBinding + * @param name name of the RoleBinding + * @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. + * @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. + */ + public replaceNamespacedRoleBinding(name: string, namespace: string, body: V1alpha1RoleBinding, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.replaceNamespacedRoleBindingWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + } import { SchedulingApiRequestFactory, SchedulingApiResponseProcessor} from "../apis/SchedulingApi"; @@ -20233,7 +29041,7 @@ export class ObservableSchedulingApi { /** * get information of a group */ - public getAPIGroup(_options?: Configuration): Observable { + public getAPIGroupWithHttpInfo(_options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.getAPIGroup(_options); // build promise chain @@ -20248,10 +29056,17 @@ export class ObservableSchedulingApi { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIGroup(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIGroupWithHttpInfo(rsp))); })); } + /** + * get information of a group + */ + public getAPIGroup(_options?: Configuration): Observable { + return this.getAPIGroupWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + } import { SchedulingV1ApiRequestFactory, SchedulingV1ApiResponseProcessor} from "../apis/SchedulingV1Api"; @@ -20277,7 +29092,7 @@ export class ObservableSchedulingV1Api { * @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. */ - public createPriorityClass(body: V1PriorityClass, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public createPriorityClassWithHttpInfo(body: V1PriorityClass, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.createPriorityClass(body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -20292,10 +29107,21 @@ export class ObservableSchedulingV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createPriorityClass(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createPriorityClassWithHttpInfo(rsp))); })); } + /** + * create a PriorityClass + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public createPriorityClass(body: V1PriorityClass, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.createPriorityClassWithHttpInfo(body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * delete collection of PriorityClass * @param pretty If \'true\', then the output is pretty printed. @@ -20312,7 +29138,7 @@ export class ObservableSchedulingV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param body */ - public deleteCollectionPriorityClass(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteCollectionPriorityClassWithHttpInfo(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.deleteCollectionPriorityClass(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); // build promise chain @@ -20327,10 +29153,30 @@ export class ObservableSchedulingV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionPriorityClass(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionPriorityClassWithHttpInfo(rsp))); })); } + /** + * delete collection of PriorityClass + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionPriorityClass(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { + return this.deleteCollectionPriorityClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * delete a PriorityClass * @param name name of the PriorityClass @@ -20341,7 +29187,7 @@ export class ObservableSchedulingV1Api { * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. * @param body */ - public deletePriorityClass(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deletePriorityClassWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.deletePriorityClass(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); // build promise chain @@ -20356,14 +29202,28 @@ export class ObservableSchedulingV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deletePriorityClass(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deletePriorityClassWithHttpInfo(rsp))); })); } + /** + * delete a PriorityClass + * @param name name of the PriorityClass + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deletePriorityClass(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + return this.deletePriorityClassWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * get available resources */ - public getAPIResources(_options?: Configuration): Observable { + public getAPIResourcesWithHttpInfo(_options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.getAPIResources(_options); // build promise chain @@ -20378,10 +29238,17 @@ export class ObservableSchedulingV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResources(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResourcesWithHttpInfo(rsp))); })); } + /** + * get available resources + */ + public getAPIResources(_options?: Configuration): Observable { + return this.getAPIResourcesWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * list or watch objects of kind PriorityClass * @param pretty If \'true\', then the output is pretty printed. @@ -20395,7 +29262,7 @@ export class ObservableSchedulingV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public listPriorityClass(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listPriorityClassWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.listPriorityClass(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); // build promise chain @@ -20410,10 +29277,27 @@ export class ObservableSchedulingV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listPriorityClass(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listPriorityClassWithHttpInfo(rsp))); })); } + /** + * list or watch objects of kind PriorityClass + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + return this.listPriorityClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * partially update the specified PriorityClass * @param name name of the PriorityClass @@ -20423,7 +29307,7 @@ export class ObservableSchedulingV1Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). * @param force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + public patchPriorityClassWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.patchPriorityClass(name, body, pretty, dryRun, fieldManager, force, _options); // build promise chain @@ -20438,16 +29322,29 @@ export class ObservableSchedulingV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchPriorityClass(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchPriorityClassWithHttpInfo(rsp))); })); } + /** + * partially update the specified PriorityClass + * @param name name of the PriorityClass + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + return this.patchPriorityClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * read the specified PriorityClass * @param name name of the PriorityClass * @param pretty If \'true\', then the output is pretty printed. */ - public readPriorityClass(name: string, pretty?: string, _options?: Configuration): Observable { + public readPriorityClassWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.readPriorityClass(name, pretty, _options); // build promise chain @@ -20462,10 +29359,19 @@ export class ObservableSchedulingV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readPriorityClass(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readPriorityClassWithHttpInfo(rsp))); })); } + /** + * read the specified PriorityClass + * @param name name of the PriorityClass + * @param pretty If \'true\', then the output is pretty printed. + */ + public readPriorityClass(name: string, pretty?: string, _options?: Configuration): Observable { + return this.readPriorityClassWithHttpInfo(name, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * replace the specified PriorityClass * @param name name of the PriorityClass @@ -20474,7 +29380,7 @@ export class ObservableSchedulingV1Api { * @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. */ - public replacePriorityClass(name: string, body: V1PriorityClass, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public replacePriorityClassWithHttpInfo(name: string, body: V1PriorityClass, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.replacePriorityClass(name, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -20489,10 +29395,22 @@ export class ObservableSchedulingV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replacePriorityClass(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replacePriorityClassWithHttpInfo(rsp))); })); } + /** + * replace the specified PriorityClass + * @param name name of the PriorityClass + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public replacePriorityClass(name: string, body: V1PriorityClass, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.replacePriorityClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + } import { SchedulingV1alpha1ApiRequestFactory, SchedulingV1alpha1ApiResponseProcessor} from "../apis/SchedulingV1alpha1Api"; @@ -20518,7 +29436,7 @@ export class ObservableSchedulingV1alpha1Api { * @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. */ - public createPriorityClass(body: V1alpha1PriorityClass, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public createPriorityClassWithHttpInfo(body: V1alpha1PriorityClass, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.createPriorityClass(body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -20533,10 +29451,21 @@ export class ObservableSchedulingV1alpha1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createPriorityClass(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createPriorityClassWithHttpInfo(rsp))); })); } + /** + * create a PriorityClass + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public createPriorityClass(body: V1alpha1PriorityClass, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.createPriorityClassWithHttpInfo(body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * delete collection of PriorityClass * @param pretty If \'true\', then the output is pretty printed. @@ -20553,7 +29482,7 @@ export class ObservableSchedulingV1alpha1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param body */ - public deleteCollectionPriorityClass(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteCollectionPriorityClassWithHttpInfo(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.deleteCollectionPriorityClass(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); // build promise chain @@ -20568,10 +29497,30 @@ export class ObservableSchedulingV1alpha1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionPriorityClass(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionPriorityClassWithHttpInfo(rsp))); })); } + /** + * delete collection of PriorityClass + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionPriorityClass(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { + return this.deleteCollectionPriorityClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * delete a PriorityClass * @param name name of the PriorityClass @@ -20582,7 +29531,7 @@ export class ObservableSchedulingV1alpha1Api { * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. * @param body */ - public deletePriorityClass(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deletePriorityClassWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.deletePriorityClass(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); // build promise chain @@ -20597,14 +29546,28 @@ export class ObservableSchedulingV1alpha1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deletePriorityClass(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deletePriorityClassWithHttpInfo(rsp))); })); } + /** + * delete a PriorityClass + * @param name name of the PriorityClass + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deletePriorityClass(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + return this.deletePriorityClassWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * get available resources */ - public getAPIResources(_options?: Configuration): Observable { + public getAPIResourcesWithHttpInfo(_options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.getAPIResources(_options); // build promise chain @@ -20619,10 +29582,17 @@ export class ObservableSchedulingV1alpha1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResources(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResourcesWithHttpInfo(rsp))); })); } + /** + * get available resources + */ + public getAPIResources(_options?: Configuration): Observable { + return this.getAPIResourcesWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * list or watch objects of kind PriorityClass * @param pretty If \'true\', then the output is pretty printed. @@ -20636,7 +29606,7 @@ export class ObservableSchedulingV1alpha1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listPriorityClassWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.listPriorityClass(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); // build promise chain @@ -20651,10 +29621,27 @@ export class ObservableSchedulingV1alpha1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listPriorityClass(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listPriorityClassWithHttpInfo(rsp))); })); } + /** + * list or watch objects of kind PriorityClass + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + return this.listPriorityClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * partially update the specified PriorityClass * @param name name of the PriorityClass @@ -20664,7 +29651,7 @@ export class ObservableSchedulingV1alpha1Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + public patchPriorityClassWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.patchPriorityClass(name, body, pretty, dryRun, fieldManager, force, _options); // build promise chain @@ -20679,16 +29666,29 @@ export class ObservableSchedulingV1alpha1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchPriorityClass(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchPriorityClassWithHttpInfo(rsp))); })); } + /** + * partially update the specified PriorityClass + * @param name name of the PriorityClass + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + return this.patchPriorityClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * read the specified PriorityClass * @param name name of the PriorityClass * @param pretty If \'true\', then the output is pretty printed. */ - public readPriorityClass(name: string, pretty?: string, _options?: Configuration): Observable { + public readPriorityClassWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.readPriorityClass(name, pretty, _options); // build promise chain @@ -20703,10 +29703,19 @@ export class ObservableSchedulingV1alpha1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readPriorityClass(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readPriorityClassWithHttpInfo(rsp))); })); } + /** + * read the specified PriorityClass + * @param name name of the PriorityClass + * @param pretty If \'true\', then the output is pretty printed. + */ + public readPriorityClass(name: string, pretty?: string, _options?: Configuration): Observable { + return this.readPriorityClassWithHttpInfo(name, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * replace the specified PriorityClass * @param name name of the PriorityClass @@ -20715,7 +29724,7 @@ export class ObservableSchedulingV1alpha1Api { * @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. */ - public replacePriorityClass(name: string, body: V1alpha1PriorityClass, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public replacePriorityClassWithHttpInfo(name: string, body: V1alpha1PriorityClass, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.replacePriorityClass(name, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -20730,10 +29739,22 @@ export class ObservableSchedulingV1alpha1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replacePriorityClass(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replacePriorityClassWithHttpInfo(rsp))); })); } + /** + * replace the specified PriorityClass + * @param name name of the PriorityClass + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public replacePriorityClass(name: string, body: V1alpha1PriorityClass, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.replacePriorityClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + } import { StorageApiRequestFactory, StorageApiResponseProcessor} from "../apis/StorageApi"; @@ -20755,7 +29776,7 @@ export class ObservableStorageApi { /** * get information of a group */ - public getAPIGroup(_options?: Configuration): Observable { + public getAPIGroupWithHttpInfo(_options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.getAPIGroup(_options); // build promise chain @@ -20770,10 +29791,17 @@ export class ObservableStorageApi { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIGroup(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIGroupWithHttpInfo(rsp))); })); } + /** + * get information of a group + */ + public getAPIGroup(_options?: Configuration): Observable { + return this.getAPIGroupWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + } import { StorageV1ApiRequestFactory, StorageV1ApiResponseProcessor} from "../apis/StorageV1Api"; @@ -20799,7 +29827,7 @@ export class ObservableStorageV1Api { * @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. */ - public createCSIDriver(body: V1CSIDriver, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public createCSIDriverWithHttpInfo(body: V1CSIDriver, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.createCSIDriver(body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -20814,10 +29842,21 @@ export class ObservableStorageV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createCSIDriver(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createCSIDriverWithHttpInfo(rsp))); })); } + /** + * create a CSIDriver + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public createCSIDriver(body: V1CSIDriver, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.createCSIDriverWithHttpInfo(body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * create a CSINode * @param body @@ -20825,7 +29864,7 @@ export class ObservableStorageV1Api { * @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. */ - public createCSINode(body: V1CSINode, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public createCSINodeWithHttpInfo(body: V1CSINode, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.createCSINode(body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -20840,7 +29879,44 @@ export class ObservableStorageV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createCSINode(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createCSINodeWithHttpInfo(rsp))); + })); + } + + /** + * create a CSINode + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public createCSINode(body: V1CSINode, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.createCSINodeWithHttpInfo(body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * create a StorageClass + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public createStorageClassWithHttpInfo(body: V1StorageClass, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.createStorageClass(body, pretty, dryRun, fieldManager, _options); + + // build promise chain + let middlewarePreObservable = from(requestContextPromise); + for (let middleware of this.configuration.middleware) { + middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); + } + + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + pipe(mergeMap((response: ResponseContext) => { + let middlewarePostObservable = of(response); + for (let middleware of this.configuration.middleware) { + middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); + } + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createStorageClassWithHttpInfo(rsp))); })); } @@ -20852,7 +29928,18 @@ export class ObservableStorageV1Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. */ public createStorageClass(body: V1StorageClass, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.createStorageClass(body, pretty, dryRun, fieldManager, _options); + return this.createStorageClassWithHttpInfo(body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * create a VolumeAttachment + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public createVolumeAttachmentWithHttpInfo(body: V1VolumeAttachment, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.createVolumeAttachment(body, pretty, dryRun, fieldManager, _options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -20866,7 +29953,7 @@ export class ObservableStorageV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createStorageClass(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createVolumeAttachmentWithHttpInfo(rsp))); })); } @@ -20878,7 +29965,21 @@ export class ObservableStorageV1Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. */ public createVolumeAttachment(body: V1VolumeAttachment, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.createVolumeAttachment(body, pretty, dryRun, fieldManager, _options); + return this.createVolumeAttachmentWithHttpInfo(body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * delete a CSIDriver + * @param name name of the CSIDriver + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteCSIDriverWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.deleteCSIDriver(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -20892,7 +29993,7 @@ export class ObservableStorageV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createVolumeAttachment(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCSIDriverWithHttpInfo(rsp))); })); } @@ -20907,7 +30008,21 @@ export class ObservableStorageV1Api { * @param body */ public deleteCSIDriver(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.deleteCSIDriver(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + return this.deleteCSIDriverWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * delete a CSINode + * @param name name of the CSINode + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteCSINodeWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.deleteCSINode(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -20921,7 +30036,7 @@ export class ObservableStorageV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCSIDriver(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCSINodeWithHttpInfo(rsp))); })); } @@ -20936,7 +30051,27 @@ export class ObservableStorageV1Api { * @param body */ public deleteCSINode(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.deleteCSINode(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + return this.deleteCSINodeWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * delete collection of CSIDriver + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionCSIDriverWithHttpInfo(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.deleteCollectionCSIDriver(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -20950,7 +30085,7 @@ export class ObservableStorageV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCSINode(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionCSIDriverWithHttpInfo(rsp))); })); } @@ -20971,7 +30106,27 @@ export class ObservableStorageV1Api { * @param body */ public deleteCollectionCSIDriver(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.deleteCollectionCSIDriver(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + return this.deleteCollectionCSIDriverWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * delete collection of CSINode + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionCSINodeWithHttpInfo(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.deleteCollectionCSINode(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -20985,7 +30140,7 @@ export class ObservableStorageV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionCSIDriver(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionCSINodeWithHttpInfo(rsp))); })); } @@ -21006,7 +30161,27 @@ export class ObservableStorageV1Api { * @param body */ public deleteCollectionCSINode(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.deleteCollectionCSINode(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + return this.deleteCollectionCSINodeWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * delete collection of StorageClass + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionStorageClassWithHttpInfo(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.deleteCollectionStorageClass(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -21020,7 +30195,7 @@ export class ObservableStorageV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionCSINode(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionStorageClassWithHttpInfo(rsp))); })); } @@ -21041,7 +30216,27 @@ export class ObservableStorageV1Api { * @param body */ public deleteCollectionStorageClass(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.deleteCollectionStorageClass(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + return this.deleteCollectionStorageClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * delete collection of VolumeAttachment + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionVolumeAttachmentWithHttpInfo(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.deleteCollectionVolumeAttachment(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -21055,7 +30250,7 @@ export class ObservableStorageV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionStorageClass(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionVolumeAttachmentWithHttpInfo(rsp))); })); } @@ -21076,7 +30271,21 @@ export class ObservableStorageV1Api { * @param body */ public deleteCollectionVolumeAttachment(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.deleteCollectionVolumeAttachment(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + return this.deleteCollectionVolumeAttachmentWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * delete a StorageClass + * @param name name of the StorageClass + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteStorageClassWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.deleteStorageClass(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -21090,7 +30299,7 @@ export class ObservableStorageV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionVolumeAttachment(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteStorageClassWithHttpInfo(rsp))); })); } @@ -21105,7 +30314,21 @@ export class ObservableStorageV1Api { * @param body */ public deleteStorageClass(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.deleteStorageClass(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + return this.deleteStorageClassWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * delete a VolumeAttachment + * @param name name of the VolumeAttachment + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteVolumeAttachmentWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.deleteVolumeAttachment(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -21119,7 +30342,7 @@ export class ObservableStorageV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteStorageClass(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteVolumeAttachmentWithHttpInfo(rsp))); })); } @@ -21134,7 +30357,14 @@ export class ObservableStorageV1Api { * @param body */ public deleteVolumeAttachment(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.deleteVolumeAttachment(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + return this.deleteVolumeAttachmentWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * get available resources + */ + public getAPIResourcesWithHttpInfo(_options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.getAPIResources(_options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -21148,7 +30378,7 @@ export class ObservableStorageV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteVolumeAttachment(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResourcesWithHttpInfo(rsp))); })); } @@ -21156,7 +30386,24 @@ export class ObservableStorageV1Api { * get available resources */ public getAPIResources(_options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.getAPIResources(_options); + return this.getAPIResourcesWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * list or watch objects of kind CSIDriver + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.listCSIDriver(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -21170,7 +30417,7 @@ export class ObservableStorageV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResources(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listCSIDriverWithHttpInfo(rsp))); })); } @@ -21188,7 +30435,24 @@ 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 listCSIDriver(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.listCSIDriver(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return this.listCSIDriverWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * list or watch objects of kind CSINode + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.listCSINode(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -21202,7 +30466,7 @@ export class ObservableStorageV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listCSIDriver(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listCSINodeWithHttpInfo(rsp))); })); } @@ -21220,7 +30484,24 @@ 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 listCSINode(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.listCSINode(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return this.listCSINodeWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * list or watch objects of kind StorageClass + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.listStorageClass(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -21234,7 +30515,7 @@ export class ObservableStorageV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listCSINode(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listStorageClassWithHttpInfo(rsp))); })); } @@ -21252,7 +30533,24 @@ 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 listStorageClass(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.listStorageClass(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return this.listStorageClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * list or watch objects of kind VolumeAttachment + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.listVolumeAttachment(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -21266,7 +30564,7 @@ export class ObservableStorageV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listStorageClass(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listVolumeAttachmentWithHttpInfo(rsp))); })); } @@ -21284,7 +30582,20 @@ 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 listVolumeAttachment(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.listVolumeAttachment(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return this.listVolumeAttachmentWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * partially update the specified CSIDriver + * @param name name of the CSIDriver + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.patchCSIDriver(name, body, pretty, dryRun, fieldManager, force, _options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -21298,7 +30609,7 @@ export class ObservableStorageV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listVolumeAttachment(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchCSIDriverWithHttpInfo(rsp))); })); } @@ -21312,7 +30623,20 @@ 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 patchCSIDriver(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.patchCSIDriver(name, body, pretty, dryRun, fieldManager, force, _options); + return this.patchCSIDriverWithHttpInfo(name, body, pretty, dryRun, fieldManager, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * partially update the specified CSINode + * @param name name of the CSINode + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.patchCSINode(name, body, pretty, dryRun, fieldManager, force, _options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -21326,7 +30650,7 @@ export class ObservableStorageV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchCSIDriver(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchCSINodeWithHttpInfo(rsp))); })); } @@ -21340,7 +30664,20 @@ 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 patchCSINode(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.patchCSINode(name, body, pretty, dryRun, fieldManager, force, _options); + return this.patchCSINodeWithHttpInfo(name, body, pretty, dryRun, fieldManager, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * partially update the specified StorageClass + * @param name name of the StorageClass + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.patchStorageClass(name, body, pretty, dryRun, fieldManager, force, _options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -21354,7 +30691,7 @@ export class ObservableStorageV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchCSINode(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchStorageClassWithHttpInfo(rsp))); })); } @@ -21368,7 +30705,20 @@ 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 patchStorageClass(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.patchStorageClass(name, body, pretty, dryRun, fieldManager, force, _options); + return this.patchStorageClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * partially update the specified VolumeAttachment + * @param name name of the VolumeAttachment + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.patchVolumeAttachment(name, body, pretty, dryRun, fieldManager, force, _options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -21382,7 +30732,7 @@ export class ObservableStorageV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchStorageClass(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchVolumeAttachmentWithHttpInfo(rsp))); })); } @@ -21396,7 +30746,20 @@ 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 patchVolumeAttachment(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.patchVolumeAttachment(name, body, pretty, dryRun, fieldManager, force, _options); + return this.patchVolumeAttachmentWithHttpInfo(name, body, pretty, dryRun, fieldManager, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * partially update status of the specified VolumeAttachment + * @param name name of the VolumeAttachment + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.patchVolumeAttachmentStatus(name, body, pretty, dryRun, fieldManager, force, _options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -21410,7 +30773,7 @@ export class ObservableStorageV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchVolumeAttachment(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchVolumeAttachmentStatusWithHttpInfo(rsp))); })); } @@ -21423,8 +30786,17 @@ export class ObservableStorageV1Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). * @param force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.patchVolumeAttachmentStatus(name, body, pretty, dryRun, fieldManager, force, _options); + public patchVolumeAttachmentStatus(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable { + return this.patchVolumeAttachmentStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * read the specified CSIDriver + * @param name name of the CSIDriver + * @param pretty If \'true\', then the output is pretty printed. + */ + public readCSIDriverWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.readCSIDriver(name, pretty, _options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -21438,7 +30810,7 @@ export class ObservableStorageV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchVolumeAttachmentStatus(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readCSIDriverWithHttpInfo(rsp))); })); } @@ -21448,22 +30820,7 @@ export class ObservableStorageV1Api { * @param pretty If \'true\', then the output is pretty printed. */ public readCSIDriver(name: string, pretty?: string, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.readCSIDriver(name, pretty, _options); - - // build promise chain - let middlewarePreObservable = from(requestContextPromise); - for (let middleware of this.configuration.middleware) { - middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); - } - - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). - pipe(mergeMap((response: ResponseContext) => { - let middlewarePostObservable = of(response); - for (let middleware of this.configuration.middleware) { - middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); - } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readCSIDriver(rsp))); - })); + return this.readCSIDriverWithHttpInfo(name, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } /** @@ -21471,7 +30828,7 @@ export class ObservableStorageV1Api { * @param name name of the CSINode * @param pretty If \'true\', then the output is pretty printed. */ - public readCSINode(name: string, pretty?: string, _options?: Configuration): Observable { + public readCSINodeWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.readCSINode(name, pretty, _options); // build promise chain @@ -21486,16 +30843,25 @@ export class ObservableStorageV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readCSINode(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readCSINodeWithHttpInfo(rsp))); })); } + /** + * read the specified CSINode + * @param name name of the CSINode + * @param pretty If \'true\', then the output is pretty printed. + */ + public readCSINode(name: string, pretty?: string, _options?: Configuration): Observable { + return this.readCSINodeWithHttpInfo(name, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * read the specified StorageClass * @param name name of the StorageClass * @param pretty If \'true\', then the output is pretty printed. */ - public readStorageClass(name: string, pretty?: string, _options?: Configuration): Observable { + public readStorageClassWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.readStorageClass(name, pretty, _options); // build promise chain @@ -21510,16 +30876,25 @@ export class ObservableStorageV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readStorageClass(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readStorageClassWithHttpInfo(rsp))); })); } + /** + * read the specified StorageClass + * @param name name of the StorageClass + * @param pretty If \'true\', then the output is pretty printed. + */ + public readStorageClass(name: string, pretty?: string, _options?: Configuration): Observable { + return this.readStorageClassWithHttpInfo(name, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * read the specified VolumeAttachment * @param name name of the VolumeAttachment * @param pretty If \'true\', then the output is pretty printed. */ - public readVolumeAttachment(name: string, pretty?: string, _options?: Configuration): Observable { + public readVolumeAttachmentWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.readVolumeAttachment(name, pretty, _options); // build promise chain @@ -21534,16 +30909,25 @@ export class ObservableStorageV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readVolumeAttachment(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readVolumeAttachmentWithHttpInfo(rsp))); })); } + /** + * read the specified VolumeAttachment + * @param name name of the VolumeAttachment + * @param pretty If \'true\', then the output is pretty printed. + */ + public readVolumeAttachment(name: string, pretty?: string, _options?: Configuration): Observable { + return this.readVolumeAttachmentWithHttpInfo(name, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * read status of the specified VolumeAttachment * @param name name of the VolumeAttachment * @param pretty If \'true\', then the output is pretty printed. */ - public readVolumeAttachmentStatus(name: string, pretty?: string, _options?: Configuration): Observable { + public readVolumeAttachmentStatusWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.readVolumeAttachmentStatus(name, pretty, _options); // build promise chain @@ -21558,10 +30942,19 @@ export class ObservableStorageV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readVolumeAttachmentStatus(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readVolumeAttachmentStatusWithHttpInfo(rsp))); })); } + /** + * read status of the specified VolumeAttachment + * @param name name of the VolumeAttachment + * @param pretty If \'true\', then the output is pretty printed. + */ + public readVolumeAttachmentStatus(name: string, pretty?: string, _options?: Configuration): Observable { + return this.readVolumeAttachmentStatusWithHttpInfo(name, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * replace the specified CSIDriver * @param name name of the CSIDriver @@ -21570,7 +30963,7 @@ export class ObservableStorageV1Api { * @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. */ - public replaceCSIDriver(name: string, body: V1CSIDriver, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public replaceCSIDriverWithHttpInfo(name: string, body: V1CSIDriver, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.replaceCSIDriver(name, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -21585,10 +30978,22 @@ export class ObservableStorageV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceCSIDriver(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceCSIDriverWithHttpInfo(rsp))); })); } + /** + * replace the specified CSIDriver + * @param name name of the CSIDriver + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public replaceCSIDriver(name: string, body: V1CSIDriver, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.replaceCSIDriverWithHttpInfo(name, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * replace the specified CSINode * @param name name of the CSINode @@ -21597,7 +31002,7 @@ export class ObservableStorageV1Api { * @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. */ - public replaceCSINode(name: string, body: V1CSINode, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public replaceCSINodeWithHttpInfo(name: string, body: V1CSINode, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.replaceCSINode(name, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -21612,10 +31017,22 @@ export class ObservableStorageV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceCSINode(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceCSINodeWithHttpInfo(rsp))); })); } + /** + * replace the specified CSINode + * @param name name of the CSINode + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public replaceCSINode(name: string, body: V1CSINode, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.replaceCSINodeWithHttpInfo(name, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * replace the specified StorageClass * @param name name of the StorageClass @@ -21624,7 +31041,7 @@ export class ObservableStorageV1Api { * @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. */ - public replaceStorageClass(name: string, body: V1StorageClass, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public replaceStorageClassWithHttpInfo(name: string, body: V1StorageClass, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.replaceStorageClass(name, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -21639,10 +31056,22 @@ export class ObservableStorageV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceStorageClass(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceStorageClassWithHttpInfo(rsp))); })); } + /** + * replace the specified StorageClass + * @param name name of the StorageClass + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public replaceStorageClass(name: string, body: V1StorageClass, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.replaceStorageClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * replace the specified VolumeAttachment * @param name name of the VolumeAttachment @@ -21651,7 +31080,7 @@ export class ObservableStorageV1Api { * @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. */ - public replaceVolumeAttachment(name: string, body: V1VolumeAttachment, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public replaceVolumeAttachmentWithHttpInfo(name: string, body: V1VolumeAttachment, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.replaceVolumeAttachment(name, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -21666,10 +31095,22 @@ export class ObservableStorageV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceVolumeAttachment(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceVolumeAttachmentWithHttpInfo(rsp))); })); } + /** + * replace the specified VolumeAttachment + * @param name name of the VolumeAttachment + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public replaceVolumeAttachment(name: string, body: V1VolumeAttachment, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.replaceVolumeAttachmentWithHttpInfo(name, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * replace status of the specified VolumeAttachment * @param name name of the VolumeAttachment @@ -21678,7 +31119,7 @@ export class ObservableStorageV1Api { * @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. */ - public replaceVolumeAttachmentStatus(name: string, body: V1VolumeAttachment, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public replaceVolumeAttachmentStatusWithHttpInfo(name: string, body: V1VolumeAttachment, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.replaceVolumeAttachmentStatus(name, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -21693,10 +31134,22 @@ export class ObservableStorageV1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceVolumeAttachmentStatus(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceVolumeAttachmentStatusWithHttpInfo(rsp))); })); } + /** + * replace status of the specified VolumeAttachment + * @param name name of the VolumeAttachment + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public replaceVolumeAttachmentStatus(name: string, body: V1VolumeAttachment, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.replaceVolumeAttachmentStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + } import { StorageV1alpha1ApiRequestFactory, StorageV1alpha1ApiResponseProcessor} from "../apis/StorageV1alpha1Api"; @@ -21723,7 +31176,7 @@ export class ObservableStorageV1alpha1Api { * @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. */ - public createNamespacedCSIStorageCapacity(namespace: string, body: V1alpha1CSIStorageCapacity, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public createNamespacedCSIStorageCapacityWithHttpInfo(namespace: string, body: V1alpha1CSIStorageCapacity, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.createNamespacedCSIStorageCapacity(namespace, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -21738,7 +31191,45 @@ export class ObservableStorageV1alpha1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedCSIStorageCapacity(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedCSIStorageCapacityWithHttpInfo(rsp))); + })); + } + + /** + * create a 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. + * @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. + */ + public createNamespacedCSIStorageCapacity(namespace: string, body: V1alpha1CSIStorageCapacity, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.createNamespacedCSIStorageCapacityWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * create a VolumeAttachment + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public createVolumeAttachmentWithHttpInfo(body: V1alpha1VolumeAttachment, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.createVolumeAttachment(body, pretty, dryRun, fieldManager, _options); + + // build promise chain + let middlewarePreObservable = from(requestContextPromise); + for (let middleware of this.configuration.middleware) { + middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); + } + + return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). + pipe(mergeMap((response: ResponseContext) => { + let middlewarePostObservable = of(response); + for (let middleware of this.configuration.middleware) { + middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); + } + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createVolumeAttachmentWithHttpInfo(rsp))); })); } @@ -21750,7 +31241,28 @@ export class ObservableStorageV1alpha1Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. */ public createVolumeAttachment(body: V1alpha1VolumeAttachment, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.createVolumeAttachment(body, pretty, dryRun, fieldManager, _options); + return this.createVolumeAttachmentWithHttpInfo(body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * delete collection of CSIStorageCapacity + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionNamespacedCSIStorageCapacityWithHttpInfo(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.deleteCollectionNamespacedCSIStorageCapacity(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -21764,7 +31276,7 @@ export class ObservableStorageV1alpha1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createVolumeAttachment(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedCSIStorageCapacityWithHttpInfo(rsp))); })); } @@ -21786,7 +31298,27 @@ export class ObservableStorageV1alpha1Api { * @param body */ public deleteCollectionNamespacedCSIStorageCapacity(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.deleteCollectionNamespacedCSIStorageCapacity(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + return this.deleteCollectionNamespacedCSIStorageCapacityWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * delete collection of VolumeAttachment + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionVolumeAttachmentWithHttpInfo(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.deleteCollectionVolumeAttachment(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -21800,7 +31332,7 @@ export class ObservableStorageV1alpha1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedCSIStorageCapacity(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionVolumeAttachmentWithHttpInfo(rsp))); })); } @@ -21821,7 +31353,22 @@ export class ObservableStorageV1alpha1Api { * @param body */ public deleteCollectionVolumeAttachment(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.deleteCollectionVolumeAttachment(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + return this.deleteCollectionVolumeAttachmentWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * delete a CSIStorageCapacity + * @param name name of the CSIStorageCapacity + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteNamespacedCSIStorageCapacityWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.deleteNamespacedCSIStorageCapacity(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -21835,7 +31382,7 @@ export class ObservableStorageV1alpha1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionVolumeAttachment(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedCSIStorageCapacityWithHttpInfo(rsp))); })); } @@ -21851,7 +31398,21 @@ export class ObservableStorageV1alpha1Api { * @param body */ public deleteNamespacedCSIStorageCapacity(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.deleteNamespacedCSIStorageCapacity(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + return this.deleteNamespacedCSIStorageCapacityWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * delete a VolumeAttachment + * @param name name of the VolumeAttachment + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteVolumeAttachmentWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.deleteVolumeAttachment(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -21865,7 +31426,7 @@ export class ObservableStorageV1alpha1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedCSIStorageCapacity(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteVolumeAttachmentWithHttpInfo(rsp))); })); } @@ -21880,7 +31441,14 @@ export class ObservableStorageV1alpha1Api { * @param body */ public deleteVolumeAttachment(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.deleteVolumeAttachment(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + return this.deleteVolumeAttachmentWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * get available resources + */ + public getAPIResourcesWithHttpInfo(_options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.getAPIResources(_options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -21894,7 +31462,7 @@ export class ObservableStorageV1alpha1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteVolumeAttachment(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResourcesWithHttpInfo(rsp))); })); } @@ -21902,7 +31470,24 @@ export class ObservableStorageV1alpha1Api { * get available resources */ public getAPIResources(_options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.getAPIResources(_options); + return this.getAPIResourcesWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * list or watch objects of kind CSIStorageCapacity + * @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. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.listCSIStorageCapacityForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -21916,7 +31501,7 @@ export class ObservableStorageV1alpha1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResources(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listCSIStorageCapacityForAllNamespacesWithHttpInfo(rsp))); })); } @@ -21927,14 +31512,32 @@ export class ObservableStorageV1alpha1Api { * @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. + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + return this.listCSIStorageCapacityForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + + /** + * 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. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.listCSIStorageCapacityForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + public listNamespacedCSIStorageCapacityWithHttpInfo(namespace: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { + const requestContextPromise = this.requestFactory.listNamespacedCSIStorageCapacity(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); // build promise chain let middlewarePreObservable = from(requestContextPromise); @@ -21948,7 +31551,7 @@ export class ObservableStorageV1alpha1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listCSIStorageCapacityForAllNamespaces(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedCSIStorageCapacityWithHttpInfo(rsp))); })); } @@ -21967,22 +31570,7 @@ 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 listNamespacedCSIStorageCapacity(namespace: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { - const requestContextPromise = this.requestFactory.listNamespacedCSIStorageCapacity(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); - - // build promise chain - let middlewarePreObservable = from(requestContextPromise); - for (let middleware of this.configuration.middleware) { - middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx))); - } - - return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))). - pipe(mergeMap((response: ResponseContext) => { - let middlewarePostObservable = of(response); - for (let middleware of this.configuration.middleware) { - middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); - } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedCSIStorageCapacity(rsp))); - })); + return this.listNamespacedCSIStorageCapacityWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); } /** @@ -21998,7 +31586,7 @@ export class ObservableStorageV1alpha1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public listVolumeAttachment(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listVolumeAttachmentWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.listVolumeAttachment(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); // build promise chain @@ -22013,10 +31601,27 @@ export class ObservableStorageV1alpha1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listVolumeAttachment(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listVolumeAttachmentWithHttpInfo(rsp))); })); } + /** + * list or watch objects of kind VolumeAttachment + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + return this.listVolumeAttachmentWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * partially update the specified CSIStorageCapacity * @param name name of the CSIStorageCapacity @@ -22027,7 +31632,7 @@ export class ObservableStorageV1alpha1Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). * @param force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + public patchNamespacedCSIStorageCapacityWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.patchNamespacedCSIStorageCapacity(name, namespace, body, pretty, dryRun, fieldManager, force, _options); // build promise chain @@ -22042,10 +31647,24 @@ export class ObservableStorageV1alpha1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedCSIStorageCapacity(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedCSIStorageCapacityWithHttpInfo(rsp))); })); } + /** + * partially update 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. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + return this.patchNamespacedCSIStorageCapacityWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * partially update the specified VolumeAttachment * @param name name of the VolumeAttachment @@ -22055,7 +31674,7 @@ export class ObservableStorageV1alpha1Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). * @param force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + public patchVolumeAttachmentWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.patchVolumeAttachment(name, body, pretty, dryRun, fieldManager, force, _options); // build promise chain @@ -22070,17 +31689,30 @@ export class ObservableStorageV1alpha1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchVolumeAttachment(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchVolumeAttachmentWithHttpInfo(rsp))); })); } + /** + * partially update the specified VolumeAttachment + * @param name name of the VolumeAttachment + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + return this.patchVolumeAttachmentWithHttpInfo(name, body, pretty, dryRun, fieldManager, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * read the specified CSIStorageCapacity * @param name name of the CSIStorageCapacity * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. */ - public readNamespacedCSIStorageCapacity(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedCSIStorageCapacityWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.readNamespacedCSIStorageCapacity(name, namespace, pretty, _options); // build promise chain @@ -22095,16 +31727,26 @@ export class ObservableStorageV1alpha1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedCSIStorageCapacity(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedCSIStorageCapacityWithHttpInfo(rsp))); })); } + /** + * read the specified CSIStorageCapacity + * @param name name of the CSIStorageCapacity + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + */ + public readNamespacedCSIStorageCapacity(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + return this.readNamespacedCSIStorageCapacityWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * read the specified VolumeAttachment * @param name name of the VolumeAttachment * @param pretty If \'true\', then the output is pretty printed. */ - public readVolumeAttachment(name: string, pretty?: string, _options?: Configuration): Observable { + public readVolumeAttachmentWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.readVolumeAttachment(name, pretty, _options); // build promise chain @@ -22119,10 +31761,19 @@ export class ObservableStorageV1alpha1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readVolumeAttachment(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readVolumeAttachmentWithHttpInfo(rsp))); })); } + /** + * read the specified VolumeAttachment + * @param name name of the VolumeAttachment + * @param pretty If \'true\', then the output is pretty printed. + */ + public readVolumeAttachment(name: string, pretty?: string, _options?: Configuration): Observable { + return this.readVolumeAttachmentWithHttpInfo(name, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * replace the specified CSIStorageCapacity * @param name name of the CSIStorageCapacity @@ -22132,7 +31783,7 @@ export class ObservableStorageV1alpha1Api { * @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. */ - public replaceNamespacedCSIStorageCapacity(name: string, namespace: string, body: V1alpha1CSIStorageCapacity, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public replaceNamespacedCSIStorageCapacityWithHttpInfo(name: string, namespace: string, body: V1alpha1CSIStorageCapacity, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.replaceNamespacedCSIStorageCapacity(name, namespace, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -22147,10 +31798,23 @@ export class ObservableStorageV1alpha1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedCSIStorageCapacity(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedCSIStorageCapacityWithHttpInfo(rsp))); })); } + /** + * 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. + * @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. + */ + public replaceNamespacedCSIStorageCapacity(name: string, namespace: string, body: V1alpha1CSIStorageCapacity, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.replaceNamespacedCSIStorageCapacityWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * replace the specified VolumeAttachment * @param name name of the VolumeAttachment @@ -22159,7 +31823,7 @@ export class ObservableStorageV1alpha1Api { * @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. */ - public replaceVolumeAttachment(name: string, body: V1alpha1VolumeAttachment, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public replaceVolumeAttachmentWithHttpInfo(name: string, body: V1alpha1VolumeAttachment, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.replaceVolumeAttachment(name, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -22174,10 +31838,22 @@ export class ObservableStorageV1alpha1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceVolumeAttachment(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceVolumeAttachmentWithHttpInfo(rsp))); })); } + /** + * replace the specified VolumeAttachment + * @param name name of the VolumeAttachment + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public replaceVolumeAttachment(name: string, body: V1alpha1VolumeAttachment, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.replaceVolumeAttachmentWithHttpInfo(name, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + } import { StorageV1beta1ApiRequestFactory, StorageV1beta1ApiResponseProcessor} from "../apis/StorageV1beta1Api"; @@ -22204,7 +31880,7 @@ export class ObservableStorageV1beta1Api { * @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. */ - public createNamespacedCSIStorageCapacity(namespace: string, body: V1beta1CSIStorageCapacity, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public createNamespacedCSIStorageCapacityWithHttpInfo(namespace: string, body: V1beta1CSIStorageCapacity, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.createNamespacedCSIStorageCapacity(namespace, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -22219,10 +31895,22 @@ export class ObservableStorageV1beta1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedCSIStorageCapacity(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.createNamespacedCSIStorageCapacityWithHttpInfo(rsp))); })); } + /** + * create a 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. + * @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. + */ + public createNamespacedCSIStorageCapacity(namespace: string, body: V1beta1CSIStorageCapacity, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.createNamespacedCSIStorageCapacityWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * delete collection of CSIStorageCapacity * @param namespace object name and auth scope, such as for teams and projects @@ -22240,7 +31928,7 @@ export class ObservableStorageV1beta1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param body */ - public deleteCollectionNamespacedCSIStorageCapacity(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteCollectionNamespacedCSIStorageCapacityWithHttpInfo(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.deleteCollectionNamespacedCSIStorageCapacity(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); // build promise chain @@ -22255,10 +31943,31 @@ export class ObservableStorageV1beta1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedCSIStorageCapacity(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteCollectionNamespacedCSIStorageCapacityWithHttpInfo(rsp))); })); } + /** + * delete collection of CSIStorageCapacity + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionNamespacedCSIStorageCapacity(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Observable { + return this.deleteCollectionNamespacedCSIStorageCapacityWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * delete a CSIStorageCapacity * @param name name of the CSIStorageCapacity @@ -22270,7 +31979,7 @@ export class ObservableStorageV1beta1Api { * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. * @param body */ - public deleteNamespacedCSIStorageCapacity(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + public deleteNamespacedCSIStorageCapacityWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.deleteNamespacedCSIStorageCapacity(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); // build promise chain @@ -22285,14 +31994,29 @@ export class ObservableStorageV1beta1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedCSIStorageCapacity(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.deleteNamespacedCSIStorageCapacityWithHttpInfo(rsp))); })); } + /** + * delete a CSIStorageCapacity + * @param name name of the CSIStorageCapacity + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteNamespacedCSIStorageCapacity(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Observable { + return this.deleteNamespacedCSIStorageCapacityWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * get available resources */ - public getAPIResources(_options?: Configuration): Observable { + public getAPIResourcesWithHttpInfo(_options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.getAPIResources(_options); // build promise chain @@ -22307,10 +32031,17 @@ export class ObservableStorageV1beta1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResources(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getAPIResourcesWithHttpInfo(rsp))); })); } + /** + * get available resources + */ + public getAPIResources(_options?: Configuration): Observable { + return this.getAPIResourcesWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * list or watch objects of kind CSIStorageCapacity * @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. @@ -22324,7 +32055,7 @@ export class ObservableStorageV1beta1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public listCSIStorageCapacityForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listCSIStorageCapacityForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.listCSIStorageCapacityForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); // build promise chain @@ -22339,10 +32070,27 @@ export class ObservableStorageV1beta1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listCSIStorageCapacityForAllNamespaces(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listCSIStorageCapacityForAllNamespacesWithHttpInfo(rsp))); })); } + /** + * list or watch objects of kind CSIStorageCapacity + * @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. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + return this.listCSIStorageCapacityForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * list or watch objects of kind CSIStorageCapacity * @param namespace object name and auth scope, such as for teams and projects @@ -22357,7 +32105,7 @@ export class ObservableStorageV1beta1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public listNamespacedCSIStorageCapacity(namespace: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + public listNamespacedCSIStorageCapacityWithHttpInfo(namespace: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.listNamespacedCSIStorageCapacity(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); // build promise chain @@ -22372,10 +32120,28 @@ export class ObservableStorageV1beta1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedCSIStorageCapacity(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.listNamespacedCSIStorageCapacityWithHttpInfo(rsp))); })); } + /** + * 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. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Observable { + return this.listNamespacedCSIStorageCapacityWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * partially update the specified CSIStorageCapacity * @param name name of the CSIStorageCapacity @@ -22386,7 +32152,7 @@ export class ObservableStorageV1beta1Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). * @param force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + public patchNamespacedCSIStorageCapacityWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.patchNamespacedCSIStorageCapacity(name, namespace, body, pretty, dryRun, fieldManager, force, _options); // build promise chain @@ -22401,17 +32167,31 @@ export class ObservableStorageV1beta1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedCSIStorageCapacity(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.patchNamespacedCSIStorageCapacityWithHttpInfo(rsp))); })); } + /** + * partially update 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. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Observable { + return this.patchNamespacedCSIStorageCapacityWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * read the specified CSIStorageCapacity * @param name name of the CSIStorageCapacity * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. */ - public readNamespacedCSIStorageCapacity(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + public readNamespacedCSIStorageCapacityWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.readNamespacedCSIStorageCapacity(name, namespace, pretty, _options); // build promise chain @@ -22426,10 +32206,20 @@ export class ObservableStorageV1beta1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedCSIStorageCapacity(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.readNamespacedCSIStorageCapacityWithHttpInfo(rsp))); })); } + /** + * read the specified CSIStorageCapacity + * @param name name of the CSIStorageCapacity + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + */ + public readNamespacedCSIStorageCapacity(name: string, namespace: string, pretty?: string, _options?: Configuration): Observable { + return this.readNamespacedCSIStorageCapacityWithHttpInfo(name, namespace, pretty, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + /** * replace the specified CSIStorageCapacity * @param name name of the CSIStorageCapacity @@ -22439,7 +32229,7 @@ export class ObservableStorageV1beta1Api { * @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. */ - public replaceNamespacedCSIStorageCapacity(name: string, namespace: string, body: V1beta1CSIStorageCapacity, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + public replaceNamespacedCSIStorageCapacityWithHttpInfo(name: string, namespace: string, body: V1beta1CSIStorageCapacity, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.replaceNamespacedCSIStorageCapacity(name, namespace, body, pretty, dryRun, fieldManager, _options); // build promise chain @@ -22454,10 +32244,23 @@ export class ObservableStorageV1beta1Api { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedCSIStorageCapacity(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.replaceNamespacedCSIStorageCapacityWithHttpInfo(rsp))); })); } + /** + * 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. + * @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. + */ + public replaceNamespacedCSIStorageCapacity(name: string, namespace: string, body: V1beta1CSIStorageCapacity, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Observable { + return this.replaceNamespacedCSIStorageCapacityWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + } import { VersionApiRequestFactory, VersionApiResponseProcessor} from "../apis/VersionApi"; @@ -22479,7 +32282,7 @@ export class ObservableVersionApi { /** * get the code version */ - public getCode(_options?: Configuration): Observable { + public getCodeWithHttpInfo(_options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.getCode(_options); // build promise chain @@ -22494,10 +32297,17 @@ export class ObservableVersionApi { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getCode(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getCodeWithHttpInfo(rsp))); })); } + /** + * get the code version + */ + public getCode(_options?: Configuration): Observable { + return this.getCodeWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + } import { WellKnownApiRequestFactory, WellKnownApiResponseProcessor} from "../apis/WellKnownApi"; @@ -22519,7 +32329,7 @@ export class ObservableWellKnownApi { /** * get service account issuer OpenID configuration, also known as the \'OIDC discovery doc\' */ - public getServiceAccountIssuerOpenIDConfiguration(_options?: Configuration): Observable { + public getServiceAccountIssuerOpenIDConfigurationWithHttpInfo(_options?: Configuration): Observable> { const requestContextPromise = this.requestFactory.getServiceAccountIssuerOpenIDConfiguration(_options); // build promise chain @@ -22534,8 +32344,15 @@ export class ObservableWellKnownApi { for (let middleware of this.configuration.middleware) { middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp))); } - return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getServiceAccountIssuerOpenIDConfiguration(rsp))); + return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getServiceAccountIssuerOpenIDConfigurationWithHttpInfo(rsp))); })); } + /** + * get service account issuer OpenID configuration, also known as the \'OIDC discovery doc\' + */ + public getServiceAccountIssuerOpenIDConfiguration(_options?: Configuration): Observable { + return this.getServiceAccountIssuerOpenIDConfigurationWithHttpInfo(_options).pipe(map((apiResponse: HttpInfo) => apiResponse.data)); + } + } diff --git a/src/gen/types/PromiseAPI.ts b/src/gen/types/PromiseAPI.ts index 17377449ff2..9cdca48ad42 100644 --- a/src/gen/types/PromiseAPI.ts +++ b/src/gen/types/PromiseAPI.ts @@ -1,4 +1,4 @@ -import { ResponseContext, RequestContext, HttpFile } from '../http/http'; +import { ResponseContext, RequestContext, HttpFile, HttpInfo } from '../http/http'; import { Configuration} from '../configuration' import { AdmissionregistrationV1ServiceReference } from '../models/AdmissionregistrationV1ServiceReference'; @@ -540,6 +540,14 @@ export class PromiseAdmissionregistrationApi { this.api = new ObservableAdmissionregistrationApi(configuration, requestFactory, responseProcessor); } + /** + * get information of a group + */ + public getAPIGroupWithHttpInfo(_options?: Configuration): Promise> { + const result = this.api.getAPIGroupWithHttpInfo(_options); + return result.toPromise(); + } + /** * get information of a group */ @@ -567,6 +575,18 @@ export class PromiseAdmissionregistrationV1Api { this.api = new ObservableAdmissionregistrationV1Api(configuration, requestFactory, responseProcessor); } + /** + * create a MutatingWebhookConfiguration + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public createMutatingWebhookConfigurationWithHttpInfo(body: V1MutatingWebhookConfiguration, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.createMutatingWebhookConfigurationWithHttpInfo(body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + /** * create a MutatingWebhookConfiguration * @param body @@ -579,6 +599,18 @@ export class PromiseAdmissionregistrationV1Api { return result.toPromise(); } + /** + * create a ValidatingWebhookConfiguration + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public createValidatingWebhookConfigurationWithHttpInfo(body: V1ValidatingWebhookConfiguration, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.createValidatingWebhookConfigurationWithHttpInfo(body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + /** * create a ValidatingWebhookConfiguration * @param body @@ -591,6 +623,27 @@ export class PromiseAdmissionregistrationV1Api { return result.toPromise(); } + /** + * delete collection of MutatingWebhookConfiguration + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionMutatingWebhookConfigurationWithHttpInfo(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteCollectionMutatingWebhookConfigurationWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + return result.toPromise(); + } + /** * delete collection of MutatingWebhookConfiguration * @param pretty If \'true\', then the output is pretty printed. @@ -612,6 +665,27 @@ export class PromiseAdmissionregistrationV1Api { return result.toPromise(); } + /** + * delete collection of ValidatingWebhookConfiguration + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionValidatingWebhookConfigurationWithHttpInfo(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteCollectionValidatingWebhookConfigurationWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + return result.toPromise(); + } + /** * delete collection of ValidatingWebhookConfiguration * @param pretty If \'true\', then the output is pretty printed. @@ -633,6 +707,21 @@ export class PromiseAdmissionregistrationV1Api { return result.toPromise(); } + /** + * delete a MutatingWebhookConfiguration + * @param name name of the MutatingWebhookConfiguration + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteMutatingWebhookConfigurationWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteMutatingWebhookConfigurationWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + return result.toPromise(); + } + /** * delete a MutatingWebhookConfiguration * @param name name of the MutatingWebhookConfiguration @@ -648,6 +737,21 @@ export class PromiseAdmissionregistrationV1Api { return result.toPromise(); } + /** + * delete a ValidatingWebhookConfiguration + * @param name name of the ValidatingWebhookConfiguration + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteValidatingWebhookConfigurationWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteValidatingWebhookConfigurationWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + return result.toPromise(); + } + /** * delete a ValidatingWebhookConfiguration * @param name name of the ValidatingWebhookConfiguration @@ -663,6 +767,14 @@ export class PromiseAdmissionregistrationV1Api { return result.toPromise(); } + /** + * get available resources + */ + public getAPIResourcesWithHttpInfo(_options?: Configuration): Promise> { + const result = this.api.getAPIResourcesWithHttpInfo(_options); + return result.toPromise(); + } + /** * get available resources */ @@ -671,6 +783,24 @@ export class PromiseAdmissionregistrationV1Api { return result.toPromise(); } + /** + * list or watch objects of kind MutatingWebhookConfiguration + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { + const result = this.api.listMutatingWebhookConfigurationWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + /** * list or watch objects of kind MutatingWebhookConfiguration * @param pretty If \'true\', then the output is pretty printed. @@ -689,6 +819,24 @@ export class PromiseAdmissionregistrationV1Api { return result.toPromise(); } + /** + * list or watch objects of kind ValidatingWebhookConfiguration + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { + const result = this.api.listValidatingWebhookConfigurationWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + /** * list or watch objects of kind ValidatingWebhookConfiguration * @param pretty If \'true\', then the output is pretty printed. @@ -707,6 +855,20 @@ export class PromiseAdmissionregistrationV1Api { return result.toPromise(); } + /** + * partially update the specified MutatingWebhookConfiguration + * @param name name of the MutatingWebhookConfiguration + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise> { + const result = this.api.patchMutatingWebhookConfigurationWithHttpInfo(name, body, pretty, dryRun, fieldManager, force, _options); + return result.toPromise(); + } + /** * partially update the specified MutatingWebhookConfiguration * @param name name of the MutatingWebhookConfiguration @@ -721,6 +883,20 @@ export class PromiseAdmissionregistrationV1Api { return result.toPromise(); } + /** + * partially update the specified ValidatingWebhookConfiguration + * @param name name of the ValidatingWebhookConfiguration + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise> { + const result = this.api.patchValidatingWebhookConfigurationWithHttpInfo(name, body, pretty, dryRun, fieldManager, force, _options); + return result.toPromise(); + } + /** * partially update the specified ValidatingWebhookConfiguration * @param name name of the ValidatingWebhookConfiguration @@ -735,6 +911,16 @@ export class PromiseAdmissionregistrationV1Api { return result.toPromise(); } + /** + * read the specified MutatingWebhookConfiguration + * @param name name of the MutatingWebhookConfiguration + * @param pretty If \'true\', then the output is pretty printed. + */ + public readMutatingWebhookConfigurationWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.readMutatingWebhookConfigurationWithHttpInfo(name, pretty, _options); + return result.toPromise(); + } + /** * read the specified MutatingWebhookConfiguration * @param name name of the MutatingWebhookConfiguration @@ -745,6 +931,16 @@ export class PromiseAdmissionregistrationV1Api { return result.toPromise(); } + /** + * read the specified ValidatingWebhookConfiguration + * @param name name of the ValidatingWebhookConfiguration + * @param pretty If \'true\', then the output is pretty printed. + */ + public readValidatingWebhookConfigurationWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.readValidatingWebhookConfigurationWithHttpInfo(name, pretty, _options); + return result.toPromise(); + } + /** * read the specified ValidatingWebhookConfiguration * @param name name of the ValidatingWebhookConfiguration @@ -755,6 +951,19 @@ export class PromiseAdmissionregistrationV1Api { return result.toPromise(); } + /** + * replace the specified MutatingWebhookConfiguration + * @param name name of the MutatingWebhookConfiguration + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public replaceMutatingWebhookConfigurationWithHttpInfo(name: string, body: V1MutatingWebhookConfiguration, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.replaceMutatingWebhookConfigurationWithHttpInfo(name, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + /** * replace the specified MutatingWebhookConfiguration * @param name name of the MutatingWebhookConfiguration @@ -768,6 +977,19 @@ export class PromiseAdmissionregistrationV1Api { return result.toPromise(); } + /** + * replace the specified ValidatingWebhookConfiguration + * @param name name of the ValidatingWebhookConfiguration + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public replaceValidatingWebhookConfigurationWithHttpInfo(name: string, body: V1ValidatingWebhookConfiguration, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.replaceValidatingWebhookConfigurationWithHttpInfo(name, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + /** * replace the specified ValidatingWebhookConfiguration * @param name name of the ValidatingWebhookConfiguration @@ -800,6 +1022,14 @@ export class PromiseApiextensionsApi { this.api = new ObservableApiextensionsApi(configuration, requestFactory, responseProcessor); } + /** + * get information of a group + */ + public getAPIGroupWithHttpInfo(_options?: Configuration): Promise> { + const result = this.api.getAPIGroupWithHttpInfo(_options); + return result.toPromise(); + } + /** * get information of a group */ @@ -827,6 +1057,18 @@ export class PromiseApiextensionsV1Api { this.api = new ObservableApiextensionsV1Api(configuration, requestFactory, responseProcessor); } + /** + * create a CustomResourceDefinition + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public createCustomResourceDefinitionWithHttpInfo(body: V1CustomResourceDefinition, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.createCustomResourceDefinitionWithHttpInfo(body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + /** * create a CustomResourceDefinition * @param body @@ -839,6 +1081,27 @@ export class PromiseApiextensionsV1Api { return result.toPromise(); } + /** + * delete collection of CustomResourceDefinition + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionCustomResourceDefinitionWithHttpInfo(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteCollectionCustomResourceDefinitionWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + return result.toPromise(); + } + /** * delete collection of CustomResourceDefinition * @param pretty If \'true\', then the output is pretty printed. @@ -860,6 +1123,21 @@ export class PromiseApiextensionsV1Api { return result.toPromise(); } + /** + * delete a CustomResourceDefinition + * @param name name of the CustomResourceDefinition + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteCustomResourceDefinitionWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteCustomResourceDefinitionWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + return result.toPromise(); + } + /** * delete a CustomResourceDefinition * @param name name of the CustomResourceDefinition @@ -875,6 +1153,14 @@ export class PromiseApiextensionsV1Api { return result.toPromise(); } + /** + * get available resources + */ + public getAPIResourcesWithHttpInfo(_options?: Configuration): Promise> { + const result = this.api.getAPIResourcesWithHttpInfo(_options); + return result.toPromise(); + } + /** * get available resources */ @@ -896,22 +1182,68 @@ export class PromiseApiextensionsV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public listCustomResourceDefinition(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { - const result = this.api.listCustomResourceDefinition(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + public listCustomResourceDefinitionWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { + const result = this.api.listCustomResourceDefinitionWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); return result.toPromise(); } /** - * partially update the specified CustomResourceDefinition - * @param name name of the CustomResourceDefinition - * @param body + * list or watch objects of kind CustomResourceDefinition * @param pretty If \'true\', then the output is pretty printed. - * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchCustomResourceDefinition(name, body, pretty, dryRun, fieldManager, force, _options); + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + const result = this.api.listCustomResourceDefinition(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + + /** + * partially update the specified CustomResourceDefinition + * @param name name of the CustomResourceDefinition + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise> { + const result = this.api.patchCustomResourceDefinitionWithHttpInfo(name, body, pretty, dryRun, fieldManager, force, _options); + return result.toPromise(); + } + + /** + * partially update the specified CustomResourceDefinition + * @param name name of the CustomResourceDefinition + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise { + const result = this.api.patchCustomResourceDefinition(name, body, pretty, dryRun, fieldManager, force, _options); + return result.toPromise(); + } + + /** + * partially update status of the specified CustomResourceDefinition + * @param name name of the CustomResourceDefinition + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise> { + const result = this.api.patchCustomResourceDefinitionStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, force, _options); return result.toPromise(); } @@ -929,6 +1261,16 @@ export class PromiseApiextensionsV1Api { return result.toPromise(); } + /** + * read the specified CustomResourceDefinition + * @param name name of the CustomResourceDefinition + * @param pretty If \'true\', then the output is pretty printed. + */ + public readCustomResourceDefinitionWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.readCustomResourceDefinitionWithHttpInfo(name, pretty, _options); + return result.toPromise(); + } + /** * read the specified CustomResourceDefinition * @param name name of the CustomResourceDefinition @@ -939,6 +1281,16 @@ export class PromiseApiextensionsV1Api { return result.toPromise(); } + /** + * read status of the specified CustomResourceDefinition + * @param name name of the CustomResourceDefinition + * @param pretty If \'true\', then the output is pretty printed. + */ + public readCustomResourceDefinitionStatusWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.readCustomResourceDefinitionStatusWithHttpInfo(name, pretty, _options); + return result.toPromise(); + } + /** * read status of the specified CustomResourceDefinition * @param name name of the CustomResourceDefinition @@ -949,6 +1301,19 @@ export class PromiseApiextensionsV1Api { return result.toPromise(); } + /** + * replace the specified CustomResourceDefinition + * @param name name of the CustomResourceDefinition + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public replaceCustomResourceDefinitionWithHttpInfo(name: string, body: V1CustomResourceDefinition, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.replaceCustomResourceDefinitionWithHttpInfo(name, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + /** * replace the specified CustomResourceDefinition * @param name name of the CustomResourceDefinition @@ -962,6 +1327,19 @@ export class PromiseApiextensionsV1Api { return result.toPromise(); } + /** + * replace status of the specified CustomResourceDefinition + * @param name name of the CustomResourceDefinition + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public replaceCustomResourceDefinitionStatusWithHttpInfo(name: string, body: V1CustomResourceDefinition, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.replaceCustomResourceDefinitionStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + /** * replace status of the specified CustomResourceDefinition * @param name name of the CustomResourceDefinition @@ -994,6 +1372,14 @@ export class PromiseApiregistrationApi { this.api = new ObservableApiregistrationApi(configuration, requestFactory, responseProcessor); } + /** + * get information of a group + */ + public getAPIGroupWithHttpInfo(_options?: Configuration): Promise> { + const result = this.api.getAPIGroupWithHttpInfo(_options); + return result.toPromise(); + } + /** * get information of a group */ @@ -1021,6 +1407,18 @@ export class PromiseApiregistrationV1Api { this.api = new ObservableApiregistrationV1Api(configuration, requestFactory, responseProcessor); } + /** + * create an APIService + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public createAPIServiceWithHttpInfo(body: V1APIService, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.createAPIServiceWithHttpInfo(body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + /** * create an APIService * @param body @@ -1033,6 +1431,21 @@ export class PromiseApiregistrationV1Api { return result.toPromise(); } + /** + * delete an APIService + * @param name name of the APIService + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteAPIServiceWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteAPIServiceWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + return result.toPromise(); + } + /** * delete an APIService * @param name name of the APIService @@ -1048,6 +1461,27 @@ export class PromiseApiregistrationV1Api { return result.toPromise(); } + /** + * delete collection of APIService + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionAPIServiceWithHttpInfo(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteCollectionAPIServiceWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + return result.toPromise(); + } + /** * delete collection of APIService * @param pretty If \'true\', then the output is pretty printed. @@ -1069,6 +1503,14 @@ export class PromiseApiregistrationV1Api { return result.toPromise(); } + /** + * get available resources + */ + public getAPIResourcesWithHttpInfo(_options?: Configuration): Promise> { + const result = this.api.getAPIResourcesWithHttpInfo(_options); + return result.toPromise(); + } + /** * get available resources */ @@ -1077,6 +1519,24 @@ export class PromiseApiregistrationV1Api { return result.toPromise(); } + /** + * list or watch objects of kind APIService + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { + const result = this.api.listAPIServiceWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + /** * list or watch objects of kind APIService * @param pretty If \'true\', then the output is pretty printed. @@ -1095,6 +1555,20 @@ export class PromiseApiregistrationV1Api { return result.toPromise(); } + /** + * partially update the specified APIService + * @param name name of the APIService + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise> { + const result = this.api.patchAPIServiceWithHttpInfo(name, body, pretty, dryRun, fieldManager, force, _options); + return result.toPromise(); + } + /** * partially update the specified APIService * @param name name of the APIService @@ -1109,6 +1583,20 @@ export class PromiseApiregistrationV1Api { return result.toPromise(); } + /** + * partially update status of the specified APIService + * @param name name of the APIService + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise> { + const result = this.api.patchAPIServiceStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, force, _options); + return result.toPromise(); + } + /** * partially update status of the specified APIService * @param name name of the APIService @@ -1123,6 +1611,16 @@ export class PromiseApiregistrationV1Api { return result.toPromise(); } + /** + * read the specified APIService + * @param name name of the APIService + * @param pretty If \'true\', then the output is pretty printed. + */ + public readAPIServiceWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.readAPIServiceWithHttpInfo(name, pretty, _options); + return result.toPromise(); + } + /** * read the specified APIService * @param name name of the APIService @@ -1133,6 +1631,16 @@ export class PromiseApiregistrationV1Api { return result.toPromise(); } + /** + * read status of the specified APIService + * @param name name of the APIService + * @param pretty If \'true\', then the output is pretty printed. + */ + public readAPIServiceStatusWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.readAPIServiceStatusWithHttpInfo(name, pretty, _options); + return result.toPromise(); + } + /** * read status of the specified APIService * @param name name of the APIService @@ -1143,6 +1651,19 @@ export class PromiseApiregistrationV1Api { return result.toPromise(); } + /** + * replace the specified APIService + * @param name name of the APIService + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public replaceAPIServiceWithHttpInfo(name: string, body: V1APIService, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.replaceAPIServiceWithHttpInfo(name, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + /** * replace the specified APIService * @param name name of the APIService @@ -1156,6 +1677,19 @@ export class PromiseApiregistrationV1Api { return result.toPromise(); } + /** + * replace status of the specified APIService + * @param name name of the APIService + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public replaceAPIServiceStatusWithHttpInfo(name: string, body: V1APIService, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.replaceAPIServiceStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + /** * replace status of the specified APIService * @param name name of the APIService @@ -1188,6 +1722,14 @@ export class PromiseApisApi { this.api = new ObservableApisApi(configuration, requestFactory, responseProcessor); } + /** + * get available API versions + */ + public getAPIVersionsWithHttpInfo(_options?: Configuration): Promise> { + const result = this.api.getAPIVersionsWithHttpInfo(_options); + return result.toPromise(); + } + /** * get available API versions */ @@ -1215,6 +1757,14 @@ export class PromiseAppsApi { this.api = new ObservableAppsApi(configuration, requestFactory, responseProcessor); } + /** + * get information of a group + */ + public getAPIGroupWithHttpInfo(_options?: Configuration): Promise> { + const result = this.api.getAPIGroupWithHttpInfo(_options); + return result.toPromise(); + } + /** * get information of a group */ @@ -1250,65 +1800,152 @@ export class PromiseAppsV1Api { * @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. */ - public createNamespacedControllerRevision(namespace: string, body: V1ControllerRevision, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { - const result = this.api.createNamespacedControllerRevision(namespace, body, pretty, dryRun, fieldManager, _options); + public createNamespacedControllerRevisionWithHttpInfo(namespace: string, body: V1ControllerRevision, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.createNamespacedControllerRevisionWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, _options); return result.toPromise(); } /** - * create a DaemonSet + * create a ControllerRevision * @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. * @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. */ - public createNamespacedDaemonSet(namespace: string, body: V1DaemonSet, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { - const result = this.api.createNamespacedDaemonSet(namespace, body, pretty, dryRun, fieldManager, _options); + public createNamespacedControllerRevision(namespace: string, body: V1ControllerRevision, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { + const result = this.api.createNamespacedControllerRevision(namespace, body, pretty, dryRun, fieldManager, _options); return result.toPromise(); } /** - * create a Deployment + * create a DaemonSet * @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. * @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. */ - public createNamespacedDeployment(namespace: string, body: V1Deployment, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { - const result = this.api.createNamespacedDeployment(namespace, body, pretty, dryRun, fieldManager, _options); + public createNamespacedDaemonSetWithHttpInfo(namespace: string, body: V1DaemonSet, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.createNamespacedDaemonSetWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, _options); return result.toPromise(); } /** - * create a ReplicaSet + * create a DaemonSet * @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. * @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. */ - public createNamespacedReplicaSet(namespace: string, body: V1ReplicaSet, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { - const result = this.api.createNamespacedReplicaSet(namespace, body, pretty, dryRun, fieldManager, _options); + public createNamespacedDaemonSet(namespace: string, body: V1DaemonSet, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { + const result = this.api.createNamespacedDaemonSet(namespace, body, pretty, dryRun, fieldManager, _options); return result.toPromise(); } /** - * create a StatefulSet + * create a Deployment * @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. * @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. */ - public createNamespacedStatefulSet(namespace: string, body: V1StatefulSet, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { - const result = this.api.createNamespacedStatefulSet(namespace, body, pretty, dryRun, fieldManager, _options); + public createNamespacedDeploymentWithHttpInfo(namespace: string, body: V1Deployment, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.createNamespacedDeploymentWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, _options); return result.toPromise(); } /** - * delete collection of ControllerRevision + * create a Deployment + * @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. + * @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. + */ + public createNamespacedDeployment(namespace: string, body: V1Deployment, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { + const result = this.api.createNamespacedDeployment(namespace, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + + /** + * create a ReplicaSet + * @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. + * @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. + */ + public createNamespacedReplicaSetWithHttpInfo(namespace: string, body: V1ReplicaSet, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.createNamespacedReplicaSetWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + + /** + * create a ReplicaSet + * @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. + * @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. + */ + public createNamespacedReplicaSet(namespace: string, body: V1ReplicaSet, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { + const result = this.api.createNamespacedReplicaSet(namespace, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + + /** + * create a StatefulSet + * @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. + * @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. + */ + public createNamespacedStatefulSetWithHttpInfo(namespace: string, body: V1StatefulSet, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.createNamespacedStatefulSetWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + + /** + * create a StatefulSet + * @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. + * @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. + */ + public createNamespacedStatefulSet(namespace: string, body: V1StatefulSet, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { + const result = this.api.createNamespacedStatefulSet(namespace, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + + /** + * delete collection of ControllerRevision + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionNamespacedControllerRevisionWithHttpInfo(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteCollectionNamespacedControllerRevisionWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + return result.toPromise(); + } + + /** + * delete collection of ControllerRevision * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. * @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. @@ -1329,6 +1966,28 @@ export class PromiseAppsV1Api { return result.toPromise(); } + /** + * delete collection of DaemonSet + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionNamespacedDaemonSetWithHttpInfo(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteCollectionNamespacedDaemonSetWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + return result.toPromise(); + } + /** * delete collection of DaemonSet * @param namespace object name and auth scope, such as for teams and projects @@ -1351,6 +2010,28 @@ export class PromiseAppsV1Api { return result.toPromise(); } + /** + * delete collection of Deployment + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionNamespacedDeploymentWithHttpInfo(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteCollectionNamespacedDeploymentWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + return result.toPromise(); + } + /** * delete collection of Deployment * @param namespace object name and auth scope, such as for teams and projects @@ -1373,6 +2054,28 @@ export class PromiseAppsV1Api { return result.toPromise(); } + /** + * delete collection of ReplicaSet + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionNamespacedReplicaSetWithHttpInfo(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteCollectionNamespacedReplicaSetWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + return result.toPromise(); + } + /** * delete collection of ReplicaSet * @param namespace object name and auth scope, such as for teams and projects @@ -1395,6 +2098,28 @@ export class PromiseAppsV1Api { return result.toPromise(); } + /** + * delete collection of StatefulSet + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionNamespacedStatefulSetWithHttpInfo(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteCollectionNamespacedStatefulSetWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + return result.toPromise(); + } + /** * delete collection of StatefulSet * @param namespace object name and auth scope, such as for teams and projects @@ -1417,6 +2142,22 @@ export class PromiseAppsV1Api { return result.toPromise(); } + /** + * delete a ControllerRevision + * @param name name of the ControllerRevision + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteNamespacedControllerRevisionWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteNamespacedControllerRevisionWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + return result.toPromise(); + } + /** * delete a ControllerRevision * @param name name of the ControllerRevision @@ -1433,6 +2174,22 @@ export class PromiseAppsV1Api { return result.toPromise(); } + /** + * delete a DaemonSet + * @param name name of the DaemonSet + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteNamespacedDaemonSetWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteNamespacedDaemonSetWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + return result.toPromise(); + } + /** * delete a DaemonSet * @param name name of the DaemonSet @@ -1449,6 +2206,22 @@ export class PromiseAppsV1Api { return result.toPromise(); } + /** + * delete a Deployment + * @param name name of the Deployment + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteNamespacedDeploymentWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteNamespacedDeploymentWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + return result.toPromise(); + } + /** * delete a Deployment * @param name name of the Deployment @@ -1465,6 +2238,22 @@ export class PromiseAppsV1Api { return result.toPromise(); } + /** + * delete a ReplicaSet + * @param name name of the ReplicaSet + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteNamespacedReplicaSetWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteNamespacedReplicaSetWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + return result.toPromise(); + } + /** * delete a ReplicaSet * @param name name of the ReplicaSet @@ -1481,6 +2270,22 @@ export class PromiseAppsV1Api { return result.toPromise(); } + /** + * delete a StatefulSet + * @param name name of the StatefulSet + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteNamespacedStatefulSetWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteNamespacedStatefulSetWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + return result.toPromise(); + } + /** * delete a StatefulSet * @param name name of the StatefulSet @@ -1497,6 +2302,14 @@ export class PromiseAppsV1Api { return result.toPromise(); } + /** + * get available resources + */ + public getAPIResourcesWithHttpInfo(_options?: Configuration): Promise> { + const result = this.api.getAPIResourcesWithHttpInfo(_options); + return result.toPromise(); + } + /** * get available resources */ @@ -1518,13 +2331,13 @@ export class PromiseAppsV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public listControllerRevisionForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { - const result = this.api.listControllerRevisionForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + public listControllerRevisionForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { + const result = this.api.listControllerRevisionForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); return result.toPromise(); } /** - * list or watch objects of kind DaemonSet + * list or watch objects of kind ControllerRevision * @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. @@ -1536,13 +2349,13 @@ export class PromiseAppsV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public listDaemonSetForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { - const result = this.api.listDaemonSetForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + public listControllerRevisionForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + const result = this.api.listControllerRevisionForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); return result.toPromise(); } /** - * list or watch objects of kind Deployment + * list or watch objects of kind DaemonSet * @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. @@ -1554,27 +2367,119 @@ export class PromiseAppsV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public listDeploymentForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { - const result = this.api.listDeploymentForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + public listDaemonSetForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { + const result = this.api.listDaemonSetForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); return result.toPromise(); } /** - * list or watch objects of kind ControllerRevision - * @param namespace object name and auth scope, such as for teams and projects - * @param pretty If \'true\', then the output is pretty printed. + * list or watch objects of kind DaemonSet * @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. * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { - const result = this.api.listNamespacedControllerRevision(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + public listDaemonSetForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + const result = this.api.listDaemonSetForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + + /** + * list or watch objects of kind Deployment + * @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. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { + const result = this.api.listDeploymentForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + + /** + * list or watch objects of kind Deployment + * @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. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + const result = this.api.listDeploymentForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + + /** + * list or watch objects of kind ControllerRevision + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { + const result = this.api.listNamespacedControllerRevisionWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + + /** + * list or watch objects of kind ControllerRevision + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + const result = this.api.listNamespacedControllerRevision(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + + /** + * list or watch objects of kind DaemonSet + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { + const result = this.api.listNamespacedDaemonSetWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); return result.toPromise(); } @@ -1597,6 +2502,25 @@ export class PromiseAppsV1Api { return result.toPromise(); } + /** + * list or watch objects of kind Deployment + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { + const result = this.api.listNamespacedDeploymentWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + /** * list or watch objects of kind Deployment * @param namespace object name and auth scope, such as for teams and projects @@ -1616,6 +2540,25 @@ export class PromiseAppsV1Api { return result.toPromise(); } + /** + * list or watch objects of kind ReplicaSet + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { + const result = this.api.listNamespacedReplicaSetWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + /** * list or watch objects of kind ReplicaSet * @param namespace object name and auth scope, such as for teams and projects @@ -1635,6 +2578,25 @@ export class PromiseAppsV1Api { return result.toPromise(); } + /** + * list or watch objects of kind StatefulSet + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { + const result = this.api.listNamespacedStatefulSetWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + /** * list or watch objects of kind StatefulSet * @param namespace object name and auth scope, such as for teams and projects @@ -1654,6 +2616,24 @@ export class PromiseAppsV1Api { return result.toPromise(); } + /** + * list or watch objects of kind ReplicaSet + * @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. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { + const result = this.api.listReplicaSetForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + /** * list or watch objects of kind ReplicaSet * @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. @@ -1672,6 +2652,24 @@ export class PromiseAppsV1Api { return result.toPromise(); } + /** + * list or watch objects of kind StatefulSet + * @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. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { + const result = this.api.listStatefulSetForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + /** * list or watch objects of kind StatefulSet * @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. @@ -1690,6 +2688,21 @@ export class PromiseAppsV1Api { return result.toPromise(); } + /** + * partially update the specified ControllerRevision + * @param name name of the ControllerRevision + * @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. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise> { + const result = this.api.patchNamespacedControllerRevisionWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options); + return result.toPromise(); + } + /** * partially update the specified ControllerRevision * @param name name of the ControllerRevision @@ -1715,13 +2728,13 @@ export class PromiseAppsV1Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). * @param force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespacedDaemonSet(name, namespace, body, pretty, dryRun, fieldManager, force, _options); + public patchNamespacedDaemonSetWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Promise> { + const result = this.api.patchNamespacedDaemonSetWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options); return result.toPromise(); } /** - * partially update status of the specified DaemonSet + * partially update the specified DaemonSet * @param name name of the DaemonSet * @param namespace object name and auth scope, such as for teams and projects * @param body @@ -1730,14 +2743,14 @@ export class PromiseAppsV1Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). * @param force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespacedDaemonSetStatus(name, namespace, body, pretty, dryRun, fieldManager, force, _options); + public patchNamespacedDaemonSet(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Promise { + const result = this.api.patchNamespacedDaemonSet(name, namespace, body, pretty, dryRun, fieldManager, force, _options); return result.toPromise(); } /** - * partially update the specified Deployment - * @param name name of the Deployment + * partially update status of the specified DaemonSet + * @param name name of the DaemonSet * @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. @@ -1745,14 +2758,14 @@ export class PromiseAppsV1Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). * @param force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespacedDeployment(name, namespace, body, pretty, dryRun, fieldManager, force, _options); + public patchNamespacedDaemonSetStatusWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Promise> { + const result = this.api.patchNamespacedDaemonSetStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options); return result.toPromise(); } /** - * partially update scale of the specified Deployment - * @param name name of the Scale + * partially update status of the specified DaemonSet + * @param name name of the DaemonSet * @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. @@ -1760,13 +2773,13 @@ export class PromiseAppsV1Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). * @param force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespacedDeploymentScale(name, namespace, body, pretty, dryRun, fieldManager, force, _options); + public patchNamespacedDaemonSetStatus(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Promise { + const result = this.api.patchNamespacedDaemonSetStatus(name, namespace, body, pretty, dryRun, fieldManager, force, _options); return result.toPromise(); } /** - * partially update status of the specified Deployment + * partially update the specified Deployment * @param name name of the Deployment * @param namespace object name and auth scope, such as for teams and projects * @param body @@ -1775,14 +2788,14 @@ export class PromiseAppsV1Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). * @param force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespacedDeploymentStatus(name, namespace, body, pretty, dryRun, fieldManager, force, _options); + public patchNamespacedDeploymentWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Promise> { + const result = this.api.patchNamespacedDeploymentWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options); return result.toPromise(); } /** - * partially update the specified ReplicaSet - * @param name name of the ReplicaSet + * partially update the specified Deployment + * @param name name of the Deployment * @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. @@ -1790,13 +2803,13 @@ export class PromiseAppsV1Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). * @param force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespacedReplicaSet(name, namespace, body, pretty, dryRun, fieldManager, force, _options); + public patchNamespacedDeployment(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Promise { + const result = this.api.patchNamespacedDeployment(name, namespace, body, pretty, dryRun, fieldManager, force, _options); return result.toPromise(); } /** - * partially update scale of the specified ReplicaSet + * partially update scale of the specified Deployment * @param name name of the Scale * @param namespace object name and auth scope, such as for teams and projects * @param body @@ -1805,14 +2818,14 @@ export class PromiseAppsV1Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). * @param force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespacedReplicaSetScale(name, namespace, body, pretty, dryRun, fieldManager, force, _options); + public patchNamespacedDeploymentScaleWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Promise> { + const result = this.api.patchNamespacedDeploymentScaleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options); return result.toPromise(); } /** - * partially update status of the specified ReplicaSet - * @param name name of the ReplicaSet + * partially update scale of the specified Deployment + * @param name name of the Scale * @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. @@ -1820,14 +2833,14 @@ export class PromiseAppsV1Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). * @param force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespacedReplicaSetStatus(name, namespace, body, pretty, dryRun, fieldManager, force, _options); + public patchNamespacedDeploymentScale(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Promise { + const result = this.api.patchNamespacedDeploymentScale(name, namespace, body, pretty, dryRun, fieldManager, force, _options); return result.toPromise(); } /** - * partially update the specified StatefulSet - * @param name name of the StatefulSet + * partially update status of the specified Deployment + * @param name name of the Deployment * @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. @@ -1835,14 +2848,14 @@ export class PromiseAppsV1Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). * @param force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespacedStatefulSet(name, namespace, body, pretty, dryRun, fieldManager, force, _options); + public patchNamespacedDeploymentStatusWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Promise> { + const result = this.api.patchNamespacedDeploymentStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options); return result.toPromise(); } /** - * partially update scale of the specified StatefulSet - * @param name name of the Scale + * partially update status of the specified Deployment + * @param name name of the Deployment * @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. @@ -1850,14 +2863,14 @@ export class PromiseAppsV1Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). * @param force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespacedStatefulSetScale(name, namespace, body, pretty, dryRun, fieldManager, force, _options); + public patchNamespacedDeploymentStatus(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Promise { + const result = this.api.patchNamespacedDeploymentStatus(name, namespace, body, pretty, dryRun, fieldManager, force, _options); return result.toPromise(); } /** - * partially update status of the specified StatefulSet - * @param name name of the StatefulSet + * partially update the specified ReplicaSet + * @param name name of the ReplicaSet * @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. @@ -1865,894 +2878,773 @@ export class PromiseAppsV1Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). * @param force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespacedStatefulSetStatus(name, namespace, body, pretty, dryRun, fieldManager, force, _options); + public patchNamespacedReplicaSetWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Promise> { + const result = this.api.patchNamespacedReplicaSetWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options); return result.toPromise(); } /** - * read the specified ControllerRevision - * @param name name of the ControllerRevision + * partially update the specified ReplicaSet + * @param name name of the ReplicaSet * @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. + * @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 force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. */ - public readNamespacedControllerRevision(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNamespacedControllerRevision(name, namespace, pretty, _options); + public patchNamespacedReplicaSet(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Promise { + const result = this.api.patchNamespacedReplicaSet(name, namespace, body, pretty, dryRun, fieldManager, force, _options); return result.toPromise(); } /** - * read the specified DaemonSet - * @param name name of the DaemonSet + * partially update scale of the specified ReplicaSet + * @param name name of the Scale * @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. + * @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 force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. */ - public readNamespacedDaemonSet(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNamespacedDaemonSet(name, namespace, pretty, _options); + public patchNamespacedReplicaSetScaleWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Promise> { + const result = this.api.patchNamespacedReplicaSetScaleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options); return result.toPromise(); } /** - * read status of the specified DaemonSet - * @param name name of the DaemonSet + * partially update scale of the specified ReplicaSet + * @param name name of the Scale * @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. + * @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 force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. */ - public readNamespacedDaemonSetStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNamespacedDaemonSetStatus(name, namespace, pretty, _options); + public patchNamespacedReplicaSetScale(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Promise { + const result = this.api.patchNamespacedReplicaSetScale(name, namespace, body, pretty, dryRun, fieldManager, force, _options); return result.toPromise(); } /** - * read the specified Deployment - * @param name name of the Deployment + * partially update status of the specified ReplicaSet + * @param name name of the ReplicaSet * @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. + * @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 force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. */ - public readNamespacedDeployment(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNamespacedDeployment(name, namespace, pretty, _options); + public patchNamespacedReplicaSetStatusWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Promise> { + const result = this.api.patchNamespacedReplicaSetStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options); return result.toPromise(); } /** - * read scale of the specified Deployment - * @param name name of the Scale + * partially update status of the specified ReplicaSet + * @param name name of the ReplicaSet * @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. + * @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 force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. */ - public readNamespacedDeploymentScale(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNamespacedDeploymentScale(name, namespace, pretty, _options); + public patchNamespacedReplicaSetStatus(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Promise { + const result = this.api.patchNamespacedReplicaSetStatus(name, namespace, body, pretty, dryRun, fieldManager, force, _options); return result.toPromise(); } /** - * read status of the specified Deployment - * @param name name of the Deployment + * partially update the specified StatefulSet + * @param name name of the StatefulSet * @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. + * @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 force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. */ - public readNamespacedDeploymentStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNamespacedDeploymentStatus(name, namespace, pretty, _options); + public patchNamespacedStatefulSetWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Promise> { + const result = this.api.patchNamespacedStatefulSetWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options); return result.toPromise(); } /** - * read the specified ReplicaSet - * @param name name of the ReplicaSet + * partially update the specified StatefulSet + * @param name name of the StatefulSet * @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. + * @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 force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. */ - public readNamespacedReplicaSet(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNamespacedReplicaSet(name, namespace, pretty, _options); + public patchNamespacedStatefulSet(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Promise { + const result = this.api.patchNamespacedStatefulSet(name, namespace, body, pretty, dryRun, fieldManager, force, _options); return result.toPromise(); } /** - * read scale of the specified ReplicaSet + * partially update scale of the specified StatefulSet * @param name name of the Scale * @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. + * @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 force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. */ - public readNamespacedReplicaSetScale(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNamespacedReplicaSetScale(name, namespace, pretty, _options); + public patchNamespacedStatefulSetScaleWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Promise> { + const result = this.api.patchNamespacedStatefulSetScaleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options); return result.toPromise(); } /** - * read status of the specified ReplicaSet - * @param name name of the ReplicaSet + * partially update scale of the specified StatefulSet + * @param name name of the Scale * @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. + * @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 force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. */ - public readNamespacedReplicaSetStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNamespacedReplicaSetStatus(name, namespace, pretty, _options); + public patchNamespacedStatefulSetScale(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Promise { + const result = this.api.patchNamespacedStatefulSetScale(name, namespace, body, pretty, dryRun, fieldManager, force, _options); return result.toPromise(); } /** - * read the specified StatefulSet + * partially update status of the specified StatefulSet * @param name name of the StatefulSet * @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. + * @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 force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. */ - public readNamespacedStatefulSet(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNamespacedStatefulSet(name, namespace, pretty, _options); + public patchNamespacedStatefulSetStatusWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Promise> { + const result = this.api.patchNamespacedStatefulSetStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options); return result.toPromise(); } /** - * read scale of the specified StatefulSet - * @param name name of the Scale + * partially update status of the specified StatefulSet + * @param name name of the StatefulSet * @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. + * @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 force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. */ - public readNamespacedStatefulSetScale(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNamespacedStatefulSetScale(name, namespace, pretty, _options); + public patchNamespacedStatefulSetStatus(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Promise { + const result = this.api.patchNamespacedStatefulSetStatus(name, namespace, body, pretty, dryRun, fieldManager, force, _options); return result.toPromise(); } /** - * read status of the specified StatefulSet - * @param name name of the StatefulSet + * read the specified ControllerRevision + * @param name name of the ControllerRevision * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. */ - public readNamespacedStatefulSetStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNamespacedStatefulSetStatus(name, namespace, pretty, _options); + public readNamespacedControllerRevisionWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.readNamespacedControllerRevisionWithHttpInfo(name, namespace, pretty, _options); return result.toPromise(); } /** - * replace the specified ControllerRevision + * read the specified ControllerRevision * @param name name of the ControllerRevision * @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. - * @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. */ - public replaceNamespacedControllerRevision(name: string, namespace: string, body: V1ControllerRevision, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespacedControllerRevision(name, namespace, body, pretty, dryRun, fieldManager, _options); + public readNamespacedControllerRevision(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { + const result = this.api.readNamespacedControllerRevision(name, namespace, pretty, _options); return result.toPromise(); } /** - * replace the specified DaemonSet + * read the specified DaemonSet * @param name name of the DaemonSet * @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. - * @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. */ - public replaceNamespacedDaemonSet(name: string, namespace: string, body: V1DaemonSet, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespacedDaemonSet(name, namespace, body, pretty, dryRun, fieldManager, _options); + public readNamespacedDaemonSetWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.readNamespacedDaemonSetWithHttpInfo(name, namespace, pretty, _options); return result.toPromise(); } /** - * replace status of the specified DaemonSet + * read the specified DaemonSet * @param name name of the DaemonSet * @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. - * @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. */ - public replaceNamespacedDaemonSetStatus(name: string, namespace: string, body: V1DaemonSet, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespacedDaemonSetStatus(name, namespace, body, pretty, dryRun, fieldManager, _options); + public readNamespacedDaemonSet(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { + const result = this.api.readNamespacedDaemonSet(name, namespace, pretty, _options); return result.toPromise(); } /** - * replace the specified Deployment - * @param name name of the Deployment + * read status of the specified DaemonSet + * @param name name of the DaemonSet * @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. - * @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. */ - public replaceNamespacedDeployment(name: string, namespace: string, body: V1Deployment, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespacedDeployment(name, namespace, body, pretty, dryRun, fieldManager, _options); + public readNamespacedDaemonSetStatusWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.readNamespacedDaemonSetStatusWithHttpInfo(name, namespace, pretty, _options); return result.toPromise(); } /** - * replace scale of the specified Deployment - * @param name name of the Scale + * read status of the specified DaemonSet + * @param name name of the DaemonSet * @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. - * @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. */ - public replaceNamespacedDeploymentScale(name: string, namespace: string, body: V1Scale, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespacedDeploymentScale(name, namespace, body, pretty, dryRun, fieldManager, _options); + public readNamespacedDaemonSetStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { + const result = this.api.readNamespacedDaemonSetStatus(name, namespace, pretty, _options); return result.toPromise(); } /** - * replace status of the specified Deployment + * read the specified Deployment * @param name name of the Deployment * @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. - * @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. */ - public replaceNamespacedDeploymentStatus(name: string, namespace: string, body: V1Deployment, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespacedDeploymentStatus(name, namespace, body, pretty, dryRun, fieldManager, _options); + public readNamespacedDeploymentWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.readNamespacedDeploymentWithHttpInfo(name, namespace, pretty, _options); return result.toPromise(); } /** - * replace the specified ReplicaSet - * @param name name of the ReplicaSet + * read the specified Deployment + * @param name name of the Deployment * @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. - * @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. */ - public replaceNamespacedReplicaSet(name: string, namespace: string, body: V1ReplicaSet, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespacedReplicaSet(name, namespace, body, pretty, dryRun, fieldManager, _options); + public readNamespacedDeployment(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { + const result = this.api.readNamespacedDeployment(name, namespace, pretty, _options); return result.toPromise(); } /** - * replace scale of the specified ReplicaSet + * read scale of the specified Deployment * @param name name of the Scale * @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. - * @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. */ - public replaceNamespacedReplicaSetScale(name: string, namespace: string, body: V1Scale, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespacedReplicaSetScale(name, namespace, body, pretty, dryRun, fieldManager, _options); + public readNamespacedDeploymentScaleWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.readNamespacedDeploymentScaleWithHttpInfo(name, namespace, pretty, _options); return result.toPromise(); } /** - * replace status of the specified ReplicaSet - * @param name name of the ReplicaSet + * read scale of the specified Deployment + * @param name name of the Scale * @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. - * @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. */ - public replaceNamespacedReplicaSetStatus(name: string, namespace: string, body: V1ReplicaSet, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespacedReplicaSetStatus(name, namespace, body, pretty, dryRun, fieldManager, _options); + public readNamespacedDeploymentScale(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { + const result = this.api.readNamespacedDeploymentScale(name, namespace, pretty, _options); return result.toPromise(); } /** - * replace the specified StatefulSet - * @param name name of the StatefulSet + * read status of the specified Deployment + * @param name name of the Deployment * @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. - * @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. */ - public replaceNamespacedStatefulSet(name: string, namespace: string, body: V1StatefulSet, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespacedStatefulSet(name, namespace, body, pretty, dryRun, fieldManager, _options); + public readNamespacedDeploymentStatusWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.readNamespacedDeploymentStatusWithHttpInfo(name, namespace, pretty, _options); return result.toPromise(); } /** - * replace scale of the specified StatefulSet - * @param name name of the Scale + * read status of the specified Deployment + * @param name name of the Deployment * @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. - * @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. */ - public replaceNamespacedStatefulSetScale(name: string, namespace: string, body: V1Scale, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespacedStatefulSetScale(name, namespace, body, pretty, dryRun, fieldManager, _options); + public readNamespacedDeploymentStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { + const result = this.api.readNamespacedDeploymentStatus(name, namespace, pretty, _options); return result.toPromise(); } /** - * replace status of the specified StatefulSet - * @param name name of the StatefulSet + * read the specified ReplicaSet + * @param name name of the ReplicaSet * @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. - * @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. */ - public replaceNamespacedStatefulSetStatus(name: string, namespace: string, body: V1StatefulSet, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespacedStatefulSetStatus(name, namespace, body, pretty, dryRun, fieldManager, _options); + public readNamespacedReplicaSetWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.readNamespacedReplicaSetWithHttpInfo(name, namespace, pretty, _options); return result.toPromise(); } - -} - - - -import { ObservableAuthenticationApi } from './ObservableAPI'; - -import { AuthenticationApiRequestFactory, AuthenticationApiResponseProcessor} from "../apis/AuthenticationApi"; -export class PromiseAuthenticationApi { - private api: ObservableAuthenticationApi - - public constructor( - configuration: Configuration, - requestFactory?: AuthenticationApiRequestFactory, - responseProcessor?: AuthenticationApiResponseProcessor - ) { - this.api = new ObservableAuthenticationApi(configuration, requestFactory, responseProcessor); + /** + * read the specified ReplicaSet + * @param name name of the ReplicaSet + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + */ + public readNamespacedReplicaSet(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { + const result = this.api.readNamespacedReplicaSet(name, namespace, pretty, _options); + return result.toPromise(); } /** - * get information of a group + * read scale of the specified ReplicaSet + * @param name name of the Scale + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. */ - public getAPIGroup(_options?: Configuration): Promise { - const result = this.api.getAPIGroup(_options); + public readNamespacedReplicaSetScaleWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.readNamespacedReplicaSetScaleWithHttpInfo(name, namespace, pretty, _options); return result.toPromise(); } - -} - - - -import { ObservableAuthenticationV1Api } from './ObservableAPI'; - -import { AuthenticationV1ApiRequestFactory, AuthenticationV1ApiResponseProcessor} from "../apis/AuthenticationV1Api"; -export class PromiseAuthenticationV1Api { - private api: ObservableAuthenticationV1Api - - public constructor( - configuration: Configuration, - requestFactory?: AuthenticationV1ApiRequestFactory, - responseProcessor?: AuthenticationV1ApiResponseProcessor - ) { - this.api = new ObservableAuthenticationV1Api(configuration, requestFactory, responseProcessor); - } - /** - * create a TokenReview - * @param body - * @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. + * read scale of the specified ReplicaSet + * @param name name of the Scale + * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. */ - public createTokenReview(body: V1TokenReview, dryRun?: string, fieldManager?: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.createTokenReview(body, dryRun, fieldManager, pretty, _options); + public readNamespacedReplicaSetScale(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { + const result = this.api.readNamespacedReplicaSetScale(name, namespace, pretty, _options); return result.toPromise(); } /** - * get available resources + * read status of the specified ReplicaSet + * @param name name of the ReplicaSet + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. */ - public getAPIResources(_options?: Configuration): Promise { - const result = this.api.getAPIResources(_options); + public readNamespacedReplicaSetStatusWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.readNamespacedReplicaSetStatusWithHttpInfo(name, namespace, pretty, _options); return result.toPromise(); } - -} - - - -import { ObservableAuthorizationApi } from './ObservableAPI'; - -import { AuthorizationApiRequestFactory, AuthorizationApiResponseProcessor} from "../apis/AuthorizationApi"; -export class PromiseAuthorizationApi { - private api: ObservableAuthorizationApi - - public constructor( - configuration: Configuration, - requestFactory?: AuthorizationApiRequestFactory, - responseProcessor?: AuthorizationApiResponseProcessor - ) { - this.api = new ObservableAuthorizationApi(configuration, requestFactory, responseProcessor); - } - /** - * get information of a group + * read status of the specified ReplicaSet + * @param name name of the ReplicaSet + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. */ - public getAPIGroup(_options?: Configuration): Promise { - const result = this.api.getAPIGroup(_options); + public readNamespacedReplicaSetStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { + const result = this.api.readNamespacedReplicaSetStatus(name, namespace, pretty, _options); return result.toPromise(); } - -} - - - -import { ObservableAuthorizationV1Api } from './ObservableAPI'; - -import { AuthorizationV1ApiRequestFactory, AuthorizationV1ApiResponseProcessor} from "../apis/AuthorizationV1Api"; -export class PromiseAuthorizationV1Api { - private api: ObservableAuthorizationV1Api - - public constructor( - configuration: Configuration, - requestFactory?: AuthorizationV1ApiRequestFactory, - responseProcessor?: AuthorizationV1ApiResponseProcessor - ) { - this.api = new ObservableAuthorizationV1Api(configuration, requestFactory, responseProcessor); - } - /** - * create a LocalSubjectAccessReview + * read the specified StatefulSet + * @param name name of the StatefulSet * @param namespace object name and auth scope, such as for teams and projects - * @param body - * @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 pretty If \'true\', then the output is pretty printed. */ - public createNamespacedLocalSubjectAccessReview(namespace: string, body: V1LocalSubjectAccessReview, dryRun?: string, fieldManager?: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.createNamespacedLocalSubjectAccessReview(namespace, body, dryRun, fieldManager, pretty, _options); + public readNamespacedStatefulSetWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.readNamespacedStatefulSetWithHttpInfo(name, namespace, pretty, _options); return result.toPromise(); } /** - * create a SelfSubjectAccessReview - * @param body - * @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. + * read the specified StatefulSet + * @param name name of the StatefulSet + * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. */ - public createSelfSubjectAccessReview(body: V1SelfSubjectAccessReview, dryRun?: string, fieldManager?: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.createSelfSubjectAccessReview(body, dryRun, fieldManager, pretty, _options); + public readNamespacedStatefulSet(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { + const result = this.api.readNamespacedStatefulSet(name, namespace, pretty, _options); return result.toPromise(); } /** - * create a SelfSubjectRulesReview - * @param body - * @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. + * read scale of the specified StatefulSet + * @param name name of the Scale + * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. */ - public createSelfSubjectRulesReview(body: V1SelfSubjectRulesReview, dryRun?: string, fieldManager?: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.createSelfSubjectRulesReview(body, dryRun, fieldManager, pretty, _options); + public readNamespacedStatefulSetScaleWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.readNamespacedStatefulSetScaleWithHttpInfo(name, namespace, pretty, _options); return result.toPromise(); } /** - * create a SubjectAccessReview - * @param body - * @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. + * read scale of the specified StatefulSet + * @param name name of the Scale + * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. */ - public createSubjectAccessReview(body: V1SubjectAccessReview, dryRun?: string, fieldManager?: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.createSubjectAccessReview(body, dryRun, fieldManager, pretty, _options); + public readNamespacedStatefulSetScale(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { + const result = this.api.readNamespacedStatefulSetScale(name, namespace, pretty, _options); return result.toPromise(); } /** - * get available resources + * read status of the specified StatefulSet + * @param name name of the StatefulSet + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. */ - public getAPIResources(_options?: Configuration): Promise { - const result = this.api.getAPIResources(_options); + public readNamespacedStatefulSetStatusWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.readNamespacedStatefulSetStatusWithHttpInfo(name, namespace, pretty, _options); return result.toPromise(); } - -} - - - -import { ObservableAutoscalingApi } from './ObservableAPI'; - -import { AutoscalingApiRequestFactory, AutoscalingApiResponseProcessor} from "../apis/AutoscalingApi"; -export class PromiseAutoscalingApi { - private api: ObservableAutoscalingApi - - public constructor( - configuration: Configuration, - requestFactory?: AutoscalingApiRequestFactory, - responseProcessor?: AutoscalingApiResponseProcessor - ) { - this.api = new ObservableAutoscalingApi(configuration, requestFactory, responseProcessor); - } - /** - * get information of a group + * read status of the specified StatefulSet + * @param name name of the StatefulSet + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. */ - public getAPIGroup(_options?: Configuration): Promise { - const result = this.api.getAPIGroup(_options); + public readNamespacedStatefulSetStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { + const result = this.api.readNamespacedStatefulSetStatus(name, namespace, pretty, _options); return result.toPromise(); } - -} - - - -import { ObservableAutoscalingV1Api } from './ObservableAPI'; - -import { AutoscalingV1ApiRequestFactory, AutoscalingV1ApiResponseProcessor} from "../apis/AutoscalingV1Api"; -export class PromiseAutoscalingV1Api { - private api: ObservableAutoscalingV1Api - - public constructor( - configuration: Configuration, - requestFactory?: AutoscalingV1ApiRequestFactory, - responseProcessor?: AutoscalingV1ApiResponseProcessor - ) { - this.api = new ObservableAutoscalingV1Api(configuration, requestFactory, responseProcessor); - } - /** - * create a HorizontalPodAutoscaler + * replace the specified ControllerRevision + * @param name name of the ControllerRevision * @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. * @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. */ - public createNamespacedHorizontalPodAutoscaler(namespace: string, body: V1HorizontalPodAutoscaler, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { - const result = this.api.createNamespacedHorizontalPodAutoscaler(namespace, body, pretty, dryRun, fieldManager, _options); + public replaceNamespacedControllerRevisionWithHttpInfo(name: string, namespace: string, body: V1ControllerRevision, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.replaceNamespacedControllerRevisionWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options); return result.toPromise(); } /** - * delete collection of HorizontalPodAutoscaler + * replace the specified ControllerRevision + * @param name name of the ControllerRevision * @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. - * @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 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 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. */ - public deleteCollectionNamespacedHorizontalPodAutoscaler(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteCollectionNamespacedHorizontalPodAutoscaler(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + public replaceNamespacedControllerRevision(name: string, namespace: string, body: V1ControllerRevision, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { + const result = this.api.replaceNamespacedControllerRevision(name, namespace, body, pretty, dryRun, fieldManager, _options); return result.toPromise(); } /** - * delete a HorizontalPodAutoscaler - * @param name name of the HorizontalPodAutoscaler + * replace the specified DaemonSet + * @param name name of the DaemonSet * @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. * @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 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 + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. */ - public deleteNamespacedHorizontalPodAutoscaler(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteNamespacedHorizontalPodAutoscaler(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + public replaceNamespacedDaemonSetWithHttpInfo(name: string, namespace: string, body: V1DaemonSet, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.replaceNamespacedDaemonSetWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options); return result.toPromise(); } /** - * get available resources + * replace the specified DaemonSet + * @param name name of the DaemonSet + * @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. + * @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. */ - public getAPIResources(_options?: Configuration): Promise { - const result = this.api.getAPIResources(_options); + public replaceNamespacedDaemonSet(name: string, namespace: string, body: V1DaemonSet, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { + const result = this.api.replaceNamespacedDaemonSet(name, namespace, body, pretty, dryRun, fieldManager, _options); return result.toPromise(); } /** - * list or watch objects of kind HorizontalPodAutoscaler - * @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. + * replace status of the specified DaemonSet + * @param name name of the DaemonSet + * @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. - * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. */ - public listHorizontalPodAutoscalerForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { - const result = this.api.listHorizontalPodAutoscalerForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + public replaceNamespacedDaemonSetStatusWithHttpInfo(name: string, namespace: string, body: V1DaemonSet, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.replaceNamespacedDaemonSetStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options); return result.toPromise(); } /** - * list or watch objects of kind HorizontalPodAutoscaler + * replace status of the specified DaemonSet + * @param name name of the DaemonSet * @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. - * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. */ - public listNamespacedHorizontalPodAutoscaler(namespace: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { - const result = this.api.listNamespacedHorizontalPodAutoscaler(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + public replaceNamespacedDaemonSetStatus(name: string, namespace: string, body: V1DaemonSet, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { + const result = this.api.replaceNamespacedDaemonSetStatus(name, namespace, body, pretty, dryRun, fieldManager, _options); return result.toPromise(); } /** - * partially update the specified HorizontalPodAutoscaler - * @param name name of the HorizontalPodAutoscaler + * replace the specified Deployment + * @param name name of the Deployment * @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. * @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 force Force is going to \"force\" 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 fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. */ - public patchNamespacedHorizontalPodAutoscaler(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespacedHorizontalPodAutoscaler(name, namespace, body, pretty, dryRun, fieldManager, force, _options); + public replaceNamespacedDeploymentWithHttpInfo(name: string, namespace: string, body: V1Deployment, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.replaceNamespacedDeploymentWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options); return result.toPromise(); } /** - * partially update status of the specified HorizontalPodAutoscaler - * @param name name of the HorizontalPodAutoscaler + * replace the specified Deployment + * @param name name of the Deployment * @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. * @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 force Force is going to \"force\" 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 fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. */ - public patchNamespacedHorizontalPodAutoscalerStatus(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespacedHorizontalPodAutoscalerStatus(name, namespace, body, pretty, dryRun, fieldManager, force, _options); + public replaceNamespacedDeployment(name: string, namespace: string, body: V1Deployment, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { + const result = this.api.replaceNamespacedDeployment(name, namespace, body, pretty, dryRun, fieldManager, _options); return result.toPromise(); } /** - * read the specified HorizontalPodAutoscaler - * @param name name of the HorizontalPodAutoscaler + * replace scale of the specified Deployment + * @param name name of the Scale * @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. + * @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. */ - public readNamespacedHorizontalPodAutoscaler(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNamespacedHorizontalPodAutoscaler(name, namespace, pretty, _options); + public replaceNamespacedDeploymentScaleWithHttpInfo(name: string, namespace: string, body: V1Scale, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.replaceNamespacedDeploymentScaleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options); return result.toPromise(); } /** - * read status of the specified HorizontalPodAutoscaler - * @param name name of the HorizontalPodAutoscaler + * replace scale of the specified Deployment + * @param name name of the Scale * @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. + * @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. */ - public readNamespacedHorizontalPodAutoscalerStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNamespacedHorizontalPodAutoscalerStatus(name, namespace, pretty, _options); + public replaceNamespacedDeploymentScale(name: string, namespace: string, body: V1Scale, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { + const result = this.api.replaceNamespacedDeploymentScale(name, namespace, body, pretty, dryRun, fieldManager, _options); return result.toPromise(); } /** - * replace the specified HorizontalPodAutoscaler - * @param name name of the HorizontalPodAutoscaler + * replace status of the specified Deployment + * @param name name of the Deployment * @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. * @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. */ - public replaceNamespacedHorizontalPodAutoscaler(name: string, namespace: string, body: V1HorizontalPodAutoscaler, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespacedHorizontalPodAutoscaler(name, namespace, body, pretty, dryRun, fieldManager, _options); + public replaceNamespacedDeploymentStatusWithHttpInfo(name: string, namespace: string, body: V1Deployment, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.replaceNamespacedDeploymentStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options); return result.toPromise(); } /** - * replace status of the specified HorizontalPodAutoscaler - * @param name name of the HorizontalPodAutoscaler + * replace status of the specified Deployment + * @param name name of the Deployment * @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. * @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. */ - public replaceNamespacedHorizontalPodAutoscalerStatus(name: string, namespace: string, body: V1HorizontalPodAutoscaler, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespacedHorizontalPodAutoscalerStatus(name, namespace, body, pretty, dryRun, fieldManager, _options); + public replaceNamespacedDeploymentStatus(name: string, namespace: string, body: V1Deployment, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { + const result = this.api.replaceNamespacedDeploymentStatus(name, namespace, body, pretty, dryRun, fieldManager, _options); return result.toPromise(); } - -} - - - -import { ObservableAutoscalingV2beta1Api } from './ObservableAPI'; - -import { AutoscalingV2beta1ApiRequestFactory, AutoscalingV2beta1ApiResponseProcessor} from "../apis/AutoscalingV2beta1Api"; -export class PromiseAutoscalingV2beta1Api { - private api: ObservableAutoscalingV2beta1Api - - public constructor( - configuration: Configuration, - requestFactory?: AutoscalingV2beta1ApiRequestFactory, - responseProcessor?: AutoscalingV2beta1ApiResponseProcessor - ) { - this.api = new ObservableAutoscalingV2beta1Api(configuration, requestFactory, responseProcessor); - } - /** - * create a HorizontalPodAutoscaler + * replace the specified ReplicaSet + * @param name name of the ReplicaSet * @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. * @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. */ - public createNamespacedHorizontalPodAutoscaler(namespace: string, body: V2beta1HorizontalPodAutoscaler, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { - const result = this.api.createNamespacedHorizontalPodAutoscaler(namespace, body, pretty, dryRun, fieldManager, _options); + public replaceNamespacedReplicaSetWithHttpInfo(name: string, namespace: string, body: V1ReplicaSet, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.replaceNamespacedReplicaSetWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options); return result.toPromise(); } /** - * delete collection of HorizontalPodAutoscaler + * replace the specified ReplicaSet + * @param name name of the ReplicaSet * @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. - * @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 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 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. */ - public deleteCollectionNamespacedHorizontalPodAutoscaler(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteCollectionNamespacedHorizontalPodAutoscaler(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + public replaceNamespacedReplicaSet(name: string, namespace: string, body: V1ReplicaSet, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { + const result = this.api.replaceNamespacedReplicaSet(name, namespace, body, pretty, dryRun, fieldManager, _options); return result.toPromise(); } /** - * delete a HorizontalPodAutoscaler - * @param name name of the HorizontalPodAutoscaler + * replace scale of the specified ReplicaSet + * @param name name of the Scale * @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. * @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 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 + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. */ - public deleteNamespacedHorizontalPodAutoscaler(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteNamespacedHorizontalPodAutoscaler(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + public replaceNamespacedReplicaSetScaleWithHttpInfo(name: string, namespace: string, body: V1Scale, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.replaceNamespacedReplicaSetScaleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options); return result.toPromise(); } /** - * get available resources + * replace scale of the specified ReplicaSet + * @param name name of the Scale + * @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. + * @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. */ - public getAPIResources(_options?: Configuration): Promise { - const result = this.api.getAPIResources(_options); + public replaceNamespacedReplicaSetScale(name: string, namespace: string, body: V1Scale, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { + const result = this.api.replaceNamespacedReplicaSetScale(name, namespace, body, pretty, dryRun, fieldManager, _options); return result.toPromise(); } /** - * list or watch objects of kind HorizontalPodAutoscaler - * @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. + * replace status of the specified ReplicaSet + * @param name name of the ReplicaSet + * @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. - * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. */ - public listHorizontalPodAutoscalerForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { - const result = this.api.listHorizontalPodAutoscalerForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + public replaceNamespacedReplicaSetStatusWithHttpInfo(name: string, namespace: string, body: V1ReplicaSet, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.replaceNamespacedReplicaSetStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options); return result.toPromise(); } /** - * list or watch objects of kind HorizontalPodAutoscaler + * replace status of the specified ReplicaSet + * @param name name of the ReplicaSet * @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. - * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. */ - public listNamespacedHorizontalPodAutoscaler(namespace: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { - const result = this.api.listNamespacedHorizontalPodAutoscaler(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + public replaceNamespacedReplicaSetStatus(name: string, namespace: string, body: V1ReplicaSet, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { + const result = this.api.replaceNamespacedReplicaSetStatus(name, namespace, body, pretty, dryRun, fieldManager, _options); return result.toPromise(); } /** - * partially update the specified HorizontalPodAutoscaler - * @param name name of the HorizontalPodAutoscaler + * replace the specified StatefulSet + * @param name name of the StatefulSet * @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. * @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 force Force is going to \"force\" 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 fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. */ - public patchNamespacedHorizontalPodAutoscaler(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespacedHorizontalPodAutoscaler(name, namespace, body, pretty, dryRun, fieldManager, force, _options); + public replaceNamespacedStatefulSetWithHttpInfo(name: string, namespace: string, body: V1StatefulSet, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.replaceNamespacedStatefulSetWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options); return result.toPromise(); } /** - * partially update status of the specified HorizontalPodAutoscaler - * @param name name of the HorizontalPodAutoscaler + * replace the specified StatefulSet + * @param name name of the StatefulSet * @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. * @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 force Force is going to \"force\" 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 fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. */ - public patchNamespacedHorizontalPodAutoscalerStatus(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespacedHorizontalPodAutoscalerStatus(name, namespace, body, pretty, dryRun, fieldManager, force, _options); + public replaceNamespacedStatefulSet(name: string, namespace: string, body: V1StatefulSet, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { + const result = this.api.replaceNamespacedStatefulSet(name, namespace, body, pretty, dryRun, fieldManager, _options); return result.toPromise(); } /** - * read the specified HorizontalPodAutoscaler - * @param name name of the HorizontalPodAutoscaler + * replace scale of the specified StatefulSet + * @param name name of the Scale * @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. + * @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. */ - public readNamespacedHorizontalPodAutoscaler(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNamespacedHorizontalPodAutoscaler(name, namespace, pretty, _options); + public replaceNamespacedStatefulSetScaleWithHttpInfo(name: string, namespace: string, body: V1Scale, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.replaceNamespacedStatefulSetScaleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options); return result.toPromise(); } /** - * read status of the specified HorizontalPodAutoscaler - * @param name name of the HorizontalPodAutoscaler + * replace scale of the specified StatefulSet + * @param name name of the Scale * @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. + * @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. */ - public readNamespacedHorizontalPodAutoscalerStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNamespacedHorizontalPodAutoscalerStatus(name, namespace, pretty, _options); + public replaceNamespacedStatefulSetScale(name: string, namespace: string, body: V1Scale, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { + const result = this.api.replaceNamespacedStatefulSetScale(name, namespace, body, pretty, dryRun, fieldManager, _options); return result.toPromise(); } /** - * replace the specified HorizontalPodAutoscaler - * @param name name of the HorizontalPodAutoscaler + * replace status of the specified StatefulSet + * @param name name of the StatefulSet * @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. * @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. */ - public replaceNamespacedHorizontalPodAutoscaler(name: string, namespace: string, body: V2beta1HorizontalPodAutoscaler, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespacedHorizontalPodAutoscaler(name, namespace, body, pretty, dryRun, fieldManager, _options); + public replaceNamespacedStatefulSetStatusWithHttpInfo(name: string, namespace: string, body: V1StatefulSet, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.replaceNamespacedStatefulSetStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options); return result.toPromise(); } /** - * replace status of the specified HorizontalPodAutoscaler - * @param name name of the HorizontalPodAutoscaler + * replace status of the specified StatefulSet + * @param name name of the StatefulSet * @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. * @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. */ - public replaceNamespacedHorizontalPodAutoscalerStatus(name: string, namespace: string, body: V2beta1HorizontalPodAutoscaler, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespacedHorizontalPodAutoscalerStatus(name, namespace, body, pretty, dryRun, fieldManager, _options); + public replaceNamespacedStatefulSetStatus(name: string, namespace: string, body: V1StatefulSet, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { + const result = this.api.replaceNamespacedStatefulSetStatus(name, namespace, body, pretty, dryRun, fieldManager, _options); return result.toPromise(); } @@ -2761,68 +3653,84 @@ export class PromiseAutoscalingV2beta1Api { -import { ObservableAutoscalingV2beta2Api } from './ObservableAPI'; +import { ObservableAuthenticationApi } from './ObservableAPI'; -import { AutoscalingV2beta2ApiRequestFactory, AutoscalingV2beta2ApiResponseProcessor} from "../apis/AutoscalingV2beta2Api"; -export class PromiseAutoscalingV2beta2Api { - private api: ObservableAutoscalingV2beta2Api +import { AuthenticationApiRequestFactory, AuthenticationApiResponseProcessor} from "../apis/AuthenticationApi"; +export class PromiseAuthenticationApi { + private api: ObservableAuthenticationApi public constructor( configuration: Configuration, - requestFactory?: AutoscalingV2beta2ApiRequestFactory, - responseProcessor?: AutoscalingV2beta2ApiResponseProcessor + requestFactory?: AuthenticationApiRequestFactory, + responseProcessor?: AuthenticationApiResponseProcessor ) { - this.api = new ObservableAutoscalingV2beta2Api(configuration, requestFactory, responseProcessor); + this.api = new ObservableAuthenticationApi(configuration, requestFactory, responseProcessor); } /** - * create a HorizontalPodAutoscaler - * @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. - * @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. + * get information of a group */ - public createNamespacedHorizontalPodAutoscaler(namespace: string, body: V2beta2HorizontalPodAutoscaler, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { - const result = this.api.createNamespacedHorizontalPodAutoscaler(namespace, body, pretty, dryRun, fieldManager, _options); + public getAPIGroupWithHttpInfo(_options?: Configuration): Promise> { + const result = this.api.getAPIGroupWithHttpInfo(_options); return result.toPromise(); } /** - * delete collection of HorizontalPodAutoscaler - * @param namespace object name and auth scope, such as for teams and projects - * @param pretty If \'true\', then the output is pretty printed. - * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - * @param body + * get information of a group */ - public deleteCollectionNamespacedHorizontalPodAutoscaler(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteCollectionNamespacedHorizontalPodAutoscaler(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + public getAPIGroup(_options?: Configuration): Promise { + const result = this.api.getAPIGroup(_options); return result.toPromise(); } + +} + + + +import { ObservableAuthenticationV1Api } from './ObservableAPI'; + +import { AuthenticationV1ApiRequestFactory, AuthenticationV1ApiResponseProcessor} from "../apis/AuthenticationV1Api"; +export class PromiseAuthenticationV1Api { + private api: ObservableAuthenticationV1Api + + public constructor( + configuration: Configuration, + requestFactory?: AuthenticationV1ApiRequestFactory, + responseProcessor?: AuthenticationV1ApiResponseProcessor + ) { + this.api = new ObservableAuthenticationV1Api(configuration, requestFactory, responseProcessor); + } + /** - * delete a HorizontalPodAutoscaler - * @param name name of the HorizontalPodAutoscaler - * @param namespace object name and auth scope, such as for teams and projects - * @param pretty If \'true\', then the output is pretty printed. + * create a TokenReview + * @param body * @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 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 fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + * @param pretty If \'true\', then the output is pretty printed. + */ + public createTokenReviewWithHttpInfo(body: V1TokenReview, dryRun?: string, fieldManager?: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.createTokenReviewWithHttpInfo(body, dryRun, fieldManager, pretty, _options); + return result.toPromise(); + } + + /** + * create a TokenReview * @param body + * @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 pretty If \'true\', then the output is pretty printed. */ - public deleteNamespacedHorizontalPodAutoscaler(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteNamespacedHorizontalPodAutoscaler(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + public createTokenReview(body: V1TokenReview, dryRun?: string, fieldManager?: string, pretty?: string, _options?: Configuration): Promise { + const result = this.api.createTokenReview(body, dryRun, fieldManager, pretty, _options); + return result.toPromise(); + } + + /** + * get available resources + */ + public getAPIResourcesWithHttpInfo(_options?: Configuration): Promise> { + const result = this.api.getAPIResourcesWithHttpInfo(_options); return result.toPromise(); } @@ -2834,120 +3742,171 @@ export class PromiseAutoscalingV2beta2Api { return result.toPromise(); } + +} + + + +import { ObservableAuthorizationApi } from './ObservableAPI'; + +import { AuthorizationApiRequestFactory, AuthorizationApiResponseProcessor} from "../apis/AuthorizationApi"; +export class PromiseAuthorizationApi { + private api: ObservableAuthorizationApi + + public constructor( + configuration: Configuration, + requestFactory?: AuthorizationApiRequestFactory, + responseProcessor?: AuthorizationApiResponseProcessor + ) { + this.api = new ObservableAuthorizationApi(configuration, requestFactory, responseProcessor); + } + /** - * list or watch objects of kind HorizontalPodAutoscaler - * @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. - * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + * get information of a group */ - public listHorizontalPodAutoscalerForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { - const result = this.api.listHorizontalPodAutoscalerForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + public getAPIGroupWithHttpInfo(_options?: Configuration): Promise> { + const result = this.api.getAPIGroupWithHttpInfo(_options); return result.toPromise(); } /** - * list or watch objects of kind HorizontalPodAutoscaler - * @param namespace object name and auth scope, such as for teams and projects - * @param pretty If \'true\', then the output is pretty printed. - * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + * get information of a group */ - public listNamespacedHorizontalPodAutoscaler(namespace: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { - const result = this.api.listNamespacedHorizontalPodAutoscaler(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + public getAPIGroup(_options?: Configuration): Promise { + const result = this.api.getAPIGroup(_options); return result.toPromise(); } + +} + + + +import { ObservableAuthorizationV1Api } from './ObservableAPI'; + +import { AuthorizationV1ApiRequestFactory, AuthorizationV1ApiResponseProcessor} from "../apis/AuthorizationV1Api"; +export class PromiseAuthorizationV1Api { + private api: ObservableAuthorizationV1Api + + public constructor( + configuration: Configuration, + requestFactory?: AuthorizationV1ApiRequestFactory, + responseProcessor?: AuthorizationV1ApiResponseProcessor + ) { + this.api = new ObservableAuthorizationV1Api(configuration, requestFactory, responseProcessor); + } + /** - * partially update the specified HorizontalPodAutoscaler - * @param name name of the HorizontalPodAutoscaler + * create a LocalSubjectAccessReview * @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. * @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 force Force is going to \"force\" 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 fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + * @param pretty If \'true\', then the output is pretty printed. */ - public patchNamespacedHorizontalPodAutoscaler(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespacedHorizontalPodAutoscaler(name, namespace, body, pretty, dryRun, fieldManager, force, _options); + public createNamespacedLocalSubjectAccessReviewWithHttpInfo(namespace: string, body: V1LocalSubjectAccessReview, dryRun?: string, fieldManager?: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.createNamespacedLocalSubjectAccessReviewWithHttpInfo(namespace, body, dryRun, fieldManager, pretty, _options); return result.toPromise(); } /** - * partially update status of the specified HorizontalPodAutoscaler - * @param name name of the HorizontalPodAutoscaler + * create a LocalSubjectAccessReview * @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. * @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 force Force is going to \"force\" 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 fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + * @param pretty If \'true\', then the output is pretty printed. */ - public patchNamespacedHorizontalPodAutoscalerStatus(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespacedHorizontalPodAutoscalerStatus(name, namespace, body, pretty, dryRun, fieldManager, force, _options); + public createNamespacedLocalSubjectAccessReview(namespace: string, body: V1LocalSubjectAccessReview, dryRun?: string, fieldManager?: string, pretty?: string, _options?: Configuration): Promise { + const result = this.api.createNamespacedLocalSubjectAccessReview(namespace, body, dryRun, fieldManager, pretty, _options); return result.toPromise(); } /** - * read the specified HorizontalPodAutoscaler - * @param name name of the HorizontalPodAutoscaler - * @param namespace object name and auth scope, such as for teams and projects + * create a SelfSubjectAccessReview + * @param body + * @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 pretty If \'true\', then the output is pretty printed. */ - public readNamespacedHorizontalPodAutoscaler(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNamespacedHorizontalPodAutoscaler(name, namespace, pretty, _options); + public createSelfSubjectAccessReviewWithHttpInfo(body: V1SelfSubjectAccessReview, dryRun?: string, fieldManager?: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.createSelfSubjectAccessReviewWithHttpInfo(body, dryRun, fieldManager, pretty, _options); return result.toPromise(); } /** - * read status of the specified HorizontalPodAutoscaler - * @param name name of the HorizontalPodAutoscaler - * @param namespace object name and auth scope, such as for teams and projects + * create a SelfSubjectAccessReview + * @param body + * @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 pretty If \'true\', then the output is pretty printed. */ - public readNamespacedHorizontalPodAutoscalerStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNamespacedHorizontalPodAutoscalerStatus(name, namespace, pretty, _options); + public createSelfSubjectAccessReview(body: V1SelfSubjectAccessReview, dryRun?: string, fieldManager?: string, pretty?: string, _options?: Configuration): Promise { + const result = this.api.createSelfSubjectAccessReview(body, dryRun, fieldManager, pretty, _options); return result.toPromise(); } /** - * replace the specified HorizontalPodAutoscaler - * @param name name of the HorizontalPodAutoscaler - * @param namespace object name and auth scope, such as for teams and projects + * create a SelfSubjectRulesReview * @param body + * @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 pretty If \'true\', then the output is pretty printed. + */ + public createSelfSubjectRulesReviewWithHttpInfo(body: V1SelfSubjectRulesReview, dryRun?: string, fieldManager?: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.createSelfSubjectRulesReviewWithHttpInfo(body, dryRun, fieldManager, pretty, _options); + return result.toPromise(); + } + + /** + * create a SelfSubjectRulesReview + * @param body * @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 pretty If \'true\', then the output is pretty printed. */ - public replaceNamespacedHorizontalPodAutoscaler(name: string, namespace: string, body: V2beta2HorizontalPodAutoscaler, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespacedHorizontalPodAutoscaler(name, namespace, body, pretty, dryRun, fieldManager, _options); + public createSelfSubjectRulesReview(body: V1SelfSubjectRulesReview, dryRun?: string, fieldManager?: string, pretty?: string, _options?: Configuration): Promise { + const result = this.api.createSelfSubjectRulesReview(body, dryRun, fieldManager, pretty, _options); return result.toPromise(); } /** - * replace status of the specified HorizontalPodAutoscaler - * @param name name of the HorizontalPodAutoscaler - * @param namespace object name and auth scope, such as for teams and projects + * create a SubjectAccessReview * @param body + * @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 pretty If \'true\', then the output is pretty printed. + */ + public createSubjectAccessReviewWithHttpInfo(body: V1SubjectAccessReview, dryRun?: string, fieldManager?: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.createSubjectAccessReviewWithHttpInfo(body, dryRun, fieldManager, pretty, _options); + return result.toPromise(); + } + + /** + * create a SubjectAccessReview + * @param body * @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 pretty If \'true\', then the output is pretty printed. */ - public replaceNamespacedHorizontalPodAutoscalerStatus(name: string, namespace: string, body: V2beta2HorizontalPodAutoscaler, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespacedHorizontalPodAutoscalerStatus(name, namespace, body, pretty, dryRun, fieldManager, _options); + public createSubjectAccessReview(body: V1SubjectAccessReview, dryRun?: string, fieldManager?: string, pretty?: string, _options?: Configuration): Promise { + const result = this.api.createSubjectAccessReview(body, dryRun, fieldManager, pretty, _options); + return result.toPromise(); + } + + /** + * get available resources + */ + public getAPIResourcesWithHttpInfo(_options?: Configuration): Promise> { + const result = this.api.getAPIResourcesWithHttpInfo(_options); + return result.toPromise(); + } + + /** + * get available resources + */ + public getAPIResources(_options?: Configuration): Promise { + const result = this.api.getAPIResources(_options); return result.toPromise(); } @@ -2956,18 +3915,26 @@ export class PromiseAutoscalingV2beta2Api { -import { ObservableBatchApi } from './ObservableAPI'; +import { ObservableAutoscalingApi } from './ObservableAPI'; -import { BatchApiRequestFactory, BatchApiResponseProcessor} from "../apis/BatchApi"; -export class PromiseBatchApi { - private api: ObservableBatchApi +import { AutoscalingApiRequestFactory, AutoscalingApiResponseProcessor} from "../apis/AutoscalingApi"; +export class PromiseAutoscalingApi { + private api: ObservableAutoscalingApi public constructor( configuration: Configuration, - requestFactory?: BatchApiRequestFactory, - responseProcessor?: BatchApiResponseProcessor + requestFactory?: AutoscalingApiRequestFactory, + responseProcessor?: AutoscalingApiResponseProcessor ) { - this.api = new ObservableBatchApi(configuration, requestFactory, responseProcessor); + this.api = new ObservableAutoscalingApi(configuration, requestFactory, responseProcessor); + } + + /** + * get information of a group + */ + public getAPIGroupWithHttpInfo(_options?: Configuration): Promise> { + const result = this.api.getAPIGroupWithHttpInfo(_options); + return result.toPromise(); } /** @@ -2983,48 +3950,48 @@ export class PromiseBatchApi { -import { ObservableBatchV1Api } from './ObservableAPI'; +import { ObservableAutoscalingV1Api } from './ObservableAPI'; -import { BatchV1ApiRequestFactory, BatchV1ApiResponseProcessor} from "../apis/BatchV1Api"; -export class PromiseBatchV1Api { - private api: ObservableBatchV1Api +import { AutoscalingV1ApiRequestFactory, AutoscalingV1ApiResponseProcessor} from "../apis/AutoscalingV1Api"; +export class PromiseAutoscalingV1Api { + private api: ObservableAutoscalingV1Api public constructor( configuration: Configuration, - requestFactory?: BatchV1ApiRequestFactory, - responseProcessor?: BatchV1ApiResponseProcessor + requestFactory?: AutoscalingV1ApiRequestFactory, + responseProcessor?: AutoscalingV1ApiResponseProcessor ) { - this.api = new ObservableBatchV1Api(configuration, requestFactory, responseProcessor); + this.api = new ObservableAutoscalingV1Api(configuration, requestFactory, responseProcessor); } /** - * create a CronJob + * create a HorizontalPodAutoscaler * @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. * @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. */ - public createNamespacedCronJob(namespace: string, body: V1CronJob, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { - const result = this.api.createNamespacedCronJob(namespace, body, pretty, dryRun, fieldManager, _options); + public createNamespacedHorizontalPodAutoscalerWithHttpInfo(namespace: string, body: V1HorizontalPodAutoscaler, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.createNamespacedHorizontalPodAutoscalerWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, _options); return result.toPromise(); } /** - * create a Job + * create a HorizontalPodAutoscaler * @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. * @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. */ - public createNamespacedJob(namespace: string, body: V1Job, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { - const result = this.api.createNamespacedJob(namespace, body, pretty, dryRun, fieldManager, _options); + public createNamespacedHorizontalPodAutoscaler(namespace: string, body: V1HorizontalPodAutoscaler, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { + const result = this.api.createNamespacedHorizontalPodAutoscaler(namespace, body, pretty, dryRun, fieldManager, _options); return result.toPromise(); } /** - * delete collection of CronJob + * delete collection of HorizontalPodAutoscaler * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. * @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. @@ -3040,13 +4007,13 @@ export class PromiseBatchV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param body */ - public deleteCollectionNamespacedCronJob(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteCollectionNamespacedCronJob(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + public deleteCollectionNamespacedHorizontalPodAutoscalerWithHttpInfo(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteCollectionNamespacedHorizontalPodAutoscalerWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); return result.toPromise(); } /** - * delete collection of Job + * delete collection of HorizontalPodAutoscaler * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. * @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. @@ -3062,14 +4029,14 @@ export class PromiseBatchV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param body */ - public deleteCollectionNamespacedJob(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteCollectionNamespacedJob(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + public deleteCollectionNamespacedHorizontalPodAutoscaler(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { + const result = this.api.deleteCollectionNamespacedHorizontalPodAutoscaler(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); return result.toPromise(); } /** - * delete a CronJob - * @param name name of the CronJob + * delete a HorizontalPodAutoscaler + * @param name name of the HorizontalPodAutoscaler * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. * @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 @@ -3078,14 +4045,14 @@ export class PromiseBatchV1Api { * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. * @param body */ - public deleteNamespacedCronJob(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteNamespacedCronJob(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedHorizontalPodAutoscalerWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteNamespacedHorizontalPodAutoscalerWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); return result.toPromise(); } /** - * delete a Job - * @param name name of the Job + * delete a HorizontalPodAutoscaler + * @param name name of the HorizontalPodAutoscaler * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. * @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 @@ -3094,8 +4061,16 @@ export class PromiseBatchV1Api { * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. * @param body */ - public deleteNamespacedJob(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteNamespacedJob(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedHorizontalPodAutoscaler(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { + const result = this.api.deleteNamespacedHorizontalPodAutoscaler(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + return result.toPromise(); + } + + /** + * get available resources + */ + public getAPIResourcesWithHttpInfo(_options?: Configuration): Promise> { + const result = this.api.getAPIResourcesWithHttpInfo(_options); return result.toPromise(); } @@ -3108,7 +4083,7 @@ export class PromiseBatchV1Api { } /** - * list or watch objects of kind CronJob + * list or watch objects of kind HorizontalPodAutoscaler * @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. @@ -3120,13 +4095,13 @@ export class PromiseBatchV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public listCronJobForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { - const result = this.api.listCronJobForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + public listHorizontalPodAutoscalerForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { + const result = this.api.listHorizontalPodAutoscalerForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); return result.toPromise(); } /** - * list or watch objects of kind Job + * list or watch objects of kind HorizontalPodAutoscaler * @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. @@ -3138,13 +4113,13 @@ export class PromiseBatchV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public listJobForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { - const result = this.api.listJobForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + public listHorizontalPodAutoscalerForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + const result = this.api.listHorizontalPodAutoscalerForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); return result.toPromise(); } /** - * list or watch objects of kind CronJob + * list or watch objects of kind HorizontalPodAutoscaler * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. * @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. @@ -3157,13 +4132,13 @@ export class PromiseBatchV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public listNamespacedCronJob(namespace: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { - const result = this.api.listNamespacedCronJob(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + public listNamespacedHorizontalPodAutoscalerWithHttpInfo(namespace: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { + const result = this.api.listNamespacedHorizontalPodAutoscalerWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); return result.toPromise(); } /** - * list or watch objects of kind Job + * list or watch objects of kind HorizontalPodAutoscaler * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. * @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. @@ -3176,14 +4151,14 @@ export class PromiseBatchV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public listNamespacedJob(namespace: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { - const result = this.api.listNamespacedJob(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + public listNamespacedHorizontalPodAutoscaler(namespace: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + const result = this.api.listNamespacedHorizontalPodAutoscaler(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); return result.toPromise(); } /** - * partially update the specified CronJob - * @param name name of the CronJob + * partially update the specified HorizontalPodAutoscaler + * @param name name of the HorizontalPodAutoscaler * @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. @@ -3191,14 +4166,14 @@ export class PromiseBatchV1Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). * @param force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespacedCronJob(name, namespace, body, pretty, dryRun, fieldManager, force, _options); + public patchNamespacedHorizontalPodAutoscalerWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Promise> { + const result = this.api.patchNamespacedHorizontalPodAutoscalerWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options); return result.toPromise(); } /** - * partially update status of the specified CronJob - * @param name name of the CronJob + * partially update the specified HorizontalPodAutoscaler + * @param name name of the HorizontalPodAutoscaler * @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. @@ -3206,14 +4181,14 @@ export class PromiseBatchV1Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). * @param force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespacedCronJobStatus(name, namespace, body, pretty, dryRun, fieldManager, force, _options); + public patchNamespacedHorizontalPodAutoscaler(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Promise { + const result = this.api.patchNamespacedHorizontalPodAutoscaler(name, namespace, body, pretty, dryRun, fieldManager, force, _options); return result.toPromise(); } /** - * partially update the specified Job - * @param name name of the Job + * partially update status of the specified HorizontalPodAutoscaler + * @param name name of the HorizontalPodAutoscaler * @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. @@ -3221,14 +4196,14 @@ export class PromiseBatchV1Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). * @param force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespacedJob(name, namespace, body, pretty, dryRun, fieldManager, force, _options); + public patchNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Promise> { + const result = this.api.patchNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options); return result.toPromise(); } /** - * partially update status of the specified Job - * @param name name of the Job + * partially update status of the specified HorizontalPodAutoscaler + * @param name name of the HorizontalPodAutoscaler * @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. @@ -3236,108 +4211,108 @@ export class PromiseBatchV1Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). * @param force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespacedJobStatus(name, namespace, body, pretty, dryRun, fieldManager, force, _options); + public patchNamespacedHorizontalPodAutoscalerStatus(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Promise { + const result = this.api.patchNamespacedHorizontalPodAutoscalerStatus(name, namespace, body, pretty, dryRun, fieldManager, force, _options); return result.toPromise(); } /** - * read the specified CronJob - * @param name name of the CronJob + * read the specified HorizontalPodAutoscaler + * @param name name of the HorizontalPodAutoscaler * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. */ - public readNamespacedCronJob(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNamespacedCronJob(name, namespace, pretty, _options); + public readNamespacedHorizontalPodAutoscalerWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.readNamespacedHorizontalPodAutoscalerWithHttpInfo(name, namespace, pretty, _options); return result.toPromise(); } /** - * read status of the specified CronJob - * @param name name of the CronJob + * read the specified HorizontalPodAutoscaler + * @param name name of the HorizontalPodAutoscaler * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. */ - public readNamespacedCronJobStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNamespacedCronJobStatus(name, namespace, pretty, _options); + public readNamespacedHorizontalPodAutoscaler(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { + const result = this.api.readNamespacedHorizontalPodAutoscaler(name, namespace, pretty, _options); return result.toPromise(); } /** - * read the specified Job - * @param name name of the Job + * read status of the specified HorizontalPodAutoscaler + * @param name name of the HorizontalPodAutoscaler * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. */ - public readNamespacedJob(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNamespacedJob(name, namespace, pretty, _options); + public readNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.readNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(name, namespace, pretty, _options); return result.toPromise(); } /** - * read status of the specified Job - * @param name name of the Job + * read status of the specified HorizontalPodAutoscaler + * @param name name of the HorizontalPodAutoscaler * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. */ - public readNamespacedJobStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNamespacedJobStatus(name, namespace, pretty, _options); + public readNamespacedHorizontalPodAutoscalerStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { + const result = this.api.readNamespacedHorizontalPodAutoscalerStatus(name, namespace, pretty, _options); return result.toPromise(); } /** - * replace the specified CronJob - * @param name name of the CronJob + * replace the specified HorizontalPodAutoscaler + * @param name name of the HorizontalPodAutoscaler * @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. * @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. */ - public replaceNamespacedCronJob(name: string, namespace: string, body: V1CronJob, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespacedCronJob(name, namespace, body, pretty, dryRun, fieldManager, _options); + public replaceNamespacedHorizontalPodAutoscalerWithHttpInfo(name: string, namespace: string, body: V1HorizontalPodAutoscaler, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.replaceNamespacedHorizontalPodAutoscalerWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options); return result.toPromise(); } /** - * replace status of the specified CronJob - * @param name name of the CronJob + * replace the specified HorizontalPodAutoscaler + * @param name name of the HorizontalPodAutoscaler * @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. * @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. */ - public replaceNamespacedCronJobStatus(name: string, namespace: string, body: V1CronJob, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespacedCronJobStatus(name, namespace, body, pretty, dryRun, fieldManager, _options); + public replaceNamespacedHorizontalPodAutoscaler(name: string, namespace: string, body: V1HorizontalPodAutoscaler, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { + const result = this.api.replaceNamespacedHorizontalPodAutoscaler(name, namespace, body, pretty, dryRun, fieldManager, _options); return result.toPromise(); } /** - * replace the specified Job - * @param name name of the Job + * replace status of the specified HorizontalPodAutoscaler + * @param name name of the HorizontalPodAutoscaler * @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. * @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. */ - public replaceNamespacedJob(name: string, namespace: string, body: V1Job, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespacedJob(name, namespace, body, pretty, dryRun, fieldManager, _options); + public replaceNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(name: string, namespace: string, body: V1HorizontalPodAutoscaler, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.replaceNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options); return result.toPromise(); } /** - * replace status of the specified Job - * @param name name of the Job + * replace status of the specified HorizontalPodAutoscaler + * @param name name of the HorizontalPodAutoscaler * @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. * @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. */ - public replaceNamespacedJobStatus(name: string, namespace: string, body: V1Job, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespacedJobStatus(name, namespace, body, pretty, dryRun, fieldManager, _options); + public replaceNamespacedHorizontalPodAutoscalerStatus(name: string, namespace: string, body: V1HorizontalPodAutoscaler, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { + const result = this.api.replaceNamespacedHorizontalPodAutoscalerStatus(name, namespace, body, pretty, dryRun, fieldManager, _options); return result.toPromise(); } @@ -3346,35 +4321,48 @@ export class PromiseBatchV1Api { -import { ObservableBatchV1beta1Api } from './ObservableAPI'; +import { ObservableAutoscalingV2beta1Api } from './ObservableAPI'; -import { BatchV1beta1ApiRequestFactory, BatchV1beta1ApiResponseProcessor} from "../apis/BatchV1beta1Api"; -export class PromiseBatchV1beta1Api { - private api: ObservableBatchV1beta1Api +import { AutoscalingV2beta1ApiRequestFactory, AutoscalingV2beta1ApiResponseProcessor} from "../apis/AutoscalingV2beta1Api"; +export class PromiseAutoscalingV2beta1Api { + private api: ObservableAutoscalingV2beta1Api public constructor( configuration: Configuration, - requestFactory?: BatchV1beta1ApiRequestFactory, - responseProcessor?: BatchV1beta1ApiResponseProcessor + requestFactory?: AutoscalingV2beta1ApiRequestFactory, + responseProcessor?: AutoscalingV2beta1ApiResponseProcessor ) { - this.api = new ObservableBatchV1beta1Api(configuration, requestFactory, responseProcessor); + this.api = new ObservableAutoscalingV2beta1Api(configuration, requestFactory, responseProcessor); } /** - * create a CronJob + * create a HorizontalPodAutoscaler * @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. * @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. */ - public createNamespacedCronJob(namespace: string, body: V1beta1CronJob, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { - const result = this.api.createNamespacedCronJob(namespace, body, pretty, dryRun, fieldManager, _options); + public createNamespacedHorizontalPodAutoscalerWithHttpInfo(namespace: string, body: V2beta1HorizontalPodAutoscaler, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.createNamespacedHorizontalPodAutoscalerWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, _options); return result.toPromise(); } /** - * delete collection of CronJob + * create a HorizontalPodAutoscaler + * @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. + * @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. + */ + public createNamespacedHorizontalPodAutoscaler(namespace: string, body: V2beta1HorizontalPodAutoscaler, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { + const result = this.api.createNamespacedHorizontalPodAutoscaler(namespace, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + + /** + * delete collection of HorizontalPodAutoscaler * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. * @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. @@ -3390,24 +4378,70 @@ export class PromiseBatchV1beta1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param body */ - public deleteCollectionNamespacedCronJob(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteCollectionNamespacedCronJob(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + public deleteCollectionNamespacedHorizontalPodAutoscalerWithHttpInfo(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteCollectionNamespacedHorizontalPodAutoscalerWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); return result.toPromise(); } /** - * delete a CronJob - * @param name name of the CronJob + * delete collection of HorizontalPodAutoscaler * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param body */ - public deleteNamespacedCronJob(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteNamespacedCronJob(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + public deleteCollectionNamespacedHorizontalPodAutoscaler(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { + const result = this.api.deleteCollectionNamespacedHorizontalPodAutoscaler(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + return result.toPromise(); + } + + /** + * delete a HorizontalPodAutoscaler + * @param name name of the HorizontalPodAutoscaler + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteNamespacedHorizontalPodAutoscalerWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteNamespacedHorizontalPodAutoscalerWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + return result.toPromise(); + } + + /** + * delete a HorizontalPodAutoscaler + * @param name name of the HorizontalPodAutoscaler + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteNamespacedHorizontalPodAutoscaler(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { + const result = this.api.deleteNamespacedHorizontalPodAutoscaler(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + return result.toPromise(); + } + + /** + * get available resources + */ + public getAPIResourcesWithHttpInfo(_options?: Configuration): Promise> { + const result = this.api.getAPIResourcesWithHttpInfo(_options); return result.toPromise(); } @@ -3420,7 +4454,7 @@ export class PromiseBatchV1beta1Api { } /** - * list or watch objects of kind CronJob + * list or watch objects of kind HorizontalPodAutoscaler * @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. @@ -3432,48 +4466,70 @@ export class PromiseBatchV1beta1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { - const result = this.api.listCronJobForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + public listHorizontalPodAutoscalerForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { + const result = this.api.listHorizontalPodAutoscalerForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); return result.toPromise(); } /** - * list or watch objects of kind CronJob - * @param namespace object name and auth scope, such as for teams and projects - * @param pretty If \'true\', then the output is pretty printed. + * list or watch objects of kind HorizontalPodAutoscaler * @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. * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { - const result = this.api.listNamespacedCronJob(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + public listHorizontalPodAutoscalerForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + const result = this.api.listHorizontalPodAutoscalerForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); return result.toPromise(); } /** - * partially update the specified CronJob - * @param name name of the CronJob + * list or watch objects of kind HorizontalPodAutoscaler * @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. - * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespacedCronJob(name, namespace, body, pretty, dryRun, fieldManager, force, _options); - return result.toPromise(); - } - + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { + const result = this.api.listNamespacedHorizontalPodAutoscalerWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + /** - * partially update status of the specified CronJob - * @param name name of the CronJob + * list or watch objects of kind HorizontalPodAutoscaler + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + const result = this.api.listNamespacedHorizontalPodAutoscaler(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + + /** + * partially update the specified HorizontalPodAutoscaler + * @param name name of the HorizontalPodAutoscaler * @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. @@ -3481,85 +4537,153 @@ export class PromiseBatchV1beta1Api { * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespacedCronJobStatus(name, namespace, body, pretty, dryRun, fieldManager, force, _options); + public patchNamespacedHorizontalPodAutoscalerWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Promise> { + const result = this.api.patchNamespacedHorizontalPodAutoscalerWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options); return result.toPromise(); } /** - * read the specified CronJob - * @param name name of the CronJob + * partially update the specified HorizontalPodAutoscaler + * @param name name of the HorizontalPodAutoscaler * @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. + * @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 force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. */ - public readNamespacedCronJob(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNamespacedCronJob(name, namespace, pretty, _options); + public patchNamespacedHorizontalPodAutoscaler(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Promise { + const result = this.api.patchNamespacedHorizontalPodAutoscaler(name, namespace, body, pretty, dryRun, fieldManager, force, _options); return result.toPromise(); } /** - * read status of the specified CronJob - * @param name name of the CronJob + * partially update status of the specified HorizontalPodAutoscaler + * @param name name of the HorizontalPodAutoscaler * @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. + * @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 force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. */ - public readNamespacedCronJobStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNamespacedCronJobStatus(name, namespace, pretty, _options); + public patchNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Promise> { + const result = this.api.patchNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options); return result.toPromise(); } /** - * replace the specified CronJob - * @param name name of the CronJob + * partially update status of the specified HorizontalPodAutoscaler + * @param name name of the HorizontalPodAutoscaler * @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. * @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 fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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 force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. */ - public replaceNamespacedCronJob(name: string, namespace: string, body: V1beta1CronJob, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespacedCronJob(name, namespace, body, pretty, dryRun, fieldManager, _options); + public patchNamespacedHorizontalPodAutoscalerStatus(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Promise { + const result = this.api.patchNamespacedHorizontalPodAutoscalerStatus(name, namespace, body, pretty, dryRun, fieldManager, force, _options); return result.toPromise(); } /** - * replace status of the specified CronJob - * @param name name of the CronJob + * read the specified HorizontalPodAutoscaler + * @param name name of the HorizontalPodAutoscaler * @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. - * @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. */ - public replaceNamespacedCronJobStatus(name: string, namespace: string, body: V1beta1CronJob, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespacedCronJobStatus(name, namespace, body, pretty, dryRun, fieldManager, _options); + public readNamespacedHorizontalPodAutoscalerWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.readNamespacedHorizontalPodAutoscalerWithHttpInfo(name, namespace, pretty, _options); return result.toPromise(); } + /** + * read the specified HorizontalPodAutoscaler + * @param name name of the HorizontalPodAutoscaler + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + */ + public readNamespacedHorizontalPodAutoscaler(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { + const result = this.api.readNamespacedHorizontalPodAutoscaler(name, namespace, pretty, _options); + return result.toPromise(); + } -} - + /** + * read status of the specified HorizontalPodAutoscaler + * @param name name of the HorizontalPodAutoscaler + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + */ + public readNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.readNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(name, namespace, pretty, _options); + return result.toPromise(); + } + /** + * read status of the specified HorizontalPodAutoscaler + * @param name name of the HorizontalPodAutoscaler + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + */ + public readNamespacedHorizontalPodAutoscalerStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { + const result = this.api.readNamespacedHorizontalPodAutoscalerStatus(name, namespace, pretty, _options); + return result.toPromise(); + } -import { ObservableCertificatesApi } from './ObservableAPI'; + /** + * replace the specified HorizontalPodAutoscaler + * @param name name of the HorizontalPodAutoscaler + * @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. + * @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. + */ + public replaceNamespacedHorizontalPodAutoscalerWithHttpInfo(name: string, namespace: string, body: V2beta1HorizontalPodAutoscaler, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.replaceNamespacedHorizontalPodAutoscalerWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } -import { CertificatesApiRequestFactory, CertificatesApiResponseProcessor} from "../apis/CertificatesApi"; -export class PromiseCertificatesApi { - private api: ObservableCertificatesApi + /** + * replace the specified HorizontalPodAutoscaler + * @param name name of the HorizontalPodAutoscaler + * @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. + * @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. + */ + public replaceNamespacedHorizontalPodAutoscaler(name: string, namespace: string, body: V2beta1HorizontalPodAutoscaler, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { + const result = this.api.replaceNamespacedHorizontalPodAutoscaler(name, namespace, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } - public constructor( - configuration: Configuration, - requestFactory?: CertificatesApiRequestFactory, - responseProcessor?: CertificatesApiResponseProcessor - ) { - this.api = new ObservableCertificatesApi(configuration, requestFactory, responseProcessor); + /** + * replace status of the specified HorizontalPodAutoscaler + * @param name name of the HorizontalPodAutoscaler + * @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. + * @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. + */ + public replaceNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(name: string, namespace: string, body: V2beta1HorizontalPodAutoscaler, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.replaceNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); } /** - * get information of a group + * replace status of the specified HorizontalPodAutoscaler + * @param name name of the HorizontalPodAutoscaler + * @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. + * @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. */ - public getAPIGroup(_options?: Configuration): Promise { - const result = this.api.getAPIGroup(_options); + public replaceNamespacedHorizontalPodAutoscalerStatus(name: string, namespace: string, body: V2beta1HorizontalPodAutoscaler, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { + const result = this.api.replaceNamespacedHorizontalPodAutoscalerStatus(name, namespace, body, pretty, dryRun, fieldManager, _options); return result.toPromise(); } @@ -3568,49 +4692,49 @@ export class PromiseCertificatesApi { -import { ObservableCertificatesV1Api } from './ObservableAPI'; +import { ObservableAutoscalingV2beta2Api } from './ObservableAPI'; -import { CertificatesV1ApiRequestFactory, CertificatesV1ApiResponseProcessor} from "../apis/CertificatesV1Api"; -export class PromiseCertificatesV1Api { - private api: ObservableCertificatesV1Api +import { AutoscalingV2beta2ApiRequestFactory, AutoscalingV2beta2ApiResponseProcessor} from "../apis/AutoscalingV2beta2Api"; +export class PromiseAutoscalingV2beta2Api { + private api: ObservableAutoscalingV2beta2Api public constructor( configuration: Configuration, - requestFactory?: CertificatesV1ApiRequestFactory, - responseProcessor?: CertificatesV1ApiResponseProcessor + requestFactory?: AutoscalingV2beta2ApiRequestFactory, + responseProcessor?: AutoscalingV2beta2ApiResponseProcessor ) { - this.api = new ObservableCertificatesV1Api(configuration, requestFactory, responseProcessor); + this.api = new ObservableAutoscalingV2beta2Api(configuration, requestFactory, responseProcessor); } /** - * create a CertificateSigningRequest + * create a HorizontalPodAutoscaler + * @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. * @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. */ - public createCertificateSigningRequest(body: V1CertificateSigningRequest, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { - const result = this.api.createCertificateSigningRequest(body, pretty, dryRun, fieldManager, _options); + public createNamespacedHorizontalPodAutoscalerWithHttpInfo(namespace: string, body: V2beta2HorizontalPodAutoscaler, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.createNamespacedHorizontalPodAutoscalerWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, _options); return result.toPromise(); } /** - * delete a CertificateSigningRequest - * @param name name of the CertificateSigningRequest + * create a HorizontalPodAutoscaler + * @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. * @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 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 + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. */ - public deleteCertificateSigningRequest(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteCertificateSigningRequest(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + public createNamespacedHorizontalPodAutoscaler(namespace: string, body: V2beta2HorizontalPodAutoscaler, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { + const result = this.api.createNamespacedHorizontalPodAutoscaler(namespace, body, pretty, dryRun, fieldManager, _options); return result.toPromise(); } /** - * delete collection of CertificateSigningRequest + * delete collection of HorizontalPodAutoscaler + * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. * @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 @@ -3625,354 +4749,347 @@ export class PromiseCertificatesV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param body */ - public deleteCollectionCertificateSigningRequest(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteCollectionCertificateSigningRequest(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); - return result.toPromise(); - } - - /** - * get available resources - */ - public getAPIResources(_options?: Configuration): Promise { - const result = this.api.getAPIResources(_options); + public deleteCollectionNamespacedHorizontalPodAutoscalerWithHttpInfo(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteCollectionNamespacedHorizontalPodAutoscalerWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); return result.toPromise(); } /** - * list or watch objects of kind CertificateSigningRequest + * delete collection of HorizontalPodAutoscaler + * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. - * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or 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 listCertificateSigningRequest(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { - const result = this.api.listCertificateSigningRequest(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + public deleteCollectionNamespacedHorizontalPodAutoscaler(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { + const result = this.api.deleteCollectionNamespacedHorizontalPodAutoscaler(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); return result.toPromise(); } /** - * partially update the specified CertificateSigningRequest - * @param name name of the CertificateSigningRequest - * @param body + * delete a HorizontalPodAutoscaler + * @param name name of the HorizontalPodAutoscaler + * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. * @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 force Force is going to \"force\" 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 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 patchCertificateSigningRequest(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchCertificateSigningRequest(name, body, pretty, dryRun, fieldManager, force, _options); + public deleteNamespacedHorizontalPodAutoscalerWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteNamespacedHorizontalPodAutoscalerWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); return result.toPromise(); } /** - * partially update approval of the specified CertificateSigningRequest - * @param name name of the CertificateSigningRequest - * @param body + * delete a HorizontalPodAutoscaler + * @param name name of the HorizontalPodAutoscaler + * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. * @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 force Force is going to \"force\" 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 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 patchCertificateSigningRequestApproval(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchCertificateSigningRequestApproval(name, body, pretty, dryRun, fieldManager, force, _options); + public deleteNamespacedHorizontalPodAutoscaler(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { + const result = this.api.deleteNamespacedHorizontalPodAutoscaler(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); return result.toPromise(); } /** - * partially update status of the specified CertificateSigningRequest - * @param name name of the CertificateSigningRequest - * @param body - * @param pretty If \'true\', then the output is pretty printed. - * @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 force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + * get available resources */ - public patchCertificateSigningRequestStatus(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchCertificateSigningRequestStatus(name, body, pretty, dryRun, fieldManager, force, _options); + public getAPIResourcesWithHttpInfo(_options?: Configuration): Promise> { + const result = this.api.getAPIResourcesWithHttpInfo(_options); return result.toPromise(); } /** - * read the specified CertificateSigningRequest - * @param name name of the CertificateSigningRequest - * @param pretty If \'true\', then the output is pretty printed. + * get available resources */ - public readCertificateSigningRequest(name: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readCertificateSigningRequest(name, pretty, _options); + public getAPIResources(_options?: Configuration): Promise { + const result = this.api.getAPIResources(_options); return result.toPromise(); } /** - * read approval of the specified CertificateSigningRequest - * @param name name of the CertificateSigningRequest + * list or watch objects of kind HorizontalPodAutoscaler + * @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. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public readCertificateSigningRequestApproval(name: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readCertificateSigningRequestApproval(name, pretty, _options); + public listHorizontalPodAutoscalerForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { + const result = this.api.listHorizontalPodAutoscalerForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); return result.toPromise(); } /** - * read status of the specified CertificateSigningRequest - * @param name name of the CertificateSigningRequest + * list or watch objects of kind HorizontalPodAutoscaler + * @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. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public readCertificateSigningRequestStatus(name: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readCertificateSigningRequestStatus(name, pretty, _options); + public listHorizontalPodAutoscalerForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + const result = this.api.listHorizontalPodAutoscalerForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); return result.toPromise(); } /** - * replace the specified CertificateSigningRequest - * @param name name of the CertificateSigningRequest - * @param body + * list or watch objects of kind HorizontalPodAutoscaler + * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. - * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public replaceCertificateSigningRequest(name: string, body: V1CertificateSigningRequest, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { - const result = this.api.replaceCertificateSigningRequest(name, body, pretty, dryRun, fieldManager, _options); + public listNamespacedHorizontalPodAutoscalerWithHttpInfo(namespace: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { + const result = this.api.listNamespacedHorizontalPodAutoscalerWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); return result.toPromise(); } /** - * replace approval of the specified CertificateSigningRequest - * @param name name of the CertificateSigningRequest - * @param body + * list or watch objects of kind HorizontalPodAutoscaler + * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. - * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public replaceCertificateSigningRequestApproval(name: string, body: V1CertificateSigningRequest, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { - const result = this.api.replaceCertificateSigningRequestApproval(name, body, pretty, dryRun, fieldManager, _options); + public listNamespacedHorizontalPodAutoscaler(namespace: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + const result = this.api.listNamespacedHorizontalPodAutoscaler(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); return result.toPromise(); } /** - * replace status of the specified CertificateSigningRequest - * @param name name of the CertificateSigningRequest + * partially update the specified HorizontalPodAutoscaler + * @param name name of the HorizontalPodAutoscaler + * @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. * @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 fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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 force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. */ - public replaceCertificateSigningRequestStatus(name: string, body: V1CertificateSigningRequest, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { - const result = this.api.replaceCertificateSigningRequestStatus(name, body, pretty, dryRun, fieldManager, _options); + public patchNamespacedHorizontalPodAutoscalerWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Promise> { + const result = this.api.patchNamespacedHorizontalPodAutoscalerWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options); return result.toPromise(); } - -} - - - -import { ObservableCoordinationApi } from './ObservableAPI'; - -import { CoordinationApiRequestFactory, CoordinationApiResponseProcessor} from "../apis/CoordinationApi"; -export class PromiseCoordinationApi { - private api: ObservableCoordinationApi - - public constructor( - configuration: Configuration, - requestFactory?: CoordinationApiRequestFactory, - responseProcessor?: CoordinationApiResponseProcessor - ) { - this.api = new ObservableCoordinationApi(configuration, requestFactory, responseProcessor); - } - /** - * get information of a group + * partially update the specified HorizontalPodAutoscaler + * @param name name of the HorizontalPodAutoscaler + * @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. + * @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 force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. */ - public getAPIGroup(_options?: Configuration): Promise { - const result = this.api.getAPIGroup(_options); + public patchNamespacedHorizontalPodAutoscaler(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Promise { + const result = this.api.patchNamespacedHorizontalPodAutoscaler(name, namespace, body, pretty, dryRun, fieldManager, force, _options); return result.toPromise(); } - -} - - - -import { ObservableCoordinationV1Api } from './ObservableAPI'; - -import { CoordinationV1ApiRequestFactory, CoordinationV1ApiResponseProcessor} from "../apis/CoordinationV1Api"; -export class PromiseCoordinationV1Api { - private api: ObservableCoordinationV1Api - - public constructor( - configuration: Configuration, - requestFactory?: CoordinationV1ApiRequestFactory, - responseProcessor?: CoordinationV1ApiResponseProcessor - ) { - this.api = new ObservableCoordinationV1Api(configuration, requestFactory, responseProcessor); - } - /** - * create a Lease + * partially update status of the specified HorizontalPodAutoscaler + * @param name name of the HorizontalPodAutoscaler * @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. * @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 fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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 force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. */ - public createNamespacedLease(namespace: string, body: V1Lease, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { - const result = this.api.createNamespacedLease(namespace, body, pretty, dryRun, fieldManager, _options); + public patchNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Promise> { + const result = this.api.patchNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options); return result.toPromise(); } /** - * delete collection of Lease + * partially update status of the specified HorizontalPodAutoscaler + * @param name name of the HorizontalPodAutoscaler * @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. - * @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 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 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 force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. */ - public deleteCollectionNamespacedLease(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteCollectionNamespacedLease(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + public patchNamespacedHorizontalPodAutoscalerStatus(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Promise { + const result = this.api.patchNamespacedHorizontalPodAutoscalerStatus(name, namespace, body, pretty, dryRun, fieldManager, force, _options); return result.toPromise(); } /** - * delete a Lease - * @param name name of the Lease + * read the specified HorizontalPodAutoscaler + * @param name name of the HorizontalPodAutoscaler * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. - * @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 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 deleteNamespacedLease(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteNamespacedLease(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + public readNamespacedHorizontalPodAutoscalerWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.readNamespacedHorizontalPodAutoscalerWithHttpInfo(name, namespace, pretty, _options); return result.toPromise(); } /** - * get available resources + * read the specified HorizontalPodAutoscaler + * @param name name of the HorizontalPodAutoscaler + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. */ - public getAPIResources(_options?: Configuration): Promise { - const result = this.api.getAPIResources(_options); + public readNamespacedHorizontalPodAutoscaler(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { + const result = this.api.readNamespacedHorizontalPodAutoscaler(name, namespace, pretty, _options); return result.toPromise(); } /** - * list or watch objects of kind Lease - * @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. + * read status of the specified HorizontalPodAutoscaler + * @param name name of the HorizontalPodAutoscaler + * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. - * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { - const result = this.api.listLeaseForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + public readNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.readNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(name, namespace, pretty, _options); return result.toPromise(); } /** - * list or watch objects of kind Lease + * read status of the specified HorizontalPodAutoscaler + * @param name name of the HorizontalPodAutoscaler * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. - * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { - const result = this.api.listNamespacedLease(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + public readNamespacedHorizontalPodAutoscalerStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { + const result = this.api.readNamespacedHorizontalPodAutoscalerStatus(name, namespace, pretty, _options); return result.toPromise(); } /** - * partially update the specified Lease - * @param name name of the Lease + * replace the specified HorizontalPodAutoscaler + * @param name name of the HorizontalPodAutoscaler * @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. * @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 force Force is going to \"force\" 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 fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. */ - public patchNamespacedLease(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespacedLease(name, namespace, body, pretty, dryRun, fieldManager, force, _options); + public replaceNamespacedHorizontalPodAutoscalerWithHttpInfo(name: string, namespace: string, body: V2beta2HorizontalPodAutoscaler, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.replaceNamespacedHorizontalPodAutoscalerWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options); return result.toPromise(); } /** - * read the specified Lease - * @param name name of the Lease + * replace the specified HorizontalPodAutoscaler + * @param name name of the HorizontalPodAutoscaler * @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. + * @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. */ - public readNamespacedLease(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNamespacedLease(name, namespace, pretty, _options); + public replaceNamespacedHorizontalPodAutoscaler(name: string, namespace: string, body: V2beta2HorizontalPodAutoscaler, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { + const result = this.api.replaceNamespacedHorizontalPodAutoscaler(name, namespace, body, pretty, dryRun, fieldManager, _options); return result.toPromise(); } /** - * replace the specified Lease - * @param name name of the Lease + * replace status of the specified HorizontalPodAutoscaler + * @param name name of the HorizontalPodAutoscaler * @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. * @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. */ - public replaceNamespacedLease(name: string, namespace: string, body: V1Lease, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespacedLease(name, namespace, body, pretty, dryRun, fieldManager, _options); + public replaceNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(name: string, namespace: string, body: V2beta2HorizontalPodAutoscaler, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.replaceNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options); return result.toPromise(); } - -} - + /** + * replace status of the specified HorizontalPodAutoscaler + * @param name name of the HorizontalPodAutoscaler + * @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. + * @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. + */ + public replaceNamespacedHorizontalPodAutoscalerStatus(name: string, namespace: string, body: V2beta2HorizontalPodAutoscaler, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { + const result = this.api.replaceNamespacedHorizontalPodAutoscalerStatus(name, namespace, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } -import { ObservableCoreApi } from './ObservableAPI'; +} -import { CoreApiRequestFactory, CoreApiResponseProcessor} from "../apis/CoreApi"; -export class PromiseCoreApi { - private api: ObservableCoreApi + + +import { ObservableBatchApi } from './ObservableAPI'; + +import { BatchApiRequestFactory, BatchApiResponseProcessor} from "../apis/BatchApi"; +export class PromiseBatchApi { + private api: ObservableBatchApi public constructor( configuration: Configuration, - requestFactory?: CoreApiRequestFactory, - responseProcessor?: CoreApiResponseProcessor + requestFactory?: BatchApiRequestFactory, + responseProcessor?: BatchApiResponseProcessor ) { - this.api = new ObservableCoreApi(configuration, requestFactory, responseProcessor); + this.api = new ObservableBatchApi(configuration, requestFactory, responseProcessor); } /** - * get available API versions + * get information of a group */ - public getAPIVersions(_options?: Configuration): Promise { - const result = this.api.getAPIVersions(_options); + public getAPIGroupWithHttpInfo(_options?: Configuration): Promise> { + const result = this.api.getAPIGroupWithHttpInfo(_options); + return result.toPromise(); + } + + /** + * get information of a group + */ + public getAPIGroup(_options?: Configuration): Promise { + const result = this.api.getAPIGroup(_options); return result.toPromise(); } @@ -3981,2797 +5098,7491 @@ export class PromiseCoreApi { -import { ObservableCoreV1Api } from './ObservableAPI'; +import { ObservableBatchV1Api } from './ObservableAPI'; -import { CoreV1ApiRequestFactory, CoreV1ApiResponseProcessor} from "../apis/CoreV1Api"; -export class PromiseCoreV1Api { - private api: ObservableCoreV1Api +import { BatchV1ApiRequestFactory, BatchV1ApiResponseProcessor} from "../apis/BatchV1Api"; +export class PromiseBatchV1Api { + private api: ObservableBatchV1Api public constructor( configuration: Configuration, - requestFactory?: CoreV1ApiRequestFactory, - responseProcessor?: CoreV1ApiResponseProcessor + requestFactory?: BatchV1ApiRequestFactory, + responseProcessor?: BatchV1ApiResponseProcessor ) { - this.api = new ObservableCoreV1Api(configuration, requestFactory, responseProcessor); + this.api = new ObservableBatchV1Api(configuration, requestFactory, responseProcessor); } /** - * connect DELETE requests to proxy of Pod - * @param name name of the PodProxyOptions + * create a CronJob * @param namespace object name and auth scope, such as for teams and projects - * @param path Path is the URL path to use for the current proxy request to pod. + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. */ - public connectDeleteNamespacedPodProxy(name: string, namespace: string, path?: string, _options?: Configuration): Promise { - const result = this.api.connectDeleteNamespacedPodProxy(name, namespace, path, _options); + public createNamespacedCronJobWithHttpInfo(namespace: string, body: V1CronJob, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.createNamespacedCronJobWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, _options); return result.toPromise(); } /** - * connect DELETE requests to proxy of Pod - * @param name name of the PodProxyOptions + * create a CronJob * @param namespace object name and auth scope, such as for teams and projects - * @param path path to the resource - * @param path2 Path is the URL path to use for the current proxy request to pod. + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. */ - public connectDeleteNamespacedPodProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Promise { - const result = this.api.connectDeleteNamespacedPodProxyWithPath(name, namespace, path, path2, _options); + public createNamespacedCronJob(namespace: string, body: V1CronJob, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { + const result = this.api.createNamespacedCronJob(namespace, body, pretty, dryRun, fieldManager, _options); return result.toPromise(); } /** - * connect DELETE requests to proxy of Service - * @param name name of the ServiceProxyOptions + * create a Job * @param namespace object name and auth scope, such as for teams and projects - * @param path Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. */ - public connectDeleteNamespacedServiceProxy(name: string, namespace: string, path?: string, _options?: Configuration): Promise { - const result = this.api.connectDeleteNamespacedServiceProxy(name, namespace, path, _options); + public createNamespacedJobWithHttpInfo(namespace: string, body: V1Job, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.createNamespacedJobWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, _options); return result.toPromise(); } /** - * connect DELETE requests to proxy of Service - * @param name name of the ServiceProxyOptions + * create a Job * @param namespace object name and auth scope, such as for teams and projects - * @param path path to the resource - * @param path2 Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. */ - public connectDeleteNamespacedServiceProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Promise { - const result = this.api.connectDeleteNamespacedServiceProxyWithPath(name, namespace, path, path2, _options); + public createNamespacedJob(namespace: string, body: V1Job, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { + const result = this.api.createNamespacedJob(namespace, body, pretty, dryRun, fieldManager, _options); return result.toPromise(); } /** - * connect DELETE requests to proxy of Node - * @param name name of the NodeProxyOptions - * @param path Path is the URL path to use for the current proxy request to node. + * delete collection of CronJob + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body */ - public connectDeleteNodeProxy(name: string, path?: string, _options?: Configuration): Promise { - const result = this.api.connectDeleteNodeProxy(name, path, _options); + public deleteCollectionNamespacedCronJobWithHttpInfo(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteCollectionNamespacedCronJobWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); return result.toPromise(); } /** - * connect DELETE requests to proxy of Node - * @param name name of the NodeProxyOptions - * @param path path to the resource - * @param path2 Path is the URL path to use for the current proxy request to node. + * delete collection of CronJob + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body */ - public connectDeleteNodeProxyWithPath(name: string, path: string, path2?: string, _options?: Configuration): Promise { - const result = this.api.connectDeleteNodeProxyWithPath(name, path, path2, _options); + public deleteCollectionNamespacedCronJob(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { + const result = this.api.deleteCollectionNamespacedCronJob(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); return result.toPromise(); } /** - * connect GET requests to attach of Pod - * @param name name of the PodAttachOptions + * delete collection of Job * @param namespace object name and auth scope, such as for teams and projects - * @param container The container in which to execute the command. Defaults to only container if there is only one container in the pod. - * @param stderr Stderr if true indicates that stderr is to be redirected for the attach call. Defaults to true. - * @param stdin Stdin if true, redirects the standard input stream of the pod for this call. Defaults to false. - * @param stdout Stdout if true indicates that stdout is to be redirected for the attach call. Defaults to true. - * @param tty TTY if true indicates that a tty will be allocated for the attach call. This is passed through the container runtime so the tty is allocated on the worker node by the container runtime. Defaults to false. + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body */ - public connectGetNamespacedPodAttach(name: string, namespace: string, container?: string, stderr?: boolean, stdin?: boolean, stdout?: boolean, tty?: boolean, _options?: Configuration): Promise { - const result = this.api.connectGetNamespacedPodAttach(name, namespace, container, stderr, stdin, stdout, tty, _options); + public deleteCollectionNamespacedJobWithHttpInfo(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteCollectionNamespacedJobWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); return result.toPromise(); } /** - * connect GET requests to exec of Pod - * @param name name of the PodExecOptions + * delete collection of Job * @param namespace object name and auth scope, such as for teams and projects - * @param command Command is the remote command to execute. argv array. Not executed within a shell. - * @param container Container in which to execute the command. Defaults to only container if there is only one container in the pod. - * @param stderr Redirect the standard error stream of the pod for this call. Defaults to true. - * @param stdin Redirect the standard input stream of the pod for this call. Defaults to false. - * @param stdout Redirect the standard output stream of the pod for this call. Defaults to true. - * @param tty TTY if true indicates that a tty will be allocated for the exec call. Defaults to false. + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body */ - public connectGetNamespacedPodExec(name: string, namespace: string, command?: string, container?: string, stderr?: boolean, stdin?: boolean, stdout?: boolean, tty?: boolean, _options?: Configuration): Promise { - const result = this.api.connectGetNamespacedPodExec(name, namespace, command, container, stderr, stdin, stdout, tty, _options); + public deleteCollectionNamespacedJob(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { + const result = this.api.deleteCollectionNamespacedJob(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); return result.toPromise(); } /** - * connect GET requests to portforward of Pod - * @param name name of the PodPortForwardOptions + * delete a CronJob + * @param name name of the CronJob * @param namespace object name and auth scope, such as for teams and projects - * @param ports List of ports to forward Required when using WebSockets + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 connectGetNamespacedPodPortforward(name: string, namespace: string, ports?: number, _options?: Configuration): Promise { - const result = this.api.connectGetNamespacedPodPortforward(name, namespace, ports, _options); + public deleteNamespacedCronJobWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteNamespacedCronJobWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); return result.toPromise(); } /** - * connect GET requests to proxy of Pod - * @param name name of the PodProxyOptions + * delete a CronJob + * @param name name of the CronJob * @param namespace object name and auth scope, such as for teams and projects - * @param path Path is the URL path to use for the current proxy request to pod. + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 connectGetNamespacedPodProxy(name: string, namespace: string, path?: string, _options?: Configuration): Promise { - const result = this.api.connectGetNamespacedPodProxy(name, namespace, path, _options); + public deleteNamespacedCronJob(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { + const result = this.api.deleteNamespacedCronJob(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); return result.toPromise(); } /** - * connect GET requests to proxy of Pod - * @param name name of the PodProxyOptions + * delete a Job + * @param name name of the Job * @param namespace object name and auth scope, such as for teams and projects - * @param path path to the resource - * @param path2 Path is the URL path to use for the current proxy request to pod. + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 connectGetNamespacedPodProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Promise { - const result = this.api.connectGetNamespacedPodProxyWithPath(name, namespace, path, path2, _options); + public deleteNamespacedJobWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteNamespacedJobWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); return result.toPromise(); } /** - * connect GET requests to proxy of Service - * @param name name of the ServiceProxyOptions + * delete a Job + * @param name name of the Job * @param namespace object name and auth scope, such as for teams and projects - * @param path Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 connectGetNamespacedServiceProxy(name: string, namespace: string, path?: string, _options?: Configuration): Promise { - const result = this.api.connectGetNamespacedServiceProxy(name, namespace, path, _options); + public deleteNamespacedJob(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { + const result = this.api.deleteNamespacedJob(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); return result.toPromise(); } /** - * connect GET requests to proxy of Service - * @param name name of the ServiceProxyOptions - * @param namespace object name and auth scope, such as for teams and projects - * @param path path to the resource - * @param path2 Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + * get available resources */ - public connectGetNamespacedServiceProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Promise { - const result = this.api.connectGetNamespacedServiceProxyWithPath(name, namespace, path, path2, _options); + public getAPIResourcesWithHttpInfo(_options?: Configuration): Promise> { + const result = this.api.getAPIResourcesWithHttpInfo(_options); return result.toPromise(); } /** - * connect GET requests to proxy of Node - * @param name name of the NodeProxyOptions - * @param path Path is the URL path to use for the current proxy request to node. + * get available resources */ - public connectGetNodeProxy(name: string, path?: string, _options?: Configuration): Promise { - const result = this.api.connectGetNodeProxy(name, path, _options); + public getAPIResources(_options?: Configuration): Promise { + const result = this.api.getAPIResources(_options); return result.toPromise(); } /** - * connect GET requests to proxy of Node - * @param name name of the NodeProxyOptions - * @param path path to the resource - * @param path2 Path is the URL path to use for the current proxy request to node. + * list or watch objects of kind CronJob + * @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. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public connectGetNodeProxyWithPath(name: string, path: string, path2?: string, _options?: Configuration): Promise { - const result = this.api.connectGetNodeProxyWithPath(name, path, path2, _options); + public listCronJobForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { + const result = this.api.listCronJobForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); return result.toPromise(); } /** - * connect HEAD requests to proxy of Pod - * @param name name of the PodProxyOptions - * @param namespace object name and auth scope, such as for teams and projects - * @param path Path is the URL path to use for the current proxy request to pod. + * list or watch objects of kind CronJob + * @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. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public connectHeadNamespacedPodProxy(name: string, namespace: string, path?: string, _options?: Configuration): Promise { - const result = this.api.connectHeadNamespacedPodProxy(name, namespace, path, _options); + public listCronJobForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + const result = this.api.listCronJobForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); return result.toPromise(); } /** - * connect HEAD requests to proxy of Pod - * @param name name of the PodProxyOptions - * @param namespace object name and auth scope, such as for teams and projects - * @param path path to the resource - * @param path2 Path is the URL path to use for the current proxy request to pod. + * list or watch objects of kind Job + * @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. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public connectHeadNamespacedPodProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Promise { - const result = this.api.connectHeadNamespacedPodProxyWithPath(name, namespace, path, path2, _options); + public listJobForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { + const result = this.api.listJobForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); return result.toPromise(); } /** - * connect HEAD requests to proxy of Service - * @param name name of the ServiceProxyOptions - * @param namespace object name and auth scope, such as for teams and projects - * @param path Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + * list or watch objects of kind Job + * @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. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public connectHeadNamespacedServiceProxy(name: string, namespace: string, path?: string, _options?: Configuration): Promise { - const result = this.api.connectHeadNamespacedServiceProxy(name, namespace, path, _options); + public listJobForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + const result = this.api.listJobForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); return result.toPromise(); } /** - * connect HEAD requests to proxy of Service - * @param name name of the ServiceProxyOptions + * list or watch objects of kind CronJob * @param namespace object name and auth scope, such as for teams and projects - * @param path path to the resource - * @param path2 Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public connectHeadNamespacedServiceProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Promise { - const result = this.api.connectHeadNamespacedServiceProxyWithPath(name, namespace, path, path2, _options); + public listNamespacedCronJobWithHttpInfo(namespace: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { + const result = this.api.listNamespacedCronJobWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); return result.toPromise(); } /** - * connect HEAD requests to proxy of Node - * @param name name of the NodeProxyOptions - * @param path Path is the URL path to use for the current proxy request to node. + * list or watch objects of kind CronJob + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public connectHeadNodeProxy(name: string, path?: string, _options?: Configuration): Promise { - const result = this.api.connectHeadNodeProxy(name, path, _options); + public listNamespacedCronJob(namespace: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + const result = this.api.listNamespacedCronJob(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); return result.toPromise(); } /** - * connect HEAD requests to proxy of Node - * @param name name of the NodeProxyOptions - * @param path path to the resource - * @param path2 Path is the URL path to use for the current proxy request to node. + * list or watch objects of kind Job + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public connectHeadNodeProxyWithPath(name: string, path: string, path2?: string, _options?: Configuration): Promise { - const result = this.api.connectHeadNodeProxyWithPath(name, path, path2, _options); + public listNamespacedJobWithHttpInfo(namespace: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { + const result = this.api.listNamespacedJobWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); return result.toPromise(); } /** - * connect OPTIONS requests to proxy of Pod - * @param name name of the PodProxyOptions + * list or watch objects of kind Job * @param namespace object name and auth scope, such as for teams and projects - * @param path Path is the URL path to use for the current proxy request to pod. + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public connectOptionsNamespacedPodProxy(name: string, namespace: string, path?: string, _options?: Configuration): Promise { - const result = this.api.connectOptionsNamespacedPodProxy(name, namespace, path, _options); + public listNamespacedJob(namespace: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + const result = this.api.listNamespacedJob(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); return result.toPromise(); } /** - * connect OPTIONS requests to proxy of Pod - * @param name name of the PodProxyOptions + * partially update the specified CronJob + * @param name name of the CronJob * @param namespace object name and auth scope, such as for teams and projects - * @param path path to the resource - * @param path2 Path is the URL path to use for the current proxy request to pod. + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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 force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. */ - public connectOptionsNamespacedPodProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Promise { - const result = this.api.connectOptionsNamespacedPodProxyWithPath(name, namespace, path, path2, _options); + public patchNamespacedCronJobWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Promise> { + const result = this.api.patchNamespacedCronJobWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options); return result.toPromise(); } /** - * connect OPTIONS requests to proxy of Service - * @param name name of the ServiceProxyOptions + * partially update the specified CronJob + * @param name name of the CronJob * @param namespace object name and auth scope, such as for teams and projects - * @param path Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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 force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. */ - public connectOptionsNamespacedServiceProxy(name: string, namespace: string, path?: string, _options?: Configuration): Promise { - const result = this.api.connectOptionsNamespacedServiceProxy(name, namespace, path, _options); + public patchNamespacedCronJob(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Promise { + const result = this.api.patchNamespacedCronJob(name, namespace, body, pretty, dryRun, fieldManager, force, _options); return result.toPromise(); } /** - * connect OPTIONS requests to proxy of Service - * @param name name of the ServiceProxyOptions + * partially update status of the specified CronJob + * @param name name of the CronJob * @param namespace object name and auth scope, such as for teams and projects - * @param path path to the resource - * @param path2 Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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 force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. */ - public connectOptionsNamespacedServiceProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Promise { - const result = this.api.connectOptionsNamespacedServiceProxyWithPath(name, namespace, path, path2, _options); + public patchNamespacedCronJobStatusWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Promise> { + const result = this.api.patchNamespacedCronJobStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options); return result.toPromise(); } /** - * connect OPTIONS requests to proxy of Node - * @param name name of the NodeProxyOptions - * @param path Path is the URL path to use for the current proxy request to node. + * partially update status of the specified CronJob + * @param name name of the CronJob + * @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. + * @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 force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. */ - public connectOptionsNodeProxy(name: string, path?: string, _options?: Configuration): Promise { - const result = this.api.connectOptionsNodeProxy(name, path, _options); + public patchNamespacedCronJobStatus(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Promise { + const result = this.api.patchNamespacedCronJobStatus(name, namespace, body, pretty, dryRun, fieldManager, force, _options); return result.toPromise(); } /** - * connect OPTIONS requests to proxy of Node - * @param name name of the NodeProxyOptions - * @param path path to the resource - * @param path2 Path is the URL path to use for the current proxy request to node. + * partially update the specified Job + * @param name name of the Job + * @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. + * @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 force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. */ - public connectOptionsNodeProxyWithPath(name: string, path: string, path2?: string, _options?: Configuration): Promise { - const result = this.api.connectOptionsNodeProxyWithPath(name, path, path2, _options); + public patchNamespacedJobWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Promise> { + const result = this.api.patchNamespacedJobWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options); return result.toPromise(); } /** - * connect PATCH requests to proxy of Pod - * @param name name of the PodProxyOptions + * partially update the specified Job + * @param name name of the Job * @param namespace object name and auth scope, such as for teams and projects - * @param path Path is the URL path to use for the current proxy request to pod. + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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 force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. */ - public connectPatchNamespacedPodProxy(name: string, namespace: string, path?: string, _options?: Configuration): Promise { - const result = this.api.connectPatchNamespacedPodProxy(name, namespace, path, _options); + public patchNamespacedJob(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Promise { + const result = this.api.patchNamespacedJob(name, namespace, body, pretty, dryRun, fieldManager, force, _options); return result.toPromise(); } /** - * connect PATCH requests to proxy of Pod - * @param name name of the PodProxyOptions + * partially update status of the specified Job + * @param name name of the Job * @param namespace object name and auth scope, such as for teams and projects - * @param path path to the resource - * @param path2 Path is the URL path to use for the current proxy request to pod. + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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 force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. */ - public connectPatchNamespacedPodProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Promise { - const result = this.api.connectPatchNamespacedPodProxyWithPath(name, namespace, path, path2, _options); + public patchNamespacedJobStatusWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Promise> { + const result = this.api.patchNamespacedJobStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options); return result.toPromise(); } /** - * connect PATCH requests to proxy of Service - * @param name name of the ServiceProxyOptions - * @param namespace object name and auth scope, such as for teams and projects - * @param path Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + * partially update status of the specified Job + * @param name name of the Job + * @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. + * @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 force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. */ - public connectPatchNamespacedServiceProxy(name: string, namespace: string, path?: string, _options?: Configuration): Promise { - const result = this.api.connectPatchNamespacedServiceProxy(name, namespace, path, _options); + public patchNamespacedJobStatus(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Promise { + const result = this.api.patchNamespacedJobStatus(name, namespace, body, pretty, dryRun, fieldManager, force, _options); return result.toPromise(); } /** - * connect PATCH requests to proxy of Service - * @param name name of the ServiceProxyOptions + * read the specified CronJob + * @param name name of the CronJob * @param namespace object name and auth scope, such as for teams and projects - * @param path path to the resource - * @param path2 Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + * @param pretty If \'true\', then the output is pretty printed. */ - public connectPatchNamespacedServiceProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Promise { - const result = this.api.connectPatchNamespacedServiceProxyWithPath(name, namespace, path, path2, _options); + public readNamespacedCronJobWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.readNamespacedCronJobWithHttpInfo(name, namespace, pretty, _options); return result.toPromise(); } /** - * connect PATCH requests to proxy of Node - * @param name name of the NodeProxyOptions - * @param path Path is the URL path to use for the current proxy request to node. + * read the specified CronJob + * @param name name of the CronJob + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. */ - public connectPatchNodeProxy(name: string, path?: string, _options?: Configuration): Promise { - const result = this.api.connectPatchNodeProxy(name, path, _options); + public readNamespacedCronJob(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { + const result = this.api.readNamespacedCronJob(name, namespace, pretty, _options); return result.toPromise(); } /** - * connect PATCH requests to proxy of Node - * @param name name of the NodeProxyOptions - * @param path path to the resource - * @param path2 Path is the URL path to use for the current proxy request to node. + * read status of the specified CronJob + * @param name name of the CronJob + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. */ - public connectPatchNodeProxyWithPath(name: string, path: string, path2?: string, _options?: Configuration): Promise { - const result = this.api.connectPatchNodeProxyWithPath(name, path, path2, _options); + public readNamespacedCronJobStatusWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.readNamespacedCronJobStatusWithHttpInfo(name, namespace, pretty, _options); return result.toPromise(); } /** - * connect POST requests to attach of Pod - * @param name name of the PodAttachOptions + * read status of the specified CronJob + * @param name name of the CronJob * @param namespace object name and auth scope, such as for teams and projects - * @param container The container in which to execute the command. Defaults to only container if there is only one container in the pod. - * @param stderr Stderr if true indicates that stderr is to be redirected for the attach call. Defaults to true. - * @param stdin Stdin if true, redirects the standard input stream of the pod for this call. Defaults to false. - * @param stdout Stdout if true indicates that stdout is to be redirected for the attach call. Defaults to true. - * @param tty TTY if true indicates that a tty will be allocated for the attach call. This is passed through the container runtime so the tty is allocated on the worker node by the container runtime. Defaults to false. + * @param pretty If \'true\', then the output is pretty printed. */ - public connectPostNamespacedPodAttach(name: string, namespace: string, container?: string, stderr?: boolean, stdin?: boolean, stdout?: boolean, tty?: boolean, _options?: Configuration): Promise { - const result = this.api.connectPostNamespacedPodAttach(name, namespace, container, stderr, stdin, stdout, tty, _options); + public readNamespacedCronJobStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { + const result = this.api.readNamespacedCronJobStatus(name, namespace, pretty, _options); return result.toPromise(); } /** - * connect POST requests to exec of Pod - * @param name name of the PodExecOptions + * read the specified Job + * @param name name of the Job * @param namespace object name and auth scope, such as for teams and projects - * @param command Command is the remote command to execute. argv array. Not executed within a shell. - * @param container Container in which to execute the command. Defaults to only container if there is only one container in the pod. - * @param stderr Redirect the standard error stream of the pod for this call. Defaults to true. - * @param stdin Redirect the standard input stream of the pod for this call. Defaults to false. - * @param stdout Redirect the standard output stream of the pod for this call. Defaults to true. - * @param tty TTY if true indicates that a tty will be allocated for the exec call. Defaults to false. + * @param pretty If \'true\', then the output is pretty printed. */ - public connectPostNamespacedPodExec(name: string, namespace: string, command?: string, container?: string, stderr?: boolean, stdin?: boolean, stdout?: boolean, tty?: boolean, _options?: Configuration): Promise { - const result = this.api.connectPostNamespacedPodExec(name, namespace, command, container, stderr, stdin, stdout, tty, _options); + public readNamespacedJobWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.readNamespacedJobWithHttpInfo(name, namespace, pretty, _options); return result.toPromise(); } /** - * connect POST requests to portforward of Pod - * @param name name of the PodPortForwardOptions + * read the specified Job + * @param name name of the Job * @param namespace object name and auth scope, such as for teams and projects - * @param ports List of ports to forward Required when using WebSockets + * @param pretty If \'true\', then the output is pretty printed. */ - public connectPostNamespacedPodPortforward(name: string, namespace: string, ports?: number, _options?: Configuration): Promise { - const result = this.api.connectPostNamespacedPodPortforward(name, namespace, ports, _options); + public readNamespacedJob(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { + const result = this.api.readNamespacedJob(name, namespace, pretty, _options); return result.toPromise(); } /** - * connect POST requests to proxy of Pod - * @param name name of the PodProxyOptions + * read status of the specified Job + * @param name name of the Job * @param namespace object name and auth scope, such as for teams and projects - * @param path Path is the URL path to use for the current proxy request to pod. + * @param pretty If \'true\', then the output is pretty printed. */ - public connectPostNamespacedPodProxy(name: string, namespace: string, path?: string, _options?: Configuration): Promise { - const result = this.api.connectPostNamespacedPodProxy(name, namespace, path, _options); + public readNamespacedJobStatusWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.readNamespacedJobStatusWithHttpInfo(name, namespace, pretty, _options); return result.toPromise(); } /** - * connect POST requests to proxy of Pod - * @param name name of the PodProxyOptions + * read status of the specified Job + * @param name name of the Job * @param namespace object name and auth scope, such as for teams and projects - * @param path path to the resource - * @param path2 Path is the URL path to use for the current proxy request to pod. + * @param pretty If \'true\', then the output is pretty printed. */ - public connectPostNamespacedPodProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Promise { - const result = this.api.connectPostNamespacedPodProxyWithPath(name, namespace, path, path2, _options); + public readNamespacedJobStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { + const result = this.api.readNamespacedJobStatus(name, namespace, pretty, _options); return result.toPromise(); } /** - * connect POST requests to proxy of Service - * @param name name of the ServiceProxyOptions + * replace the specified CronJob + * @param name name of the CronJob * @param namespace object name and auth scope, such as for teams and projects - * @param path Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. */ - public connectPostNamespacedServiceProxy(name: string, namespace: string, path?: string, _options?: Configuration): Promise { - const result = this.api.connectPostNamespacedServiceProxy(name, namespace, path, _options); + public replaceNamespacedCronJobWithHttpInfo(name: string, namespace: string, body: V1CronJob, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.replaceNamespacedCronJobWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options); return result.toPromise(); } /** - * connect POST requests to proxy of Service - * @param name name of the ServiceProxyOptions + * replace the specified CronJob + * @param name name of the CronJob * @param namespace object name and auth scope, such as for teams and projects - * @param path path to the resource - * @param path2 Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. */ - public connectPostNamespacedServiceProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Promise { - const result = this.api.connectPostNamespacedServiceProxyWithPath(name, namespace, path, path2, _options); + public replaceNamespacedCronJob(name: string, namespace: string, body: V1CronJob, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { + const result = this.api.replaceNamespacedCronJob(name, namespace, body, pretty, dryRun, fieldManager, _options); return result.toPromise(); } /** - * connect POST requests to proxy of Node - * @param name name of the NodeProxyOptions - * @param path Path is the URL path to use for the current proxy request to node. + * replace status of the specified CronJob + * @param name name of the CronJob + * @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. + * @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. */ - public connectPostNodeProxy(name: string, path?: string, _options?: Configuration): Promise { - const result = this.api.connectPostNodeProxy(name, path, _options); + public replaceNamespacedCronJobStatusWithHttpInfo(name: string, namespace: string, body: V1CronJob, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.replaceNamespacedCronJobStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options); return result.toPromise(); } /** - * connect POST requests to proxy of Node - * @param name name of the NodeProxyOptions - * @param path path to the resource - * @param path2 Path is the URL path to use for the current proxy request to node. + * replace status of the specified CronJob + * @param name name of the CronJob + * @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. + * @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. */ - public connectPostNodeProxyWithPath(name: string, path: string, path2?: string, _options?: Configuration): Promise { - const result = this.api.connectPostNodeProxyWithPath(name, path, path2, _options); + public replaceNamespacedCronJobStatus(name: string, namespace: string, body: V1CronJob, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { + const result = this.api.replaceNamespacedCronJobStatus(name, namespace, body, pretty, dryRun, fieldManager, _options); return result.toPromise(); } /** - * connect PUT requests to proxy of Pod - * @param name name of the PodProxyOptions + * replace the specified Job + * @param name name of the Job * @param namespace object name and auth scope, such as for teams and projects - * @param path Path is the URL path to use for the current proxy request to pod. + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. */ - public connectPutNamespacedPodProxy(name: string, namespace: string, path?: string, _options?: Configuration): Promise { - const result = this.api.connectPutNamespacedPodProxy(name, namespace, path, _options); + public replaceNamespacedJobWithHttpInfo(name: string, namespace: string, body: V1Job, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.replaceNamespacedJobWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options); return result.toPromise(); } /** - * connect PUT requests to proxy of Pod - * @param name name of the PodProxyOptions + * replace the specified Job + * @param name name of the Job * @param namespace object name and auth scope, such as for teams and projects - * @param path path to the resource - * @param path2 Path is the URL path to use for the current proxy request to pod. + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. */ - public connectPutNamespacedPodProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Promise { - const result = this.api.connectPutNamespacedPodProxyWithPath(name, namespace, path, path2, _options); + public replaceNamespacedJob(name: string, namespace: string, body: V1Job, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { + const result = this.api.replaceNamespacedJob(name, namespace, body, pretty, dryRun, fieldManager, _options); return result.toPromise(); } /** - * connect PUT requests to proxy of Service - * @param name name of the ServiceProxyOptions + * replace status of the specified Job + * @param name name of the Job * @param namespace object name and auth scope, such as for teams and projects - * @param path Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. */ - public connectPutNamespacedServiceProxy(name: string, namespace: string, path?: string, _options?: Configuration): Promise { - const result = this.api.connectPutNamespacedServiceProxy(name, namespace, path, _options); + public replaceNamespacedJobStatusWithHttpInfo(name: string, namespace: string, body: V1Job, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.replaceNamespacedJobStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options); return result.toPromise(); } /** - * connect PUT requests to proxy of Service - * @param name name of the ServiceProxyOptions + * replace status of the specified Job + * @param name name of the Job * @param namespace object name and auth scope, such as for teams and projects - * @param path path to the resource - * @param path2 Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. */ - public connectPutNamespacedServiceProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Promise { - const result = this.api.connectPutNamespacedServiceProxyWithPath(name, namespace, path, path2, _options); + public replaceNamespacedJobStatus(name: string, namespace: string, body: V1Job, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { + const result = this.api.replaceNamespacedJobStatus(name, namespace, body, pretty, dryRun, fieldManager, _options); return result.toPromise(); } - /** - * connect PUT requests to proxy of Node - * @param name name of the NodeProxyOptions - * @param path Path is the URL path to use for the current proxy request to node. - */ - public connectPutNodeProxy(name: string, path?: string, _options?: Configuration): Promise { - const result = this.api.connectPutNodeProxy(name, path, _options); - return result.toPromise(); - } - /** - * connect PUT requests to proxy of Node - * @param name name of the NodeProxyOptions - * @param path path to the resource - * @param path2 Path is the URL path to use for the current proxy request to node. - */ - public connectPutNodeProxyWithPath(name: string, path: string, path2?: string, _options?: Configuration): Promise { - const result = this.api.connectPutNodeProxyWithPath(name, path, path2, _options); - return result.toPromise(); +} + + + +import { ObservableBatchV1beta1Api } from './ObservableAPI'; + +import { BatchV1beta1ApiRequestFactory, BatchV1beta1ApiResponseProcessor} from "../apis/BatchV1beta1Api"; +export class PromiseBatchV1beta1Api { + private api: ObservableBatchV1beta1Api + + public constructor( + configuration: Configuration, + requestFactory?: BatchV1beta1ApiRequestFactory, + responseProcessor?: BatchV1beta1ApiResponseProcessor + ) { + this.api = new ObservableBatchV1beta1Api(configuration, requestFactory, responseProcessor); } /** - * create a Namespace + * create a CronJob + * @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. * @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. */ - public createNamespace(body: V1Namespace, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { - const result = this.api.createNamespace(body, pretty, dryRun, fieldManager, _options); + public createNamespacedCronJobWithHttpInfo(namespace: string, body: V1beta1CronJob, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.createNamespacedCronJobWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, _options); return result.toPromise(); } /** - * create a Binding + * create a CronJob * @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. * @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 pretty If \'true\', then the output is pretty printed. */ - public createNamespacedBinding(namespace: string, body: V1Binding, dryRun?: string, fieldManager?: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.createNamespacedBinding(namespace, body, dryRun, fieldManager, pretty, _options); + public createNamespacedCronJob(namespace: string, body: V1beta1CronJob, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { + const result = this.api.createNamespacedCronJob(namespace, body, pretty, dryRun, fieldManager, _options); return result.toPromise(); } /** - * create a ConfigMap + * delete collection of CronJob * @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. + * @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 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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionNamespacedCronJobWithHttpInfo(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteCollectionNamespacedCronJobWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + return result.toPromise(); + } + + /** + * delete collection of CronJob + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionNamespacedCronJob(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { + const result = this.api.deleteCollectionNamespacedCronJob(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + return result.toPromise(); + } + + /** + * delete a CronJob + * @param name name of the CronJob + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteNamespacedCronJobWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteNamespacedCronJobWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + return result.toPromise(); + } + + /** + * delete a CronJob + * @param name name of the CronJob + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteNamespacedCronJob(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { + const result = this.api.deleteNamespacedCronJob(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + return result.toPromise(); + } + + /** + * get available resources + */ + public getAPIResourcesWithHttpInfo(_options?: Configuration): Promise> { + const result = this.api.getAPIResourcesWithHttpInfo(_options); + return result.toPromise(); + } + + /** + * get available resources + */ + public getAPIResources(_options?: Configuration): Promise { + const result = this.api.getAPIResources(_options); + return result.toPromise(); + } + + /** + * list or watch objects of kind CronJob + * @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. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { + const result = this.api.listCronJobForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + + /** + * list or watch objects of kind CronJob + * @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. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + const result = this.api.listCronJobForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + + /** + * list or watch objects of kind CronJob + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { + const result = this.api.listNamespacedCronJobWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + + /** + * list or watch objects of kind CronJob + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + const result = this.api.listNamespacedCronJob(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + + /** + * partially update the specified CronJob + * @param name name of the CronJob + * @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. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise> { + const result = this.api.patchNamespacedCronJobWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options); + return result.toPromise(); + } + + /** + * partially update the specified CronJob + * @param name name of the CronJob + * @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. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise { + const result = this.api.patchNamespacedCronJob(name, namespace, body, pretty, dryRun, fieldManager, force, _options); + return result.toPromise(); + } + + /** + * partially update status of the specified CronJob + * @param name name of the CronJob + * @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. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise> { + const result = this.api.patchNamespacedCronJobStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options); + return result.toPromise(); + } + + /** + * partially update status of the specified CronJob + * @param name name of the CronJob + * @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. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise { + const result = this.api.patchNamespacedCronJobStatus(name, namespace, body, pretty, dryRun, fieldManager, force, _options); + return result.toPromise(); + } + + /** + * read the specified CronJob + * @param name name of the CronJob + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + */ + public readNamespacedCronJobWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.readNamespacedCronJobWithHttpInfo(name, namespace, pretty, _options); + return result.toPromise(); + } + + /** + * read the specified CronJob + * @param name name of the CronJob + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + */ + public readNamespacedCronJob(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { + const result = this.api.readNamespacedCronJob(name, namespace, pretty, _options); + return result.toPromise(); + } + + /** + * read status of the specified CronJob + * @param name name of the CronJob + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + */ + public readNamespacedCronJobStatusWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.readNamespacedCronJobStatusWithHttpInfo(name, namespace, pretty, _options); + return result.toPromise(); + } + + /** + * read status of the specified CronJob + * @param name name of the CronJob + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + */ + public readNamespacedCronJobStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { + const result = this.api.readNamespacedCronJobStatus(name, namespace, pretty, _options); + return result.toPromise(); + } + + /** + * replace the specified CronJob + * @param name name of the CronJob + * @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. + * @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. + */ + public replaceNamespacedCronJobWithHttpInfo(name: string, namespace: string, body: V1beta1CronJob, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.replaceNamespacedCronJobWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + + /** + * replace the specified CronJob + * @param name name of the CronJob + * @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. + * @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. + */ + public replaceNamespacedCronJob(name: string, namespace: string, body: V1beta1CronJob, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { + const result = this.api.replaceNamespacedCronJob(name, namespace, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + + /** + * replace status of the specified CronJob + * @param name name of the CronJob + * @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. + * @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. + */ + public replaceNamespacedCronJobStatusWithHttpInfo(name: string, namespace: string, body: V1beta1CronJob, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.replaceNamespacedCronJobStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + + /** + * replace status of the specified CronJob + * @param name name of the CronJob + * @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. + * @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. + */ + public replaceNamespacedCronJobStatus(name: string, namespace: string, body: V1beta1CronJob, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { + const result = this.api.replaceNamespacedCronJobStatus(name, namespace, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + + +} + + + +import { ObservableCertificatesApi } from './ObservableAPI'; + +import { CertificatesApiRequestFactory, CertificatesApiResponseProcessor} from "../apis/CertificatesApi"; +export class PromiseCertificatesApi { + private api: ObservableCertificatesApi + + public constructor( + configuration: Configuration, + requestFactory?: CertificatesApiRequestFactory, + responseProcessor?: CertificatesApiResponseProcessor + ) { + this.api = new ObservableCertificatesApi(configuration, requestFactory, responseProcessor); + } + + /** + * get information of a group + */ + public getAPIGroupWithHttpInfo(_options?: Configuration): Promise> { + const result = this.api.getAPIGroupWithHttpInfo(_options); + return result.toPromise(); + } + + /** + * get information of a group + */ + public getAPIGroup(_options?: Configuration): Promise { + const result = this.api.getAPIGroup(_options); + return result.toPromise(); + } + + +} + + + +import { ObservableCertificatesV1Api } from './ObservableAPI'; + +import { CertificatesV1ApiRequestFactory, CertificatesV1ApiResponseProcessor} from "../apis/CertificatesV1Api"; +export class PromiseCertificatesV1Api { + private api: ObservableCertificatesV1Api + + public constructor( + configuration: Configuration, + requestFactory?: CertificatesV1ApiRequestFactory, + responseProcessor?: CertificatesV1ApiResponseProcessor + ) { + this.api = new ObservableCertificatesV1Api(configuration, requestFactory, responseProcessor); + } + + /** + * create a CertificateSigningRequest + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public createCertificateSigningRequestWithHttpInfo(body: V1CertificateSigningRequest, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.createCertificateSigningRequestWithHttpInfo(body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + + /** + * create a CertificateSigningRequest + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public createCertificateSigningRequest(body: V1CertificateSigningRequest, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { + const result = this.api.createCertificateSigningRequest(body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + + /** + * delete a CertificateSigningRequest + * @param name name of the CertificateSigningRequest + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteCertificateSigningRequestWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteCertificateSigningRequestWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + return result.toPromise(); + } + + /** + * delete a CertificateSigningRequest + * @param name name of the CertificateSigningRequest + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteCertificateSigningRequest(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { + const result = this.api.deleteCertificateSigningRequest(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + return result.toPromise(); + } + + /** + * delete collection of CertificateSigningRequest + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionCertificateSigningRequestWithHttpInfo(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteCollectionCertificateSigningRequestWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + return result.toPromise(); + } + + /** + * delete collection of CertificateSigningRequest + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionCertificateSigningRequest(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { + const result = this.api.deleteCollectionCertificateSigningRequest(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + return result.toPromise(); + } + + /** + * get available resources + */ + public getAPIResourcesWithHttpInfo(_options?: Configuration): Promise> { + const result = this.api.getAPIResourcesWithHttpInfo(_options); + return result.toPromise(); + } + + /** + * get available resources + */ + public getAPIResources(_options?: Configuration): Promise { + const result = this.api.getAPIResources(_options); + return result.toPromise(); + } + + /** + * list or watch objects of kind CertificateSigningRequest + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { + const result = this.api.listCertificateSigningRequestWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + + /** + * list or watch objects of kind CertificateSigningRequest + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + const result = this.api.listCertificateSigningRequest(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + + /** + * partially update the specified CertificateSigningRequest + * @param name name of the CertificateSigningRequest + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise> { + const result = this.api.patchCertificateSigningRequestWithHttpInfo(name, body, pretty, dryRun, fieldManager, force, _options); + return result.toPromise(); + } + + /** + * partially update the specified CertificateSigningRequest + * @param name name of the CertificateSigningRequest + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise { + const result = this.api.patchCertificateSigningRequest(name, body, pretty, dryRun, fieldManager, force, _options); + return result.toPromise(); + } + + /** + * partially update approval of the specified CertificateSigningRequest + * @param name name of the CertificateSigningRequest + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise> { + const result = this.api.patchCertificateSigningRequestApprovalWithHttpInfo(name, body, pretty, dryRun, fieldManager, force, _options); + return result.toPromise(); + } + + /** + * partially update approval of the specified CertificateSigningRequest + * @param name name of the CertificateSigningRequest + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise { + const result = this.api.patchCertificateSigningRequestApproval(name, body, pretty, dryRun, fieldManager, force, _options); + return result.toPromise(); + } + + /** + * partially update status of the specified CertificateSigningRequest + * @param name name of the CertificateSigningRequest + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise> { + const result = this.api.patchCertificateSigningRequestStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, force, _options); + return result.toPromise(); + } + + /** + * partially update status of the specified CertificateSigningRequest + * @param name name of the CertificateSigningRequest + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise { + const result = this.api.patchCertificateSigningRequestStatus(name, body, pretty, dryRun, fieldManager, force, _options); + return result.toPromise(); + } + + /** + * read the specified CertificateSigningRequest + * @param name name of the CertificateSigningRequest + * @param pretty If \'true\', then the output is pretty printed. + */ + public readCertificateSigningRequestWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.readCertificateSigningRequestWithHttpInfo(name, pretty, _options); + return result.toPromise(); + } + + /** + * read the specified CertificateSigningRequest + * @param name name of the CertificateSigningRequest + * @param pretty If \'true\', then the output is pretty printed. + */ + public readCertificateSigningRequest(name: string, pretty?: string, _options?: Configuration): Promise { + const result = this.api.readCertificateSigningRequest(name, pretty, _options); + return result.toPromise(); + } + + /** + * read approval of the specified CertificateSigningRequest + * @param name name of the CertificateSigningRequest + * @param pretty If \'true\', then the output is pretty printed. + */ + public readCertificateSigningRequestApprovalWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.readCertificateSigningRequestApprovalWithHttpInfo(name, pretty, _options); + return result.toPromise(); + } + + /** + * read approval of the specified CertificateSigningRequest + * @param name name of the CertificateSigningRequest + * @param pretty If \'true\', then the output is pretty printed. + */ + public readCertificateSigningRequestApproval(name: string, pretty?: string, _options?: Configuration): Promise { + const result = this.api.readCertificateSigningRequestApproval(name, pretty, _options); + return result.toPromise(); + } + + /** + * read status of the specified CertificateSigningRequest + * @param name name of the CertificateSigningRequest + * @param pretty If \'true\', then the output is pretty printed. + */ + public readCertificateSigningRequestStatusWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.readCertificateSigningRequestStatusWithHttpInfo(name, pretty, _options); + return result.toPromise(); + } + + /** + * read status of the specified CertificateSigningRequest + * @param name name of the CertificateSigningRequest + * @param pretty If \'true\', then the output is pretty printed. + */ + public readCertificateSigningRequestStatus(name: string, pretty?: string, _options?: Configuration): Promise { + const result = this.api.readCertificateSigningRequestStatus(name, pretty, _options); + return result.toPromise(); + } + + /** + * replace the specified CertificateSigningRequest + * @param name name of the CertificateSigningRequest + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public replaceCertificateSigningRequestWithHttpInfo(name: string, body: V1CertificateSigningRequest, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.replaceCertificateSigningRequestWithHttpInfo(name, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + + /** + * replace the specified CertificateSigningRequest + * @param name name of the CertificateSigningRequest + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public replaceCertificateSigningRequest(name: string, body: V1CertificateSigningRequest, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { + const result = this.api.replaceCertificateSigningRequest(name, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + + /** + * replace approval of the specified CertificateSigningRequest + * @param name name of the CertificateSigningRequest + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public replaceCertificateSigningRequestApprovalWithHttpInfo(name: string, body: V1CertificateSigningRequest, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.replaceCertificateSigningRequestApprovalWithHttpInfo(name, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + + /** + * replace approval of the specified CertificateSigningRequest + * @param name name of the CertificateSigningRequest + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public replaceCertificateSigningRequestApproval(name: string, body: V1CertificateSigningRequest, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { + const result = this.api.replaceCertificateSigningRequestApproval(name, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + + /** + * replace status of the specified CertificateSigningRequest + * @param name name of the CertificateSigningRequest + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public replaceCertificateSigningRequestStatusWithHttpInfo(name: string, body: V1CertificateSigningRequest, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.replaceCertificateSigningRequestStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + + /** + * replace status of the specified CertificateSigningRequest + * @param name name of the CertificateSigningRequest + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public replaceCertificateSigningRequestStatus(name: string, body: V1CertificateSigningRequest, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { + const result = this.api.replaceCertificateSigningRequestStatus(name, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + + +} + + + +import { ObservableCoordinationApi } from './ObservableAPI'; + +import { CoordinationApiRequestFactory, CoordinationApiResponseProcessor} from "../apis/CoordinationApi"; +export class PromiseCoordinationApi { + private api: ObservableCoordinationApi + + public constructor( + configuration: Configuration, + requestFactory?: CoordinationApiRequestFactory, + responseProcessor?: CoordinationApiResponseProcessor + ) { + this.api = new ObservableCoordinationApi(configuration, requestFactory, responseProcessor); + } + + /** + * get information of a group + */ + public getAPIGroupWithHttpInfo(_options?: Configuration): Promise> { + const result = this.api.getAPIGroupWithHttpInfo(_options); + return result.toPromise(); + } + + /** + * get information of a group + */ + public getAPIGroup(_options?: Configuration): Promise { + const result = this.api.getAPIGroup(_options); + return result.toPromise(); + } + + +} + + + +import { ObservableCoordinationV1Api } from './ObservableAPI'; + +import { CoordinationV1ApiRequestFactory, CoordinationV1ApiResponseProcessor} from "../apis/CoordinationV1Api"; +export class PromiseCoordinationV1Api { + private api: ObservableCoordinationV1Api + + public constructor( + configuration: Configuration, + requestFactory?: CoordinationV1ApiRequestFactory, + responseProcessor?: CoordinationV1ApiResponseProcessor + ) { + this.api = new ObservableCoordinationV1Api(configuration, requestFactory, responseProcessor); + } + + /** + * create a Lease + * @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. + * @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. + */ + public createNamespacedLeaseWithHttpInfo(namespace: string, body: V1Lease, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.createNamespacedLeaseWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + + /** + * create a Lease + * @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. + * @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. + */ + public createNamespacedLease(namespace: string, body: V1Lease, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { + const result = this.api.createNamespacedLease(namespace, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + + /** + * delete collection of Lease + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionNamespacedLeaseWithHttpInfo(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteCollectionNamespacedLeaseWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + return result.toPromise(); + } + + /** + * delete collection of Lease + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionNamespacedLease(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { + const result = this.api.deleteCollectionNamespacedLease(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + return result.toPromise(); + } + + /** + * delete a Lease + * @param name name of the Lease + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteNamespacedLeaseWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteNamespacedLeaseWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + return result.toPromise(); + } + + /** + * delete a Lease + * @param name name of the Lease + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteNamespacedLease(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { + const result = this.api.deleteNamespacedLease(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + return result.toPromise(); + } + + /** + * get available resources + */ + public getAPIResourcesWithHttpInfo(_options?: Configuration): Promise> { + const result = this.api.getAPIResourcesWithHttpInfo(_options); + return result.toPromise(); + } + + /** + * get available resources + */ + public getAPIResources(_options?: Configuration): Promise { + const result = this.api.getAPIResources(_options); + return result.toPromise(); + } + + /** + * list or watch objects of kind Lease + * @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. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { + const result = this.api.listLeaseForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + + /** + * list or watch objects of kind Lease + * @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. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + const result = this.api.listLeaseForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + + /** + * list or watch objects of kind Lease + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { + const result = this.api.listNamespacedLeaseWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + + /** + * list or watch objects of kind Lease + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + const result = this.api.listNamespacedLease(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + + /** + * partially update the specified Lease + * @param name name of the Lease + * @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. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise> { + const result = this.api.patchNamespacedLeaseWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options); + return result.toPromise(); + } + + /** + * partially update the specified Lease + * @param name name of the Lease + * @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. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise { + const result = this.api.patchNamespacedLease(name, namespace, body, pretty, dryRun, fieldManager, force, _options); + return result.toPromise(); + } + + /** + * read the specified Lease + * @param name name of the Lease + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + */ + public readNamespacedLeaseWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.readNamespacedLeaseWithHttpInfo(name, namespace, pretty, _options); + return result.toPromise(); + } + + /** + * read the specified Lease + * @param name name of the Lease + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + */ + public readNamespacedLease(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { + const result = this.api.readNamespacedLease(name, namespace, pretty, _options); + return result.toPromise(); + } + + /** + * replace the specified Lease + * @param name name of the Lease + * @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. + * @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. + */ + public replaceNamespacedLeaseWithHttpInfo(name: string, namespace: string, body: V1Lease, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.replaceNamespacedLeaseWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + + /** + * replace the specified Lease + * @param name name of the Lease + * @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. + * @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. + */ + public replaceNamespacedLease(name: string, namespace: string, body: V1Lease, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { + const result = this.api.replaceNamespacedLease(name, namespace, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + + +} + + + +import { ObservableCoreApi } from './ObservableAPI'; + +import { CoreApiRequestFactory, CoreApiResponseProcessor} from "../apis/CoreApi"; +export class PromiseCoreApi { + private api: ObservableCoreApi + + public constructor( + configuration: Configuration, + requestFactory?: CoreApiRequestFactory, + responseProcessor?: CoreApiResponseProcessor + ) { + this.api = new ObservableCoreApi(configuration, requestFactory, responseProcessor); + } + + /** + * get available API versions + */ + public getAPIVersionsWithHttpInfo(_options?: Configuration): Promise> { + const result = this.api.getAPIVersionsWithHttpInfo(_options); + return result.toPromise(); + } + + /** + * get available API versions + */ + public getAPIVersions(_options?: Configuration): Promise { + const result = this.api.getAPIVersions(_options); + return result.toPromise(); + } + + +} + + + +import { ObservableCoreV1Api } from './ObservableAPI'; + +import { CoreV1ApiRequestFactory, CoreV1ApiResponseProcessor} from "../apis/CoreV1Api"; +export class PromiseCoreV1Api { + private api: ObservableCoreV1Api + + public constructor( + configuration: Configuration, + requestFactory?: CoreV1ApiRequestFactory, + responseProcessor?: CoreV1ApiResponseProcessor + ) { + this.api = new ObservableCoreV1Api(configuration, requestFactory, responseProcessor); + } + + /** + * connect DELETE requests to proxy of Pod + * @param name name of the PodProxyOptions + * @param namespace object name and auth scope, such as for teams and projects + * @param path Path is the URL path to use for the current proxy request to pod. + */ + public connectDeleteNamespacedPodProxyWithHttpInfo(name: string, namespace: string, path?: string, _options?: Configuration): Promise> { + const result = this.api.connectDeleteNamespacedPodProxyWithHttpInfo(name, namespace, path, _options); + return result.toPromise(); + } + + /** + * connect DELETE requests to proxy of Pod + * @param name name of the PodProxyOptions + * @param namespace object name and auth scope, such as for teams and projects + * @param path Path is the URL path to use for the current proxy request to pod. + */ + public connectDeleteNamespacedPodProxy(name: string, namespace: string, path?: string, _options?: Configuration): Promise { + const result = this.api.connectDeleteNamespacedPodProxy(name, namespace, path, _options); + return result.toPromise(); + } + + /** + * connect DELETE requests to proxy of Pod + * @param name name of the PodProxyOptions + * @param namespace object name and auth scope, such as for teams and projects + * @param path path to the resource + * @param path2 Path is the URL path to use for the current proxy request to pod. + */ + public connectDeleteNamespacedPodProxyWithPathWithHttpInfo(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Promise> { + const result = this.api.connectDeleteNamespacedPodProxyWithPathWithHttpInfo(name, namespace, path, path2, _options); + return result.toPromise(); + } + + /** + * connect DELETE requests to proxy of Pod + * @param name name of the PodProxyOptions + * @param namespace object name and auth scope, such as for teams and projects + * @param path path to the resource + * @param path2 Path is the URL path to use for the current proxy request to pod. + */ + public connectDeleteNamespacedPodProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Promise { + const result = this.api.connectDeleteNamespacedPodProxyWithPath(name, namespace, path, path2, _options); + return result.toPromise(); + } + + /** + * connect DELETE requests to proxy of Service + * @param name name of the ServiceProxyOptions + * @param namespace object name and auth scope, such as for teams and projects + * @param path Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + */ + public connectDeleteNamespacedServiceProxyWithHttpInfo(name: string, namespace: string, path?: string, _options?: Configuration): Promise> { + const result = this.api.connectDeleteNamespacedServiceProxyWithHttpInfo(name, namespace, path, _options); + return result.toPromise(); + } + + /** + * connect DELETE requests to proxy of Service + * @param name name of the ServiceProxyOptions + * @param namespace object name and auth scope, such as for teams and projects + * @param path Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + */ + public connectDeleteNamespacedServiceProxy(name: string, namespace: string, path?: string, _options?: Configuration): Promise { + const result = this.api.connectDeleteNamespacedServiceProxy(name, namespace, path, _options); + return result.toPromise(); + } + + /** + * connect DELETE requests to proxy of Service + * @param name name of the ServiceProxyOptions + * @param namespace object name and auth scope, such as for teams and projects + * @param path path to the resource + * @param path2 Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + */ + public connectDeleteNamespacedServiceProxyWithPathWithHttpInfo(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Promise> { + const result = this.api.connectDeleteNamespacedServiceProxyWithPathWithHttpInfo(name, namespace, path, path2, _options); + return result.toPromise(); + } + + /** + * connect DELETE requests to proxy of Service + * @param name name of the ServiceProxyOptions + * @param namespace object name and auth scope, such as for teams and projects + * @param path path to the resource + * @param path2 Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + */ + public connectDeleteNamespacedServiceProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Promise { + const result = this.api.connectDeleteNamespacedServiceProxyWithPath(name, namespace, path, path2, _options); + return result.toPromise(); + } + + /** + * connect DELETE requests to proxy of Node + * @param name name of the NodeProxyOptions + * @param path Path is the URL path to use for the current proxy request to node. + */ + public connectDeleteNodeProxyWithHttpInfo(name: string, path?: string, _options?: Configuration): Promise> { + const result = this.api.connectDeleteNodeProxyWithHttpInfo(name, path, _options); + return result.toPromise(); + } + + /** + * connect DELETE requests to proxy of Node + * @param name name of the NodeProxyOptions + * @param path Path is the URL path to use for the current proxy request to node. + */ + public connectDeleteNodeProxy(name: string, path?: string, _options?: Configuration): Promise { + const result = this.api.connectDeleteNodeProxy(name, path, _options); + return result.toPromise(); + } + + /** + * connect DELETE requests to proxy of Node + * @param name name of the NodeProxyOptions + * @param path path to the resource + * @param path2 Path is the URL path to use for the current proxy request to node. + */ + public connectDeleteNodeProxyWithPathWithHttpInfo(name: string, path: string, path2?: string, _options?: Configuration): Promise> { + const result = this.api.connectDeleteNodeProxyWithPathWithHttpInfo(name, path, path2, _options); + return result.toPromise(); + } + + /** + * connect DELETE requests to proxy of Node + * @param name name of the NodeProxyOptions + * @param path path to the resource + * @param path2 Path is the URL path to use for the current proxy request to node. + */ + public connectDeleteNodeProxyWithPath(name: string, path: string, path2?: string, _options?: Configuration): Promise { + const result = this.api.connectDeleteNodeProxyWithPath(name, path, path2, _options); + return result.toPromise(); + } + + /** + * connect GET requests to attach of Pod + * @param name name of the PodAttachOptions + * @param namespace object name and auth scope, such as for teams and projects + * @param container The container in which to execute the command. Defaults to only container if there is only one container in the pod. + * @param stderr Stderr if true indicates that stderr is to be redirected for the attach call. Defaults to true. + * @param stdin Stdin if true, redirects the standard input stream of the pod for this call. Defaults to false. + * @param stdout Stdout if true indicates that stdout is to be redirected for the attach call. Defaults to true. + * @param tty TTY if true indicates that a tty will be allocated for the attach call. This is passed through the container runtime so the tty is allocated on the worker node by the container runtime. Defaults to false. + */ + public connectGetNamespacedPodAttachWithHttpInfo(name: string, namespace: string, container?: string, stderr?: boolean, stdin?: boolean, stdout?: boolean, tty?: boolean, _options?: Configuration): Promise> { + const result = this.api.connectGetNamespacedPodAttachWithHttpInfo(name, namespace, container, stderr, stdin, stdout, tty, _options); + return result.toPromise(); + } + + /** + * connect GET requests to attach of Pod + * @param name name of the PodAttachOptions + * @param namespace object name and auth scope, such as for teams and projects + * @param container The container in which to execute the command. Defaults to only container if there is only one container in the pod. + * @param stderr Stderr if true indicates that stderr is to be redirected for the attach call. Defaults to true. + * @param stdin Stdin if true, redirects the standard input stream of the pod for this call. Defaults to false. + * @param stdout Stdout if true indicates that stdout is to be redirected for the attach call. Defaults to true. + * @param tty TTY if true indicates that a tty will be allocated for the attach call. This is passed through the container runtime so the tty is allocated on the worker node by the container runtime. Defaults to false. + */ + public connectGetNamespacedPodAttach(name: string, namespace: string, container?: string, stderr?: boolean, stdin?: boolean, stdout?: boolean, tty?: boolean, _options?: Configuration): Promise { + const result = this.api.connectGetNamespacedPodAttach(name, namespace, container, stderr, stdin, stdout, tty, _options); + return result.toPromise(); + } + + /** + * connect GET requests to exec of Pod + * @param name name of the PodExecOptions + * @param namespace object name and auth scope, such as for teams and projects + * @param command Command is the remote command to execute. argv array. Not executed within a shell. + * @param container Container in which to execute the command. Defaults to only container if there is only one container in the pod. + * @param stderr Redirect the standard error stream of the pod for this call. Defaults to true. + * @param stdin Redirect the standard input stream of the pod for this call. Defaults to false. + * @param stdout Redirect the standard output stream of the pod for this call. Defaults to true. + * @param tty TTY if true indicates that a tty will be allocated for the exec call. Defaults to false. + */ + public connectGetNamespacedPodExecWithHttpInfo(name: string, namespace: string, command?: string, container?: string, stderr?: boolean, stdin?: boolean, stdout?: boolean, tty?: boolean, _options?: Configuration): Promise> { + const result = this.api.connectGetNamespacedPodExecWithHttpInfo(name, namespace, command, container, stderr, stdin, stdout, tty, _options); + return result.toPromise(); + } + + /** + * connect GET requests to exec of Pod + * @param name name of the PodExecOptions + * @param namespace object name and auth scope, such as for teams and projects + * @param command Command is the remote command to execute. argv array. Not executed within a shell. + * @param container Container in which to execute the command. Defaults to only container if there is only one container in the pod. + * @param stderr Redirect the standard error stream of the pod for this call. Defaults to true. + * @param stdin Redirect the standard input stream of the pod for this call. Defaults to false. + * @param stdout Redirect the standard output stream of the pod for this call. Defaults to true. + * @param tty TTY if true indicates that a tty will be allocated for the exec call. Defaults to false. + */ + public connectGetNamespacedPodExec(name: string, namespace: string, command?: string, container?: string, stderr?: boolean, stdin?: boolean, stdout?: boolean, tty?: boolean, _options?: Configuration): Promise { + const result = this.api.connectGetNamespacedPodExec(name, namespace, command, container, stderr, stdin, stdout, tty, _options); + return result.toPromise(); + } + + /** + * connect GET requests to portforward of Pod + * @param name name of the PodPortForwardOptions + * @param namespace object name and auth scope, such as for teams and projects + * @param ports List of ports to forward Required when using WebSockets + */ + public connectGetNamespacedPodPortforwardWithHttpInfo(name: string, namespace: string, ports?: number, _options?: Configuration): Promise> { + const result = this.api.connectGetNamespacedPodPortforwardWithHttpInfo(name, namespace, ports, _options); + return result.toPromise(); + } + + /** + * connect GET requests to portforward of Pod + * @param name name of the PodPortForwardOptions + * @param namespace object name and auth scope, such as for teams and projects + * @param ports List of ports to forward Required when using WebSockets + */ + public connectGetNamespacedPodPortforward(name: string, namespace: string, ports?: number, _options?: Configuration): Promise { + const result = this.api.connectGetNamespacedPodPortforward(name, namespace, ports, _options); + return result.toPromise(); + } + + /** + * connect GET requests to proxy of Pod + * @param name name of the PodProxyOptions + * @param namespace object name and auth scope, such as for teams and projects + * @param path Path is the URL path to use for the current proxy request to pod. + */ + public connectGetNamespacedPodProxyWithHttpInfo(name: string, namespace: string, path?: string, _options?: Configuration): Promise> { + const result = this.api.connectGetNamespacedPodProxyWithHttpInfo(name, namespace, path, _options); + return result.toPromise(); + } + + /** + * connect GET requests to proxy of Pod + * @param name name of the PodProxyOptions + * @param namespace object name and auth scope, such as for teams and projects + * @param path Path is the URL path to use for the current proxy request to pod. + */ + public connectGetNamespacedPodProxy(name: string, namespace: string, path?: string, _options?: Configuration): Promise { + const result = this.api.connectGetNamespacedPodProxy(name, namespace, path, _options); + return result.toPromise(); + } + + /** + * connect GET requests to proxy of Pod + * @param name name of the PodProxyOptions + * @param namespace object name and auth scope, such as for teams and projects + * @param path path to the resource + * @param path2 Path is the URL path to use for the current proxy request to pod. + */ + public connectGetNamespacedPodProxyWithPathWithHttpInfo(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Promise> { + const result = this.api.connectGetNamespacedPodProxyWithPathWithHttpInfo(name, namespace, path, path2, _options); + return result.toPromise(); + } + + /** + * connect GET requests to proxy of Pod + * @param name name of the PodProxyOptions + * @param namespace object name and auth scope, such as for teams and projects + * @param path path to the resource + * @param path2 Path is the URL path to use for the current proxy request to pod. + */ + public connectGetNamespacedPodProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Promise { + const result = this.api.connectGetNamespacedPodProxyWithPath(name, namespace, path, path2, _options); + return result.toPromise(); + } + + /** + * connect GET requests to proxy of Service + * @param name name of the ServiceProxyOptions + * @param namespace object name and auth scope, such as for teams and projects + * @param path Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + */ + public connectGetNamespacedServiceProxyWithHttpInfo(name: string, namespace: string, path?: string, _options?: Configuration): Promise> { + const result = this.api.connectGetNamespacedServiceProxyWithHttpInfo(name, namespace, path, _options); + return result.toPromise(); + } + + /** + * connect GET requests to proxy of Service + * @param name name of the ServiceProxyOptions + * @param namespace object name and auth scope, such as for teams and projects + * @param path Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + */ + public connectGetNamespacedServiceProxy(name: string, namespace: string, path?: string, _options?: Configuration): Promise { + const result = this.api.connectGetNamespacedServiceProxy(name, namespace, path, _options); + return result.toPromise(); + } + + /** + * connect GET requests to proxy of Service + * @param name name of the ServiceProxyOptions + * @param namespace object name and auth scope, such as for teams and projects + * @param path path to the resource + * @param path2 Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + */ + public connectGetNamespacedServiceProxyWithPathWithHttpInfo(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Promise> { + const result = this.api.connectGetNamespacedServiceProxyWithPathWithHttpInfo(name, namespace, path, path2, _options); + return result.toPromise(); + } + + /** + * connect GET requests to proxy of Service + * @param name name of the ServiceProxyOptions + * @param namespace object name and auth scope, such as for teams and projects + * @param path path to the resource + * @param path2 Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + */ + public connectGetNamespacedServiceProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Promise { + const result = this.api.connectGetNamespacedServiceProxyWithPath(name, namespace, path, path2, _options); + return result.toPromise(); + } + + /** + * connect GET requests to proxy of Node + * @param name name of the NodeProxyOptions + * @param path Path is the URL path to use for the current proxy request to node. + */ + public connectGetNodeProxyWithHttpInfo(name: string, path?: string, _options?: Configuration): Promise> { + const result = this.api.connectGetNodeProxyWithHttpInfo(name, path, _options); + return result.toPromise(); + } + + /** + * connect GET requests to proxy of Node + * @param name name of the NodeProxyOptions + * @param path Path is the URL path to use for the current proxy request to node. + */ + public connectGetNodeProxy(name: string, path?: string, _options?: Configuration): Promise { + const result = this.api.connectGetNodeProxy(name, path, _options); + return result.toPromise(); + } + + /** + * connect GET requests to proxy of Node + * @param name name of the NodeProxyOptions + * @param path path to the resource + * @param path2 Path is the URL path to use for the current proxy request to node. + */ + public connectGetNodeProxyWithPathWithHttpInfo(name: string, path: string, path2?: string, _options?: Configuration): Promise> { + const result = this.api.connectGetNodeProxyWithPathWithHttpInfo(name, path, path2, _options); + return result.toPromise(); + } + + /** + * connect GET requests to proxy of Node + * @param name name of the NodeProxyOptions + * @param path path to the resource + * @param path2 Path is the URL path to use for the current proxy request to node. + */ + public connectGetNodeProxyWithPath(name: string, path: string, path2?: string, _options?: Configuration): Promise { + const result = this.api.connectGetNodeProxyWithPath(name, path, path2, _options); + return result.toPromise(); + } + + /** + * connect HEAD requests to proxy of Pod + * @param name name of the PodProxyOptions + * @param namespace object name and auth scope, such as for teams and projects + * @param path Path is the URL path to use for the current proxy request to pod. + */ + public connectHeadNamespacedPodProxyWithHttpInfo(name: string, namespace: string, path?: string, _options?: Configuration): Promise> { + const result = this.api.connectHeadNamespacedPodProxyWithHttpInfo(name, namespace, path, _options); + return result.toPromise(); + } + + /** + * connect HEAD requests to proxy of Pod + * @param name name of the PodProxyOptions + * @param namespace object name and auth scope, such as for teams and projects + * @param path Path is the URL path to use for the current proxy request to pod. + */ + public connectHeadNamespacedPodProxy(name: string, namespace: string, path?: string, _options?: Configuration): Promise { + const result = this.api.connectHeadNamespacedPodProxy(name, namespace, path, _options); + return result.toPromise(); + } + + /** + * connect HEAD requests to proxy of Pod + * @param name name of the PodProxyOptions + * @param namespace object name and auth scope, such as for teams and projects + * @param path path to the resource + * @param path2 Path is the URL path to use for the current proxy request to pod. + */ + public connectHeadNamespacedPodProxyWithPathWithHttpInfo(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Promise> { + const result = this.api.connectHeadNamespacedPodProxyWithPathWithHttpInfo(name, namespace, path, path2, _options); + return result.toPromise(); + } + + /** + * connect HEAD requests to proxy of Pod + * @param name name of the PodProxyOptions + * @param namespace object name and auth scope, such as for teams and projects + * @param path path to the resource + * @param path2 Path is the URL path to use for the current proxy request to pod. + */ + public connectHeadNamespacedPodProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Promise { + const result = this.api.connectHeadNamespacedPodProxyWithPath(name, namespace, path, path2, _options); + return result.toPromise(); + } + + /** + * connect HEAD requests to proxy of Service + * @param name name of the ServiceProxyOptions + * @param namespace object name and auth scope, such as for teams and projects + * @param path Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + */ + public connectHeadNamespacedServiceProxyWithHttpInfo(name: string, namespace: string, path?: string, _options?: Configuration): Promise> { + const result = this.api.connectHeadNamespacedServiceProxyWithHttpInfo(name, namespace, path, _options); + return result.toPromise(); + } + + /** + * connect HEAD requests to proxy of Service + * @param name name of the ServiceProxyOptions + * @param namespace object name and auth scope, such as for teams and projects + * @param path Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + */ + public connectHeadNamespacedServiceProxy(name: string, namespace: string, path?: string, _options?: Configuration): Promise { + const result = this.api.connectHeadNamespacedServiceProxy(name, namespace, path, _options); + return result.toPromise(); + } + + /** + * connect HEAD requests to proxy of Service + * @param name name of the ServiceProxyOptions + * @param namespace object name and auth scope, such as for teams and projects + * @param path path to the resource + * @param path2 Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + */ + public connectHeadNamespacedServiceProxyWithPathWithHttpInfo(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Promise> { + const result = this.api.connectHeadNamespacedServiceProxyWithPathWithHttpInfo(name, namespace, path, path2, _options); + return result.toPromise(); + } + + /** + * connect HEAD requests to proxy of Service + * @param name name of the ServiceProxyOptions + * @param namespace object name and auth scope, such as for teams and projects + * @param path path to the resource + * @param path2 Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + */ + public connectHeadNamespacedServiceProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Promise { + const result = this.api.connectHeadNamespacedServiceProxyWithPath(name, namespace, path, path2, _options); + return result.toPromise(); + } + + /** + * connect HEAD requests to proxy of Node + * @param name name of the NodeProxyOptions + * @param path Path is the URL path to use for the current proxy request to node. + */ + public connectHeadNodeProxyWithHttpInfo(name: string, path?: string, _options?: Configuration): Promise> { + const result = this.api.connectHeadNodeProxyWithHttpInfo(name, path, _options); + return result.toPromise(); + } + + /** + * connect HEAD requests to proxy of Node + * @param name name of the NodeProxyOptions + * @param path Path is the URL path to use for the current proxy request to node. + */ + public connectHeadNodeProxy(name: string, path?: string, _options?: Configuration): Promise { + const result = this.api.connectHeadNodeProxy(name, path, _options); + return result.toPromise(); + } + + /** + * connect HEAD requests to proxy of Node + * @param name name of the NodeProxyOptions + * @param path path to the resource + * @param path2 Path is the URL path to use for the current proxy request to node. + */ + public connectHeadNodeProxyWithPathWithHttpInfo(name: string, path: string, path2?: string, _options?: Configuration): Promise> { + const result = this.api.connectHeadNodeProxyWithPathWithHttpInfo(name, path, path2, _options); + return result.toPromise(); + } + + /** + * connect HEAD requests to proxy of Node + * @param name name of the NodeProxyOptions + * @param path path to the resource + * @param path2 Path is the URL path to use for the current proxy request to node. + */ + public connectHeadNodeProxyWithPath(name: string, path: string, path2?: string, _options?: Configuration): Promise { + const result = this.api.connectHeadNodeProxyWithPath(name, path, path2, _options); + return result.toPromise(); + } + + /** + * connect OPTIONS requests to proxy of Pod + * @param name name of the PodProxyOptions + * @param namespace object name and auth scope, such as for teams and projects + * @param path Path is the URL path to use for the current proxy request to pod. + */ + public connectOptionsNamespacedPodProxyWithHttpInfo(name: string, namespace: string, path?: string, _options?: Configuration): Promise> { + const result = this.api.connectOptionsNamespacedPodProxyWithHttpInfo(name, namespace, path, _options); + return result.toPromise(); + } + + /** + * connect OPTIONS requests to proxy of Pod + * @param name name of the PodProxyOptions + * @param namespace object name and auth scope, such as for teams and projects + * @param path Path is the URL path to use for the current proxy request to pod. + */ + public connectOptionsNamespacedPodProxy(name: string, namespace: string, path?: string, _options?: Configuration): Promise { + const result = this.api.connectOptionsNamespacedPodProxy(name, namespace, path, _options); + return result.toPromise(); + } + + /** + * connect OPTIONS requests to proxy of Pod + * @param name name of the PodProxyOptions + * @param namespace object name and auth scope, such as for teams and projects + * @param path path to the resource + * @param path2 Path is the URL path to use for the current proxy request to pod. + */ + public connectOptionsNamespacedPodProxyWithPathWithHttpInfo(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Promise> { + const result = this.api.connectOptionsNamespacedPodProxyWithPathWithHttpInfo(name, namespace, path, path2, _options); + return result.toPromise(); + } + + /** + * connect OPTIONS requests to proxy of Pod + * @param name name of the PodProxyOptions + * @param namespace object name and auth scope, such as for teams and projects + * @param path path to the resource + * @param path2 Path is the URL path to use for the current proxy request to pod. + */ + public connectOptionsNamespacedPodProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Promise { + const result = this.api.connectOptionsNamespacedPodProxyWithPath(name, namespace, path, path2, _options); + return result.toPromise(); + } + + /** + * connect OPTIONS requests to proxy of Service + * @param name name of the ServiceProxyOptions + * @param namespace object name and auth scope, such as for teams and projects + * @param path Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + */ + public connectOptionsNamespacedServiceProxyWithHttpInfo(name: string, namespace: string, path?: string, _options?: Configuration): Promise> { + const result = this.api.connectOptionsNamespacedServiceProxyWithHttpInfo(name, namespace, path, _options); + return result.toPromise(); + } + + /** + * connect OPTIONS requests to proxy of Service + * @param name name of the ServiceProxyOptions + * @param namespace object name and auth scope, such as for teams and projects + * @param path Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + */ + public connectOptionsNamespacedServiceProxy(name: string, namespace: string, path?: string, _options?: Configuration): Promise { + const result = this.api.connectOptionsNamespacedServiceProxy(name, namespace, path, _options); + return result.toPromise(); + } + + /** + * connect OPTIONS requests to proxy of Service + * @param name name of the ServiceProxyOptions + * @param namespace object name and auth scope, such as for teams and projects + * @param path path to the resource + * @param path2 Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + */ + public connectOptionsNamespacedServiceProxyWithPathWithHttpInfo(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Promise> { + const result = this.api.connectOptionsNamespacedServiceProxyWithPathWithHttpInfo(name, namespace, path, path2, _options); + return result.toPromise(); + } + + /** + * connect OPTIONS requests to proxy of Service + * @param name name of the ServiceProxyOptions + * @param namespace object name and auth scope, such as for teams and projects + * @param path path to the resource + * @param path2 Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + */ + public connectOptionsNamespacedServiceProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Promise { + const result = this.api.connectOptionsNamespacedServiceProxyWithPath(name, namespace, path, path2, _options); + return result.toPromise(); + } + + /** + * connect OPTIONS requests to proxy of Node + * @param name name of the NodeProxyOptions + * @param path Path is the URL path to use for the current proxy request to node. + */ + public connectOptionsNodeProxyWithHttpInfo(name: string, path?: string, _options?: Configuration): Promise> { + const result = this.api.connectOptionsNodeProxyWithHttpInfo(name, path, _options); + return result.toPromise(); + } + + /** + * connect OPTIONS requests to proxy of Node + * @param name name of the NodeProxyOptions + * @param path Path is the URL path to use for the current proxy request to node. + */ + public connectOptionsNodeProxy(name: string, path?: string, _options?: Configuration): Promise { + const result = this.api.connectOptionsNodeProxy(name, path, _options); + return result.toPromise(); + } + + /** + * connect OPTIONS requests to proxy of Node + * @param name name of the NodeProxyOptions + * @param path path to the resource + * @param path2 Path is the URL path to use for the current proxy request to node. + */ + public connectOptionsNodeProxyWithPathWithHttpInfo(name: string, path: string, path2?: string, _options?: Configuration): Promise> { + const result = this.api.connectOptionsNodeProxyWithPathWithHttpInfo(name, path, path2, _options); + return result.toPromise(); + } + + /** + * connect OPTIONS requests to proxy of Node + * @param name name of the NodeProxyOptions + * @param path path to the resource + * @param path2 Path is the URL path to use for the current proxy request to node. + */ + public connectOptionsNodeProxyWithPath(name: string, path: string, path2?: string, _options?: Configuration): Promise { + const result = this.api.connectOptionsNodeProxyWithPath(name, path, path2, _options); + return result.toPromise(); + } + + /** + * connect PATCH requests to proxy of Pod + * @param name name of the PodProxyOptions + * @param namespace object name and auth scope, such as for teams and projects + * @param path Path is the URL path to use for the current proxy request to pod. + */ + public connectPatchNamespacedPodProxyWithHttpInfo(name: string, namespace: string, path?: string, _options?: Configuration): Promise> { + const result = this.api.connectPatchNamespacedPodProxyWithHttpInfo(name, namespace, path, _options); + return result.toPromise(); + } + + /** + * connect PATCH requests to proxy of Pod + * @param name name of the PodProxyOptions + * @param namespace object name and auth scope, such as for teams and projects + * @param path Path is the URL path to use for the current proxy request to pod. + */ + public connectPatchNamespacedPodProxy(name: string, namespace: string, path?: string, _options?: Configuration): Promise { + const result = this.api.connectPatchNamespacedPodProxy(name, namespace, path, _options); + return result.toPromise(); + } + + /** + * connect PATCH requests to proxy of Pod + * @param name name of the PodProxyOptions + * @param namespace object name and auth scope, such as for teams and projects + * @param path path to the resource + * @param path2 Path is the URL path to use for the current proxy request to pod. + */ + public connectPatchNamespacedPodProxyWithPathWithHttpInfo(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Promise> { + const result = this.api.connectPatchNamespacedPodProxyWithPathWithHttpInfo(name, namespace, path, path2, _options); + return result.toPromise(); + } + + /** + * connect PATCH requests to proxy of Pod + * @param name name of the PodProxyOptions + * @param namespace object name and auth scope, such as for teams and projects + * @param path path to the resource + * @param path2 Path is the URL path to use for the current proxy request to pod. + */ + public connectPatchNamespacedPodProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Promise { + const result = this.api.connectPatchNamespacedPodProxyWithPath(name, namespace, path, path2, _options); + return result.toPromise(); + } + + /** + * connect PATCH requests to proxy of Service + * @param name name of the ServiceProxyOptions + * @param namespace object name and auth scope, such as for teams and projects + * @param path Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + */ + public connectPatchNamespacedServiceProxyWithHttpInfo(name: string, namespace: string, path?: string, _options?: Configuration): Promise> { + const result = this.api.connectPatchNamespacedServiceProxyWithHttpInfo(name, namespace, path, _options); + return result.toPromise(); + } + + /** + * connect PATCH requests to proxy of Service + * @param name name of the ServiceProxyOptions + * @param namespace object name and auth scope, such as for teams and projects + * @param path Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + */ + public connectPatchNamespacedServiceProxy(name: string, namespace: string, path?: string, _options?: Configuration): Promise { + const result = this.api.connectPatchNamespacedServiceProxy(name, namespace, path, _options); + return result.toPromise(); + } + + /** + * connect PATCH requests to proxy of Service + * @param name name of the ServiceProxyOptions + * @param namespace object name and auth scope, such as for teams and projects + * @param path path to the resource + * @param path2 Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + */ + public connectPatchNamespacedServiceProxyWithPathWithHttpInfo(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Promise> { + const result = this.api.connectPatchNamespacedServiceProxyWithPathWithHttpInfo(name, namespace, path, path2, _options); + return result.toPromise(); + } + + /** + * connect PATCH requests to proxy of Service + * @param name name of the ServiceProxyOptions + * @param namespace object name and auth scope, such as for teams and projects + * @param path path to the resource + * @param path2 Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + */ + public connectPatchNamespacedServiceProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Promise { + const result = this.api.connectPatchNamespacedServiceProxyWithPath(name, namespace, path, path2, _options); + return result.toPromise(); + } + + /** + * connect PATCH requests to proxy of Node + * @param name name of the NodeProxyOptions + * @param path Path is the URL path to use for the current proxy request to node. + */ + public connectPatchNodeProxyWithHttpInfo(name: string, path?: string, _options?: Configuration): Promise> { + const result = this.api.connectPatchNodeProxyWithHttpInfo(name, path, _options); + return result.toPromise(); + } + + /** + * connect PATCH requests to proxy of Node + * @param name name of the NodeProxyOptions + * @param path Path is the URL path to use for the current proxy request to node. + */ + public connectPatchNodeProxy(name: string, path?: string, _options?: Configuration): Promise { + const result = this.api.connectPatchNodeProxy(name, path, _options); + return result.toPromise(); + } + + /** + * connect PATCH requests to proxy of Node + * @param name name of the NodeProxyOptions + * @param path path to the resource + * @param path2 Path is the URL path to use for the current proxy request to node. + */ + public connectPatchNodeProxyWithPathWithHttpInfo(name: string, path: string, path2?: string, _options?: Configuration): Promise> { + const result = this.api.connectPatchNodeProxyWithPathWithHttpInfo(name, path, path2, _options); + return result.toPromise(); + } + + /** + * connect PATCH requests to proxy of Node + * @param name name of the NodeProxyOptions + * @param path path to the resource + * @param path2 Path is the URL path to use for the current proxy request to node. + */ + public connectPatchNodeProxyWithPath(name: string, path: string, path2?: string, _options?: Configuration): Promise { + const result = this.api.connectPatchNodeProxyWithPath(name, path, path2, _options); + return result.toPromise(); + } + + /** + * connect POST requests to attach of Pod + * @param name name of the PodAttachOptions + * @param namespace object name and auth scope, such as for teams and projects + * @param container The container in which to execute the command. Defaults to only container if there is only one container in the pod. + * @param stderr Stderr if true indicates that stderr is to be redirected for the attach call. Defaults to true. + * @param stdin Stdin if true, redirects the standard input stream of the pod for this call. Defaults to false. + * @param stdout Stdout if true indicates that stdout is to be redirected for the attach call. Defaults to true. + * @param tty TTY if true indicates that a tty will be allocated for the attach call. This is passed through the container runtime so the tty is allocated on the worker node by the container runtime. Defaults to false. + */ + public connectPostNamespacedPodAttachWithHttpInfo(name: string, namespace: string, container?: string, stderr?: boolean, stdin?: boolean, stdout?: boolean, tty?: boolean, _options?: Configuration): Promise> { + const result = this.api.connectPostNamespacedPodAttachWithHttpInfo(name, namespace, container, stderr, stdin, stdout, tty, _options); + return result.toPromise(); + } + + /** + * connect POST requests to attach of Pod + * @param name name of the PodAttachOptions + * @param namespace object name and auth scope, such as for teams and projects + * @param container The container in which to execute the command. Defaults to only container if there is only one container in the pod. + * @param stderr Stderr if true indicates that stderr is to be redirected for the attach call. Defaults to true. + * @param stdin Stdin if true, redirects the standard input stream of the pod for this call. Defaults to false. + * @param stdout Stdout if true indicates that stdout is to be redirected for the attach call. Defaults to true. + * @param tty TTY if true indicates that a tty will be allocated for the attach call. This is passed through the container runtime so the tty is allocated on the worker node by the container runtime. Defaults to false. + */ + public connectPostNamespacedPodAttach(name: string, namespace: string, container?: string, stderr?: boolean, stdin?: boolean, stdout?: boolean, tty?: boolean, _options?: Configuration): Promise { + const result = this.api.connectPostNamespacedPodAttach(name, namespace, container, stderr, stdin, stdout, tty, _options); + return result.toPromise(); + } + + /** + * connect POST requests to exec of Pod + * @param name name of the PodExecOptions + * @param namespace object name and auth scope, such as for teams and projects + * @param command Command is the remote command to execute. argv array. Not executed within a shell. + * @param container Container in which to execute the command. Defaults to only container if there is only one container in the pod. + * @param stderr Redirect the standard error stream of the pod for this call. Defaults to true. + * @param stdin Redirect the standard input stream of the pod for this call. Defaults to false. + * @param stdout Redirect the standard output stream of the pod for this call. Defaults to true. + * @param tty TTY if true indicates that a tty will be allocated for the exec call. Defaults to false. + */ + public connectPostNamespacedPodExecWithHttpInfo(name: string, namespace: string, command?: string, container?: string, stderr?: boolean, stdin?: boolean, stdout?: boolean, tty?: boolean, _options?: Configuration): Promise> { + const result = this.api.connectPostNamespacedPodExecWithHttpInfo(name, namespace, command, container, stderr, stdin, stdout, tty, _options); + return result.toPromise(); + } + + /** + * connect POST requests to exec of Pod + * @param name name of the PodExecOptions + * @param namespace object name and auth scope, such as for teams and projects + * @param command Command is the remote command to execute. argv array. Not executed within a shell. + * @param container Container in which to execute the command. Defaults to only container if there is only one container in the pod. + * @param stderr Redirect the standard error stream of the pod for this call. Defaults to true. + * @param stdin Redirect the standard input stream of the pod for this call. Defaults to false. + * @param stdout Redirect the standard output stream of the pod for this call. Defaults to true. + * @param tty TTY if true indicates that a tty will be allocated for the exec call. Defaults to false. + */ + public connectPostNamespacedPodExec(name: string, namespace: string, command?: string, container?: string, stderr?: boolean, stdin?: boolean, stdout?: boolean, tty?: boolean, _options?: Configuration): Promise { + const result = this.api.connectPostNamespacedPodExec(name, namespace, command, container, stderr, stdin, stdout, tty, _options); + return result.toPromise(); + } + + /** + * connect POST requests to portforward of Pod + * @param name name of the PodPortForwardOptions + * @param namespace object name and auth scope, such as for teams and projects + * @param ports List of ports to forward Required when using WebSockets + */ + public connectPostNamespacedPodPortforwardWithHttpInfo(name: string, namespace: string, ports?: number, _options?: Configuration): Promise> { + const result = this.api.connectPostNamespacedPodPortforwardWithHttpInfo(name, namespace, ports, _options); + return result.toPromise(); + } + + /** + * connect POST requests to portforward of Pod + * @param name name of the PodPortForwardOptions + * @param namespace object name and auth scope, such as for teams and projects + * @param ports List of ports to forward Required when using WebSockets + */ + public connectPostNamespacedPodPortforward(name: string, namespace: string, ports?: number, _options?: Configuration): Promise { + const result = this.api.connectPostNamespacedPodPortforward(name, namespace, ports, _options); + return result.toPromise(); + } + + /** + * connect POST requests to proxy of Pod + * @param name name of the PodProxyOptions + * @param namespace object name and auth scope, such as for teams and projects + * @param path Path is the URL path to use for the current proxy request to pod. + */ + public connectPostNamespacedPodProxyWithHttpInfo(name: string, namespace: string, path?: string, _options?: Configuration): Promise> { + const result = this.api.connectPostNamespacedPodProxyWithHttpInfo(name, namespace, path, _options); + return result.toPromise(); + } + + /** + * connect POST requests to proxy of Pod + * @param name name of the PodProxyOptions + * @param namespace object name and auth scope, such as for teams and projects + * @param path Path is the URL path to use for the current proxy request to pod. + */ + public connectPostNamespacedPodProxy(name: string, namespace: string, path?: string, _options?: Configuration): Promise { + const result = this.api.connectPostNamespacedPodProxy(name, namespace, path, _options); + return result.toPromise(); + } + + /** + * connect POST requests to proxy of Pod + * @param name name of the PodProxyOptions + * @param namespace object name and auth scope, such as for teams and projects + * @param path path to the resource + * @param path2 Path is the URL path to use for the current proxy request to pod. + */ + public connectPostNamespacedPodProxyWithPathWithHttpInfo(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Promise> { + const result = this.api.connectPostNamespacedPodProxyWithPathWithHttpInfo(name, namespace, path, path2, _options); + return result.toPromise(); + } + + /** + * connect POST requests to proxy of Pod + * @param name name of the PodProxyOptions + * @param namespace object name and auth scope, such as for teams and projects + * @param path path to the resource + * @param path2 Path is the URL path to use for the current proxy request to pod. + */ + public connectPostNamespacedPodProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Promise { + const result = this.api.connectPostNamespacedPodProxyWithPath(name, namespace, path, path2, _options); + return result.toPromise(); + } + + /** + * connect POST requests to proxy of Service + * @param name name of the ServiceProxyOptions + * @param namespace object name and auth scope, such as for teams and projects + * @param path Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + */ + public connectPostNamespacedServiceProxyWithHttpInfo(name: string, namespace: string, path?: string, _options?: Configuration): Promise> { + const result = this.api.connectPostNamespacedServiceProxyWithHttpInfo(name, namespace, path, _options); + return result.toPromise(); + } + + /** + * connect POST requests to proxy of Service + * @param name name of the ServiceProxyOptions + * @param namespace object name and auth scope, such as for teams and projects + * @param path Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + */ + public connectPostNamespacedServiceProxy(name: string, namespace: string, path?: string, _options?: Configuration): Promise { + const result = this.api.connectPostNamespacedServiceProxy(name, namespace, path, _options); + return result.toPromise(); + } + + /** + * connect POST requests to proxy of Service + * @param name name of the ServiceProxyOptions + * @param namespace object name and auth scope, such as for teams and projects + * @param path path to the resource + * @param path2 Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + */ + public connectPostNamespacedServiceProxyWithPathWithHttpInfo(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Promise> { + const result = this.api.connectPostNamespacedServiceProxyWithPathWithHttpInfo(name, namespace, path, path2, _options); + return result.toPromise(); + } + + /** + * connect POST requests to proxy of Service + * @param name name of the ServiceProxyOptions + * @param namespace object name and auth scope, such as for teams and projects + * @param path path to the resource + * @param path2 Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + */ + public connectPostNamespacedServiceProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Promise { + const result = this.api.connectPostNamespacedServiceProxyWithPath(name, namespace, path, path2, _options); + return result.toPromise(); + } + + /** + * connect POST requests to proxy of Node + * @param name name of the NodeProxyOptions + * @param path Path is the URL path to use for the current proxy request to node. + */ + public connectPostNodeProxyWithHttpInfo(name: string, path?: string, _options?: Configuration): Promise> { + const result = this.api.connectPostNodeProxyWithHttpInfo(name, path, _options); + return result.toPromise(); + } + + /** + * connect POST requests to proxy of Node + * @param name name of the NodeProxyOptions + * @param path Path is the URL path to use for the current proxy request to node. + */ + public connectPostNodeProxy(name: string, path?: string, _options?: Configuration): Promise { + const result = this.api.connectPostNodeProxy(name, path, _options); + return result.toPromise(); + } + + /** + * connect POST requests to proxy of Node + * @param name name of the NodeProxyOptions + * @param path path to the resource + * @param path2 Path is the URL path to use for the current proxy request to node. + */ + public connectPostNodeProxyWithPathWithHttpInfo(name: string, path: string, path2?: string, _options?: Configuration): Promise> { + const result = this.api.connectPostNodeProxyWithPathWithHttpInfo(name, path, path2, _options); + return result.toPromise(); + } + + /** + * connect POST requests to proxy of Node + * @param name name of the NodeProxyOptions + * @param path path to the resource + * @param path2 Path is the URL path to use for the current proxy request to node. + */ + public connectPostNodeProxyWithPath(name: string, path: string, path2?: string, _options?: Configuration): Promise { + const result = this.api.connectPostNodeProxyWithPath(name, path, path2, _options); + return result.toPromise(); + } + + /** + * connect PUT requests to proxy of Pod + * @param name name of the PodProxyOptions + * @param namespace object name and auth scope, such as for teams and projects + * @param path Path is the URL path to use for the current proxy request to pod. + */ + public connectPutNamespacedPodProxyWithHttpInfo(name: string, namespace: string, path?: string, _options?: Configuration): Promise> { + const result = this.api.connectPutNamespacedPodProxyWithHttpInfo(name, namespace, path, _options); + return result.toPromise(); + } + + /** + * connect PUT requests to proxy of Pod + * @param name name of the PodProxyOptions + * @param namespace object name and auth scope, such as for teams and projects + * @param path Path is the URL path to use for the current proxy request to pod. + */ + public connectPutNamespacedPodProxy(name: string, namespace: string, path?: string, _options?: Configuration): Promise { + const result = this.api.connectPutNamespacedPodProxy(name, namespace, path, _options); + return result.toPromise(); + } + + /** + * connect PUT requests to proxy of Pod + * @param name name of the PodProxyOptions + * @param namespace object name and auth scope, such as for teams and projects + * @param path path to the resource + * @param path2 Path is the URL path to use for the current proxy request to pod. + */ + public connectPutNamespacedPodProxyWithPathWithHttpInfo(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Promise> { + const result = this.api.connectPutNamespacedPodProxyWithPathWithHttpInfo(name, namespace, path, path2, _options); + return result.toPromise(); + } + + /** + * connect PUT requests to proxy of Pod + * @param name name of the PodProxyOptions + * @param namespace object name and auth scope, such as for teams and projects + * @param path path to the resource + * @param path2 Path is the URL path to use for the current proxy request to pod. + */ + public connectPutNamespacedPodProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Promise { + const result = this.api.connectPutNamespacedPodProxyWithPath(name, namespace, path, path2, _options); + return result.toPromise(); + } + + /** + * connect PUT requests to proxy of Service + * @param name name of the ServiceProxyOptions + * @param namespace object name and auth scope, such as for teams and projects + * @param path Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + */ + public connectPutNamespacedServiceProxyWithHttpInfo(name: string, namespace: string, path?: string, _options?: Configuration): Promise> { + const result = this.api.connectPutNamespacedServiceProxyWithHttpInfo(name, namespace, path, _options); + return result.toPromise(); + } + + /** + * connect PUT requests to proxy of Service + * @param name name of the ServiceProxyOptions + * @param namespace object name and auth scope, such as for teams and projects + * @param path Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + */ + public connectPutNamespacedServiceProxy(name: string, namespace: string, path?: string, _options?: Configuration): Promise { + const result = this.api.connectPutNamespacedServiceProxy(name, namespace, path, _options); + return result.toPromise(); + } + + /** + * connect PUT requests to proxy of Service + * @param name name of the ServiceProxyOptions + * @param namespace object name and auth scope, such as for teams and projects + * @param path path to the resource + * @param path2 Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + */ + public connectPutNamespacedServiceProxyWithPathWithHttpInfo(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Promise> { + const result = this.api.connectPutNamespacedServiceProxyWithPathWithHttpInfo(name, namespace, path, path2, _options); + return result.toPromise(); + } + + /** + * connect PUT requests to proxy of Service + * @param name name of the ServiceProxyOptions + * @param namespace object name and auth scope, such as for teams and projects + * @param path path to the resource + * @param path2 Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + */ + public connectPutNamespacedServiceProxyWithPath(name: string, namespace: string, path: string, path2?: string, _options?: Configuration): Promise { + const result = this.api.connectPutNamespacedServiceProxyWithPath(name, namespace, path, path2, _options); + return result.toPromise(); + } + + /** + * connect PUT requests to proxy of Node + * @param name name of the NodeProxyOptions + * @param path Path is the URL path to use for the current proxy request to node. + */ + public connectPutNodeProxyWithHttpInfo(name: string, path?: string, _options?: Configuration): Promise> { + const result = this.api.connectPutNodeProxyWithHttpInfo(name, path, _options); + return result.toPromise(); + } + + /** + * connect PUT requests to proxy of Node + * @param name name of the NodeProxyOptions + * @param path Path is the URL path to use for the current proxy request to node. + */ + public connectPutNodeProxy(name: string, path?: string, _options?: Configuration): Promise { + const result = this.api.connectPutNodeProxy(name, path, _options); + return result.toPromise(); + } + + /** + * connect PUT requests to proxy of Node + * @param name name of the NodeProxyOptions + * @param path path to the resource + * @param path2 Path is the URL path to use for the current proxy request to node. + */ + public connectPutNodeProxyWithPathWithHttpInfo(name: string, path: string, path2?: string, _options?: Configuration): Promise> { + const result = this.api.connectPutNodeProxyWithPathWithHttpInfo(name, path, path2, _options); + return result.toPromise(); + } + + /** + * connect PUT requests to proxy of Node + * @param name name of the NodeProxyOptions + * @param path path to the resource + * @param path2 Path is the URL path to use for the current proxy request to node. + */ + public connectPutNodeProxyWithPath(name: string, path: string, path2?: string, _options?: Configuration): Promise { + const result = this.api.connectPutNodeProxyWithPath(name, path, path2, _options); + return result.toPromise(); + } + + /** + * create a Namespace + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public createNamespaceWithHttpInfo(body: V1Namespace, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.createNamespaceWithHttpInfo(body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + + /** + * create a Namespace + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public createNamespace(body: V1Namespace, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { + const result = this.api.createNamespace(body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + + /** + * create a Binding + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @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 pretty If \'true\', then the output is pretty printed. + */ + public createNamespacedBindingWithHttpInfo(namespace: string, body: V1Binding, dryRun?: string, fieldManager?: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.createNamespacedBindingWithHttpInfo(namespace, body, dryRun, fieldManager, pretty, _options); + return result.toPromise(); + } + + /** + * create a Binding + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @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 pretty If \'true\', then the output is pretty printed. + */ + public createNamespacedBinding(namespace: string, body: V1Binding, dryRun?: string, fieldManager?: string, pretty?: string, _options?: Configuration): Promise { + const result = this.api.createNamespacedBinding(namespace, body, dryRun, fieldManager, pretty, _options); + return result.toPromise(); + } + + /** + * create a ConfigMap + * @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. + * @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. + */ + public createNamespacedConfigMapWithHttpInfo(namespace: string, body: V1ConfigMap, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.createNamespacedConfigMapWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + + /** + * create a ConfigMap + * @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. + * @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. + */ + public createNamespacedConfigMap(namespace: string, body: V1ConfigMap, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { + const result = this.api.createNamespacedConfigMap(namespace, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + + /** + * create Endpoints + * @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. + * @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. + */ + public createNamespacedEndpointsWithHttpInfo(namespace: string, body: V1Endpoints, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.createNamespacedEndpointsWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + + /** + * create Endpoints + * @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. + * @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. + */ + public createNamespacedEndpoints(namespace: string, body: V1Endpoints, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { + const result = this.api.createNamespacedEndpoints(namespace, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + + /** + * create an Event + * @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. + * @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. + */ + public createNamespacedEventWithHttpInfo(namespace: string, body: CoreV1Event, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.createNamespacedEventWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + + /** + * create an Event + * @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. + * @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. + */ + public createNamespacedEvent(namespace: string, body: CoreV1Event, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { + const result = this.api.createNamespacedEvent(namespace, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + + /** + * create a LimitRange + * @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. + * @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. + */ + public createNamespacedLimitRangeWithHttpInfo(namespace: string, body: V1LimitRange, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.createNamespacedLimitRangeWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + + /** + * create a LimitRange + * @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. + * @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. + */ + public createNamespacedLimitRange(namespace: string, body: V1LimitRange, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { + const result = this.api.createNamespacedLimitRange(namespace, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + + /** + * create a PersistentVolumeClaim + * @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. + * @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. + */ + public createNamespacedPersistentVolumeClaimWithHttpInfo(namespace: string, body: V1PersistentVolumeClaim, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.createNamespacedPersistentVolumeClaimWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + + /** + * create a PersistentVolumeClaim + * @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. + * @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. + */ + public createNamespacedPersistentVolumeClaim(namespace: string, body: V1PersistentVolumeClaim, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { + const result = this.api.createNamespacedPersistentVolumeClaim(namespace, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + + /** + * create a Pod + * @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. + * @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. + */ + public createNamespacedPodWithHttpInfo(namespace: string, body: V1Pod, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.createNamespacedPodWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + + /** + * create a Pod + * @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. + * @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. + */ + public createNamespacedPod(namespace: string, body: V1Pod, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { + const result = this.api.createNamespacedPod(namespace, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + + /** + * create binding of a Pod + * @param name name of the Binding + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @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 pretty If \'true\', then the output is pretty printed. + */ + public createNamespacedPodBindingWithHttpInfo(name: string, namespace: string, body: V1Binding, dryRun?: string, fieldManager?: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.createNamespacedPodBindingWithHttpInfo(name, namespace, body, dryRun, fieldManager, pretty, _options); + return result.toPromise(); + } + + /** + * create binding of a Pod + * @param name name of the Binding + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @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 pretty If \'true\', then the output is pretty printed. + */ + public createNamespacedPodBinding(name: string, namespace: string, body: V1Binding, dryRun?: string, fieldManager?: string, pretty?: string, _options?: Configuration): Promise { + const result = this.api.createNamespacedPodBinding(name, namespace, body, dryRun, fieldManager, pretty, _options); + return result.toPromise(); + } + + /** + * create eviction of a Pod + * @param name name of the Eviction + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @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 pretty If \'true\', then the output is pretty printed. + */ + public createNamespacedPodEvictionWithHttpInfo(name: string, namespace: string, body: V1Eviction, dryRun?: string, fieldManager?: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.createNamespacedPodEvictionWithHttpInfo(name, namespace, body, dryRun, fieldManager, pretty, _options); + return result.toPromise(); + } + + /** + * create eviction of a Pod + * @param name name of the Eviction + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @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 pretty If \'true\', then the output is pretty printed. + */ + public createNamespacedPodEviction(name: string, namespace: string, body: V1Eviction, dryRun?: string, fieldManager?: string, pretty?: string, _options?: Configuration): Promise { + const result = this.api.createNamespacedPodEviction(name, namespace, body, dryRun, fieldManager, pretty, _options); + return result.toPromise(); + } + + /** + * create a PodTemplate + * @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. + * @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. + */ + public createNamespacedPodTemplateWithHttpInfo(namespace: string, body: V1PodTemplate, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.createNamespacedPodTemplateWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + + /** + * create a PodTemplate + * @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. + * @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. + */ + public createNamespacedPodTemplate(namespace: string, body: V1PodTemplate, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { + const result = this.api.createNamespacedPodTemplate(namespace, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + + /** + * create a ReplicationController + * @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. + * @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. + */ + public createNamespacedReplicationControllerWithHttpInfo(namespace: string, body: V1ReplicationController, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.createNamespacedReplicationControllerWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + + /** + * create a ReplicationController + * @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. + * @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. + */ + public createNamespacedReplicationController(namespace: string, body: V1ReplicationController, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { + const result = this.api.createNamespacedReplicationController(namespace, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + + /** + * create a ResourceQuota + * @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. + * @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. + */ + public createNamespacedResourceQuotaWithHttpInfo(namespace: string, body: V1ResourceQuota, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.createNamespacedResourceQuotaWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + + /** + * create a ResourceQuota + * @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. + * @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. + */ + public createNamespacedResourceQuota(namespace: string, body: V1ResourceQuota, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { + const result = this.api.createNamespacedResourceQuota(namespace, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + + /** + * create a Secret + * @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. + * @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. + */ + public createNamespacedSecretWithHttpInfo(namespace: string, body: V1Secret, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.createNamespacedSecretWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + + /** + * create a Secret + * @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. + * @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. + */ + public createNamespacedSecret(namespace: string, body: V1Secret, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { + const result = this.api.createNamespacedSecret(namespace, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + + /** + * create a Service + * @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. + * @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. + */ + public createNamespacedServiceWithHttpInfo(namespace: string, body: V1Service, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.createNamespacedServiceWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + + /** + * create a Service + * @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. + * @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. + */ + public createNamespacedService(namespace: string, body: V1Service, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { + const result = this.api.createNamespacedService(namespace, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + + /** + * create a ServiceAccount + * @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. + * @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. + */ + public createNamespacedServiceAccountWithHttpInfo(namespace: string, body: V1ServiceAccount, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.createNamespacedServiceAccountWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + + /** + * create a ServiceAccount + * @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. + * @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. + */ + public createNamespacedServiceAccount(namespace: string, body: V1ServiceAccount, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { + const result = this.api.createNamespacedServiceAccount(namespace, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + + /** + * create token of a ServiceAccount + * @param name name of the TokenRequest + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @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 pretty If \'true\', then the output is pretty printed. + */ + public createNamespacedServiceAccountTokenWithHttpInfo(name: string, namespace: string, body: AuthenticationV1TokenRequest, dryRun?: string, fieldManager?: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.createNamespacedServiceAccountTokenWithHttpInfo(name, namespace, body, dryRun, fieldManager, pretty, _options); + return result.toPromise(); + } + + /** + * create token of a ServiceAccount + * @param name name of the TokenRequest + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @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 pretty If \'true\', then the output is pretty printed. + */ + public createNamespacedServiceAccountToken(name: string, namespace: string, body: AuthenticationV1TokenRequest, dryRun?: string, fieldManager?: string, pretty?: string, _options?: Configuration): Promise { + const result = this.api.createNamespacedServiceAccountToken(name, namespace, body, dryRun, fieldManager, pretty, _options); + return result.toPromise(); + } + + /** + * create a Node + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public createNodeWithHttpInfo(body: V1Node, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.createNodeWithHttpInfo(body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + + /** + * create a Node + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public createNode(body: V1Node, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { + const result = this.api.createNode(body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + + /** + * create a PersistentVolume + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public createPersistentVolumeWithHttpInfo(body: V1PersistentVolume, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.createPersistentVolumeWithHttpInfo(body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + + /** + * create a PersistentVolume + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public createPersistentVolume(body: V1PersistentVolume, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { + const result = this.api.createPersistentVolume(body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + + /** + * delete collection of ConfigMap + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionNamespacedConfigMapWithHttpInfo(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteCollectionNamespacedConfigMapWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + return result.toPromise(); + } + + /** + * delete collection of ConfigMap + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionNamespacedConfigMap(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { + const result = this.api.deleteCollectionNamespacedConfigMap(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + return result.toPromise(); + } + + /** + * delete collection of Endpoints + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionNamespacedEndpointsWithHttpInfo(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteCollectionNamespacedEndpointsWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + return result.toPromise(); + } + + /** + * delete collection of Endpoints + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionNamespacedEndpoints(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { + const result = this.api.deleteCollectionNamespacedEndpoints(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + return result.toPromise(); + } + + /** + * delete collection of Event + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionNamespacedEventWithHttpInfo(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteCollectionNamespacedEventWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + return result.toPromise(); + } + + /** + * delete collection of Event + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionNamespacedEvent(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { + const result = this.api.deleteCollectionNamespacedEvent(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + return result.toPromise(); + } + + /** + * delete collection of LimitRange + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionNamespacedLimitRangeWithHttpInfo(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteCollectionNamespacedLimitRangeWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + return result.toPromise(); + } + + /** + * delete collection of LimitRange + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionNamespacedLimitRange(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { + const result = this.api.deleteCollectionNamespacedLimitRange(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + return result.toPromise(); + } + + /** + * delete collection of PersistentVolumeClaim + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionNamespacedPersistentVolumeClaimWithHttpInfo(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteCollectionNamespacedPersistentVolumeClaimWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + return result.toPromise(); + } + + /** + * delete collection of PersistentVolumeClaim + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionNamespacedPersistentVolumeClaim(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { + const result = this.api.deleteCollectionNamespacedPersistentVolumeClaim(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + return result.toPromise(); + } + + /** + * delete collection of Pod + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionNamespacedPodWithHttpInfo(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteCollectionNamespacedPodWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + return result.toPromise(); + } + + /** + * delete collection of Pod + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionNamespacedPod(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { + const result = this.api.deleteCollectionNamespacedPod(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + return result.toPromise(); + } + + /** + * delete collection of PodTemplate + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionNamespacedPodTemplateWithHttpInfo(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteCollectionNamespacedPodTemplateWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + return result.toPromise(); + } + + /** + * delete collection of PodTemplate + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionNamespacedPodTemplate(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { + const result = this.api.deleteCollectionNamespacedPodTemplate(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + return result.toPromise(); + } + + /** + * delete collection of ReplicationController + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionNamespacedReplicationControllerWithHttpInfo(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteCollectionNamespacedReplicationControllerWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + return result.toPromise(); + } + + /** + * delete collection of ReplicationController + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionNamespacedReplicationController(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { + const result = this.api.deleteCollectionNamespacedReplicationController(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + return result.toPromise(); + } + + /** + * delete collection of ResourceQuota + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionNamespacedResourceQuotaWithHttpInfo(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteCollectionNamespacedResourceQuotaWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + return result.toPromise(); + } + + /** + * delete collection of ResourceQuota + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionNamespacedResourceQuota(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { + const result = this.api.deleteCollectionNamespacedResourceQuota(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + return result.toPromise(); + } + + /** + * delete collection of Secret + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionNamespacedSecretWithHttpInfo(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteCollectionNamespacedSecretWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + return result.toPromise(); + } + + /** + * delete collection of Secret + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionNamespacedSecret(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { + const result = this.api.deleteCollectionNamespacedSecret(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + return result.toPromise(); + } + + /** + * delete collection of ServiceAccount + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionNamespacedServiceAccountWithHttpInfo(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteCollectionNamespacedServiceAccountWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + return result.toPromise(); + } + + /** + * delete collection of ServiceAccount + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionNamespacedServiceAccount(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { + const result = this.api.deleteCollectionNamespacedServiceAccount(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + return result.toPromise(); + } + + /** + * delete collection of Node + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionNodeWithHttpInfo(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteCollectionNodeWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + return result.toPromise(); + } + + /** + * delete collection of Node + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionNode(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { + const result = this.api.deleteCollectionNode(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + return result.toPromise(); + } + + /** + * delete collection of PersistentVolume + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionPersistentVolumeWithHttpInfo(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteCollectionPersistentVolumeWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + return result.toPromise(); + } + + /** + * delete collection of PersistentVolume + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionPersistentVolume(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { + const result = this.api.deleteCollectionPersistentVolume(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + return result.toPromise(); + } + + /** + * delete a Namespace + * @param name name of the Namespace + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteNamespaceWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteNamespaceWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + return result.toPromise(); + } + + /** + * delete a Namespace + * @param name name of the Namespace + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteNamespace(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { + const result = this.api.deleteNamespace(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + return result.toPromise(); + } + + /** + * delete a ConfigMap + * @param name name of the ConfigMap + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteNamespacedConfigMapWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteNamespacedConfigMapWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + return result.toPromise(); + } + + /** + * delete a ConfigMap + * @param name name of the ConfigMap + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteNamespacedConfigMap(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { + const result = this.api.deleteNamespacedConfigMap(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + return result.toPromise(); + } + + /** + * delete Endpoints + * @param name name of the Endpoints + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteNamespacedEndpointsWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteNamespacedEndpointsWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + return result.toPromise(); + } + + /** + * delete Endpoints + * @param name name of the Endpoints + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteNamespacedEndpoints(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { + const result = this.api.deleteNamespacedEndpoints(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + return result.toPromise(); + } + + /** + * delete an Event + * @param name name of the Event + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteNamespacedEventWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteNamespacedEventWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + return result.toPromise(); + } + + /** + * delete an Event + * @param name name of the Event + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteNamespacedEvent(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { + const result = this.api.deleteNamespacedEvent(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + return result.toPromise(); + } + + /** + * delete a LimitRange + * @param name name of the LimitRange + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteNamespacedLimitRangeWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteNamespacedLimitRangeWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + return result.toPromise(); + } + + /** + * delete a LimitRange + * @param name name of the LimitRange + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteNamespacedLimitRange(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { + const result = this.api.deleteNamespacedLimitRange(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + return result.toPromise(); + } + + /** + * delete a PersistentVolumeClaim + * @param name name of the PersistentVolumeClaim + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteNamespacedPersistentVolumeClaimWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteNamespacedPersistentVolumeClaimWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + return result.toPromise(); + } + + /** + * delete a PersistentVolumeClaim + * @param name name of the PersistentVolumeClaim + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteNamespacedPersistentVolumeClaim(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { + const result = this.api.deleteNamespacedPersistentVolumeClaim(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + return result.toPromise(); + } + + /** + * delete a Pod + * @param name name of the Pod + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteNamespacedPodWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteNamespacedPodWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + return result.toPromise(); + } + + /** + * delete a Pod + * @param name name of the Pod + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteNamespacedPod(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { + const result = this.api.deleteNamespacedPod(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + return result.toPromise(); + } + + /** + * delete a PodTemplate + * @param name name of the PodTemplate + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteNamespacedPodTemplateWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteNamespacedPodTemplateWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + return result.toPromise(); + } + + /** + * delete a PodTemplate + * @param name name of the PodTemplate + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteNamespacedPodTemplate(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { + const result = this.api.deleteNamespacedPodTemplate(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + return result.toPromise(); + } + + /** + * delete a ReplicationController + * @param name name of the ReplicationController + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteNamespacedReplicationControllerWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteNamespacedReplicationControllerWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + return result.toPromise(); + } + + /** + * delete a ReplicationController + * @param name name of the ReplicationController + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteNamespacedReplicationController(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { + const result = this.api.deleteNamespacedReplicationController(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + return result.toPromise(); + } + + /** + * delete a ResourceQuota + * @param name name of the ResourceQuota + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteNamespacedResourceQuotaWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteNamespacedResourceQuotaWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + return result.toPromise(); + } + + /** + * delete a ResourceQuota + * @param name name of the ResourceQuota + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteNamespacedResourceQuota(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { + const result = this.api.deleteNamespacedResourceQuota(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + return result.toPromise(); + } + + /** + * delete a Secret + * @param name name of the Secret + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteNamespacedSecretWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteNamespacedSecretWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + return result.toPromise(); + } + + /** + * delete a Secret + * @param name name of the Secret + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteNamespacedSecret(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { + const result = this.api.deleteNamespacedSecret(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + return result.toPromise(); + } + + /** + * delete a Service + * @param name name of the Service + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteNamespacedServiceWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteNamespacedServiceWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + return result.toPromise(); + } + + /** + * delete a Service + * @param name name of the Service + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteNamespacedService(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { + const result = this.api.deleteNamespacedService(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + return result.toPromise(); + } + + /** + * delete a ServiceAccount + * @param name name of the ServiceAccount + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteNamespacedServiceAccountWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteNamespacedServiceAccountWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + return result.toPromise(); + } + + /** + * delete a ServiceAccount + * @param name name of the ServiceAccount + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteNamespacedServiceAccount(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { + const result = this.api.deleteNamespacedServiceAccount(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + return result.toPromise(); + } + + /** + * delete a Node + * @param name name of the Node + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteNodeWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteNodeWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + return result.toPromise(); + } + + /** + * delete a Node + * @param name name of the Node + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteNode(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { + const result = this.api.deleteNode(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + return result.toPromise(); + } + + /** + * delete a PersistentVolume + * @param name name of the PersistentVolume + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deletePersistentVolumeWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deletePersistentVolumeWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + return result.toPromise(); + } + + /** + * delete a PersistentVolume + * @param name name of the PersistentVolume + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deletePersistentVolume(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { + const result = this.api.deletePersistentVolume(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + return result.toPromise(); + } + + /** + * get available resources + */ + public getAPIResourcesWithHttpInfo(_options?: Configuration): Promise> { + const result = this.api.getAPIResourcesWithHttpInfo(_options); + return result.toPromise(); + } + + /** + * get available resources + */ + public getAPIResources(_options?: Configuration): Promise { + const result = this.api.getAPIResources(_options); + return result.toPromise(); + } + + /** + * list objects of kind ComponentStatus + * @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. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { + const result = this.api.listComponentStatusWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + + /** + * list objects of kind ComponentStatus + * @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. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + const result = this.api.listComponentStatus(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + + /** + * list or watch objects of kind ConfigMap + * @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. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { + const result = this.api.listConfigMapForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + + /** + * list or watch objects of kind ConfigMap + * @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. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + const result = this.api.listConfigMapForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + + /** + * list or watch objects of kind Endpoints + * @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. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { + const result = this.api.listEndpointsForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + + /** + * list or watch objects of kind Endpoints + * @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. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + const result = this.api.listEndpointsForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + + /** + * list or watch objects of kind Event + * @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. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { + const result = this.api.listEventForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + + /** + * list or watch objects of kind Event + * @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. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + const result = this.api.listEventForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + + /** + * list or watch objects of kind LimitRange + * @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. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { + const result = this.api.listLimitRangeForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + + /** + * list or watch objects of kind LimitRange + * @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. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + const result = this.api.listLimitRangeForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + + /** + * list or watch objects of kind Namespace + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { + const result = this.api.listNamespaceWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + + /** + * list or watch objects of kind Namespace + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + const result = this.api.listNamespace(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + + /** + * list or watch objects of kind ConfigMap + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { + const result = this.api.listNamespacedConfigMapWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + + /** + * list or watch objects of kind ConfigMap + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + const result = this.api.listNamespacedConfigMap(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + + /** + * list or watch objects of kind Endpoints + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { + const result = this.api.listNamespacedEndpointsWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + + /** + * list or watch objects of kind Endpoints + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + const result = this.api.listNamespacedEndpoints(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + + /** + * list or watch objects of kind Event + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { + const result = this.api.listNamespacedEventWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + + /** + * list or watch objects of kind Event + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + const result = this.api.listNamespacedEvent(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + + /** + * list or watch objects of kind LimitRange + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { + const result = this.api.listNamespacedLimitRangeWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + + /** + * list or watch objects of kind LimitRange + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + const result = this.api.listNamespacedLimitRange(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + + /** + * list or watch objects of kind PersistentVolumeClaim + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { + const result = this.api.listNamespacedPersistentVolumeClaimWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + + /** + * list or watch objects of kind PersistentVolumeClaim + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + const result = this.api.listNamespacedPersistentVolumeClaim(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + + /** + * list or watch objects of kind Pod + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { + const result = this.api.listNamespacedPodWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + + /** + * list or watch objects of kind Pod + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + const result = this.api.listNamespacedPod(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + + /** + * list or watch objects of kind PodTemplate + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { + const result = this.api.listNamespacedPodTemplateWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + + /** + * list or watch objects of kind PodTemplate + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + const result = this.api.listNamespacedPodTemplate(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + + /** + * list or watch objects of kind ReplicationController + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { + const result = this.api.listNamespacedReplicationControllerWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + + /** + * list or watch objects of kind ReplicationController + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + const result = this.api.listNamespacedReplicationController(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + + /** + * list or watch objects of kind ResourceQuota + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { + const result = this.api.listNamespacedResourceQuotaWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + + /** + * list or watch objects of kind ResourceQuota + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + const result = this.api.listNamespacedResourceQuota(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + + /** + * list or watch objects of kind Secret + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { + const result = this.api.listNamespacedSecretWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + + /** + * list or watch objects of kind Secret + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + const result = this.api.listNamespacedSecret(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + + /** + * list or watch objects of kind Service + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { + const result = this.api.listNamespacedServiceWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + + /** + * list or watch objects of kind Service + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + const result = this.api.listNamespacedService(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + + /** + * list or watch objects of kind ServiceAccount + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { + const result = this.api.listNamespacedServiceAccountWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + + /** + * list or watch objects of kind ServiceAccount + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + const result = this.api.listNamespacedServiceAccount(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + + /** + * list or watch objects of kind Node + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { + const result = this.api.listNodeWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + + /** + * list or watch objects of kind Node + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + const result = this.api.listNode(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + + /** + * list or watch objects of kind PersistentVolume + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { + const result = this.api.listPersistentVolumeWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + + /** + * list or watch objects of kind PersistentVolume + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + const result = this.api.listPersistentVolume(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + + /** + * list or watch objects of kind PersistentVolumeClaim + * @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. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { + const result = this.api.listPersistentVolumeClaimForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + + /** + * list or watch objects of kind PersistentVolumeClaim + * @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. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + const result = this.api.listPersistentVolumeClaimForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + + /** + * list or watch objects of kind Pod + * @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. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { + const result = this.api.listPodForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + + /** + * list or watch objects of kind Pod + * @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. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + const result = this.api.listPodForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + + /** + * list or watch objects of kind PodTemplate + * @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. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { + const result = this.api.listPodTemplateForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + + /** + * list or watch objects of kind PodTemplate + * @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. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + const result = this.api.listPodTemplateForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + + /** + * list or watch objects of kind ReplicationController + * @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. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { + const result = this.api.listReplicationControllerForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + + /** + * list or watch objects of kind ReplicationController + * @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. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + const result = this.api.listReplicationControllerForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + + /** + * list or watch objects of kind ResourceQuota + * @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. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { + const result = this.api.listResourceQuotaForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + + /** + * list or watch objects of kind ResourceQuota + * @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. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + const result = this.api.listResourceQuotaForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + + /** + * list or watch objects of kind Secret + * @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. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { + const result = this.api.listSecretForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + + /** + * list or watch objects of kind Secret + * @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. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + const result = this.api.listSecretForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + + /** + * list or watch objects of kind ServiceAccount + * @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. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { + const result = this.api.listServiceAccountForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + + /** + * list or watch objects of kind ServiceAccount + * @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. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + const result = this.api.listServiceAccountForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + + /** + * list or watch objects of kind Service + * @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. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { + const result = this.api.listServiceForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + + /** + * list or watch objects of kind Service + * @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. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + const result = this.api.listServiceForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + + /** + * partially update the specified Namespace + * @param name name of the Namespace + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise> { + const result = this.api.patchNamespaceWithHttpInfo(name, body, pretty, dryRun, fieldManager, force, _options); + return result.toPromise(); + } + + /** + * partially update the specified Namespace + * @param name name of the Namespace + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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 force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. */ - public createNamespacedConfigMap(namespace: string, body: V1ConfigMap, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { - const result = this.api.createNamespacedConfigMap(namespace, body, pretty, dryRun, fieldManager, _options); + public patchNamespace(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Promise { + const result = this.api.patchNamespace(name, body, pretty, dryRun, fieldManager, force, _options); return result.toPromise(); } /** - * create Endpoints - * @param namespace object name and auth scope, such as for teams and projects + * partially update status of the specified Namespace + * @param name name of the Namespace * @param body * @param pretty If \'true\', then the output is pretty printed. * @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 fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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 force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. */ - public createNamespacedEndpoints(namespace: string, body: V1Endpoints, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { - const result = this.api.createNamespacedEndpoints(namespace, body, pretty, dryRun, fieldManager, _options); + public patchNamespaceStatusWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Promise> { + const result = this.api.patchNamespaceStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, force, _options); return result.toPromise(); } /** - * create an Event - * @param namespace object name and auth scope, such as for teams and projects + * partially update status of the specified Namespace + * @param name name of the Namespace * @param body * @param pretty If \'true\', then the output is pretty printed. * @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 fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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 force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. */ - public createNamespacedEvent(namespace: string, body: CoreV1Event, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { - const result = this.api.createNamespacedEvent(namespace, body, pretty, dryRun, fieldManager, _options); + public patchNamespaceStatus(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Promise { + const result = this.api.patchNamespaceStatus(name, body, pretty, dryRun, fieldManager, force, _options); return result.toPromise(); } /** - * create a LimitRange + * partially update the specified ConfigMap + * @param name name of the ConfigMap * @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. * @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 fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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 force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. */ - public createNamespacedLimitRange(namespace: string, body: V1LimitRange, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { - const result = this.api.createNamespacedLimitRange(namespace, body, pretty, dryRun, fieldManager, _options); + public patchNamespacedConfigMapWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Promise> { + const result = this.api.patchNamespacedConfigMapWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options); return result.toPromise(); } /** - * create a PersistentVolumeClaim + * partially update the specified ConfigMap + * @param name name of the ConfigMap * @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. * @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 fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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 force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. */ - public createNamespacedPersistentVolumeClaim(namespace: string, body: V1PersistentVolumeClaim, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { - const result = this.api.createNamespacedPersistentVolumeClaim(namespace, body, pretty, dryRun, fieldManager, _options); + public patchNamespacedConfigMap(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Promise { + const result = this.api.patchNamespacedConfigMap(name, namespace, body, pretty, dryRun, fieldManager, force, _options); return result.toPromise(); } /** - * create a Pod + * partially update the specified Endpoints + * @param name name of the Endpoints * @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. * @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 fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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 force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. */ - public createNamespacedPod(namespace: string, body: V1Pod, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { - const result = this.api.createNamespacedPod(namespace, body, pretty, dryRun, fieldManager, _options); + public patchNamespacedEndpointsWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Promise> { + const result = this.api.patchNamespacedEndpointsWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options); return result.toPromise(); } /** - * create binding of a Pod - * @param name name of the Binding + * partially update the specified Endpoints + * @param name name of the Endpoints * @param namespace object name and auth scope, such as for teams and projects * @param body - * @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 pretty If \'true\', then the output is pretty printed. + * @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 force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. */ - public createNamespacedPodBinding(name: string, namespace: string, body: V1Binding, dryRun?: string, fieldManager?: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.createNamespacedPodBinding(name, namespace, body, dryRun, fieldManager, pretty, _options); + public patchNamespacedEndpoints(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Promise { + const result = this.api.patchNamespacedEndpoints(name, namespace, body, pretty, dryRun, fieldManager, force, _options); return result.toPromise(); } /** - * create eviction of a Pod - * @param name name of the Eviction + * partially update the specified Event + * @param name name of the Event * @param namespace object name and auth scope, such as for teams and projects * @param body - * @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 pretty If \'true\', then the output is pretty printed. + * @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 force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. */ - public createNamespacedPodEviction(name: string, namespace: string, body: V1Eviction, dryRun?: string, fieldManager?: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.createNamespacedPodEviction(name, namespace, body, dryRun, fieldManager, pretty, _options); + public patchNamespacedEventWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Promise> { + const result = this.api.patchNamespacedEventWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options); return result.toPromise(); } /** - * create a PodTemplate + * partially update the specified Event + * @param name name of the Event * @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. * @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 fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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 force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. */ - public createNamespacedPodTemplate(namespace: string, body: V1PodTemplate, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { - const result = this.api.createNamespacedPodTemplate(namespace, body, pretty, dryRun, fieldManager, _options); + public patchNamespacedEvent(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Promise { + const result = this.api.patchNamespacedEvent(name, namespace, body, pretty, dryRun, fieldManager, force, _options); return result.toPromise(); } /** - * create a ReplicationController + * partially update the specified LimitRange + * @param name name of the LimitRange * @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. * @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 fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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 force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. */ - public createNamespacedReplicationController(namespace: string, body: V1ReplicationController, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { - const result = this.api.createNamespacedReplicationController(namespace, body, pretty, dryRun, fieldManager, _options); + public patchNamespacedLimitRangeWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Promise> { + const result = this.api.patchNamespacedLimitRangeWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options); return result.toPromise(); } /** - * create a ResourceQuota + * partially update the specified LimitRange + * @param name name of the LimitRange * @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. * @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 fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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 force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. */ - public createNamespacedResourceQuota(namespace: string, body: V1ResourceQuota, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { - const result = this.api.createNamespacedResourceQuota(namespace, body, pretty, dryRun, fieldManager, _options); + public patchNamespacedLimitRange(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Promise { + const result = this.api.patchNamespacedLimitRange(name, namespace, body, pretty, dryRun, fieldManager, force, _options); return result.toPromise(); } /** - * create a Secret + * partially update the specified PersistentVolumeClaim + * @param name name of the PersistentVolumeClaim * @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. * @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 fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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 force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. */ - public createNamespacedSecret(namespace: string, body: V1Secret, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { - const result = this.api.createNamespacedSecret(namespace, body, pretty, dryRun, fieldManager, _options); + public patchNamespacedPersistentVolumeClaimWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Promise> { + const result = this.api.patchNamespacedPersistentVolumeClaimWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options); return result.toPromise(); } /** - * create a Service + * partially update the specified PersistentVolumeClaim + * @param name name of the PersistentVolumeClaim * @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. * @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 fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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 force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. */ - public createNamespacedService(namespace: string, body: V1Service, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { - const result = this.api.createNamespacedService(namespace, body, pretty, dryRun, fieldManager, _options); + public patchNamespacedPersistentVolumeClaim(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Promise { + const result = this.api.patchNamespacedPersistentVolumeClaim(name, namespace, body, pretty, dryRun, fieldManager, force, _options); return result.toPromise(); } /** - * create a ServiceAccount + * partially update status of the specified PersistentVolumeClaim + * @param name name of the PersistentVolumeClaim * @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. * @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 fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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 force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. */ - public createNamespacedServiceAccount(namespace: string, body: V1ServiceAccount, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { - const result = this.api.createNamespacedServiceAccount(namespace, body, pretty, dryRun, fieldManager, _options); + public patchNamespacedPersistentVolumeClaimStatusWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Promise> { + const result = this.api.patchNamespacedPersistentVolumeClaimStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options); return result.toPromise(); } /** - * create token of a ServiceAccount - * @param name name of the TokenRequest + * partially update status of the specified PersistentVolumeClaim + * @param name name of the PersistentVolumeClaim * @param namespace object name and auth scope, such as for teams and projects * @param body - * @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 pretty If \'true\', then the output is pretty printed. + * @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 force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. */ - public createNamespacedServiceAccountToken(name: string, namespace: string, body: AuthenticationV1TokenRequest, dryRun?: string, fieldManager?: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.createNamespacedServiceAccountToken(name, namespace, body, dryRun, fieldManager, pretty, _options); + public patchNamespacedPersistentVolumeClaimStatus(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Promise { + const result = this.api.patchNamespacedPersistentVolumeClaimStatus(name, namespace, body, pretty, dryRun, fieldManager, force, _options); return result.toPromise(); } /** - * create a Node + * partially update the specified Pod + * @param name name of the Pod + * @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. * @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 fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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 force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. */ - public createNode(body: V1Node, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { - const result = this.api.createNode(body, pretty, dryRun, fieldManager, _options); + public patchNamespacedPodWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Promise> { + const result = this.api.patchNamespacedPodWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options); return result.toPromise(); } /** - * create a PersistentVolume + * partially update the specified Pod + * @param name name of the Pod + * @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. * @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 fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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 force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. */ - public createPersistentVolume(body: V1PersistentVolume, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { - const result = this.api.createPersistentVolume(body, pretty, dryRun, fieldManager, _options); + public patchNamespacedPod(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Promise { + const result = this.api.patchNamespacedPod(name, namespace, body, pretty, dryRun, fieldManager, force, _options); return result.toPromise(); } /** - * delete collection of ConfigMap + * partially update ephemeralcontainers of the specified Pod + * @param name name of the Pod * @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. - * @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 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 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 force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. */ - public deleteCollectionNamespacedConfigMap(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteCollectionNamespacedConfigMap(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + public patchNamespacedPodEphemeralcontainersWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Promise> { + const result = this.api.patchNamespacedPodEphemeralcontainersWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options); return result.toPromise(); } /** - * delete collection of Endpoints + * partially update ephemeralcontainers of the specified Pod + * @param name name of the Pod * @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. - * @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 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 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 force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. */ - public deleteCollectionNamespacedEndpoints(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteCollectionNamespacedEndpoints(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + public patchNamespacedPodEphemeralcontainers(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Promise { + const result = this.api.patchNamespacedPodEphemeralcontainers(name, namespace, body, pretty, dryRun, fieldManager, force, _options); return result.toPromise(); } /** - * delete collection of Event + * partially update status of the specified Pod + * @param name name of the Pod * @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. - * @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 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 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 force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. */ - public deleteCollectionNamespacedEvent(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteCollectionNamespacedEvent(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + public patchNamespacedPodStatusWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Promise> { + const result = this.api.patchNamespacedPodStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options); return result.toPromise(); } /** - * delete collection of LimitRange + * partially update status of the specified Pod + * @param name name of the Pod * @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. - * @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 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 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 force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. */ - public deleteCollectionNamespacedLimitRange(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteCollectionNamespacedLimitRange(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + public patchNamespacedPodStatus(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Promise { + const result = this.api.patchNamespacedPodStatus(name, namespace, body, pretty, dryRun, fieldManager, force, _options); return result.toPromise(); } /** - * delete collection of PersistentVolumeClaim - * @param namespace object name and auth scope, such as for teams and projects - * @param pretty If \'true\', then the output is pretty printed. - * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * partially update the specified PodTemplate + * @param name name of the PodTemplate + * @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. + * @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 force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. */ - public deleteCollectionNamespacedPersistentVolumeClaim(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteCollectionNamespacedPersistentVolumeClaim(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + public patchNamespacedPodTemplateWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Promise> { + const result = this.api.patchNamespacedPodTemplateWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options); return result.toPromise(); } /** - * delete collection of Pod + * partially update the specified PodTemplate + * @param name name of the PodTemplate * @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. - * @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 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 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 force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. */ - public deleteCollectionNamespacedPod(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteCollectionNamespacedPod(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + public patchNamespacedPodTemplate(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Promise { + const result = this.api.patchNamespacedPodTemplate(name, namespace, body, pretty, dryRun, fieldManager, force, _options); return result.toPromise(); } /** - * delete collection of PodTemplate + * partially update the specified ReplicationController + * @param name name of the ReplicationController * @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. - * @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 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 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 force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. */ - public deleteCollectionNamespacedPodTemplate(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteCollectionNamespacedPodTemplate(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + public patchNamespacedReplicationControllerWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Promise> { + const result = this.api.patchNamespacedReplicationControllerWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options); return result.toPromise(); } /** - * delete collection of ReplicationController + * partially update the specified ReplicationController + * @param name name of the ReplicationController * @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. - * @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 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 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 force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. */ - public deleteCollectionNamespacedReplicationController(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteCollectionNamespacedReplicationController(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + public patchNamespacedReplicationController(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Promise { + const result = this.api.patchNamespacedReplicationController(name, namespace, body, pretty, dryRun, fieldManager, force, _options); return result.toPromise(); } /** - * delete collection of ResourceQuota + * partially update scale of the specified ReplicationController + * @param name name of the Scale * @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. - * @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 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 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 force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. */ - public deleteCollectionNamespacedResourceQuota(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteCollectionNamespacedResourceQuota(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + public patchNamespacedReplicationControllerScaleWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Promise> { + const result = this.api.patchNamespacedReplicationControllerScaleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options); return result.toPromise(); } /** - * delete collection of Secret + * partially update scale of the specified ReplicationController + * @param name name of the Scale * @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. - * @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 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 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 force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. */ - public deleteCollectionNamespacedSecret(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteCollectionNamespacedSecret(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + public patchNamespacedReplicationControllerScale(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Promise { + const result = this.api.patchNamespacedReplicationControllerScale(name, namespace, body, pretty, dryRun, fieldManager, force, _options); return result.toPromise(); } /** - * delete collection of ServiceAccount + * partially update status of the specified ReplicationController + * @param name name of the ReplicationController * @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. - * @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 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 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 force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. */ - public deleteCollectionNamespacedServiceAccount(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteCollectionNamespacedServiceAccount(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + public patchNamespacedReplicationControllerStatusWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Promise> { + const result = this.api.patchNamespacedReplicationControllerStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options); return result.toPromise(); } /** - * delete collection of Node + * partially update status of the specified ReplicationController + * @param name name of the ReplicationController + * @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. - * @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 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 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 force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. */ - public deleteCollectionNode(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteCollectionNode(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + public patchNamespacedReplicationControllerStatus(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Promise { + const result = this.api.patchNamespacedReplicationControllerStatus(name, namespace, body, pretty, dryRun, fieldManager, force, _options); return result.toPromise(); } /** - * delete collection of PersistentVolume + * partially update the specified ResourceQuota + * @param name name of the ResourceQuota + * @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. - * @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 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 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 force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. */ - public deleteCollectionPersistentVolume(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteCollectionPersistentVolume(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + public patchNamespacedResourceQuotaWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Promise> { + const result = this.api.patchNamespacedResourceQuotaWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options); return result.toPromise(); } /** - * delete a Namespace - * @param name name of the Namespace + * partially update the specified ResourceQuota + * @param name name of the ResourceQuota + * @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. * @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 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 + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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 force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. */ - public deleteNamespace(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteNamespace(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + public patchNamespacedResourceQuota(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Promise { + const result = this.api.patchNamespacedResourceQuota(name, namespace, body, pretty, dryRun, fieldManager, force, _options); return result.toPromise(); } /** - * delete a ConfigMap - * @param name name of the ConfigMap + * partially update status of the specified ResourceQuota + * @param name name of the ResourceQuota * @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. * @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 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 + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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 force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. */ - public deleteNamespacedConfigMap(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteNamespacedConfigMap(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + public patchNamespacedResourceQuotaStatusWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Promise> { + const result = this.api.patchNamespacedResourceQuotaStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options); return result.toPromise(); } /** - * delete Endpoints - * @param name name of the Endpoints + * partially update status of the specified ResourceQuota + * @param name name of the ResourceQuota * @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. * @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 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 + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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 force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. */ - public deleteNamespacedEndpoints(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteNamespacedEndpoints(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + public patchNamespacedResourceQuotaStatus(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Promise { + const result = this.api.patchNamespacedResourceQuotaStatus(name, namespace, body, pretty, dryRun, fieldManager, force, _options); return result.toPromise(); } /** - * delete an Event - * @param name name of the Event + * partially update the specified Secret + * @param name name of the Secret * @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. * @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 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 + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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 force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. */ - public deleteNamespacedEvent(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteNamespacedEvent(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + public patchNamespacedSecretWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Promise> { + const result = this.api.patchNamespacedSecretWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options); return result.toPromise(); } /** - * delete a LimitRange - * @param name name of the LimitRange + * partially update the specified Secret + * @param name name of the Secret * @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. * @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 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 + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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 force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. */ - public deleteNamespacedLimitRange(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteNamespacedLimitRange(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + public patchNamespacedSecret(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Promise { + const result = this.api.patchNamespacedSecret(name, namespace, body, pretty, dryRun, fieldManager, force, _options); return result.toPromise(); } /** - * delete a PersistentVolumeClaim - * @param name name of the PersistentVolumeClaim + * partially update the specified Service + * @param name name of the Service * @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. * @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 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 + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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 force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. */ - public deleteNamespacedPersistentVolumeClaim(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteNamespacedPersistentVolumeClaim(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + public patchNamespacedServiceWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Promise> { + const result = this.api.patchNamespacedServiceWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options); return result.toPromise(); } /** - * delete a Pod - * @param name name of the Pod + * partially update the specified Service + * @param name name of the Service * @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. * @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 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 + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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 force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. */ - public deleteNamespacedPod(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteNamespacedPod(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + public patchNamespacedService(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Promise { + const result = this.api.patchNamespacedService(name, namespace, body, pretty, dryRun, fieldManager, force, _options); return result.toPromise(); } /** - * delete a PodTemplate - * @param name name of the PodTemplate + * partially update the specified ServiceAccount + * @param name name of the ServiceAccount * @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. * @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 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 + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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 force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. */ - public deleteNamespacedPodTemplate(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteNamespacedPodTemplate(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + public patchNamespacedServiceAccountWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Promise> { + const result = this.api.patchNamespacedServiceAccountWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options); return result.toPromise(); } /** - * delete a ReplicationController - * @param name name of the ReplicationController + * partially update the specified ServiceAccount + * @param name name of the ServiceAccount * @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. * @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 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 + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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 force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. */ - public deleteNamespacedReplicationController(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteNamespacedReplicationController(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + public patchNamespacedServiceAccount(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Promise { + const result = this.api.patchNamespacedServiceAccount(name, namespace, body, pretty, dryRun, fieldManager, force, _options); return result.toPromise(); } /** - * delete a ResourceQuota - * @param name name of the ResourceQuota + * partially update status of the specified Service + * @param name name of the Service * @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. * @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 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 + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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 force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. */ - public deleteNamespacedResourceQuota(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteNamespacedResourceQuota(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + public patchNamespacedServiceStatusWithHttpInfo(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Promise> { + const result = this.api.patchNamespacedServiceStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options); return result.toPromise(); } /** - * delete a Secret - * @param name name of the Secret + * partially update status of the specified Service + * @param name name of the Service * @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. * @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 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 + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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 force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. */ - public deleteNamespacedSecret(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteNamespacedSecret(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + public patchNamespacedServiceStatus(name: string, namespace: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Promise { + const result = this.api.patchNamespacedServiceStatus(name, namespace, body, pretty, dryRun, fieldManager, force, _options); return result.toPromise(); } /** - * delete a Service - * @param name name of the Service - * @param namespace object name and auth scope, such as for teams and projects + * partially update the specified Node + * @param name name of the Node + * @param body * @param pretty If \'true\', then the output is pretty printed. * @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 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 + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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 force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. */ - public deleteNamespacedService(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteNamespacedService(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + public patchNodeWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Promise> { + const result = this.api.patchNodeWithHttpInfo(name, body, pretty, dryRun, fieldManager, force, _options); return result.toPromise(); } /** - * delete a ServiceAccount - * @param name name of the ServiceAccount - * @param namespace object name and auth scope, such as for teams and projects + * partially update the specified Node + * @param name name of the Node + * @param body * @param pretty If \'true\', then the output is pretty printed. * @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 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 + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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 force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. */ - public deleteNamespacedServiceAccount(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteNamespacedServiceAccount(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + public patchNode(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Promise { + const result = this.api.patchNode(name, body, pretty, dryRun, fieldManager, force, _options); return result.toPromise(); } /** - * delete a Node + * partially update status of the specified Node * @param name name of the Node + * @param body * @param pretty If \'true\', then the output is pretty printed. * @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 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 + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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 force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. */ - public deleteNode(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteNode(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + public patchNodeStatusWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Promise> { + const result = this.api.patchNodeStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, force, _options); return result.toPromise(); } /** - * delete a PersistentVolume - * @param name name of the PersistentVolume + * partially update status of the specified Node + * @param name name of the Node + * @param body * @param pretty If \'true\', then the output is pretty printed. * @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 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 + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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 force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. */ - public deletePersistentVolume(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deletePersistentVolume(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + public patchNodeStatus(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Promise { + const result = this.api.patchNodeStatus(name, body, pretty, dryRun, fieldManager, force, _options); return result.toPromise(); } /** - * get available resources + * partially update the specified PersistentVolume + * @param name name of the PersistentVolume + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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 force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. */ - public getAPIResources(_options?: Configuration): Promise { - const result = this.api.getAPIResources(_options); + public patchPersistentVolumeWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Promise> { + const result = this.api.patchPersistentVolumeWithHttpInfo(name, body, pretty, dryRun, fieldManager, force, _options); return result.toPromise(); } /** - * list objects of kind ComponentStatus - * @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. + * partially update the specified PersistentVolume + * @param name name of the PersistentVolume + * @param body * @param pretty If \'true\', then the output is pretty printed. - * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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 force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. */ - public listComponentStatus(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { - const result = this.api.listComponentStatus(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + public patchPersistentVolume(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Promise { + const result = this.api.patchPersistentVolume(name, body, pretty, dryRun, fieldManager, force, _options); return result.toPromise(); } /** - * list or watch objects of kind ConfigMap - * @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. + * partially update status of the specified PersistentVolume + * @param name name of the PersistentVolume + * @param body * @param pretty If \'true\', then the output is pretty printed. - * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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 force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. */ - public listConfigMapForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { - const result = this.api.listConfigMapForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + public patchPersistentVolumeStatusWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Promise> { + const result = this.api.patchPersistentVolumeStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, force, _options); return result.toPromise(); } /** - * list or watch objects of kind Endpoints - * @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. + * partially update status of the specified PersistentVolume + * @param name name of the PersistentVolume + * @param body * @param pretty If \'true\', then the output is pretty printed. - * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.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 force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. */ - public listEndpointsForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { - const result = this.api.listEndpointsForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + public patchPersistentVolumeStatus(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Promise { + const result = this.api.patchPersistentVolumeStatus(name, body, pretty, dryRun, fieldManager, force, _options); return result.toPromise(); } /** - * list or watch objects of kind Event - * @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. + * read the specified ComponentStatus + * @param name name of the ComponentStatus * @param pretty If \'true\', then the output is pretty printed. - * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { - const result = this.api.listEventForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + public readComponentStatusWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.readComponentStatusWithHttpInfo(name, pretty, _options); return result.toPromise(); } /** - * list or watch objects of kind LimitRange - * @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. + * read the specified ComponentStatus + * @param name name of the ComponentStatus * @param pretty If \'true\', then the output is pretty printed. - * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { - const result = this.api.listLimitRangeForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + public readComponentStatus(name: string, pretty?: string, _options?: Configuration): Promise { + const result = this.api.readComponentStatus(name, pretty, _options); return result.toPromise(); } /** - * list or watch objects of kind Namespace + * read the specified Namespace + * @param name name of the Namespace * @param pretty If \'true\', then the output is pretty printed. - * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { - const result = this.api.listNamespace(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + public readNamespaceWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.readNamespaceWithHttpInfo(name, pretty, _options); return result.toPromise(); } /** - * list or watch objects of kind ConfigMap - * @param namespace object name and auth scope, such as for teams and projects + * read the specified Namespace + * @param name name of the Namespace * @param pretty If \'true\', then the output is pretty printed. - * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { - const result = this.api.listNamespacedConfigMap(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + public readNamespace(name: string, pretty?: string, _options?: Configuration): Promise { + const result = this.api.readNamespace(name, pretty, _options); return result.toPromise(); } /** - * list or watch objects of kind Endpoints - * @param namespace object name and auth scope, such as for teams and projects + * read status of the specified Namespace + * @param name name of the Namespace * @param pretty If \'true\', then the output is pretty printed. - * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { - const result = this.api.listNamespacedEndpoints(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + public readNamespaceStatusWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.readNamespaceStatusWithHttpInfo(name, pretty, _options); return result.toPromise(); } /** - * list or watch objects of kind Event - * @param namespace object name and auth scope, such as for teams and projects + * read status of the specified Namespace + * @param name name of the Namespace * @param pretty If \'true\', then the output is pretty printed. - * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { - const result = this.api.listNamespacedEvent(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + public readNamespaceStatus(name: string, pretty?: string, _options?: Configuration): Promise { + const result = this.api.readNamespaceStatus(name, pretty, _options); return result.toPromise(); } /** - * list or watch objects of kind LimitRange + * read the specified ConfigMap + * @param name name of the ConfigMap * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. - * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { - const result = this.api.listNamespacedLimitRange(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + public readNamespacedConfigMapWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.readNamespacedConfigMapWithHttpInfo(name, namespace, pretty, _options); return result.toPromise(); } /** - * list or watch objects of kind PersistentVolumeClaim + * read the specified ConfigMap + * @param name name of the ConfigMap * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. - * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { - const result = this.api.listNamespacedPersistentVolumeClaim(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + public readNamespacedConfigMap(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { + const result = this.api.readNamespacedConfigMap(name, namespace, pretty, _options); return result.toPromise(); } /** - * list or watch objects of kind Pod + * read the specified Endpoints + * @param name name of the Endpoints * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. - * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { - const result = this.api.listNamespacedPod(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + public readNamespacedEndpointsWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.readNamespacedEndpointsWithHttpInfo(name, namespace, pretty, _options); return result.toPromise(); } /** - * list or watch objects of kind PodTemplate + * read the specified Endpoints + * @param name name of the Endpoints * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. - * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { - const result = this.api.listNamespacedPodTemplate(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + public readNamespacedEndpoints(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { + const result = this.api.readNamespacedEndpoints(name, namespace, pretty, _options); return result.toPromise(); } /** - * list or watch objects of kind ReplicationController + * read the specified Event + * @param name name of the Event * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. - * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { - const result = this.api.listNamespacedReplicationController(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + public readNamespacedEventWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.readNamespacedEventWithHttpInfo(name, namespace, pretty, _options); return result.toPromise(); } /** - * list or watch objects of kind ResourceQuota + * read the specified Event + * @param name name of the Event * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. - * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { - const result = this.api.listNamespacedResourceQuota(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + public readNamespacedEvent(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { + const result = this.api.readNamespacedEvent(name, namespace, pretty, _options); return result.toPromise(); } /** - * list or watch objects of kind Secret + * read the specified LimitRange + * @param name name of the LimitRange * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. - * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { - const result = this.api.listNamespacedSecret(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + public readNamespacedLimitRangeWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.readNamespacedLimitRangeWithHttpInfo(name, namespace, pretty, _options); return result.toPromise(); } /** - * list or watch objects of kind Service + * read the specified LimitRange + * @param name name of the LimitRange * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. - * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { - const result = this.api.listNamespacedService(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + public readNamespacedLimitRange(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { + const result = this.api.readNamespacedLimitRange(name, namespace, pretty, _options); return result.toPromise(); } /** - * list or watch objects of kind ServiceAccount + * read the specified PersistentVolumeClaim + * @param name name of the PersistentVolumeClaim * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. - * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { - const result = this.api.listNamespacedServiceAccount(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + public readNamespacedPersistentVolumeClaimWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.readNamespacedPersistentVolumeClaimWithHttpInfo(name, namespace, pretty, _options); return result.toPromise(); } /** - * list or watch objects of kind Node + * read the specified PersistentVolumeClaim + * @param name name of the PersistentVolumeClaim + * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. - * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { - const result = this.api.listNode(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + public readNamespacedPersistentVolumeClaim(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { + const result = this.api.readNamespacedPersistentVolumeClaim(name, namespace, pretty, _options); return result.toPromise(); } /** - * list or watch objects of kind PersistentVolume + * read status of the specified PersistentVolumeClaim + * @param name name of the PersistentVolumeClaim + * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. - * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { - const result = this.api.listPersistentVolume(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + public readNamespacedPersistentVolumeClaimStatusWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.readNamespacedPersistentVolumeClaimStatusWithHttpInfo(name, namespace, pretty, _options); return result.toPromise(); } /** - * list or watch objects of kind PersistentVolumeClaim - * @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. + * read status of the specified PersistentVolumeClaim + * @param name name of the PersistentVolumeClaim + * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. - * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { - const result = this.api.listPersistentVolumeClaimForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + public readNamespacedPersistentVolumeClaimStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { + const result = this.api.readNamespacedPersistentVolumeClaimStatus(name, namespace, pretty, _options); return result.toPromise(); } /** - * list or watch objects of kind Pod - * @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. + * read the specified Pod + * @param name name of the Pod + * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. - * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { - const result = this.api.listPodForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + public readNamespacedPodWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.readNamespacedPodWithHttpInfo(name, namespace, pretty, _options); return result.toPromise(); } /** - * list or watch objects of kind PodTemplate - * @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. + * read the specified Pod + * @param name name of the Pod + * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. - * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { - const result = this.api.listPodTemplateForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + public readNamespacedPod(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { + const result = this.api.readNamespacedPod(name, namespace, pretty, _options); return result.toPromise(); - } - - /** - * list or watch objects of kind ReplicationController - * @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. + } + + /** + * read ephemeralcontainers of the specified Pod + * @param name name of the Pod + * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. - * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { - const result = this.api.listReplicationControllerForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + public readNamespacedPodEphemeralcontainersWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.readNamespacedPodEphemeralcontainersWithHttpInfo(name, namespace, pretty, _options); return result.toPromise(); } /** - * list or watch objects of kind ResourceQuota - * @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. + * read ephemeralcontainers of the specified Pod + * @param name name of the Pod + * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. - * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { - const result = this.api.listResourceQuotaForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + public readNamespacedPodEphemeralcontainers(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { + const result = this.api.readNamespacedPodEphemeralcontainers(name, namespace, pretty, _options); return result.toPromise(); } /** - * list or watch objects of kind Secret - * @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. + * read log of the specified Pod + * @param name name of the Pod + * @param namespace object name and auth scope, such as for teams and projects + * @param container The container for which to stream logs. Defaults to only container if there is one container in the pod. + * @param follow Follow the log stream of the pod. Defaults to false. + * @param insecureSkipTLSVerifyBackend insecureSkipTLSVerifyBackend indicates that the apiserver should not confirm the validity of the serving certificate of the backend it is connecting to. This will make the HTTPS connection between the apiserver and the backend insecure. This means the apiserver cannot verify the log data it is receiving came from the real kubelet. If the kubelet is configured to verify the apiserver\'s TLS credentials, it does not mean the connection to the real kubelet is vulnerable to a man in the middle attack (e.g. an attacker could not intercept the actual log data coming from the real kubelet). + * @param limitBytes If set, the number of bytes to read from the server before terminating the log output. This may not display a complete final line of logging, and may return slightly more or slightly less than the specified limit. * @param pretty If \'true\', then the output is pretty printed. - * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or 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 previous Return previous terminated container logs. Defaults to false. + * @param sinceSeconds A relative time in seconds before the current time from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified. + * @param tailLines If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime + * @param timestamps If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false. */ - public listSecretForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { - const result = this.api.listSecretForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + public readNamespacedPodLogWithHttpInfo(name: string, namespace: string, container?: string, follow?: boolean, insecureSkipTLSVerifyBackend?: boolean, limitBytes?: number, pretty?: string, previous?: boolean, sinceSeconds?: number, tailLines?: number, timestamps?: boolean, _options?: Configuration): Promise> { + const result = this.api.readNamespacedPodLogWithHttpInfo(name, namespace, container, follow, insecureSkipTLSVerifyBackend, limitBytes, pretty, previous, sinceSeconds, tailLines, timestamps, _options); return result.toPromise(); } /** - * list or watch objects of kind ServiceAccount - * @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. + * read log of the specified Pod + * @param name name of the Pod + * @param namespace object name and auth scope, such as for teams and projects + * @param container The container for which to stream logs. Defaults to only container if there is one container in the pod. + * @param follow Follow the log stream of the pod. Defaults to false. + * @param insecureSkipTLSVerifyBackend insecureSkipTLSVerifyBackend indicates that the apiserver should not confirm the validity of the serving certificate of the backend it is connecting to. This will make the HTTPS connection between the apiserver and the backend insecure. This means the apiserver cannot verify the log data it is receiving came from the real kubelet. If the kubelet is configured to verify the apiserver\'s TLS credentials, it does not mean the connection to the real kubelet is vulnerable to a man in the middle attack (e.g. an attacker could not intercept the actual log data coming from the real kubelet). + * @param limitBytes If set, the number of bytes to read from the server before terminating the log output. This may not display a complete final line of logging, and may return slightly more or slightly less than the specified limit. * @param pretty If \'true\', then the output is pretty printed. - * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or 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 previous Return previous terminated container logs. Defaults to false. + * @param sinceSeconds A relative time in seconds before the current time from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified. + * @param tailLines If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime + * @param timestamps If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false. */ - public listServiceAccountForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { - const result = this.api.listServiceAccountForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + public readNamespacedPodLog(name: string, namespace: string, container?: string, follow?: boolean, insecureSkipTLSVerifyBackend?: boolean, limitBytes?: number, pretty?: string, previous?: boolean, sinceSeconds?: number, tailLines?: number, timestamps?: boolean, _options?: Configuration): Promise { + const result = this.api.readNamespacedPodLog(name, namespace, container, follow, insecureSkipTLSVerifyBackend, limitBytes, pretty, previous, sinceSeconds, tailLines, timestamps, _options); return result.toPromise(); } /** - * list or watch objects of kind Service - * @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. + * read status of the specified Pod + * @param name name of the Pod + * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. - * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { - const result = this.api.listServiceForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + public readNamespacedPodStatusWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.readNamespacedPodStatusWithHttpInfo(name, namespace, pretty, _options); return result.toPromise(); } /** - * partially update the specified Namespace - * @param name name of the Namespace - * @param body + * read status of the specified Pod + * @param name name of the Pod + * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. - * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespace(name, body, pretty, dryRun, fieldManager, force, _options); + public readNamespacedPodStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { + const result = this.api.readNamespacedPodStatus(name, namespace, pretty, _options); return result.toPromise(); } /** - * partially update status of the specified Namespace - * @param name name of the Namespace - * @param body + * read the specified PodTemplate + * @param name name of the PodTemplate + * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. - * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespaceStatus(name, body, pretty, dryRun, fieldManager, force, _options); + public readNamespacedPodTemplateWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.readNamespacedPodTemplateWithHttpInfo(name, namespace, pretty, _options); return result.toPromise(); } /** - * partially update the specified ConfigMap - * @param name name of the ConfigMap + * read the specified PodTemplate + * @param name name of the PodTemplate * @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. - * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespacedConfigMap(name, namespace, body, pretty, dryRun, fieldManager, force, _options); + public readNamespacedPodTemplate(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { + const result = this.api.readNamespacedPodTemplate(name, namespace, pretty, _options); return result.toPromise(); } /** - * partially update the specified Endpoints - * @param name name of the Endpoints + * read the specified ReplicationController + * @param name name of the ReplicationController * @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. - * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespacedEndpoints(name, namespace, body, pretty, dryRun, fieldManager, force, _options); + public readNamespacedReplicationControllerWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.readNamespacedReplicationControllerWithHttpInfo(name, namespace, pretty, _options); return result.toPromise(); } /** - * partially update the specified Event - * @param name name of the Event + * read the specified ReplicationController + * @param name name of the ReplicationController * @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. - * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespacedEvent(name, namespace, body, pretty, dryRun, fieldManager, force, _options); + public readNamespacedReplicationController(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { + const result = this.api.readNamespacedReplicationController(name, namespace, pretty, _options); return result.toPromise(); } /** - * partially update the specified LimitRange - * @param name name of the LimitRange + * read scale of the specified ReplicationController + * @param name name of the Scale * @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. - * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespacedLimitRange(name, namespace, body, pretty, dryRun, fieldManager, force, _options); + public readNamespacedReplicationControllerScaleWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.readNamespacedReplicationControllerScaleWithHttpInfo(name, namespace, pretty, _options); return result.toPromise(); } /** - * partially update the specified PersistentVolumeClaim - * @param name name of the PersistentVolumeClaim + * read scale of the specified ReplicationController + * @param name name of the Scale * @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. - * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespacedPersistentVolumeClaim(name, namespace, body, pretty, dryRun, fieldManager, force, _options); + public readNamespacedReplicationControllerScale(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { + const result = this.api.readNamespacedReplicationControllerScale(name, namespace, pretty, _options); return result.toPromise(); } /** - * partially update status of the specified PersistentVolumeClaim - * @param name name of the PersistentVolumeClaim + * read status of the specified ReplicationController + * @param name name of the ReplicationController * @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. - * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespacedPersistentVolumeClaimStatus(name, namespace, body, pretty, dryRun, fieldManager, force, _options); + public readNamespacedReplicationControllerStatusWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.readNamespacedReplicationControllerStatusWithHttpInfo(name, namespace, pretty, _options); return result.toPromise(); } /** - * partially update the specified Pod - * @param name name of the Pod + * read status of the specified ReplicationController + * @param name name of the ReplicationController * @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. - * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespacedPod(name, namespace, body, pretty, dryRun, fieldManager, force, _options); + public readNamespacedReplicationControllerStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { + const result = this.api.readNamespacedReplicationControllerStatus(name, namespace, pretty, _options); return result.toPromise(); } /** - * partially update ephemeralcontainers of the specified Pod - * @param name name of the Pod + * read the specified ResourceQuota + * @param name name of the ResourceQuota * @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. - * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespacedPodEphemeralcontainers(name, namespace, body, pretty, dryRun, fieldManager, force, _options); + public readNamespacedResourceQuotaWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.readNamespacedResourceQuotaWithHttpInfo(name, namespace, pretty, _options); return result.toPromise(); } /** - * partially update status of the specified Pod - * @param name name of the Pod + * read the specified ResourceQuota + * @param name name of the ResourceQuota * @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. - * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespacedPodStatus(name, namespace, body, pretty, dryRun, fieldManager, force, _options); + public readNamespacedResourceQuota(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { + const result = this.api.readNamespacedResourceQuota(name, namespace, pretty, _options); return result.toPromise(); } /** - * partially update the specified PodTemplate - * @param name name of the PodTemplate + * read status of the specified ResourceQuota + * @param name name of the ResourceQuota * @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. - * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespacedPodTemplate(name, namespace, body, pretty, dryRun, fieldManager, force, _options); + public readNamespacedResourceQuotaStatusWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.readNamespacedResourceQuotaStatusWithHttpInfo(name, namespace, pretty, _options); return result.toPromise(); } /** - * partially update the specified ReplicationController - * @param name name of the ReplicationController + * read status of the specified ResourceQuota + * @param name name of the ResourceQuota * @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. - * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespacedReplicationController(name, namespace, body, pretty, dryRun, fieldManager, force, _options); + public readNamespacedResourceQuotaStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { + const result = this.api.readNamespacedResourceQuotaStatus(name, namespace, pretty, _options); return result.toPromise(); } /** - * partially update scale of the specified ReplicationController - * @param name name of the Scale + * read the specified Secret + * @param name name of the Secret * @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. - * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespacedReplicationControllerScale(name, namespace, body, pretty, dryRun, fieldManager, force, _options); + public readNamespacedSecretWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.readNamespacedSecretWithHttpInfo(name, namespace, pretty, _options); return result.toPromise(); } /** - * partially update status of the specified ReplicationController - * @param name name of the ReplicationController + * read the specified Secret + * @param name name of the Secret * @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. - * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespacedReplicationControllerStatus(name, namespace, body, pretty, dryRun, fieldManager, force, _options); + public readNamespacedSecret(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { + const result = this.api.readNamespacedSecret(name, namespace, pretty, _options); return result.toPromise(); } /** - * partially update the specified ResourceQuota - * @param name name of the ResourceQuota + * read the specified Service + * @param name name of the Service * @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. - * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespacedResourceQuota(name, namespace, body, pretty, dryRun, fieldManager, force, _options); + public readNamespacedServiceWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.readNamespacedServiceWithHttpInfo(name, namespace, pretty, _options); return result.toPromise(); } /** - * partially update status of the specified ResourceQuota - * @param name name of the ResourceQuota + * read the specified Service + * @param name name of the Service * @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. - * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespacedResourceQuotaStatus(name, namespace, body, pretty, dryRun, fieldManager, force, _options); + public readNamespacedService(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { + const result = this.api.readNamespacedService(name, namespace, pretty, _options); return result.toPromise(); } /** - * partially update the specified Secret - * @param name name of the Secret + * read the specified ServiceAccount + * @param name name of the ServiceAccount * @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. - * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespacedSecret(name, namespace, body, pretty, dryRun, fieldManager, force, _options); + public readNamespacedServiceAccountWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.readNamespacedServiceAccountWithHttpInfo(name, namespace, pretty, _options); return result.toPromise(); } /** - * partially update the specified Service - * @param name name of the Service + * read the specified ServiceAccount + * @param name name of the ServiceAccount * @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. - * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespacedService(name, namespace, body, pretty, dryRun, fieldManager, force, _options); + public readNamespacedServiceAccount(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { + const result = this.api.readNamespacedServiceAccount(name, namespace, pretty, _options); return result.toPromise(); } /** - * partially update the specified ServiceAccount - * @param name name of the ServiceAccount + * read status of the specified Service + * @param name name of the Service * @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. - * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespacedServiceAccount(name, namespace, body, pretty, dryRun, fieldManager, force, _options); + public readNamespacedServiceStatusWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.readNamespacedServiceStatusWithHttpInfo(name, namespace, pretty, _options); return result.toPromise(); } /** - * partially update status of the specified Service + * read status of the specified Service * @param name name of the Service * @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. - * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNamespacedServiceStatus(name, namespace, body, pretty, dryRun, fieldManager, force, _options); + public readNamespacedServiceStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { + const result = this.api.readNamespacedServiceStatus(name, namespace, pretty, _options); return result.toPromise(); } /** - * partially update the specified Node + * read the specified Node * @param name name of the Node - * @param body * @param pretty If \'true\', then the output is pretty printed. - * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNode(name, body, pretty, dryRun, fieldManager, force, _options); + public readNodeWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.readNodeWithHttpInfo(name, pretty, _options); return result.toPromise(); } /** - * partially update status of the specified Node + * read the specified Node * @param name name of the Node - * @param body * @param pretty If \'true\', then the output is pretty printed. - * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchNodeStatus(name, body, pretty, dryRun, fieldManager, force, _options); + public readNode(name: string, pretty?: string, _options?: Configuration): Promise { + const result = this.api.readNode(name, pretty, _options); return result.toPromise(); } /** - * partially update the specified PersistentVolume - * @param name name of the PersistentVolume - * @param body + * read status of the specified Node + * @param name name of the Node * @param pretty If \'true\', then the output is pretty printed. - * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchPersistentVolume(name, body, pretty, dryRun, fieldManager, force, _options); + public readNodeStatusWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.readNodeStatusWithHttpInfo(name, pretty, _options); return result.toPromise(); } /** - * partially update status of the specified PersistentVolume - * @param name name of the PersistentVolume - * @param body + * read status of the specified Node + * @param name name of the Node * @param pretty If \'true\', then the output is pretty printed. - * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise { - const result = this.api.patchPersistentVolumeStatus(name, body, pretty, dryRun, fieldManager, force, _options); + public readNodeStatus(name: string, pretty?: string, _options?: Configuration): Promise { + const result = this.api.readNodeStatus(name, pretty, _options); return result.toPromise(); } /** - * read the specified ComponentStatus - * @param name name of the ComponentStatus + * read the specified PersistentVolume + * @param name name of the PersistentVolume * @param pretty If \'true\', then the output is pretty printed. */ - public readComponentStatus(name: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readComponentStatus(name, pretty, _options); + public readPersistentVolumeWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.readPersistentVolumeWithHttpInfo(name, pretty, _options); return result.toPromise(); } /** - * read the specified Namespace - * @param name name of the Namespace + * read the specified PersistentVolume + * @param name name of the PersistentVolume * @param pretty If \'true\', then the output is pretty printed. */ - public readNamespace(name: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNamespace(name, pretty, _options); + public readPersistentVolume(name: string, pretty?: string, _options?: Configuration): Promise { + const result = this.api.readPersistentVolume(name, pretty, _options); return result.toPromise(); } /** - * read status of the specified Namespace - * @param name name of the Namespace + * read status of the specified PersistentVolume + * @param name name of the PersistentVolume * @param pretty If \'true\', then the output is pretty printed. */ - public readNamespaceStatus(name: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNamespaceStatus(name, pretty, _options); + public readPersistentVolumeStatusWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.readPersistentVolumeStatusWithHttpInfo(name, pretty, _options); return result.toPromise(); } /** - * read the specified ConfigMap - * @param name name of the ConfigMap - * @param namespace object name and auth scope, such as for teams and projects + * read status of the specified PersistentVolume + * @param name name of the PersistentVolume * @param pretty If \'true\', then the output is pretty printed. */ - public readNamespacedConfigMap(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNamespacedConfigMap(name, namespace, pretty, _options); + public readPersistentVolumeStatus(name: string, pretty?: string, _options?: Configuration): Promise { + const result = this.api.readPersistentVolumeStatus(name, pretty, _options); return result.toPromise(); } /** - * read the specified Endpoints - * @param name name of the Endpoints - * @param namespace object name and auth scope, such as for teams and projects + * replace the specified Namespace + * @param name name of the Namespace + * @param body * @param pretty If \'true\', then the output is pretty printed. + * @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. */ - public readNamespacedEndpoints(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNamespacedEndpoints(name, namespace, pretty, _options); + public replaceNamespaceWithHttpInfo(name: string, body: V1Namespace, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.replaceNamespaceWithHttpInfo(name, body, pretty, dryRun, fieldManager, _options); return result.toPromise(); } /** - * read the specified Event - * @param name name of the Event - * @param namespace object name and auth scope, such as for teams and projects + * replace the specified Namespace + * @param name name of the Namespace + * @param body * @param pretty If \'true\', then the output is pretty printed. + * @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. */ - public readNamespacedEvent(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNamespacedEvent(name, namespace, pretty, _options); + public replaceNamespace(name: string, body: V1Namespace, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { + const result = this.api.replaceNamespace(name, body, pretty, dryRun, fieldManager, _options); return result.toPromise(); } /** - * read the specified LimitRange - * @param name name of the LimitRange - * @param namespace object name and auth scope, such as for teams and projects + * replace finalize of the specified Namespace + * @param name name of the Namespace + * @param body + * @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 pretty If \'true\', then the output is pretty printed. */ - public readNamespacedLimitRange(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNamespacedLimitRange(name, namespace, pretty, _options); + public replaceNamespaceFinalizeWithHttpInfo(name: string, body: V1Namespace, dryRun?: string, fieldManager?: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.replaceNamespaceFinalizeWithHttpInfo(name, body, dryRun, fieldManager, pretty, _options); return result.toPromise(); } /** - * read the specified PersistentVolumeClaim - * @param name name of the PersistentVolumeClaim - * @param namespace object name and auth scope, such as for teams and projects + * replace finalize of the specified Namespace + * @param name name of the Namespace + * @param body + * @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 pretty If \'true\', then the output is pretty printed. */ - public readNamespacedPersistentVolumeClaim(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNamespacedPersistentVolumeClaim(name, namespace, pretty, _options); + public replaceNamespaceFinalize(name: string, body: V1Namespace, dryRun?: string, fieldManager?: string, pretty?: string, _options?: Configuration): Promise { + const result = this.api.replaceNamespaceFinalize(name, body, dryRun, fieldManager, pretty, _options); return result.toPromise(); } /** - * read status of the specified PersistentVolumeClaim - * @param name name of the PersistentVolumeClaim - * @param namespace object name and auth scope, such as for teams and projects + * replace status of the specified Namespace + * @param name name of the Namespace + * @param body * @param pretty If \'true\', then the output is pretty printed. + * @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. */ - public readNamespacedPersistentVolumeClaimStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNamespacedPersistentVolumeClaimStatus(name, namespace, pretty, _options); + public replaceNamespaceStatusWithHttpInfo(name: string, body: V1Namespace, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.replaceNamespaceStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, _options); return result.toPromise(); } /** - * read the specified Pod - * @param name name of the Pod - * @param namespace object name and auth scope, such as for teams and projects + * replace status of the specified Namespace + * @param name name of the Namespace + * @param body * @param pretty If \'true\', then the output is pretty printed. + * @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. */ - public readNamespacedPod(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNamespacedPod(name, namespace, pretty, _options); + public replaceNamespaceStatus(name: string, body: V1Namespace, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { + const result = this.api.replaceNamespaceStatus(name, body, pretty, dryRun, fieldManager, _options); return result.toPromise(); } /** - * read ephemeralcontainers of the specified Pod - * @param name name of the Pod + * replace the specified ConfigMap + * @param name name of the ConfigMap * @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. + * @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. */ - public readNamespacedPodEphemeralcontainers(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNamespacedPodEphemeralcontainers(name, namespace, pretty, _options); + public replaceNamespacedConfigMapWithHttpInfo(name: string, namespace: string, body: V1ConfigMap, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.replaceNamespacedConfigMapWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options); return result.toPromise(); } /** - * read log of the specified Pod - * @param name name of the Pod + * replace the specified ConfigMap + * @param name name of the ConfigMap * @param namespace object name and auth scope, such as for teams and projects - * @param container The container for which to stream logs. Defaults to only container if there is one container in the pod. - * @param follow Follow the log stream of the pod. Defaults to false. - * @param insecureSkipTLSVerifyBackend insecureSkipTLSVerifyBackend indicates that the apiserver should not confirm the validity of the serving certificate of the backend it is connecting to. This will make the HTTPS connection between the apiserver and the backend insecure. This means the apiserver cannot verify the log data it is receiving came from the real kubelet. If the kubelet is configured to verify the apiserver\'s TLS credentials, it does not mean the connection to the real kubelet is vulnerable to a man in the middle attack (e.g. an attacker could not intercept the actual log data coming from the real kubelet). - * @param limitBytes If set, the number of bytes to read from the server before terminating the log output. This may not display a complete final line of logging, and may return slightly more or slightly less than the specified limit. + * @param body * @param pretty If \'true\', then the output is pretty printed. - * @param previous Return previous terminated container logs. Defaults to false. - * @param sinceSeconds A relative time in seconds before the current time from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified. - * @param tailLines If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime - * @param timestamps If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false. + * @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. */ - public readNamespacedPodLog(name: string, namespace: string, container?: string, follow?: boolean, insecureSkipTLSVerifyBackend?: boolean, limitBytes?: number, pretty?: string, previous?: boolean, sinceSeconds?: number, tailLines?: number, timestamps?: boolean, _options?: Configuration): Promise { - const result = this.api.readNamespacedPodLog(name, namespace, container, follow, insecureSkipTLSVerifyBackend, limitBytes, pretty, previous, sinceSeconds, tailLines, timestamps, _options); + public replaceNamespacedConfigMap(name: string, namespace: string, body: V1ConfigMap, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { + const result = this.api.replaceNamespacedConfigMap(name, namespace, body, pretty, dryRun, fieldManager, _options); return result.toPromise(); } /** - * read status of the specified Pod - * @param name name of the Pod + * replace the specified Endpoints + * @param name name of the Endpoints * @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. + * @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. */ - public readNamespacedPodStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNamespacedPodStatus(name, namespace, pretty, _options); + public replaceNamespacedEndpointsWithHttpInfo(name: string, namespace: string, body: V1Endpoints, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.replaceNamespacedEndpointsWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options); return result.toPromise(); } /** - * read the specified PodTemplate - * @param name name of the PodTemplate + * replace the specified Endpoints + * @param name name of the Endpoints * @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. + * @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. */ - public readNamespacedPodTemplate(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNamespacedPodTemplate(name, namespace, pretty, _options); + public replaceNamespacedEndpoints(name: string, namespace: string, body: V1Endpoints, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { + const result = this.api.replaceNamespacedEndpoints(name, namespace, body, pretty, dryRun, fieldManager, _options); return result.toPromise(); } /** - * read the specified ReplicationController - * @param name name of the ReplicationController + * replace the specified Event + * @param name name of the Event * @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. + * @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. */ - public readNamespacedReplicationController(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNamespacedReplicationController(name, namespace, pretty, _options); + public replaceNamespacedEventWithHttpInfo(name: string, namespace: string, body: CoreV1Event, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.replaceNamespacedEventWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options); return result.toPromise(); } /** - * read scale of the specified ReplicationController - * @param name name of the Scale + * replace the specified Event + * @param name name of the Event * @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. + * @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. */ - public readNamespacedReplicationControllerScale(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNamespacedReplicationControllerScale(name, namespace, pretty, _options); + public replaceNamespacedEvent(name: string, namespace: string, body: CoreV1Event, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { + const result = this.api.replaceNamespacedEvent(name, namespace, body, pretty, dryRun, fieldManager, _options); return result.toPromise(); } /** - * read status of the specified ReplicationController - * @param name name of the ReplicationController + * replace the specified LimitRange + * @param name name of the LimitRange * @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. + * @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. */ - public readNamespacedReplicationControllerStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNamespacedReplicationControllerStatus(name, namespace, pretty, _options); + public replaceNamespacedLimitRangeWithHttpInfo(name: string, namespace: string, body: V1LimitRange, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.replaceNamespacedLimitRangeWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options); return result.toPromise(); } /** - * read the specified ResourceQuota - * @param name name of the ResourceQuota + * replace the specified LimitRange + * @param name name of the LimitRange * @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. + * @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. */ - public readNamespacedResourceQuota(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNamespacedResourceQuota(name, namespace, pretty, _options); + public replaceNamespacedLimitRange(name: string, namespace: string, body: V1LimitRange, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { + const result = this.api.replaceNamespacedLimitRange(name, namespace, body, pretty, dryRun, fieldManager, _options); return result.toPromise(); } /** - * read status of the specified ResourceQuota - * @param name name of the ResourceQuota + * replace the specified PersistentVolumeClaim + * @param name name of the PersistentVolumeClaim * @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. + * @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. */ - public readNamespacedResourceQuotaStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNamespacedResourceQuotaStatus(name, namespace, pretty, _options); + public replaceNamespacedPersistentVolumeClaimWithHttpInfo(name: string, namespace: string, body: V1PersistentVolumeClaim, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.replaceNamespacedPersistentVolumeClaimWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options); return result.toPromise(); } /** - * read the specified Secret - * @param name name of the Secret + * replace the specified PersistentVolumeClaim + * @param name name of the PersistentVolumeClaim * @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. + * @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. */ - public readNamespacedSecret(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNamespacedSecret(name, namespace, pretty, _options); + public replaceNamespacedPersistentVolumeClaim(name: string, namespace: string, body: V1PersistentVolumeClaim, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { + const result = this.api.replaceNamespacedPersistentVolumeClaim(name, namespace, body, pretty, dryRun, fieldManager, _options); return result.toPromise(); } /** - * read the specified Service - * @param name name of the Service + * replace status of the specified PersistentVolumeClaim + * @param name name of the PersistentVolumeClaim * @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. + * @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. */ - public readNamespacedService(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNamespacedService(name, namespace, pretty, _options); + public replaceNamespacedPersistentVolumeClaimStatusWithHttpInfo(name: string, namespace: string, body: V1PersistentVolumeClaim, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.replaceNamespacedPersistentVolumeClaimStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options); return result.toPromise(); } /** - * read the specified ServiceAccount - * @param name name of the ServiceAccount + * replace status of the specified PersistentVolumeClaim + * @param name name of the PersistentVolumeClaim * @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. + * @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. */ - public readNamespacedServiceAccount(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNamespacedServiceAccount(name, namespace, pretty, _options); + public replaceNamespacedPersistentVolumeClaimStatus(name: string, namespace: string, body: V1PersistentVolumeClaim, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { + const result = this.api.replaceNamespacedPersistentVolumeClaimStatus(name, namespace, body, pretty, dryRun, fieldManager, _options); return result.toPromise(); } /** - * read status of the specified Service - * @param name name of the Service + * replace the specified Pod + * @param name name of the Pod * @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. + * @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. */ - public readNamespacedServiceStatus(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNamespacedServiceStatus(name, namespace, pretty, _options); + public replaceNamespacedPodWithHttpInfo(name: string, namespace: string, body: V1Pod, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.replaceNamespacedPodWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options); return result.toPromise(); } /** - * read the specified Node - * @param name name of the Node + * replace the specified Pod + * @param name name of the Pod + * @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. + * @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. */ - public readNode(name: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNode(name, pretty, _options); + public replaceNamespacedPod(name: string, namespace: string, body: V1Pod, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { + const result = this.api.replaceNamespacedPod(name, namespace, body, pretty, dryRun, fieldManager, _options); return result.toPromise(); } /** - * read status of the specified Node - * @param name name of the Node + * replace ephemeralcontainers of the specified Pod + * @param name name of the Pod + * @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. + * @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. */ - public readNodeStatus(name: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readNodeStatus(name, pretty, _options); + public replaceNamespacedPodEphemeralcontainersWithHttpInfo(name: string, namespace: string, body: V1Pod, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.replaceNamespacedPodEphemeralcontainersWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options); return result.toPromise(); } /** - * read the specified PersistentVolume - * @param name name of the PersistentVolume + * replace ephemeralcontainers of the specified Pod + * @param name name of the Pod + * @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. + * @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. */ - public readPersistentVolume(name: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readPersistentVolume(name, pretty, _options); + public replaceNamespacedPodEphemeralcontainers(name: string, namespace: string, body: V1Pod, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { + const result = this.api.replaceNamespacedPodEphemeralcontainers(name, namespace, body, pretty, dryRun, fieldManager, _options); return result.toPromise(); } /** - * read status of the specified PersistentVolume - * @param name name of the PersistentVolume + * replace status of the specified Pod + * @param name name of the Pod + * @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. + * @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. */ - public readPersistentVolumeStatus(name: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readPersistentVolumeStatus(name, pretty, _options); + public replaceNamespacedPodStatusWithHttpInfo(name: string, namespace: string, body: V1Pod, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.replaceNamespacedPodStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options); return result.toPromise(); } /** - * replace the specified Namespace - * @param name name of the Namespace + * replace status of the specified Pod + * @param name name of the Pod + * @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. * @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. */ - public replaceNamespace(name: string, body: V1Namespace, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespace(name, body, pretty, dryRun, fieldManager, _options); + public replaceNamespacedPodStatus(name: string, namespace: string, body: V1Pod, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { + const result = this.api.replaceNamespacedPodStatus(name, namespace, body, pretty, dryRun, fieldManager, _options); return result.toPromise(); } /** - * replace finalize of the specified Namespace - * @param name name of the Namespace + * replace the specified PodTemplate + * @param name name of the PodTemplate + * @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. * @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 pretty If \'true\', then the output is pretty printed. */ - public replaceNamespaceFinalize(name: string, body: V1Namespace, dryRun?: string, fieldManager?: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespaceFinalize(name, body, dryRun, fieldManager, pretty, _options); + public replaceNamespacedPodTemplateWithHttpInfo(name: string, namespace: string, body: V1PodTemplate, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.replaceNamespacedPodTemplateWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options); return result.toPromise(); } /** - * replace status of the specified Namespace - * @param name name of the Namespace + * replace the specified PodTemplate + * @param name name of the PodTemplate + * @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. * @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. */ - public replaceNamespaceStatus(name: string, body: V1Namespace, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespaceStatus(name, body, pretty, dryRun, fieldManager, _options); + public replaceNamespacedPodTemplate(name: string, namespace: string, body: V1PodTemplate, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { + const result = this.api.replaceNamespacedPodTemplate(name, namespace, body, pretty, dryRun, fieldManager, _options); return result.toPromise(); } /** - * replace the specified ConfigMap - * @param name name of the ConfigMap + * replace the specified ReplicationController + * @param name name of the ReplicationController * @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. * @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. */ - public replaceNamespacedConfigMap(name: string, namespace: string, body: V1ConfigMap, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespacedConfigMap(name, namespace, body, pretty, dryRun, fieldManager, _options); + public replaceNamespacedReplicationControllerWithHttpInfo(name: string, namespace: string, body: V1ReplicationController, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.replaceNamespacedReplicationControllerWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options); return result.toPromise(); } /** - * replace the specified Endpoints - * @param name name of the Endpoints + * replace the specified ReplicationController + * @param name name of the ReplicationController * @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. * @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. */ - public replaceNamespacedEndpoints(name: string, namespace: string, body: V1Endpoints, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespacedEndpoints(name, namespace, body, pretty, dryRun, fieldManager, _options); + public replaceNamespacedReplicationController(name: string, namespace: string, body: V1ReplicationController, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { + const result = this.api.replaceNamespacedReplicationController(name, namespace, body, pretty, dryRun, fieldManager, _options); return result.toPromise(); } /** - * replace the specified Event - * @param name name of the Event + * replace scale of the specified ReplicationController + * @param name name of the Scale * @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. * @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. */ - public replaceNamespacedEvent(name: string, namespace: string, body: CoreV1Event, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespacedEvent(name, namespace, body, pretty, dryRun, fieldManager, _options); + public replaceNamespacedReplicationControllerScaleWithHttpInfo(name: string, namespace: string, body: V1Scale, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.replaceNamespacedReplicationControllerScaleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options); return result.toPromise(); } /** - * replace the specified LimitRange - * @param name name of the LimitRange + * replace scale of the specified ReplicationController + * @param name name of the Scale * @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. * @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. */ - public replaceNamespacedLimitRange(name: string, namespace: string, body: V1LimitRange, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespacedLimitRange(name, namespace, body, pretty, dryRun, fieldManager, _options); + public replaceNamespacedReplicationControllerScale(name: string, namespace: string, body: V1Scale, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { + const result = this.api.replaceNamespacedReplicationControllerScale(name, namespace, body, pretty, dryRun, fieldManager, _options); return result.toPromise(); } /** - * replace the specified PersistentVolumeClaim - * @param name name of the PersistentVolumeClaim + * replace status of the specified ReplicationController + * @param name name of the ReplicationController * @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. * @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. */ - public replaceNamespacedPersistentVolumeClaim(name: string, namespace: string, body: V1PersistentVolumeClaim, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespacedPersistentVolumeClaim(name, namespace, body, pretty, dryRun, fieldManager, _options); + public replaceNamespacedReplicationControllerStatusWithHttpInfo(name: string, namespace: string, body: V1ReplicationController, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.replaceNamespacedReplicationControllerStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options); return result.toPromise(); } /** - * replace status of the specified PersistentVolumeClaim - * @param name name of the PersistentVolumeClaim + * replace status of the specified ReplicationController + * @param name name of the ReplicationController * @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. * @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. */ - public replaceNamespacedPersistentVolumeClaimStatus(name: string, namespace: string, body: V1PersistentVolumeClaim, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespacedPersistentVolumeClaimStatus(name, namespace, body, pretty, dryRun, fieldManager, _options); + public replaceNamespacedReplicationControllerStatus(name: string, namespace: string, body: V1ReplicationController, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { + const result = this.api.replaceNamespacedReplicationControllerStatus(name, namespace, body, pretty, dryRun, fieldManager, _options); return result.toPromise(); } /** - * replace the specified Pod - * @param name name of the Pod + * replace the specified ResourceQuota + * @param name name of the ResourceQuota * @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. * @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. */ - public replaceNamespacedPod(name: string, namespace: string, body: V1Pod, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespacedPod(name, namespace, body, pretty, dryRun, fieldManager, _options); + public replaceNamespacedResourceQuotaWithHttpInfo(name: string, namespace: string, body: V1ResourceQuota, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.replaceNamespacedResourceQuotaWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options); return result.toPromise(); } /** - * replace ephemeralcontainers of the specified Pod - * @param name name of the Pod + * replace the specified ResourceQuota + * @param name name of the ResourceQuota * @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. * @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. */ - public replaceNamespacedPodEphemeralcontainers(name: string, namespace: string, body: V1Pod, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespacedPodEphemeralcontainers(name, namespace, body, pretty, dryRun, fieldManager, _options); + public replaceNamespacedResourceQuota(name: string, namespace: string, body: V1ResourceQuota, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { + const result = this.api.replaceNamespacedResourceQuota(name, namespace, body, pretty, dryRun, fieldManager, _options); return result.toPromise(); } /** - * replace status of the specified Pod - * @param name name of the Pod + * replace status of the specified ResourceQuota + * @param name name of the ResourceQuota * @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. * @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. */ - public replaceNamespacedPodStatus(name: string, namespace: string, body: V1Pod, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespacedPodStatus(name, namespace, body, pretty, dryRun, fieldManager, _options); + public replaceNamespacedResourceQuotaStatusWithHttpInfo(name: string, namespace: string, body: V1ResourceQuota, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.replaceNamespacedResourceQuotaStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options); return result.toPromise(); } /** - * replace the specified PodTemplate - * @param name name of the PodTemplate + * replace status of the specified ResourceQuota + * @param name name of the ResourceQuota * @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. * @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. */ - public replaceNamespacedPodTemplate(name: string, namespace: string, body: V1PodTemplate, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespacedPodTemplate(name, namespace, body, pretty, dryRun, fieldManager, _options); + public replaceNamespacedResourceQuotaStatus(name: string, namespace: string, body: V1ResourceQuota, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { + const result = this.api.replaceNamespacedResourceQuotaStatus(name, namespace, body, pretty, dryRun, fieldManager, _options); return result.toPromise(); } /** - * replace the specified ReplicationController - * @param name name of the ReplicationController + * replace the specified Secret + * @param name name of the Secret * @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. * @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. */ - public replaceNamespacedReplicationController(name: string, namespace: string, body: V1ReplicationController, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespacedReplicationController(name, namespace, body, pretty, dryRun, fieldManager, _options); + public replaceNamespacedSecretWithHttpInfo(name: string, namespace: string, body: V1Secret, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.replaceNamespacedSecretWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options); return result.toPromise(); } /** - * replace scale of the specified ReplicationController - * @param name name of the Scale + * replace the specified Secret + * @param name name of the Secret * @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. * @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. */ - public replaceNamespacedReplicationControllerScale(name: string, namespace: string, body: V1Scale, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespacedReplicationControllerScale(name, namespace, body, pretty, dryRun, fieldManager, _options); + public replaceNamespacedSecret(name: string, namespace: string, body: V1Secret, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { + const result = this.api.replaceNamespacedSecret(name, namespace, body, pretty, dryRun, fieldManager, _options); return result.toPromise(); } /** - * replace status of the specified ReplicationController - * @param name name of the ReplicationController + * replace the specified Service + * @param name name of the Service * @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. * @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. */ - public replaceNamespacedReplicationControllerStatus(name: string, namespace: string, body: V1ReplicationController, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespacedReplicationControllerStatus(name, namespace, body, pretty, dryRun, fieldManager, _options); + public replaceNamespacedServiceWithHttpInfo(name: string, namespace: string, body: V1Service, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.replaceNamespacedServiceWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options); return result.toPromise(); } /** - * replace the specified ResourceQuota - * @param name name of the ResourceQuota + * replace the specified Service + * @param name name of the Service * @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. * @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. */ - public replaceNamespacedResourceQuota(name: string, namespace: string, body: V1ResourceQuota, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespacedResourceQuota(name, namespace, body, pretty, dryRun, fieldManager, _options); + public replaceNamespacedService(name: string, namespace: string, body: V1Service, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { + const result = this.api.replaceNamespacedService(name, namespace, body, pretty, dryRun, fieldManager, _options); return result.toPromise(); } /** - * replace status of the specified ResourceQuota - * @param name name of the ResourceQuota + * replace the specified ServiceAccount + * @param name name of the ServiceAccount * @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. * @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. */ - public replaceNamespacedResourceQuotaStatus(name: string, namespace: string, body: V1ResourceQuota, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespacedResourceQuotaStatus(name, namespace, body, pretty, dryRun, fieldManager, _options); + public replaceNamespacedServiceAccountWithHttpInfo(name: string, namespace: string, body: V1ServiceAccount, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.replaceNamespacedServiceAccountWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options); return result.toPromise(); } /** - * replace the specified Secret - * @param name name of the Secret + * replace the specified ServiceAccount + * @param name name of the ServiceAccount * @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. * @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. */ - public replaceNamespacedSecret(name: string, namespace: string, body: V1Secret, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespacedSecret(name, namespace, body, pretty, dryRun, fieldManager, _options); + public replaceNamespacedServiceAccount(name: string, namespace: string, body: V1ServiceAccount, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { + const result = this.api.replaceNamespacedServiceAccount(name, namespace, body, pretty, dryRun, fieldManager, _options); return result.toPromise(); } /** - * replace the specified Service + * replace status of the specified Service * @param name name of the Service * @param namespace object name and auth scope, such as for teams and projects * @param body @@ -6779,36 +12590,35 @@ export class PromiseCoreV1Api { * @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. */ - public replaceNamespacedService(name: string, namespace: string, body: V1Service, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespacedService(name, namespace, body, pretty, dryRun, fieldManager, _options); + public replaceNamespacedServiceStatusWithHttpInfo(name: string, namespace: string, body: V1Service, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.replaceNamespacedServiceStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options); return result.toPromise(); } /** - * replace the specified ServiceAccount - * @param name name of the ServiceAccount + * replace status of the specified Service + * @param name name of the Service * @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. * @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. */ - public replaceNamespacedServiceAccount(name: string, namespace: string, body: V1ServiceAccount, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespacedServiceAccount(name, namespace, body, pretty, dryRun, fieldManager, _options); + public replaceNamespacedServiceStatus(name: string, namespace: string, body: V1Service, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { + const result = this.api.replaceNamespacedServiceStatus(name, namespace, body, pretty, dryRun, fieldManager, _options); return result.toPromise(); } /** - * replace status of the specified Service - * @param name name of the Service - * @param namespace object name and auth scope, such as for teams and projects + * replace the specified Node + * @param name name of the Node * @param body * @param pretty If \'true\', then the output is pretty printed. * @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. */ - public replaceNamespacedServiceStatus(name: string, namespace: string, body: V1Service, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespacedServiceStatus(name, namespace, body, pretty, dryRun, fieldManager, _options); + public replaceNodeWithHttpInfo(name: string, body: V1Node, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.replaceNodeWithHttpInfo(name, body, pretty, dryRun, fieldManager, _options); return result.toPromise(); } @@ -6825,6 +12635,19 @@ export class PromiseCoreV1Api { return result.toPromise(); } + /** + * replace status of the specified Node + * @param name name of the Node + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public replaceNodeStatusWithHttpInfo(name: string, body: V1Node, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.replaceNodeStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + /** * replace status of the specified Node * @param name name of the Node @@ -6838,6 +12661,19 @@ export class PromiseCoreV1Api { return result.toPromise(); } + /** + * replace the specified PersistentVolume + * @param name name of the PersistentVolume + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public replacePersistentVolumeWithHttpInfo(name: string, body: V1PersistentVolume, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.replacePersistentVolumeWithHttpInfo(name, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + /** * replace the specified PersistentVolume * @param name name of the PersistentVolume @@ -6851,6 +12687,19 @@ export class PromiseCoreV1Api { return result.toPromise(); } + /** + * replace status of the specified PersistentVolume + * @param name name of the PersistentVolume + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public replacePersistentVolumeStatusWithHttpInfo(name: string, body: V1PersistentVolume, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.replacePersistentVolumeStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + /** * replace status of the specified PersistentVolume * @param name name of the PersistentVolume @@ -6883,6 +12732,21 @@ export class PromiseCustomObjectsApi { this.api = new ObservableCustomObjectsApi(configuration, requestFactory, responseProcessor); } + /** + * Creates a cluster scoped Custom object + * @param group The custom resource\'s group name + * @param version The custom resource\'s version + * @param plural The custom resource\'s plural name. For TPRs this would be lowercase plural kind. + * @param body The JSON schema of the Resource to create. + * @param pretty If \'true\', then the output is pretty printed. + * @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). + */ + public createClusterCustomObjectWithHttpInfo(group: string, version: string, plural: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.createClusterCustomObjectWithHttpInfo(group, version, plural, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + /** * Creates a cluster scoped Custom object * @param group The custom resource\'s group name @@ -6898,6 +12762,22 @@ export class PromiseCustomObjectsApi { return result.toPromise(); } + /** + * Creates a namespace scoped Custom object + * @param group The custom resource\'s group name + * @param version The custom resource\'s version + * @param namespace The custom resource\'s namespace + * @param plural The custom resource\'s plural name. For TPRs this would be lowercase plural kind. + * @param body The JSON schema of the Resource to create. + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public createNamespacedCustomObjectWithHttpInfo(group: string, version: string, namespace: string, plural: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.createNamespacedCustomObjectWithHttpInfo(group, version, namespace, plural, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + /** * Creates a namespace scoped Custom object * @param group The custom resource\'s group name @@ -6914,6 +12794,23 @@ export class PromiseCustomObjectsApi { return result.toPromise(); } + /** + * Deletes the specified cluster scoped custom object + * @param group the custom resource\'s group + * @param version the custom resource\'s version + * @param plural the custom object\'s plural name. For TPRs this would be lowercase plural kind. + * @param name the custom object\'s name + * @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 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. + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param body + */ + public deleteClusterCustomObjectWithHttpInfo(group: string, version: string, plural: string, name: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, dryRun?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteClusterCustomObjectWithHttpInfo(group, version, plural, name, gracePeriodSeconds, orphanDependents, propagationPolicy, dryRun, body, _options); + return result.toPromise(); + } + /** * Deletes the specified cluster scoped custom object * @param group the custom resource\'s group @@ -6931,6 +12828,23 @@ export class PromiseCustomObjectsApi { return result.toPromise(); } + /** + * Delete collection of cluster scoped custom objects + * @param group The custom resource\'s group name + * @param version The custom resource\'s version + * @param plural The custom resource\'s plural name. For TPRs this would be lowercase plural kind. + * @param pretty If \'true\', then the output is pretty printed. + * @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 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. + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param body + */ + public deleteCollectionClusterCustomObjectWithHttpInfo(group: string, version: string, plural: string, pretty?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, dryRun?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteCollectionClusterCustomObjectWithHttpInfo(group, version, plural, pretty, gracePeriodSeconds, orphanDependents, propagationPolicy, dryRun, body, _options); + return result.toPromise(); + } + /** * Delete collection of cluster scoped custom objects * @param group The custom resource\'s group name @@ -6948,6 +12862,24 @@ export class PromiseCustomObjectsApi { return result.toPromise(); } + /** + * Delete collection of namespace scoped custom objects + * @param group The custom resource\'s group name + * @param version The custom resource\'s version + * @param namespace The custom resource\'s namespace + * @param plural The custom resource\'s plural name. For TPRs this would be lowercase plural kind. + * @param pretty If \'true\', then the output is pretty printed. + * @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 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. + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param body + */ + public deleteCollectionNamespacedCustomObjectWithHttpInfo(group: string, version: string, namespace: string, plural: string, pretty?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, dryRun?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteCollectionNamespacedCustomObjectWithHttpInfo(group, version, namespace, plural, pretty, gracePeriodSeconds, orphanDependents, propagationPolicy, dryRun, body, _options); + return result.toPromise(); + } + /** * Delete collection of namespace scoped custom objects * @param group The custom resource\'s group name @@ -6966,6 +12898,24 @@ export class PromiseCustomObjectsApi { return result.toPromise(); } + /** + * Deletes the specified namespace scoped custom object + * @param group the custom resource\'s group + * @param version the custom resource\'s version + * @param namespace The custom resource\'s namespace + * @param plural the custom resource\'s plural name. For TPRs this would be lowercase plural kind. + * @param name the custom object\'s name + * @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 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. + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + * @param body + */ + public deleteNamespacedCustomObjectWithHttpInfo(group: string, version: string, namespace: string, plural: string, name: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, dryRun?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteNamespacedCustomObjectWithHttpInfo(group, version, namespace, plural, name, gracePeriodSeconds, orphanDependents, propagationPolicy, dryRun, body, _options); + return result.toPromise(); + } + /** * Deletes the specified namespace scoped custom object * @param group the custom resource\'s group @@ -6984,6 +12934,16 @@ export class PromiseCustomObjectsApi { return result.toPromise(); } + /** + * get available resources + * @param group The custom resource\'s group name + * @param version The custom resource\'s version + */ + public getAPIResourcesWithHttpInfo(group: string, version: string, _options?: Configuration): Promise> { + const result = this.api.getAPIResourcesWithHttpInfo(group, version, _options); + return result.toPromise(); + } + /** * get available resources * @param group The custom resource\'s group name @@ -6994,6 +12954,18 @@ export class PromiseCustomObjectsApi { return result.toPromise(); } + /** + * Returns a cluster scoped custom object + * @param group the custom resource\'s group + * @param version the custom resource\'s version + * @param plural the custom object\'s plural name. For TPRs this would be lowercase plural kind. + * @param name the custom object\'s name + */ + public getClusterCustomObjectWithHttpInfo(group: string, version: string, plural: string, name: string, _options?: Configuration): Promise> { + const result = this.api.getClusterCustomObjectWithHttpInfo(group, version, plural, name, _options); + return result.toPromise(); + } + /** * Returns a cluster scoped custom object * @param group the custom resource\'s group @@ -7006,6 +12978,18 @@ export class PromiseCustomObjectsApi { return result.toPromise(); } + /** + * read scale of the specified custom object + * @param group the custom resource\'s group + * @param version the custom resource\'s version + * @param plural the custom resource\'s plural name. For TPRs this would be lowercase plural kind. + * @param name the custom object\'s name + */ + public getClusterCustomObjectScaleWithHttpInfo(group: string, version: string, plural: string, name: string, _options?: Configuration): Promise> { + const result = this.api.getClusterCustomObjectScaleWithHttpInfo(group, version, plural, name, _options); + return result.toPromise(); + } + /** * read scale of the specified custom object * @param group the custom resource\'s group @@ -7018,6 +13002,18 @@ export class PromiseCustomObjectsApi { return result.toPromise(); } + /** + * read status of the specified cluster scoped custom object + * @param group the custom resource\'s group + * @param version the custom resource\'s version + * @param plural the custom resource\'s plural name. For TPRs this would be lowercase plural kind. + * @param name the custom object\'s name + */ + public getClusterCustomObjectStatusWithHttpInfo(group: string, version: string, plural: string, name: string, _options?: Configuration): Promise> { + const result = this.api.getClusterCustomObjectStatusWithHttpInfo(group, version, plural, name, _options); + return result.toPromise(); + } + /** * read status of the specified cluster scoped custom object * @param group the custom resource\'s group @@ -7030,6 +13026,19 @@ export class PromiseCustomObjectsApi { return result.toPromise(); } + /** + * Returns a namespace scoped custom object + * @param group the custom resource\'s group + * @param version the custom resource\'s version + * @param namespace The custom resource\'s namespace + * @param plural the custom resource\'s plural name. For TPRs this would be lowercase plural kind. + * @param name the custom object\'s name + */ + public getNamespacedCustomObjectWithHttpInfo(group: string, version: string, namespace: string, plural: string, name: string, _options?: Configuration): Promise> { + const result = this.api.getNamespacedCustomObjectWithHttpInfo(group, version, namespace, plural, name, _options); + return result.toPromise(); + } + /** * Returns a namespace scoped custom object * @param group the custom resource\'s group @@ -7051,28 +13060,97 @@ export class PromiseCustomObjectsApi { * @param plural the custom resource\'s plural name. For TPRs this would be lowercase plural kind. * @param name the custom object\'s name */ - public getNamespacedCustomObjectScale(group: string, version: string, namespace: string, plural: string, name: string, _options?: Configuration): Promise { - const result = this.api.getNamespacedCustomObjectScale(group, version, namespace, plural, name, _options); + public getNamespacedCustomObjectScaleWithHttpInfo(group: string, version: string, namespace: string, plural: string, name: string, _options?: Configuration): Promise> { + const result = this.api.getNamespacedCustomObjectScaleWithHttpInfo(group, version, namespace, plural, name, _options); + return result.toPromise(); + } + + /** + * read scale of the specified namespace scoped custom object + * @param group the custom resource\'s group + * @param version the custom resource\'s version + * @param namespace The custom resource\'s namespace + * @param plural the custom resource\'s plural name. For TPRs this would be lowercase plural kind. + * @param name the custom object\'s name + */ + public getNamespacedCustomObjectScale(group: string, version: string, namespace: string, plural: string, name: string, _options?: Configuration): Promise { + const result = this.api.getNamespacedCustomObjectScale(group, version, namespace, plural, name, _options); + return result.toPromise(); + } + + /** + * read status of the specified namespace scoped custom object + * @param group the custom resource\'s group + * @param version the custom resource\'s version + * @param namespace The custom resource\'s namespace + * @param plural the custom resource\'s plural name. For TPRs this would be lowercase plural kind. + * @param name the custom object\'s name + */ + public getNamespacedCustomObjectStatusWithHttpInfo(group: string, version: string, namespace: string, plural: string, name: string, _options?: Configuration): Promise> { + const result = this.api.getNamespacedCustomObjectStatusWithHttpInfo(group, version, namespace, plural, name, _options); + return result.toPromise(); + } + + /** + * read status of the specified namespace scoped custom object + * @param group the custom resource\'s group + * @param version the custom resource\'s version + * @param namespace The custom resource\'s namespace + * @param plural the custom resource\'s plural name. For TPRs this would be lowercase plural kind. + * @param name the custom object\'s name + */ + public getNamespacedCustomObjectStatus(group: string, version: string, namespace: string, plural: string, name: string, _options?: Configuration): Promise { + const result = this.api.getNamespacedCustomObjectStatus(group, version, namespace, plural, name, _options); + return result.toPromise(); + } + + /** + * list or watch cluster scoped custom objects + * @param group The custom resource\'s group name + * @param version The custom resource\'s version + * @param plural The custom resource\'s plural name. For TPRs this would be lowercase plural kind. + * @param pretty If \'true\', then the output is pretty printed. + * @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. If the feature gate WatchBookmarks is not enabled in apiserver, 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 When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it\'s 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. + */ + public listClusterCustomObjectWithHttpInfo(group: string, version: string, plural: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { + const result = this.api.listClusterCustomObjectWithHttpInfo(group, version, plural, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); return result.toPromise(); } /** - * read status of the specified namespace scoped custom object - * @param group the custom resource\'s group - * @param version the custom resource\'s version - * @param namespace The custom resource\'s namespace - * @param plural the custom resource\'s plural name. For TPRs this would be lowercase plural kind. - * @param name the custom object\'s name + * list or watch cluster scoped custom objects + * @param group The custom resource\'s group name + * @param version The custom resource\'s version + * @param plural The custom resource\'s plural name. For TPRs this would be lowercase plural kind. + * @param pretty If \'true\', then the output is pretty printed. + * @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. If the feature gate WatchBookmarks is not enabled in apiserver, 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 When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it\'s 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. */ - public getNamespacedCustomObjectStatus(group: string, version: string, namespace: string, plural: string, name: string, _options?: Configuration): Promise { - const result = this.api.getNamespacedCustomObjectStatus(group, version, namespace, plural, name, _options); + public listClusterCustomObject(group: string, version: string, plural: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + const result = this.api.listClusterCustomObject(group, version, plural, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); return result.toPromise(); } /** - * list or watch cluster scoped custom objects + * list or watch namespace scoped custom objects * @param group The custom resource\'s group name * @param version The custom resource\'s version + * @param namespace The custom resource\'s namespace * @param plural The custom resource\'s plural name. For TPRs this would be lowercase plural kind. * @param pretty If \'true\', then the output is pretty printed. * @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. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. @@ -7085,8 +13163,8 @@ export class PromiseCustomObjectsApi { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. */ - public listClusterCustomObject(group: string, version: string, plural: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { - const result = this.api.listClusterCustomObject(group, version, plural, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + public listNamespacedCustomObjectWithHttpInfo(group: string, version: string, namespace: string, plural: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { + const result = this.api.listNamespacedCustomObjectWithHttpInfo(group, version, namespace, plural, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); return result.toPromise(); } @@ -7112,6 +13190,22 @@ export class PromiseCustomObjectsApi { return result.toPromise(); } + /** + * patch the specified cluster scoped custom object + * @param group the custom resource\'s group + * @param version the custom resource\'s version + * @param plural the custom object\'s plural name. For TPRs this would be lowercase plural kind. + * @param name the custom object\'s name + * @param body The JSON schema of the Resource to patch. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise> { + const result = this.api.patchClusterCustomObjectWithHttpInfo(group, version, plural, name, body, dryRun, fieldManager, force, _options); + return result.toPromise(); + } + /** * patch the specified cluster scoped custom object * @param group the custom resource\'s group @@ -7128,6 +13222,22 @@ export class PromiseCustomObjectsApi { return result.toPromise(); } + /** + * partially update scale of the specified cluster scoped custom object + * @param group the custom resource\'s group + * @param version the custom resource\'s version + * @param plural the custom resource\'s plural name. For TPRs this would be lowercase plural kind. + * @param name the custom object\'s name + * @param body + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise> { + const result = this.api.patchClusterCustomObjectScaleWithHttpInfo(group, version, plural, name, body, dryRun, fieldManager, force, _options); + return result.toPromise(); + } + /** * partially update scale of the specified cluster scoped custom object * @param group the custom resource\'s group @@ -7144,6 +13254,22 @@ export class PromiseCustomObjectsApi { return result.toPromise(); } + /** + * partially update status of the specified cluster scoped custom object + * @param group the custom resource\'s group + * @param version the custom resource\'s version + * @param plural the custom resource\'s plural name. For TPRs this would be lowercase plural kind. + * @param name the custom object\'s name + * @param body + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise> { + const result = this.api.patchClusterCustomObjectStatusWithHttpInfo(group, version, plural, name, body, dryRun, fieldManager, force, _options); + return result.toPromise(); + } + /** * partially update status of the specified cluster scoped custom object * @param group the custom resource\'s group @@ -7160,6 +13286,23 @@ export class PromiseCustomObjectsApi { return result.toPromise(); } + /** + * patch the specified namespace scoped custom object + * @param group the custom resource\'s group + * @param version the custom resource\'s version + * @param namespace The custom resource\'s namespace + * @param plural the custom resource\'s plural name. For TPRs this would be lowercase plural kind. + * @param name the custom object\'s name + * @param body The JSON schema of the Resource to patch. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise> { + const result = this.api.patchNamespacedCustomObjectWithHttpInfo(group, version, namespace, plural, name, body, dryRun, fieldManager, force, _options); + return result.toPromise(); + } + /** * patch the specified namespace scoped custom object * @param group the custom resource\'s group @@ -7177,6 +13320,23 @@ export class PromiseCustomObjectsApi { return result.toPromise(); } + /** + * partially update scale of the specified namespace scoped custom object + * @param group the custom resource\'s group + * @param version the custom resource\'s version + * @param namespace The custom resource\'s namespace + * @param plural the custom resource\'s plural name. For TPRs this would be lowercase plural kind. + * @param name the custom object\'s name + * @param body + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise> { + const result = this.api.patchNamespacedCustomObjectScaleWithHttpInfo(group, version, namespace, plural, name, body, dryRun, fieldManager, force, _options); + return result.toPromise(); + } + /** * partially update scale of the specified namespace scoped custom object * @param group the custom resource\'s group @@ -7194,6 +13354,23 @@ export class PromiseCustomObjectsApi { return result.toPromise(); } + /** + * partially update status of the specified namespace scoped custom object + * @param group the custom resource\'s group + * @param version the custom resource\'s version + * @param namespace The custom resource\'s namespace + * @param plural the custom resource\'s plural name. For TPRs this would be lowercase plural kind. + * @param name the custom object\'s name + * @param body + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise> { + const result = this.api.patchNamespacedCustomObjectStatusWithHttpInfo(group, version, namespace, plural, name, body, dryRun, fieldManager, force, _options); + return result.toPromise(); + } + /** * partially update status of the specified namespace scoped custom object * @param group the custom resource\'s group @@ -7211,6 +13388,21 @@ export class PromiseCustomObjectsApi { return result.toPromise(); } + /** + * replace the specified cluster scoped custom object + * @param group the custom resource\'s group + * @param version the custom resource\'s version + * @param plural the custom object\'s plural name. For TPRs this would be lowercase plural kind. + * @param name the custom object\'s name + * @param body The JSON schema of the Resource to replace. + * @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. + */ + public replaceClusterCustomObjectWithHttpInfo(group: string, version: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.replaceClusterCustomObjectWithHttpInfo(group, version, plural, name, body, dryRun, fieldManager, _options); + return result.toPromise(); + } + /** * replace the specified cluster scoped custom object * @param group the custom resource\'s group @@ -7226,6 +13418,21 @@ export class PromiseCustomObjectsApi { return result.toPromise(); } + /** + * replace scale of the specified cluster scoped custom object + * @param group the custom resource\'s group + * @param version the custom resource\'s version + * @param plural the custom resource\'s plural name. For TPRs this would be lowercase plural kind. + * @param name the custom object\'s name + * @param body + * @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. + */ + public replaceClusterCustomObjectScaleWithHttpInfo(group: string, version: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.replaceClusterCustomObjectScaleWithHttpInfo(group, version, plural, name, body, dryRun, fieldManager, _options); + return result.toPromise(); + } + /** * replace scale of the specified cluster scoped custom object * @param group the custom resource\'s group @@ -7241,6 +13448,21 @@ export class PromiseCustomObjectsApi { return result.toPromise(); } + /** + * replace status of the cluster scoped specified custom object + * @param group the custom resource\'s group + * @param version the custom resource\'s version + * @param plural the custom resource\'s plural name. For TPRs this would be lowercase plural kind. + * @param name the custom object\'s name + * @param body + * @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. + */ + public replaceClusterCustomObjectStatusWithHttpInfo(group: string, version: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.replaceClusterCustomObjectStatusWithHttpInfo(group, version, plural, name, body, dryRun, fieldManager, _options); + return result.toPromise(); + } + /** * replace status of the cluster scoped specified custom object * @param group the custom resource\'s group @@ -7256,6 +13478,22 @@ export class PromiseCustomObjectsApi { return result.toPromise(); } + /** + * replace the specified namespace scoped custom object + * @param group the custom resource\'s group + * @param version the custom resource\'s version + * @param namespace The custom resource\'s namespace + * @param plural the custom resource\'s plural name. For TPRs this would be lowercase plural kind. + * @param name the custom object\'s name + * @param body The JSON schema of the Resource to replace. + * @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. + */ + public replaceNamespacedCustomObjectWithHttpInfo(group: string, version: string, namespace: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.replaceNamespacedCustomObjectWithHttpInfo(group, version, namespace, plural, name, body, dryRun, fieldManager, _options); + return result.toPromise(); + } + /** * replace the specified namespace scoped custom object * @param group the custom resource\'s group @@ -7272,6 +13510,22 @@ export class PromiseCustomObjectsApi { return result.toPromise(); } + /** + * replace scale of the specified namespace scoped custom object + * @param group the custom resource\'s group + * @param version the custom resource\'s version + * @param namespace The custom resource\'s namespace + * @param plural the custom resource\'s plural name. For TPRs this would be lowercase plural kind. + * @param name the custom object\'s name + * @param body + * @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. + */ + public replaceNamespacedCustomObjectScaleWithHttpInfo(group: string, version: string, namespace: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.replaceNamespacedCustomObjectScaleWithHttpInfo(group, version, namespace, plural, name, body, dryRun, fieldManager, _options); + return result.toPromise(); + } + /** * replace scale of the specified namespace scoped custom object * @param group the custom resource\'s group @@ -7288,6 +13542,22 @@ export class PromiseCustomObjectsApi { return result.toPromise(); } + /** + * replace status of the specified namespace scoped custom object + * @param group the custom resource\'s group + * @param version the custom resource\'s version + * @param namespace The custom resource\'s namespace + * @param plural the custom resource\'s plural name. For TPRs this would be lowercase plural kind. + * @param name the custom object\'s name + * @param body + * @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. + */ + public replaceNamespacedCustomObjectStatusWithHttpInfo(group: string, version: string, namespace: string, plural: string, name: string, body: any, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.replaceNamespacedCustomObjectStatusWithHttpInfo(group, version, namespace, plural, name, body, dryRun, fieldManager, _options); + return result.toPromise(); + } + /** * replace status of the specified namespace scoped custom object * @param group the custom resource\'s group @@ -7323,6 +13593,14 @@ export class PromiseDiscoveryApi { this.api = new ObservableDiscoveryApi(configuration, requestFactory, responseProcessor); } + /** + * get information of a group + */ + public getAPIGroupWithHttpInfo(_options?: Configuration): Promise> { + const result = this.api.getAPIGroupWithHttpInfo(_options); + return result.toPromise(); + } + /** * get information of a group */ @@ -7350,6 +13628,19 @@ export class PromiseDiscoveryV1Api { this.api = new ObservableDiscoveryV1Api(configuration, requestFactory, responseProcessor); } + /** + * create an EndpointSlice + * @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. + * @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. + */ + public createNamespacedEndpointSliceWithHttpInfo(namespace: string, body: V1EndpointSlice, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.createNamespacedEndpointSliceWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + /** * create an EndpointSlice * @param namespace object name and auth scope, such as for teams and projects @@ -7375,13 +13666,51 @@ export class PromiseDiscoveryV1Api { * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionNamespacedEndpointSliceWithHttpInfo(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteCollectionNamespacedEndpointSliceWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + return result.toPromise(); + } + + /** + * delete collection of EndpointSlice + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionNamespacedEndpointSlice(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { + const result = this.api.deleteCollectionNamespacedEndpointSlice(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + return result.toPromise(); + } + + /** + * delete an EndpointSlice + * @param name name of the EndpointSlice + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteCollectionNamespacedEndpointSlice(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteCollectionNamespacedEndpointSlice(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + public deleteNamespacedEndpointSliceWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteNamespacedEndpointSliceWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); return result.toPromise(); } @@ -7401,6 +13730,14 @@ export class PromiseDiscoveryV1Api { return result.toPromise(); } + /** + * get available resources + */ + public getAPIResourcesWithHttpInfo(_options?: Configuration): Promise> { + const result = this.api.getAPIResourcesWithHttpInfo(_options); + return result.toPromise(); + } + /** * get available resources */ @@ -7409,6 +13746,24 @@ export class PromiseDiscoveryV1Api { return result.toPromise(); } + /** + * list or watch objects of kind EndpointSlice + * @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. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { + const result = this.api.listEndpointSliceForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + /** * list or watch objects of kind EndpointSlice * @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. @@ -7427,6 +13782,25 @@ export class PromiseDiscoveryV1Api { return result.toPromise(); } + /** + * list or watch objects of kind EndpointSlice + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { + const result = this.api.listNamespacedEndpointSliceWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + /** * list or watch objects of kind EndpointSlice * @param namespace object name and auth scope, such as for teams and projects @@ -7446,6 +13820,21 @@ export class PromiseDiscoveryV1Api { return result.toPromise(); } + /** + * partially update the specified EndpointSlice + * @param name name of the EndpointSlice + * @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. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise> { + const result = this.api.patchNamespacedEndpointSliceWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options); + return result.toPromise(); + } + /** * partially update the specified EndpointSlice * @param name name of the EndpointSlice @@ -7461,6 +13850,17 @@ export class PromiseDiscoveryV1Api { return result.toPromise(); } + /** + * read the specified EndpointSlice + * @param name name of the EndpointSlice + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + */ + public readNamespacedEndpointSliceWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.readNamespacedEndpointSliceWithHttpInfo(name, namespace, pretty, _options); + return result.toPromise(); + } + /** * read the specified EndpointSlice * @param name name of the EndpointSlice @@ -7472,6 +13872,20 @@ export class PromiseDiscoveryV1Api { return result.toPromise(); } + /** + * replace the specified EndpointSlice + * @param name name of the EndpointSlice + * @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. + * @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. + */ + public replaceNamespacedEndpointSliceWithHttpInfo(name: string, namespace: string, body: V1EndpointSlice, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.replaceNamespacedEndpointSliceWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + /** * replace the specified EndpointSlice * @param name name of the EndpointSlice @@ -7505,6 +13919,19 @@ export class PromiseDiscoveryV1beta1Api { this.api = new ObservableDiscoveryV1beta1Api(configuration, requestFactory, responseProcessor); } + /** + * create an EndpointSlice + * @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. + * @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. + */ + public createNamespacedEndpointSliceWithHttpInfo(namespace: string, body: V1beta1EndpointSlice, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.createNamespacedEndpointSliceWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + /** * create an EndpointSlice * @param namespace object name and auth scope, such as for teams and projects @@ -7518,6 +13945,28 @@ export class PromiseDiscoveryV1beta1Api { return result.toPromise(); } + /** + * delete collection of EndpointSlice + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionNamespacedEndpointSliceWithHttpInfo(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteCollectionNamespacedEndpointSliceWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + return result.toPromise(); + } + /** * delete collection of EndpointSlice * @param namespace object name and auth scope, such as for teams and projects @@ -7540,6 +13989,22 @@ export class PromiseDiscoveryV1beta1Api { return result.toPromise(); } + /** + * delete an EndpointSlice + * @param name name of the EndpointSlice + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteNamespacedEndpointSliceWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteNamespacedEndpointSliceWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + return result.toPromise(); + } + /** * delete an EndpointSlice * @param name name of the EndpointSlice @@ -7556,6 +14021,14 @@ export class PromiseDiscoveryV1beta1Api { return result.toPromise(); } + /** + * get available resources + */ + public getAPIResourcesWithHttpInfo(_options?: Configuration): Promise> { + const result = this.api.getAPIResourcesWithHttpInfo(_options); + return result.toPromise(); + } + /** * get available resources */ @@ -7564,6 +14037,24 @@ export class PromiseDiscoveryV1beta1Api { return result.toPromise(); } + /** + * list or watch objects of kind EndpointSlice + * @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. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { + const result = this.api.listEndpointSliceForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + /** * list or watch objects of kind EndpointSlice * @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. @@ -7582,6 +14073,25 @@ export class PromiseDiscoveryV1beta1Api { return result.toPromise(); } + /** + * list or watch objects of kind EndpointSlice + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { + const result = this.api.listNamespacedEndpointSliceWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + /** * list or watch objects of kind EndpointSlice * @param namespace object name and auth scope, such as for teams and projects @@ -7601,6 +14111,21 @@ export class PromiseDiscoveryV1beta1Api { return result.toPromise(); } + /** + * partially update the specified EndpointSlice + * @param name name of the EndpointSlice + * @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. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise> { + const result = this.api.patchNamespacedEndpointSliceWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options); + return result.toPromise(); + } + /** * partially update the specified EndpointSlice * @param name name of the EndpointSlice @@ -7616,6 +14141,17 @@ export class PromiseDiscoveryV1beta1Api { return result.toPromise(); } + /** + * read the specified EndpointSlice + * @param name name of the EndpointSlice + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + */ + public readNamespacedEndpointSliceWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.readNamespacedEndpointSliceWithHttpInfo(name, namespace, pretty, _options); + return result.toPromise(); + } + /** * read the specified EndpointSlice * @param name name of the EndpointSlice @@ -7627,6 +14163,20 @@ export class PromiseDiscoveryV1beta1Api { return result.toPromise(); } + /** + * replace the specified EndpointSlice + * @param name name of the EndpointSlice + * @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. + * @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. + */ + public replaceNamespacedEndpointSliceWithHttpInfo(name: string, namespace: string, body: V1beta1EndpointSlice, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.replaceNamespacedEndpointSliceWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + /** * replace the specified EndpointSlice * @param name name of the EndpointSlice @@ -7660,6 +14210,14 @@ export class PromiseEventsApi { this.api = new ObservableEventsApi(configuration, requestFactory, responseProcessor); } + /** + * get information of a group + */ + public getAPIGroupWithHttpInfo(_options?: Configuration): Promise> { + const result = this.api.getAPIGroupWithHttpInfo(_options); + return result.toPromise(); + } + /** * get information of a group */ @@ -7687,6 +14245,19 @@ export class PromiseEventsV1Api { this.api = new ObservableEventsV1Api(configuration, requestFactory, responseProcessor); } + /** + * create an Event + * @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. + * @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. + */ + public createNamespacedEventWithHttpInfo(namespace: string, body: EventsV1Event, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.createNamespacedEventWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + /** * create an Event * @param namespace object name and auth scope, such as for teams and projects @@ -7704,21 +14275,59 @@ export class PromiseEventsV1Api { * delete collection of Event * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. - * @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 _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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionNamespacedEventWithHttpInfo(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteCollectionNamespacedEventWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + return result.toPromise(); + } + + /** + * delete collection of Event + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionNamespacedEvent(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { + const result = this.api.deleteCollectionNamespacedEvent(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + return result.toPromise(); + } + + /** + * delete an Event + * @param name name of the Event + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param body */ - public deleteCollectionNamespacedEvent(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteCollectionNamespacedEvent(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + public deleteNamespacedEventWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteNamespacedEventWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); return result.toPromise(); } @@ -7738,6 +14347,14 @@ export class PromiseEventsV1Api { return result.toPromise(); } + /** + * get available resources + */ + public getAPIResourcesWithHttpInfo(_options?: Configuration): Promise> { + const result = this.api.getAPIResourcesWithHttpInfo(_options); + return result.toPromise(); + } + /** * get available resources */ @@ -7746,6 +14363,24 @@ export class PromiseEventsV1Api { return result.toPromise(); } + /** + * list or watch objects of kind Event + * @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. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { + const result = this.api.listEventForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + /** * list or watch objects of kind Event * @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. @@ -7764,6 +14399,25 @@ export class PromiseEventsV1Api { return result.toPromise(); } + /** + * list or watch objects of kind Event + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { + const result = this.api.listNamespacedEventWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + /** * list or watch objects of kind Event * @param namespace object name and auth scope, such as for teams and projects @@ -7783,6 +14437,21 @@ export class PromiseEventsV1Api { return result.toPromise(); } + /** + * partially update the specified Event + * @param name name of the Event + * @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. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise> { + const result = this.api.patchNamespacedEventWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options); + return result.toPromise(); + } + /** * partially update the specified Event * @param name name of the Event @@ -7798,6 +14467,17 @@ export class PromiseEventsV1Api { return result.toPromise(); } + /** + * read the specified Event + * @param name name of the Event + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + */ + public readNamespacedEventWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.readNamespacedEventWithHttpInfo(name, namespace, pretty, _options); + return result.toPromise(); + } + /** * read the specified Event * @param name name of the Event @@ -7809,6 +14489,20 @@ export class PromiseEventsV1Api { return result.toPromise(); } + /** + * replace the specified Event + * @param name name of the Event + * @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. + * @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. + */ + public replaceNamespacedEventWithHttpInfo(name: string, namespace: string, body: EventsV1Event, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.replaceNamespacedEventWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + /** * replace the specified Event * @param name name of the Event @@ -7842,6 +14536,19 @@ export class PromiseEventsV1beta1Api { this.api = new ObservableEventsV1beta1Api(configuration, requestFactory, responseProcessor); } + /** + * create an Event + * @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. + * @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. + */ + public createNamespacedEventWithHttpInfo(namespace: string, body: V1beta1Event, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.createNamespacedEventWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + /** * create an Event * @param namespace object name and auth scope, such as for teams and projects @@ -7855,6 +14562,28 @@ export class PromiseEventsV1beta1Api { return result.toPromise(); } + /** + * delete collection of Event + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionNamespacedEventWithHttpInfo(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteCollectionNamespacedEventWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + return result.toPromise(); + } + /** * delete collection of Event * @param namespace object name and auth scope, such as for teams and projects @@ -7877,6 +14606,22 @@ export class PromiseEventsV1beta1Api { return result.toPromise(); } + /** + * delete an Event + * @param name name of the Event + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteNamespacedEventWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteNamespacedEventWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + return result.toPromise(); + } + /** * delete an Event * @param name name of the Event @@ -7893,6 +14638,14 @@ export class PromiseEventsV1beta1Api { return result.toPromise(); } + /** + * get available resources + */ + public getAPIResourcesWithHttpInfo(_options?: Configuration): Promise> { + const result = this.api.getAPIResourcesWithHttpInfo(_options); + return result.toPromise(); + } + /** * get available resources */ @@ -7901,6 +14654,24 @@ export class PromiseEventsV1beta1Api { return result.toPromise(); } + /** + * list or watch objects of kind Event + * @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. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { + const result = this.api.listEventForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + /** * list or watch objects of kind Event * @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. @@ -7919,6 +14690,25 @@ export class PromiseEventsV1beta1Api { return result.toPromise(); } + /** + * list or watch objects of kind Event + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { + const result = this.api.listNamespacedEventWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + /** * list or watch objects of kind Event * @param namespace object name and auth scope, such as for teams and projects @@ -7938,6 +14728,21 @@ export class PromiseEventsV1beta1Api { return result.toPromise(); } + /** + * partially update the specified Event + * @param name name of the Event + * @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. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise> { + const result = this.api.patchNamespacedEventWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options); + return result.toPromise(); + } + /** * partially update the specified Event * @param name name of the Event @@ -7953,6 +14758,17 @@ export class PromiseEventsV1beta1Api { return result.toPromise(); } + /** + * read the specified Event + * @param name name of the Event + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + */ + public readNamespacedEventWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.readNamespacedEventWithHttpInfo(name, namespace, pretty, _options); + return result.toPromise(); + } + /** * read the specified Event * @param name name of the Event @@ -7964,6 +14780,20 @@ export class PromiseEventsV1beta1Api { return result.toPromise(); } + /** + * replace the specified Event + * @param name name of the Event + * @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. + * @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. + */ + public replaceNamespacedEventWithHttpInfo(name: string, namespace: string, body: V1beta1Event, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.replaceNamespacedEventWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + /** * replace the specified Event * @param name name of the Event @@ -7997,6 +14827,14 @@ export class PromiseFlowcontrolApiserverApi { this.api = new ObservableFlowcontrolApiserverApi(configuration, requestFactory, responseProcessor); } + /** + * get information of a group + */ + public getAPIGroupWithHttpInfo(_options?: Configuration): Promise> { + const result = this.api.getAPIGroupWithHttpInfo(_options); + return result.toPromise(); + } + /** * get information of a group */ @@ -8027,29 +14865,95 @@ export class PromiseFlowcontrolApiserverV1beta1Api { /** * create a FlowSchema * @param body - * @param pretty If \'true\', then the output is pretty printed. - * @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 pretty If \'true\', then the output is pretty printed. + * @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. + */ + public createFlowSchemaWithHttpInfo(body: V1beta1FlowSchema, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.createFlowSchemaWithHttpInfo(body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + + /** + * create a FlowSchema + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public createFlowSchema(body: V1beta1FlowSchema, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { + const result = this.api.createFlowSchema(body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + + /** + * create a PriorityLevelConfiguration + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public createPriorityLevelConfigurationWithHttpInfo(body: V1beta1PriorityLevelConfiguration, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.createPriorityLevelConfigurationWithHttpInfo(body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + + /** + * create a PriorityLevelConfiguration + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public createPriorityLevelConfiguration(body: V1beta1PriorityLevelConfiguration, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { + const result = this.api.createPriorityLevelConfiguration(body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + + /** + * delete collection of FlowSchema + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body */ - public createFlowSchema(body: V1beta1FlowSchema, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { - const result = this.api.createFlowSchema(body, pretty, dryRun, fieldManager, _options); + public deleteCollectionFlowSchemaWithHttpInfo(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteCollectionFlowSchemaWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); return result.toPromise(); } /** - * create a PriorityLevelConfiguration - * @param body + * delete collection of FlowSchema * @param pretty If \'true\', then the output is pretty printed. + * @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 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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body */ - public createPriorityLevelConfiguration(body: V1beta1PriorityLevelConfiguration, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { - const result = this.api.createPriorityLevelConfiguration(body, pretty, dryRun, fieldManager, _options); + public deleteCollectionFlowSchema(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { + const result = this.api.deleteCollectionFlowSchema(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); return result.toPromise(); } /** - * delete collection of FlowSchema + * delete collection of PriorityLevelConfiguration * @param pretty If \'true\', then the output is pretty printed. * @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 @@ -8064,8 +14968,8 @@ export class PromiseFlowcontrolApiserverV1beta1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param body */ - public deleteCollectionFlowSchema(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteCollectionFlowSchema(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + public deleteCollectionPriorityLevelConfigurationWithHttpInfo(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteCollectionPriorityLevelConfigurationWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); return result.toPromise(); } @@ -8090,6 +14994,21 @@ export class PromiseFlowcontrolApiserverV1beta1Api { return result.toPromise(); } + /** + * delete a FlowSchema + * @param name name of the FlowSchema + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteFlowSchemaWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteFlowSchemaWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + return result.toPromise(); + } + /** * delete a FlowSchema * @param name name of the FlowSchema @@ -8105,6 +15024,21 @@ export class PromiseFlowcontrolApiserverV1beta1Api { return result.toPromise(); } + /** + * delete a PriorityLevelConfiguration + * @param name name of the PriorityLevelConfiguration + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deletePriorityLevelConfigurationWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deletePriorityLevelConfigurationWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + return result.toPromise(); + } + /** * delete a PriorityLevelConfiguration * @param name name of the PriorityLevelConfiguration @@ -8120,6 +15054,14 @@ export class PromiseFlowcontrolApiserverV1beta1Api { return result.toPromise(); } + /** + * get available resources + */ + public getAPIResourcesWithHttpInfo(_options?: Configuration): Promise> { + const result = this.api.getAPIResourcesWithHttpInfo(_options); + return result.toPromise(); + } + /** * get available resources */ @@ -8128,6 +15070,24 @@ export class PromiseFlowcontrolApiserverV1beta1Api { return result.toPromise(); } + /** + * list or watch objects of kind FlowSchema + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { + const result = this.api.listFlowSchemaWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + /** * list or watch objects of kind FlowSchema * @param pretty If \'true\', then the output is pretty printed. @@ -8146,6 +15106,24 @@ export class PromiseFlowcontrolApiserverV1beta1Api { return result.toPromise(); } + /** + * list or watch objects of kind PriorityLevelConfiguration + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { + const result = this.api.listPriorityLevelConfigurationWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + /** * list or watch objects of kind PriorityLevelConfiguration * @param pretty If \'true\', then the output is pretty printed. @@ -8164,6 +15142,20 @@ export class PromiseFlowcontrolApiserverV1beta1Api { return result.toPromise(); } + /** + * partially update the specified FlowSchema + * @param name name of the FlowSchema + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise> { + const result = this.api.patchFlowSchemaWithHttpInfo(name, body, pretty, dryRun, fieldManager, force, _options); + return result.toPromise(); + } + /** * partially update the specified FlowSchema * @param name name of the FlowSchema @@ -8178,6 +15170,20 @@ export class PromiseFlowcontrolApiserverV1beta1Api { return result.toPromise(); } + /** + * partially update status of the specified FlowSchema + * @param name name of the FlowSchema + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise> { + const result = this.api.patchFlowSchemaStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, force, _options); + return result.toPromise(); + } + /** * partially update status of the specified FlowSchema * @param name name of the FlowSchema @@ -8192,6 +15198,20 @@ export class PromiseFlowcontrolApiserverV1beta1Api { return result.toPromise(); } + /** + * partially update the specified PriorityLevelConfiguration + * @param name name of the PriorityLevelConfiguration + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise> { + const result = this.api.patchPriorityLevelConfigurationWithHttpInfo(name, body, pretty, dryRun, fieldManager, force, _options); + return result.toPromise(); + } + /** * partially update the specified PriorityLevelConfiguration * @param name name of the PriorityLevelConfiguration @@ -8206,6 +15226,20 @@ export class PromiseFlowcontrolApiserverV1beta1Api { return result.toPromise(); } + /** + * partially update status of the specified PriorityLevelConfiguration + * @param name name of the PriorityLevelConfiguration + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise> { + const result = this.api.patchPriorityLevelConfigurationStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, force, _options); + return result.toPromise(); + } + /** * partially update status of the specified PriorityLevelConfiguration * @param name name of the PriorityLevelConfiguration @@ -8220,6 +15254,16 @@ export class PromiseFlowcontrolApiserverV1beta1Api { return result.toPromise(); } + /** + * read the specified FlowSchema + * @param name name of the FlowSchema + * @param pretty If \'true\', then the output is pretty printed. + */ + public readFlowSchemaWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.readFlowSchemaWithHttpInfo(name, pretty, _options); + return result.toPromise(); + } + /** * read the specified FlowSchema * @param name name of the FlowSchema @@ -8230,6 +15274,16 @@ export class PromiseFlowcontrolApiserverV1beta1Api { return result.toPromise(); } + /** + * read status of the specified FlowSchema + * @param name name of the FlowSchema + * @param pretty If \'true\', then the output is pretty printed. + */ + public readFlowSchemaStatusWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.readFlowSchemaStatusWithHttpInfo(name, pretty, _options); + return result.toPromise(); + } + /** * read status of the specified FlowSchema * @param name name of the FlowSchema @@ -8240,6 +15294,16 @@ export class PromiseFlowcontrolApiserverV1beta1Api { return result.toPromise(); } + /** + * read the specified PriorityLevelConfiguration + * @param name name of the PriorityLevelConfiguration + * @param pretty If \'true\', then the output is pretty printed. + */ + public readPriorityLevelConfigurationWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.readPriorityLevelConfigurationWithHttpInfo(name, pretty, _options); + return result.toPromise(); + } + /** * read the specified PriorityLevelConfiguration * @param name name of the PriorityLevelConfiguration @@ -8250,6 +15314,16 @@ export class PromiseFlowcontrolApiserverV1beta1Api { return result.toPromise(); } + /** + * read status of the specified PriorityLevelConfiguration + * @param name name of the PriorityLevelConfiguration + * @param pretty If \'true\', then the output is pretty printed. + */ + public readPriorityLevelConfigurationStatusWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.readPriorityLevelConfigurationStatusWithHttpInfo(name, pretty, _options); + return result.toPromise(); + } + /** * read status of the specified PriorityLevelConfiguration * @param name name of the PriorityLevelConfiguration @@ -8260,6 +15334,19 @@ export class PromiseFlowcontrolApiserverV1beta1Api { return result.toPromise(); } + /** + * replace the specified FlowSchema + * @param name name of the FlowSchema + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public replaceFlowSchemaWithHttpInfo(name: string, body: V1beta1FlowSchema, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.replaceFlowSchemaWithHttpInfo(name, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + /** * replace the specified FlowSchema * @param name name of the FlowSchema @@ -8273,6 +15360,19 @@ export class PromiseFlowcontrolApiserverV1beta1Api { return result.toPromise(); } + /** + * replace status of the specified FlowSchema + * @param name name of the FlowSchema + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public replaceFlowSchemaStatusWithHttpInfo(name: string, body: V1beta1FlowSchema, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.replaceFlowSchemaStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + /** * replace status of the specified FlowSchema * @param name name of the FlowSchema @@ -8286,6 +15386,19 @@ export class PromiseFlowcontrolApiserverV1beta1Api { return result.toPromise(); } + /** + * replace the specified PriorityLevelConfiguration + * @param name name of the PriorityLevelConfiguration + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public replacePriorityLevelConfigurationWithHttpInfo(name: string, body: V1beta1PriorityLevelConfiguration, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.replacePriorityLevelConfigurationWithHttpInfo(name, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + /** * replace the specified PriorityLevelConfiguration * @param name name of the PriorityLevelConfiguration @@ -8299,6 +15412,19 @@ export class PromiseFlowcontrolApiserverV1beta1Api { return result.toPromise(); } + /** + * replace status of the specified PriorityLevelConfiguration + * @param name name of the PriorityLevelConfiguration + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public replacePriorityLevelConfigurationStatusWithHttpInfo(name: string, body: V1beta1PriorityLevelConfiguration, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.replacePriorityLevelConfigurationStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + /** * replace status of the specified PriorityLevelConfiguration * @param name name of the PriorityLevelConfiguration @@ -8331,6 +15457,14 @@ export class PromiseInternalApiserverApi { this.api = new ObservableInternalApiserverApi(configuration, requestFactory, responseProcessor); } + /** + * get information of a group + */ + public getAPIGroupWithHttpInfo(_options?: Configuration): Promise> { + const result = this.api.getAPIGroupWithHttpInfo(_options); + return result.toPromise(); + } + /** * get information of a group */ @@ -8358,6 +15492,18 @@ export class PromiseInternalApiserverV1alpha1Api { this.api = new ObservableInternalApiserverV1alpha1Api(configuration, requestFactory, responseProcessor); } + /** + * create a StorageVersion + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public createStorageVersionWithHttpInfo(body: V1alpha1StorageVersion, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.createStorageVersionWithHttpInfo(body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + /** * create a StorageVersion * @param body @@ -8370,6 +15516,27 @@ export class PromiseInternalApiserverV1alpha1Api { return result.toPromise(); } + /** + * delete collection of StorageVersion + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionStorageVersionWithHttpInfo(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteCollectionStorageVersionWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + return result.toPromise(); + } + /** * delete collection of StorageVersion * @param pretty If \'true\', then the output is pretty printed. @@ -8391,6 +15558,21 @@ export class PromiseInternalApiserverV1alpha1Api { return result.toPromise(); } + /** + * delete a StorageVersion + * @param name name of the StorageVersion + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteStorageVersionWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteStorageVersionWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + return result.toPromise(); + } + /** * delete a StorageVersion * @param name name of the StorageVersion @@ -8406,6 +15588,14 @@ export class PromiseInternalApiserverV1alpha1Api { return result.toPromise(); } + /** + * get available resources + */ + public getAPIResourcesWithHttpInfo(_options?: Configuration): Promise> { + const result = this.api.getAPIResourcesWithHttpInfo(_options); + return result.toPromise(); + } + /** * get available resources */ @@ -8414,6 +15604,24 @@ export class PromiseInternalApiserverV1alpha1Api { return result.toPromise(); } + /** + * list or watch objects of kind StorageVersion + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { + const result = this.api.listStorageVersionWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + /** * list or watch objects of kind StorageVersion * @param pretty If \'true\', then the output is pretty printed. @@ -8432,6 +15640,20 @@ export class PromiseInternalApiserverV1alpha1Api { return result.toPromise(); } + /** + * partially update the specified StorageVersion + * @param name name of the StorageVersion + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise> { + const result = this.api.patchStorageVersionWithHttpInfo(name, body, pretty, dryRun, fieldManager, force, _options); + return result.toPromise(); + } + /** * partially update the specified StorageVersion * @param name name of the StorageVersion @@ -8446,6 +15668,20 @@ export class PromiseInternalApiserverV1alpha1Api { return result.toPromise(); } + /** + * partially update status of the specified StorageVersion + * @param name name of the StorageVersion + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise> { + const result = this.api.patchStorageVersionStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, force, _options); + return result.toPromise(); + } + /** * partially update status of the specified StorageVersion * @param name name of the StorageVersion @@ -8460,6 +15696,16 @@ export class PromiseInternalApiserverV1alpha1Api { return result.toPromise(); } + /** + * read the specified StorageVersion + * @param name name of the StorageVersion + * @param pretty If \'true\', then the output is pretty printed. + */ + public readStorageVersionWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.readStorageVersionWithHttpInfo(name, pretty, _options); + return result.toPromise(); + } + /** * read the specified StorageVersion * @param name name of the StorageVersion @@ -8470,6 +15716,16 @@ export class PromiseInternalApiserverV1alpha1Api { return result.toPromise(); } + /** + * read status of the specified StorageVersion + * @param name name of the StorageVersion + * @param pretty If \'true\', then the output is pretty printed. + */ + public readStorageVersionStatusWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.readStorageVersionStatusWithHttpInfo(name, pretty, _options); + return result.toPromise(); + } + /** * read status of the specified StorageVersion * @param name name of the StorageVersion @@ -8480,6 +15736,19 @@ export class PromiseInternalApiserverV1alpha1Api { return result.toPromise(); } + /** + * replace the specified StorageVersion + * @param name name of the StorageVersion + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public replaceStorageVersionWithHttpInfo(name: string, body: V1alpha1StorageVersion, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.replaceStorageVersionWithHttpInfo(name, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + /** * replace the specified StorageVersion * @param name name of the StorageVersion @@ -8493,6 +15762,19 @@ export class PromiseInternalApiserverV1alpha1Api { return result.toPromise(); } + /** + * replace status of the specified StorageVersion + * @param name name of the StorageVersion + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public replaceStorageVersionStatusWithHttpInfo(name: string, body: V1alpha1StorageVersion, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.replaceStorageVersionStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + /** * replace status of the specified StorageVersion * @param name name of the StorageVersion @@ -8525,6 +15807,14 @@ export class PromiseLogsApi { this.api = new ObservableLogsApi(configuration, requestFactory, responseProcessor); } + /** + * @param logpath path to the log + */ + public logFileHandlerWithHttpInfo(logpath: string, _options?: Configuration): Promise> { + const result = this.api.logFileHandlerWithHttpInfo(logpath, _options); + return result.toPromise(); + } + /** * @param logpath path to the log */ @@ -8533,6 +15823,13 @@ export class PromiseLogsApi { return result.toPromise(); } + /** + */ + public logFileListHandlerWithHttpInfo(_options?: Configuration): Promise> { + const result = this.api.logFileListHandlerWithHttpInfo(_options); + return result.toPromise(); + } + /** */ public logFileListHandler(_options?: Configuration): Promise { @@ -8559,6 +15856,14 @@ export class PromiseNetworkingApi { this.api = new ObservableNetworkingApi(configuration, requestFactory, responseProcessor); } + /** + * get information of a group + */ + public getAPIGroupWithHttpInfo(_options?: Configuration): Promise> { + const result = this.api.getAPIGroupWithHttpInfo(_options); + return result.toPromise(); + } + /** * get information of a group */ @@ -8586,6 +15891,18 @@ export class PromiseNetworkingV1Api { this.api = new ObservableNetworkingV1Api(configuration, requestFactory, responseProcessor); } + /** + * create an IngressClass + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public createIngressClassWithHttpInfo(body: V1IngressClass, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.createIngressClassWithHttpInfo(body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + /** * create an IngressClass * @param body @@ -8598,6 +15915,19 @@ export class PromiseNetworkingV1Api { return result.toPromise(); } + /** + * create an Ingress + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public createNamespacedIngressWithHttpInfo(namespace: string, body: V1Ingress, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.createNamespacedIngressWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + /** * create an Ingress * @param namespace object name and auth scope, such as for teams and projects @@ -8611,6 +15941,19 @@ export class PromiseNetworkingV1Api { return result.toPromise(); } + /** + * create a NetworkPolicy + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public createNamespacedNetworkPolicyWithHttpInfo(namespace: string, body: V1NetworkPolicy, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.createNamespacedNetworkPolicyWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + /** * create a NetworkPolicy * @param namespace object name and auth scope, such as for teams and projects @@ -8624,6 +15967,27 @@ export class PromiseNetworkingV1Api { return result.toPromise(); } + /** + * delete collection of IngressClass + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionIngressClassWithHttpInfo(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteCollectionIngressClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + return result.toPromise(); + } + /** * delete collection of IngressClass * @param pretty If \'true\', then the output is pretty printed. @@ -8662,36 +16026,127 @@ export class PromiseNetworkingV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param body */ - public deleteCollectionNamespacedIngress(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteCollectionNamespacedIngress(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + public deleteCollectionNamespacedIngressWithHttpInfo(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteCollectionNamespacedIngressWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + return result.toPromise(); + } + + /** + * delete collection of Ingress + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionNamespacedIngress(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { + const result = this.api.deleteCollectionNamespacedIngress(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + return result.toPromise(); + } + + /** + * delete collection of NetworkPolicy + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionNamespacedNetworkPolicyWithHttpInfo(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteCollectionNamespacedNetworkPolicyWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + return result.toPromise(); + } + + /** + * delete collection of NetworkPolicy + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionNamespacedNetworkPolicy(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { + const result = this.api.deleteCollectionNamespacedNetworkPolicy(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + return result.toPromise(); + } + + /** + * delete an IngressClass + * @param name name of the IngressClass + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteIngressClassWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteIngressClassWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + return result.toPromise(); + } + + /** + * delete an IngressClass + * @param name name of the IngressClass + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteIngressClass(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { + const result = this.api.deleteIngressClass(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); return result.toPromise(); } /** - * delete collection of NetworkPolicy + * delete an Ingress + * @param name name of the Ingress * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. - * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param body */ - public deleteCollectionNamespacedNetworkPolicy(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteCollectionNamespacedNetworkPolicy(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + public deleteNamespacedIngressWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteNamespacedIngressWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); return result.toPromise(); } /** - * delete an IngressClass - * @param name name of the IngressClass + * delete an Ingress + * @param name name of the Ingress + * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. * @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. @@ -8699,14 +16154,14 @@ export class PromiseNetworkingV1Api { * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. * @param body */ - public deleteIngressClass(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteIngressClass(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedIngress(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { + const result = this.api.deleteNamespacedIngress(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); return result.toPromise(); } /** - * delete an Ingress - * @param name name of the Ingress + * delete a NetworkPolicy + * @param name name of the NetworkPolicy * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. * @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 @@ -8715,8 +16170,8 @@ export class PromiseNetworkingV1Api { * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. * @param body */ - public deleteNamespacedIngress(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteNamespacedIngress(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedNetworkPolicyWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteNamespacedNetworkPolicyWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); return result.toPromise(); } @@ -8736,6 +16191,14 @@ export class PromiseNetworkingV1Api { return result.toPromise(); } + /** + * get available resources + */ + public getAPIResourcesWithHttpInfo(_options?: Configuration): Promise> { + const result = this.api.getAPIResourcesWithHttpInfo(_options); + return result.toPromise(); + } + /** * get available resources */ @@ -8744,6 +16207,24 @@ export class PromiseNetworkingV1Api { return result.toPromise(); } + /** + * list or watch objects of kind IngressClass + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { + const result = this.api.listIngressClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + /** * list or watch objects of kind IngressClass * @param pretty If \'true\', then the output is pretty printed. @@ -8762,6 +16243,24 @@ export class PromiseNetworkingV1Api { return result.toPromise(); } + /** + * list or watch objects of kind Ingress + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { + const result = this.api.listIngressForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + /** * list or watch objects of kind Ingress * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -8780,6 +16279,25 @@ export class PromiseNetworkingV1Api { return result.toPromise(); } + /** + * list or watch objects of kind Ingress + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { + const result = this.api.listNamespacedIngressWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + /** * list or watch objects of kind Ingress * @param namespace object name and auth scope, such as for teams and projects @@ -8799,6 +16317,25 @@ export class PromiseNetworkingV1Api { return result.toPromise(); } + /** + * list or watch objects of kind NetworkPolicy + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { + const result = this.api.listNamespacedNetworkPolicyWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + /** * list or watch objects of kind NetworkPolicy * @param namespace object name and auth scope, such as for teams and projects @@ -8818,6 +16355,24 @@ export class PromiseNetworkingV1Api { return result.toPromise(); } + /** + * list or watch objects of kind NetworkPolicy + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. + * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. + * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { + const result = this.api.listNetworkPolicyForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + /** * list or watch objects of kind NetworkPolicy * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server\'s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. @@ -8836,6 +16391,20 @@ export class PromiseNetworkingV1Api { return result.toPromise(); } + /** + * partially update the specified IngressClass + * @param name name of the IngressClass + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise> { + const result = this.api.patchIngressClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, force, _options); + return result.toPromise(); + } + /** * partially update the specified IngressClass * @param name name of the IngressClass @@ -8850,6 +16419,21 @@ export class PromiseNetworkingV1Api { return result.toPromise(); } + /** + * partially update the specified Ingress + * @param name name of the Ingress + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise> { + const result = this.api.patchNamespacedIngressWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options); + return result.toPromise(); + } + /** * partially update the specified Ingress * @param name name of the Ingress @@ -8865,6 +16449,21 @@ export class PromiseNetworkingV1Api { return result.toPromise(); } + /** + * partially update status of the specified Ingress + * @param name name of the Ingress + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise> { + const result = this.api.patchNamespacedIngressStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options); + return result.toPromise(); + } + /** * partially update status of the specified Ingress * @param name name of the Ingress @@ -8880,6 +16479,21 @@ export class PromiseNetworkingV1Api { return result.toPromise(); } + /** + * partially update the specified NetworkPolicy + * @param name name of the NetworkPolicy + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise> { + const result = this.api.patchNamespacedNetworkPolicyWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options); + return result.toPromise(); + } + /** * partially update the specified NetworkPolicy * @param name name of the NetworkPolicy @@ -8895,6 +16509,16 @@ export class PromiseNetworkingV1Api { return result.toPromise(); } + /** + * read the specified IngressClass + * @param name name of the IngressClass + * @param pretty If \'true\', then the output is pretty printed. + */ + public readIngressClassWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.readIngressClassWithHttpInfo(name, pretty, _options); + return result.toPromise(); + } + /** * read the specified IngressClass * @param name name of the IngressClass @@ -8905,6 +16529,17 @@ export class PromiseNetworkingV1Api { return result.toPromise(); } + /** + * read the specified Ingress + * @param name name of the Ingress + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + */ + public readNamespacedIngressWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.readNamespacedIngressWithHttpInfo(name, namespace, pretty, _options); + return result.toPromise(); + } + /** * read the specified Ingress * @param name name of the Ingress @@ -8916,6 +16551,17 @@ export class PromiseNetworkingV1Api { return result.toPromise(); } + /** + * read status of the specified Ingress + * @param name name of the Ingress + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + */ + public readNamespacedIngressStatusWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.readNamespacedIngressStatusWithHttpInfo(name, namespace, pretty, _options); + return result.toPromise(); + } + /** * read status of the specified Ingress * @param name name of the Ingress @@ -8927,6 +16573,17 @@ export class PromiseNetworkingV1Api { return result.toPromise(); } + /** + * read the specified NetworkPolicy + * @param name name of the NetworkPolicy + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + */ + public readNamespacedNetworkPolicyWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.readNamespacedNetworkPolicyWithHttpInfo(name, namespace, pretty, _options); + return result.toPromise(); + } + /** * read the specified NetworkPolicy * @param name name of the NetworkPolicy @@ -8946,13 +16603,68 @@ export class PromiseNetworkingV1Api { * @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. */ - public replaceIngressClass(name: string, body: V1IngressClass, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { - const result = this.api.replaceIngressClass(name, body, pretty, dryRun, fieldManager, _options); + public replaceIngressClassWithHttpInfo(name: string, body: V1IngressClass, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.replaceIngressClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + + /** + * replace the specified IngressClass + * @param name name of the IngressClass + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public replaceIngressClass(name: string, body: V1IngressClass, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { + const result = this.api.replaceIngressClass(name, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + + /** + * replace the specified Ingress + * @param name name of the Ingress + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public replaceNamespacedIngressWithHttpInfo(name: string, namespace: string, body: V1Ingress, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.replaceNamespacedIngressWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + + /** + * replace the specified Ingress + * @param name name of the Ingress + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public replaceNamespacedIngress(name: string, namespace: string, body: V1Ingress, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { + const result = this.api.replaceNamespacedIngress(name, namespace, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + + /** + * replace status of the specified Ingress + * @param name name of the Ingress + * @param namespace object name and auth scope, such as for teams and projects + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public replaceNamespacedIngressStatusWithHttpInfo(name: string, namespace: string, body: V1Ingress, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.replaceNamespacedIngressStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options); return result.toPromise(); } /** - * replace the specified Ingress + * replace status of the specified Ingress * @param name name of the Ingress * @param namespace object name and auth scope, such as for teams and projects * @param body @@ -8960,22 +16672,22 @@ export class PromiseNetworkingV1Api { * @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. */ - public replaceNamespacedIngress(name: string, namespace: string, body: V1Ingress, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespacedIngress(name, namespace, body, pretty, dryRun, fieldManager, _options); + public replaceNamespacedIngressStatus(name: string, namespace: string, body: V1Ingress, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { + const result = this.api.replaceNamespacedIngressStatus(name, namespace, body, pretty, dryRun, fieldManager, _options); return result.toPromise(); } /** - * replace status of the specified Ingress - * @param name name of the Ingress + * replace the specified NetworkPolicy + * @param name name of the NetworkPolicy * @param namespace object name and auth scope, such as for teams and projects * @param body * @param pretty If \'true\', then the output is pretty printed. * @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. */ - public replaceNamespacedIngressStatus(name: string, namespace: string, body: V1Ingress, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { - const result = this.api.replaceNamespacedIngressStatus(name, namespace, body, pretty, dryRun, fieldManager, _options); + public replaceNamespacedNetworkPolicyWithHttpInfo(name: string, namespace: string, body: V1NetworkPolicy, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.replaceNamespacedNetworkPolicyWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options); return result.toPromise(); } @@ -9012,6 +16724,14 @@ export class PromiseNodeApi { this.api = new ObservableNodeApi(configuration, requestFactory, responseProcessor); } + /** + * get information of a group + */ + public getAPIGroupWithHttpInfo(_options?: Configuration): Promise> { + const result = this.api.getAPIGroupWithHttpInfo(_options); + return result.toPromise(); + } + /** * get information of a group */ @@ -9039,6 +16759,18 @@ export class PromiseNodeV1Api { this.api = new ObservableNodeV1Api(configuration, requestFactory, responseProcessor); } + /** + * create a RuntimeClass + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public createRuntimeClassWithHttpInfo(body: V1RuntimeClass, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.createRuntimeClassWithHttpInfo(body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + /** * create a RuntimeClass * @param body @@ -9051,6 +16783,27 @@ export class PromiseNodeV1Api { return result.toPromise(); } + /** + * delete collection of RuntimeClass + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionRuntimeClassWithHttpInfo(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteCollectionRuntimeClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + return result.toPromise(); + } + /** * delete collection of RuntimeClass * @param pretty If \'true\', then the output is pretty printed. @@ -9072,6 +16825,21 @@ export class PromiseNodeV1Api { return result.toPromise(); } + /** + * delete a RuntimeClass + * @param name name of the RuntimeClass + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteRuntimeClassWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteRuntimeClassWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + return result.toPromise(); + } + /** * delete a RuntimeClass * @param name name of the RuntimeClass @@ -9087,6 +16855,14 @@ export class PromiseNodeV1Api { return result.toPromise(); } + /** + * get available resources + */ + public getAPIResourcesWithHttpInfo(_options?: Configuration): Promise> { + const result = this.api.getAPIResourcesWithHttpInfo(_options); + return result.toPromise(); + } + /** * get available resources */ @@ -9095,6 +16871,24 @@ export class PromiseNodeV1Api { return result.toPromise(); } + /** + * list or watch objects of kind RuntimeClass + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { + const result = this.api.listRuntimeClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + /** * list or watch objects of kind RuntimeClass * @param pretty If \'true\', then the output is pretty printed. @@ -9113,6 +16907,20 @@ export class PromiseNodeV1Api { return result.toPromise(); } + /** + * partially update the specified RuntimeClass + * @param name name of the RuntimeClass + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise> { + const result = this.api.patchRuntimeClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, force, _options); + return result.toPromise(); + } + /** * partially update the specified RuntimeClass * @param name name of the RuntimeClass @@ -9127,6 +16935,16 @@ export class PromiseNodeV1Api { return result.toPromise(); } + /** + * read the specified RuntimeClass + * @param name name of the RuntimeClass + * @param pretty If \'true\', then the output is pretty printed. + */ + public readRuntimeClassWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.readRuntimeClassWithHttpInfo(name, pretty, _options); + return result.toPromise(); + } + /** * read the specified RuntimeClass * @param name name of the RuntimeClass @@ -9137,6 +16955,19 @@ export class PromiseNodeV1Api { return result.toPromise(); } + /** + * replace the specified RuntimeClass + * @param name name of the RuntimeClass + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public replaceRuntimeClassWithHttpInfo(name: string, body: V1RuntimeClass, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.replaceRuntimeClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + /** * replace the specified RuntimeClass * @param name name of the RuntimeClass @@ -9169,6 +17000,18 @@ export class PromiseNodeV1alpha1Api { this.api = new ObservableNodeV1alpha1Api(configuration, requestFactory, responseProcessor); } + /** + * create a RuntimeClass + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public createRuntimeClassWithHttpInfo(body: V1alpha1RuntimeClass, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.createRuntimeClassWithHttpInfo(body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + /** * create a RuntimeClass * @param body @@ -9181,6 +17024,27 @@ export class PromiseNodeV1alpha1Api { return result.toPromise(); } + /** + * delete collection of RuntimeClass + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionRuntimeClassWithHttpInfo(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteCollectionRuntimeClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + return result.toPromise(); + } + /** * delete collection of RuntimeClass * @param pretty If \'true\', then the output is pretty printed. @@ -9202,6 +17066,21 @@ export class PromiseNodeV1alpha1Api { return result.toPromise(); } + /** + * delete a RuntimeClass + * @param name name of the RuntimeClass + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteRuntimeClassWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteRuntimeClassWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + return result.toPromise(); + } + /** * delete a RuntimeClass * @param name name of the RuntimeClass @@ -9217,6 +17096,14 @@ export class PromiseNodeV1alpha1Api { return result.toPromise(); } + /** + * get available resources + */ + public getAPIResourcesWithHttpInfo(_options?: Configuration): Promise> { + const result = this.api.getAPIResourcesWithHttpInfo(_options); + return result.toPromise(); + } + /** * get available resources */ @@ -9225,6 +17112,24 @@ export class PromiseNodeV1alpha1Api { return result.toPromise(); } + /** + * list or watch objects of kind RuntimeClass + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { + const result = this.api.listRuntimeClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + /** * list or watch objects of kind RuntimeClass * @param pretty If \'true\', then the output is pretty printed. @@ -9243,6 +17148,20 @@ export class PromiseNodeV1alpha1Api { return result.toPromise(); } + /** + * partially update the specified RuntimeClass + * @param name name of the RuntimeClass + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise> { + const result = this.api.patchRuntimeClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, force, _options); + return result.toPromise(); + } + /** * partially update the specified RuntimeClass * @param name name of the RuntimeClass @@ -9257,6 +17176,16 @@ export class PromiseNodeV1alpha1Api { return result.toPromise(); } + /** + * read the specified RuntimeClass + * @param name name of the RuntimeClass + * @param pretty If \'true\', then the output is pretty printed. + */ + public readRuntimeClassWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.readRuntimeClassWithHttpInfo(name, pretty, _options); + return result.toPromise(); + } + /** * read the specified RuntimeClass * @param name name of the RuntimeClass @@ -9267,6 +17196,19 @@ export class PromiseNodeV1alpha1Api { return result.toPromise(); } + /** + * replace the specified RuntimeClass + * @param name name of the RuntimeClass + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public replaceRuntimeClassWithHttpInfo(name: string, body: V1alpha1RuntimeClass, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.replaceRuntimeClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + /** * replace the specified RuntimeClass * @param name name of the RuntimeClass @@ -9299,6 +17241,18 @@ export class PromiseNodeV1beta1Api { this.api = new ObservableNodeV1beta1Api(configuration, requestFactory, responseProcessor); } + /** + * create a RuntimeClass + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public createRuntimeClassWithHttpInfo(body: V1beta1RuntimeClass, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.createRuntimeClassWithHttpInfo(body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + /** * create a RuntimeClass * @param body @@ -9322,13 +17276,49 @@ export class PromiseNodeV1beta1Api { * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionRuntimeClassWithHttpInfo(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteCollectionRuntimeClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + return result.toPromise(); + } + + /** + * delete collection of RuntimeClass + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionRuntimeClass(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { + const result = this.api.deleteCollectionRuntimeClass(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + return result.toPromise(); + } + + /** + * delete a RuntimeClass + * @param name name of the RuntimeClass + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteCollectionRuntimeClass(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteCollectionRuntimeClass(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + public deleteRuntimeClassWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteRuntimeClassWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); return result.toPromise(); } @@ -9347,6 +17337,14 @@ export class PromiseNodeV1beta1Api { return result.toPromise(); } + /** + * get available resources + */ + public getAPIResourcesWithHttpInfo(_options?: Configuration): Promise> { + const result = this.api.getAPIResourcesWithHttpInfo(_options); + return result.toPromise(); + } + /** * get available resources */ @@ -9355,6 +17353,24 @@ export class PromiseNodeV1beta1Api { return result.toPromise(); } + /** + * list or watch objects of kind RuntimeClass + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { + const result = this.api.listRuntimeClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + /** * list or watch objects of kind RuntimeClass * @param pretty If \'true\', then the output is pretty printed. @@ -9373,6 +17389,20 @@ export class PromiseNodeV1beta1Api { return result.toPromise(); } + /** + * partially update the specified RuntimeClass + * @param name name of the RuntimeClass + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise> { + const result = this.api.patchRuntimeClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, force, _options); + return result.toPromise(); + } + /** * partially update the specified RuntimeClass * @param name name of the RuntimeClass @@ -9387,6 +17417,16 @@ export class PromiseNodeV1beta1Api { return result.toPromise(); } + /** + * read the specified RuntimeClass + * @param name name of the RuntimeClass + * @param pretty If \'true\', then the output is pretty printed. + */ + public readRuntimeClassWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.readRuntimeClassWithHttpInfo(name, pretty, _options); + return result.toPromise(); + } + /** * read the specified RuntimeClass * @param name name of the RuntimeClass @@ -9397,6 +17437,19 @@ export class PromiseNodeV1beta1Api { return result.toPromise(); } + /** + * replace the specified RuntimeClass + * @param name name of the RuntimeClass + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public replaceRuntimeClassWithHttpInfo(name: string, body: V1beta1RuntimeClass, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.replaceRuntimeClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + /** * replace the specified RuntimeClass * @param name name of the RuntimeClass @@ -9429,6 +17482,14 @@ export class PromiseOpenidApi { this.api = new ObservableOpenidApi(configuration, requestFactory, responseProcessor); } + /** + * get service account issuer OpenID JSON Web Key Set (contains public token verification keys) + */ + public getServiceAccountIssuerOpenIDKeysetWithHttpInfo(_options?: Configuration): Promise> { + const result = this.api.getServiceAccountIssuerOpenIDKeysetWithHttpInfo(_options); + return result.toPromise(); + } + /** * get service account issuer OpenID JSON Web Key Set (contains public token verification keys) */ @@ -9456,6 +17517,14 @@ export class PromisePolicyApi { this.api = new ObservablePolicyApi(configuration, requestFactory, responseProcessor); } + /** + * get information of a group + */ + public getAPIGroupWithHttpInfo(_options?: Configuration): Promise> { + const result = this.api.getAPIGroupWithHttpInfo(_options); + return result.toPromise(); + } + /** * get information of a group */ @@ -9483,6 +17552,19 @@ export class PromisePolicyV1Api { this.api = new ObservablePolicyV1Api(configuration, requestFactory, responseProcessor); } + /** + * create a PodDisruptionBudget + * @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. + * @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. + */ + public createNamespacedPodDisruptionBudgetWithHttpInfo(namespace: string, body: V1PodDisruptionBudget, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.createNamespacedPodDisruptionBudgetWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + /** * create a PodDisruptionBudget * @param namespace object name and auth scope, such as for teams and projects @@ -9496,6 +17578,28 @@ export class PromisePolicyV1Api { return result.toPromise(); } + /** + * delete collection of PodDisruptionBudget + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionNamespacedPodDisruptionBudgetWithHttpInfo(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteCollectionNamespacedPodDisruptionBudgetWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + return result.toPromise(); + } + /** * delete collection of PodDisruptionBudget * @param namespace object name and auth scope, such as for teams and projects @@ -9518,6 +17622,22 @@ export class PromisePolicyV1Api { return result.toPromise(); } + /** + * delete a PodDisruptionBudget + * @param name name of the PodDisruptionBudget + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteNamespacedPodDisruptionBudgetWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteNamespacedPodDisruptionBudgetWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + return result.toPromise(); + } + /** * delete a PodDisruptionBudget * @param name name of the PodDisruptionBudget @@ -9534,6 +17654,14 @@ export class PromisePolicyV1Api { return result.toPromise(); } + /** + * get available resources + */ + public getAPIResourcesWithHttpInfo(_options?: Configuration): Promise> { + const result = this.api.getAPIResourcesWithHttpInfo(_options); + return result.toPromise(); + } + /** * get available resources */ @@ -9542,6 +17670,25 @@ export class PromisePolicyV1Api { return result.toPromise(); } + /** + * list or watch objects of kind PodDisruptionBudget + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { + const result = this.api.listNamespacedPodDisruptionBudgetWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + /** * list or watch objects of kind PodDisruptionBudget * @param namespace object name and auth scope, such as for teams and projects @@ -9561,6 +17708,24 @@ export class PromisePolicyV1Api { return result.toPromise(); } + /** + * list or watch objects of kind PodDisruptionBudget + * @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. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { + const result = this.api.listPodDisruptionBudgetForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + /** * list or watch objects of kind PodDisruptionBudget * @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. @@ -9579,6 +17744,21 @@ export class PromisePolicyV1Api { return result.toPromise(); } + /** + * partially update the specified PodDisruptionBudget + * @param name name of the PodDisruptionBudget + * @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. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise> { + const result = this.api.patchNamespacedPodDisruptionBudgetWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options); + return result.toPromise(); + } + /** * partially update the specified PodDisruptionBudget * @param name name of the PodDisruptionBudget @@ -9594,6 +17774,21 @@ export class PromisePolicyV1Api { return result.toPromise(); } + /** + * partially update status of the specified PodDisruptionBudget + * @param name name of the PodDisruptionBudget + * @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. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise> { + const result = this.api.patchNamespacedPodDisruptionBudgetStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options); + return result.toPromise(); + } + /** * partially update status of the specified PodDisruptionBudget * @param name name of the PodDisruptionBudget @@ -9609,6 +17804,17 @@ export class PromisePolicyV1Api { return result.toPromise(); } + /** + * read the specified PodDisruptionBudget + * @param name name of the PodDisruptionBudget + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + */ + public readNamespacedPodDisruptionBudgetWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.readNamespacedPodDisruptionBudgetWithHttpInfo(name, namespace, pretty, _options); + return result.toPromise(); + } + /** * read the specified PodDisruptionBudget * @param name name of the PodDisruptionBudget @@ -9620,6 +17826,17 @@ export class PromisePolicyV1Api { return result.toPromise(); } + /** + * read status of the specified PodDisruptionBudget + * @param name name of the PodDisruptionBudget + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + */ + public readNamespacedPodDisruptionBudgetStatusWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.readNamespacedPodDisruptionBudgetStatusWithHttpInfo(name, namespace, pretty, _options); + return result.toPromise(); + } + /** * read status of the specified PodDisruptionBudget * @param name name of the PodDisruptionBudget @@ -9631,6 +17848,20 @@ export class PromisePolicyV1Api { return result.toPromise(); } + /** + * replace the specified PodDisruptionBudget + * @param name name of the PodDisruptionBudget + * @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. + * @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. + */ + public replaceNamespacedPodDisruptionBudgetWithHttpInfo(name: string, namespace: string, body: V1PodDisruptionBudget, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.replaceNamespacedPodDisruptionBudgetWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + /** * replace the specified PodDisruptionBudget * @param name name of the PodDisruptionBudget @@ -9645,6 +17876,20 @@ export class PromisePolicyV1Api { return result.toPromise(); } + /** + * replace status of the specified PodDisruptionBudget + * @param name name of the PodDisruptionBudget + * @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. + * @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. + */ + public replaceNamespacedPodDisruptionBudgetStatusWithHttpInfo(name: string, namespace: string, body: V1PodDisruptionBudget, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.replaceNamespacedPodDisruptionBudgetStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + /** * replace status of the specified PodDisruptionBudget * @param name name of the PodDisruptionBudget @@ -9678,6 +17923,19 @@ export class PromisePolicyV1beta1Api { this.api = new ObservablePolicyV1beta1Api(configuration, requestFactory, responseProcessor); } + /** + * create a PodDisruptionBudget + * @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. + * @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. + */ + public createNamespacedPodDisruptionBudgetWithHttpInfo(namespace: string, body: V1beta1PodDisruptionBudget, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.createNamespacedPodDisruptionBudgetWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + /** * create a PodDisruptionBudget * @param namespace object name and auth scope, such as for teams and projects @@ -9692,14 +17950,48 @@ export class PromisePolicyV1beta1Api { } /** - * create a PodSecurityPolicy - * @param body + * create a PodSecurityPolicy + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public createPodSecurityPolicyWithHttpInfo(body: V1beta1PodSecurityPolicy, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.createPodSecurityPolicyWithHttpInfo(body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + + /** + * create a PodSecurityPolicy + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public createPodSecurityPolicy(body: V1beta1PodSecurityPolicy, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { + const result = this.api.createPodSecurityPolicy(body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + + /** + * delete collection of PodDisruptionBudget + * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. + * @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 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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body */ - public createPodSecurityPolicy(body: V1beta1PodSecurityPolicy, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { - const result = this.api.createPodSecurityPolicy(body, pretty, dryRun, fieldManager, _options); + public deleteCollectionNamespacedPodDisruptionBudgetWithHttpInfo(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteCollectionNamespacedPodDisruptionBudgetWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); return result.toPromise(); } @@ -9725,6 +18017,27 @@ export class PromisePolicyV1beta1Api { return result.toPromise(); } + /** + * delete collection of PodSecurityPolicy + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionPodSecurityPolicyWithHttpInfo(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteCollectionPodSecurityPolicyWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + return result.toPromise(); + } + /** * delete collection of PodSecurityPolicy * @param pretty If \'true\', then the output is pretty printed. @@ -9746,6 +18059,22 @@ export class PromisePolicyV1beta1Api { return result.toPromise(); } + /** + * delete a PodDisruptionBudget + * @param name name of the PodDisruptionBudget + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteNamespacedPodDisruptionBudgetWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteNamespacedPodDisruptionBudgetWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + return result.toPromise(); + } + /** * delete a PodDisruptionBudget * @param name name of the PodDisruptionBudget @@ -9762,6 +18091,21 @@ export class PromisePolicyV1beta1Api { return result.toPromise(); } + /** + * delete a PodSecurityPolicy + * @param name name of the PodSecurityPolicy + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deletePodSecurityPolicyWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deletePodSecurityPolicyWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + return result.toPromise(); + } + /** * delete a PodSecurityPolicy * @param name name of the PodSecurityPolicy @@ -9777,6 +18121,14 @@ export class PromisePolicyV1beta1Api { return result.toPromise(); } + /** + * get available resources + */ + public getAPIResourcesWithHttpInfo(_options?: Configuration): Promise> { + const result = this.api.getAPIResourcesWithHttpInfo(_options); + return result.toPromise(); + } + /** * get available resources */ @@ -9785,6 +18137,25 @@ export class PromisePolicyV1beta1Api { return result.toPromise(); } + /** + * list or watch objects of kind PodDisruptionBudget + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { + const result = this.api.listNamespacedPodDisruptionBudgetWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + /** * list or watch objects of kind PodDisruptionBudget * @param namespace object name and auth scope, such as for teams and projects @@ -9804,6 +18175,24 @@ export class PromisePolicyV1beta1Api { return result.toPromise(); } + /** + * list or watch objects of kind PodDisruptionBudget + * @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. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { + const result = this.api.listPodDisruptionBudgetForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + /** * list or watch objects of kind PodDisruptionBudget * @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. @@ -9822,6 +18211,24 @@ export class PromisePolicyV1beta1Api { return result.toPromise(); } + /** + * list or watch objects of kind PodSecurityPolicy + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + */ + public listPodSecurityPolicyWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { + const result = this.api.listPodSecurityPolicyWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + /** * list or watch objects of kind PodSecurityPolicy * @param pretty If \'true\', then the output is pretty printed. @@ -9840,6 +18247,21 @@ export class PromisePolicyV1beta1Api { return result.toPromise(); } + /** + * partially update the specified PodDisruptionBudget + * @param name name of the PodDisruptionBudget + * @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. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise> { + const result = this.api.patchNamespacedPodDisruptionBudgetWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options); + return result.toPromise(); + } + /** * partially update the specified PodDisruptionBudget * @param name name of the PodDisruptionBudget @@ -9855,6 +18277,21 @@ export class PromisePolicyV1beta1Api { return result.toPromise(); } + /** + * partially update status of the specified PodDisruptionBudget + * @param name name of the PodDisruptionBudget + * @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. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise> { + const result = this.api.patchNamespacedPodDisruptionBudgetStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options); + return result.toPromise(); + } + /** * partially update status of the specified PodDisruptionBudget * @param name name of the PodDisruptionBudget @@ -9870,6 +18307,20 @@ export class PromisePolicyV1beta1Api { return result.toPromise(); } + /** + * partially update the specified PodSecurityPolicy + * @param name name of the PodSecurityPolicy + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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 force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + */ + public patchPodSecurityPolicyWithHttpInfo(name: string, body: any, pretty?: string, dryRun?: string, fieldManager?: string, force?: boolean, _options?: Configuration): Promise> { + const result = this.api.patchPodSecurityPolicyWithHttpInfo(name, body, pretty, dryRun, fieldManager, force, _options); + return result.toPromise(); + } + /** * partially update the specified PodSecurityPolicy * @param name name of the PodSecurityPolicy @@ -9884,6 +18335,17 @@ export class PromisePolicyV1beta1Api { return result.toPromise(); } + /** + * read the specified PodDisruptionBudget + * @param name name of the PodDisruptionBudget + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + */ + public readNamespacedPodDisruptionBudgetWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.readNamespacedPodDisruptionBudgetWithHttpInfo(name, namespace, pretty, _options); + return result.toPromise(); + } + /** * read the specified PodDisruptionBudget * @param name name of the PodDisruptionBudget @@ -9895,6 +18357,17 @@ export class PromisePolicyV1beta1Api { return result.toPromise(); } + /** + * read status of the specified PodDisruptionBudget + * @param name name of the PodDisruptionBudget + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + */ + public readNamespacedPodDisruptionBudgetStatusWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.readNamespacedPodDisruptionBudgetStatusWithHttpInfo(name, namespace, pretty, _options); + return result.toPromise(); + } + /** * read status of the specified PodDisruptionBudget * @param name name of the PodDisruptionBudget @@ -9906,6 +18379,16 @@ export class PromisePolicyV1beta1Api { return result.toPromise(); } + /** + * read the specified PodSecurityPolicy + * @param name name of the PodSecurityPolicy + * @param pretty If \'true\', then the output is pretty printed. + */ + public readPodSecurityPolicyWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.readPodSecurityPolicyWithHttpInfo(name, pretty, _options); + return result.toPromise(); + } + /** * read the specified PodSecurityPolicy * @param name name of the PodSecurityPolicy @@ -9916,6 +18399,20 @@ export class PromisePolicyV1beta1Api { return result.toPromise(); } + /** + * replace the specified PodDisruptionBudget + * @param name name of the PodDisruptionBudget + * @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. + * @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. + */ + public replaceNamespacedPodDisruptionBudgetWithHttpInfo(name: string, namespace: string, body: V1beta1PodDisruptionBudget, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.replaceNamespacedPodDisruptionBudgetWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + /** * replace the specified PodDisruptionBudget * @param name name of the PodDisruptionBudget @@ -9930,6 +18427,20 @@ export class PromisePolicyV1beta1Api { return result.toPromise(); } + /** + * replace status of the specified PodDisruptionBudget + * @param name name of the PodDisruptionBudget + * @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. + * @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. + */ + public replaceNamespacedPodDisruptionBudgetStatusWithHttpInfo(name: string, namespace: string, body: V1beta1PodDisruptionBudget, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.replaceNamespacedPodDisruptionBudgetStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + /** * replace status of the specified PodDisruptionBudget * @param name name of the PodDisruptionBudget @@ -9944,6 +18455,19 @@ export class PromisePolicyV1beta1Api { return result.toPromise(); } + /** + * replace the specified PodSecurityPolicy + * @param name name of the PodSecurityPolicy + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public replacePodSecurityPolicyWithHttpInfo(name: string, body: V1beta1PodSecurityPolicy, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.replacePodSecurityPolicyWithHttpInfo(name, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + /** * replace the specified PodSecurityPolicy * @param name name of the PodSecurityPolicy @@ -9976,6 +18500,14 @@ export class PromiseRbacAuthorizationApi { this.api = new ObservableRbacAuthorizationApi(configuration, requestFactory, responseProcessor); } + /** + * get information of a group + */ + public getAPIGroupWithHttpInfo(_options?: Configuration): Promise> { + const result = this.api.getAPIGroupWithHttpInfo(_options); + return result.toPromise(); + } + /** * get information of a group */ @@ -10010,20 +18542,57 @@ export class PromiseRbacAuthorizationV1Api { * @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. */ - public createClusterRole(body: V1ClusterRole, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { - const result = this.api.createClusterRole(body, pretty, dryRun, fieldManager, _options); + public createClusterRoleWithHttpInfo(body: V1ClusterRole, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.createClusterRoleWithHttpInfo(body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + + /** + * create a ClusterRole + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public createClusterRole(body: V1ClusterRole, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { + const result = this.api.createClusterRole(body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + + /** + * create a ClusterRoleBinding + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public createClusterRoleBindingWithHttpInfo(body: V1ClusterRoleBinding, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.createClusterRoleBindingWithHttpInfo(body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + + /** + * create a ClusterRoleBinding + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public createClusterRoleBinding(body: V1ClusterRoleBinding, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { + const result = this.api.createClusterRoleBinding(body, pretty, dryRun, fieldManager, _options); return result.toPromise(); } /** - * create a ClusterRoleBinding + * create a Role + * @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. * @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. */ - public createClusterRoleBinding(body: V1ClusterRoleBinding, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise { - const result = this.api.createClusterRoleBinding(body, pretty, dryRun, fieldManager, _options); + public createNamespacedRoleWithHttpInfo(namespace: string, body: V1Role, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.createNamespacedRoleWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, _options); return result.toPromise(); } @@ -10040,6 +18609,19 @@ export class PromiseRbacAuthorizationV1Api { return result.toPromise(); } + /** + * create a RoleBinding + * @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. + * @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. + */ + public createNamespacedRoleBindingWithHttpInfo(namespace: string, body: V1RoleBinding, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.createNamespacedRoleBindingWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + /** * create a RoleBinding * @param namespace object name and auth scope, such as for teams and projects @@ -10053,6 +18635,21 @@ export class PromiseRbacAuthorizationV1Api { return result.toPromise(); } + /** + * delete a ClusterRole + * @param name name of the ClusterRole + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteClusterRoleWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteClusterRoleWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + return result.toPromise(); + } + /** * delete a ClusterRole * @param name name of the ClusterRole @@ -10068,6 +18665,21 @@ export class PromiseRbacAuthorizationV1Api { return result.toPromise(); } + /** + * delete a ClusterRoleBinding + * @param name name of the ClusterRoleBinding + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteClusterRoleBindingWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteClusterRoleBindingWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + return result.toPromise(); + } + /** * delete a ClusterRoleBinding * @param name name of the ClusterRoleBinding @@ -10083,6 +18695,27 @@ export class PromiseRbacAuthorizationV1Api { return result.toPromise(); } + /** + * delete collection of ClusterRole + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionClusterRoleWithHttpInfo(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteCollectionClusterRoleWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + return result.toPromise(); + } + /** * delete collection of ClusterRole * @param pretty If \'true\', then the output is pretty printed. @@ -10104,6 +18737,27 @@ export class PromiseRbacAuthorizationV1Api { return result.toPromise(); } + /** + * delete collection of ClusterRoleBinding + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionClusterRoleBindingWithHttpInfo(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteCollectionClusterRoleBindingWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + return result.toPromise(); + } + /** * delete collection of ClusterRoleBinding * @param pretty If \'true\', then the output is pretty printed. @@ -10125,6 +18779,28 @@ export class PromiseRbacAuthorizationV1Api { return result.toPromise(); } + /** + * delete collection of Role + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionNamespacedRoleWithHttpInfo(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteCollectionNamespacedRoleWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + return result.toPromise(); + } + /** * delete collection of Role * @param namespace object name and auth scope, such as for teams and projects @@ -10147,6 +18823,28 @@ export class PromiseRbacAuthorizationV1Api { return result.toPromise(); } + /** + * delete collection of RoleBinding + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionNamespacedRoleBindingWithHttpInfo(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteCollectionNamespacedRoleBindingWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + return result.toPromise(); + } + /** * delete collection of RoleBinding * @param namespace object name and auth scope, such as for teams and projects @@ -10169,6 +18867,22 @@ export class PromiseRbacAuthorizationV1Api { return result.toPromise(); } + /** + * delete a Role + * @param name name of the Role + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteNamespacedRoleWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteNamespacedRoleWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + return result.toPromise(); + } + /** * delete a Role * @param name name of the Role @@ -10185,6 +18899,22 @@ export class PromiseRbacAuthorizationV1Api { return result.toPromise(); } + /** + * delete a RoleBinding + * @param name name of the RoleBinding + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteNamespacedRoleBindingWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteNamespacedRoleBindingWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + return result.toPromise(); + } + /** * delete a RoleBinding * @param name name of the RoleBinding @@ -10201,6 +18931,14 @@ export class PromiseRbacAuthorizationV1Api { return result.toPromise(); } + /** + * get available resources + */ + public getAPIResourcesWithHttpInfo(_options?: Configuration): Promise> { + const result = this.api.getAPIResourcesWithHttpInfo(_options); + return result.toPromise(); + } + /** * get available resources */ @@ -10209,6 +18947,24 @@ export class PromiseRbacAuthorizationV1Api { return result.toPromise(); } + /** + * list or watch objects of kind ClusterRole + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { + const result = this.api.listClusterRoleWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + /** * list or watch objects of kind ClusterRole * @param pretty If \'true\', then the output is pretty printed. @@ -10227,6 +18983,24 @@ export class PromiseRbacAuthorizationV1Api { return result.toPromise(); } + /** + * list or watch objects of kind ClusterRoleBinding + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { + const result = this.api.listClusterRoleBindingWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + /** * list or watch objects of kind ClusterRoleBinding * @param pretty If \'true\', then the output is pretty printed. @@ -10245,6 +19019,25 @@ export class PromiseRbacAuthorizationV1Api { return result.toPromise(); } + /** + * list or watch objects of kind Role + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { + const result = this.api.listNamespacedRoleWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + /** * list or watch objects of kind Role * @param namespace object name and auth scope, such as for teams and projects @@ -10278,13 +19071,68 @@ export class PromiseRbacAuthorizationV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public listNamespacedRoleBinding(namespace: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { - const result = this.api.listNamespacedRoleBinding(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + public listNamespacedRoleBindingWithHttpInfo(namespace: string, pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { + const result = this.api.listNamespacedRoleBindingWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + + /** + * list or watch objects of kind RoleBinding + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + const result = this.api.listNamespacedRoleBinding(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + + /** + * list or watch objects of kind RoleBinding + * @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. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { + const result = this.api.listRoleBindingForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + + /** + * list or watch objects of kind RoleBinding + * @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. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + const result = this.api.listRoleBindingForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); return result.toPromise(); } /** - * list or watch objects of kind RoleBinding + * list or watch objects of kind Role * @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. @@ -10296,8 +19144,8 @@ export class PromiseRbacAuthorizationV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public listRoleBindingForAllNamespaces(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { - const result = this.api.listRoleBindingForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + public listRoleForAllNamespacesWithHttpInfo(allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, pretty?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { + const result = this.api.listRoleForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); return result.toPromise(); } @@ -10319,6 +19167,20 @@ export class PromiseRbacAuthorizationV1Api { return result.toPromise(); } + /** + * partially update the specified ClusterRole + * @param name name of the ClusterRole + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise> { + const result = this.api.patchClusterRoleWithHttpInfo(name, body, pretty, dryRun, fieldManager, force, _options); + return result.toPromise(); + } + /** * partially update the specified ClusterRole * @param name name of the ClusterRole @@ -10333,6 +19195,20 @@ export class PromiseRbacAuthorizationV1Api { return result.toPromise(); } + /** + * partially update the specified ClusterRoleBinding + * @param name name of the ClusterRoleBinding + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise> { + const result = this.api.patchClusterRoleBindingWithHttpInfo(name, body, pretty, dryRun, fieldManager, force, _options); + return result.toPromise(); + } + /** * partially update the specified ClusterRoleBinding * @param name name of the ClusterRoleBinding @@ -10347,6 +19223,21 @@ export class PromiseRbacAuthorizationV1Api { return result.toPromise(); } + /** + * partially update the specified Role + * @param name name of the Role + * @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. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise> { + const result = this.api.patchNamespacedRoleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options); + return result.toPromise(); + } + /** * partially update the specified Role * @param name name of the Role @@ -10362,6 +19253,21 @@ export class PromiseRbacAuthorizationV1Api { return result.toPromise(); } + /** + * partially update the specified RoleBinding + * @param name name of the RoleBinding + * @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. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise> { + const result = this.api.patchNamespacedRoleBindingWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options); + return result.toPromise(); + } + /** * partially update the specified RoleBinding * @param name name of the RoleBinding @@ -10377,6 +19283,16 @@ export class PromiseRbacAuthorizationV1Api { return result.toPromise(); } + /** + * read the specified ClusterRole + * @param name name of the ClusterRole + * @param pretty If \'true\', then the output is pretty printed. + */ + public readClusterRoleWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.readClusterRoleWithHttpInfo(name, pretty, _options); + return result.toPromise(); + } + /** * read the specified ClusterRole * @param name name of the ClusterRole @@ -10387,6 +19303,16 @@ export class PromiseRbacAuthorizationV1Api { return result.toPromise(); } + /** + * read the specified ClusterRoleBinding + * @param name name of the ClusterRoleBinding + * @param pretty If \'true\', then the output is pretty printed. + */ + public readClusterRoleBindingWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.readClusterRoleBindingWithHttpInfo(name, pretty, _options); + return result.toPromise(); + } + /** * read the specified ClusterRoleBinding * @param name name of the ClusterRoleBinding @@ -10397,6 +19323,17 @@ export class PromiseRbacAuthorizationV1Api { return result.toPromise(); } + /** + * read the specified Role + * @param name name of the Role + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + */ + public readNamespacedRoleWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.readNamespacedRoleWithHttpInfo(name, namespace, pretty, _options); + return result.toPromise(); + } + /** * read the specified Role * @param name name of the Role @@ -10408,6 +19345,17 @@ export class PromiseRbacAuthorizationV1Api { return result.toPromise(); } + /** + * read the specified RoleBinding + * @param name name of the RoleBinding + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + */ + public readNamespacedRoleBindingWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.readNamespacedRoleBindingWithHttpInfo(name, namespace, pretty, _options); + return result.toPromise(); + } + /** * read the specified RoleBinding * @param name name of the RoleBinding @@ -10419,6 +19367,19 @@ export class PromiseRbacAuthorizationV1Api { return result.toPromise(); } + /** + * replace the specified ClusterRole + * @param name name of the ClusterRole + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public replaceClusterRoleWithHttpInfo(name: string, body: V1ClusterRole, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.replaceClusterRoleWithHttpInfo(name, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + /** * replace the specified ClusterRole * @param name name of the ClusterRole @@ -10432,6 +19393,19 @@ export class PromiseRbacAuthorizationV1Api { return result.toPromise(); } + /** + * replace the specified ClusterRoleBinding + * @param name name of the ClusterRoleBinding + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public replaceClusterRoleBindingWithHttpInfo(name: string, body: V1ClusterRoleBinding, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.replaceClusterRoleBindingWithHttpInfo(name, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + /** * replace the specified ClusterRoleBinding * @param name name of the ClusterRoleBinding @@ -10445,6 +19419,20 @@ export class PromiseRbacAuthorizationV1Api { return result.toPromise(); } + /** + * replace the specified Role + * @param name name of the Role + * @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. + * @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. + */ + public replaceNamespacedRoleWithHttpInfo(name: string, namespace: string, body: V1Role, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.replaceNamespacedRoleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + /** * replace the specified Role * @param name name of the Role @@ -10459,6 +19447,20 @@ export class PromiseRbacAuthorizationV1Api { return result.toPromise(); } + /** + * replace the specified RoleBinding + * @param name name of the RoleBinding + * @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. + * @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. + */ + public replaceNamespacedRoleBindingWithHttpInfo(name: string, namespace: string, body: V1RoleBinding, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.replaceNamespacedRoleBindingWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + /** * replace the specified RoleBinding * @param name name of the RoleBinding @@ -10492,6 +19494,18 @@ export class PromiseRbacAuthorizationV1alpha1Api { this.api = new ObservableRbacAuthorizationV1alpha1Api(configuration, requestFactory, responseProcessor); } + /** + * create a ClusterRole + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public createClusterRoleWithHttpInfo(body: V1alpha1ClusterRole, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.createClusterRoleWithHttpInfo(body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + /** * create a ClusterRole * @param body @@ -10504,6 +19518,18 @@ export class PromiseRbacAuthorizationV1alpha1Api { return result.toPromise(); } + /** + * create a ClusterRoleBinding + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public createClusterRoleBindingWithHttpInfo(body: V1alpha1ClusterRoleBinding, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.createClusterRoleBindingWithHttpInfo(body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + /** * create a ClusterRoleBinding * @param body @@ -10516,6 +19542,19 @@ export class PromiseRbacAuthorizationV1alpha1Api { return result.toPromise(); } + /** + * create a Role + * @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. + * @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. + */ + public createNamespacedRoleWithHttpInfo(namespace: string, body: V1alpha1Role, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.createNamespacedRoleWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + /** * create a Role * @param namespace object name and auth scope, such as for teams and projects @@ -10529,6 +19568,19 @@ export class PromiseRbacAuthorizationV1alpha1Api { return result.toPromise(); } + /** + * create a RoleBinding + * @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. + * @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. + */ + public createNamespacedRoleBindingWithHttpInfo(namespace: string, body: V1alpha1RoleBinding, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.createNamespacedRoleBindingWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + /** * create a RoleBinding * @param namespace object name and auth scope, such as for teams and projects @@ -10543,37 +19595,130 @@ export class PromiseRbacAuthorizationV1alpha1Api { } /** - * delete a ClusterRole - * @param name name of the ClusterRole + * delete a ClusterRole + * @param name name of the ClusterRole + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteClusterRoleWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteClusterRoleWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + return result.toPromise(); + } + + /** + * delete a ClusterRole + * @param name name of the ClusterRole + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteClusterRole(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { + const result = this.api.deleteClusterRole(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + return result.toPromise(); + } + + /** + * delete a ClusterRoleBinding + * @param name name of the ClusterRoleBinding + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteClusterRoleBindingWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteClusterRoleBindingWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + return result.toPromise(); + } + + /** + * delete a ClusterRoleBinding + * @param name name of the ClusterRoleBinding + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteClusterRoleBinding(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { + const result = this.api.deleteClusterRoleBinding(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + return result.toPromise(); + } + + /** + * delete collection of ClusterRole + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionClusterRoleWithHttpInfo(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteCollectionClusterRoleWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + return result.toPromise(); + } + + /** + * delete collection of ClusterRole * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param body */ - public deleteClusterRole(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteClusterRole(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + public deleteCollectionClusterRole(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { + const result = this.api.deleteCollectionClusterRole(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); return result.toPromise(); } /** - * delete a ClusterRoleBinding - * @param name name of the ClusterRoleBinding + * delete collection of ClusterRoleBinding * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param body */ - public deleteClusterRoleBinding(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteClusterRoleBinding(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + public deleteCollectionClusterRoleBindingWithHttpInfo(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteCollectionClusterRoleBindingWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); return result.toPromise(); } /** - * delete collection of ClusterRole + * delete collection of ClusterRoleBinding * @param pretty If \'true\', then the output is pretty printed. * @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 @@ -10588,13 +19733,14 @@ export class PromiseRbacAuthorizationV1alpha1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param body */ - public deleteCollectionClusterRole(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteCollectionClusterRole(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + public deleteCollectionClusterRoleBinding(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { + const result = this.api.deleteCollectionClusterRoleBinding(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); return result.toPromise(); } /** - * delete collection of ClusterRoleBinding + * delete collection of Role + * @param namespace object name and auth scope, such as for teams and projects * @param pretty If \'true\', then the output is pretty printed. * @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 @@ -10609,8 +19755,8 @@ export class PromiseRbacAuthorizationV1alpha1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param body */ - public deleteCollectionClusterRoleBinding(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteCollectionClusterRoleBinding(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + public deleteCollectionNamespacedRoleWithHttpInfo(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteCollectionNamespacedRoleWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); return result.toPromise(); } @@ -10636,6 +19782,28 @@ export class PromiseRbacAuthorizationV1alpha1Api { return result.toPromise(); } + /** + * delete collection of RoleBinding + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionNamespacedRoleBindingWithHttpInfo(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteCollectionNamespacedRoleBindingWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + return result.toPromise(); + } + /** * delete collection of RoleBinding * @param namespace object name and auth scope, such as for teams and projects @@ -10658,6 +19826,22 @@ export class PromiseRbacAuthorizationV1alpha1Api { return result.toPromise(); } + /** + * delete a Role + * @param name name of the Role + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteNamespacedRoleWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteNamespacedRoleWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + return result.toPromise(); + } + /** * delete a Role * @param name name of the Role @@ -10674,6 +19858,22 @@ export class PromiseRbacAuthorizationV1alpha1Api { return result.toPromise(); } + /** + * delete a RoleBinding + * @param name name of the RoleBinding + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteNamespacedRoleBindingWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteNamespacedRoleBindingWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + return result.toPromise(); + } + /** * delete a RoleBinding * @param name name of the RoleBinding @@ -10690,6 +19890,14 @@ export class PromiseRbacAuthorizationV1alpha1Api { return result.toPromise(); } + /** + * get available resources + */ + public getAPIResourcesWithHttpInfo(_options?: Configuration): Promise> { + const result = this.api.getAPIResourcesWithHttpInfo(_options); + return result.toPromise(); + } + /** * get available resources */ @@ -10698,6 +19906,24 @@ export class PromiseRbacAuthorizationV1alpha1Api { return result.toPromise(); } + /** + * list or watch objects of kind ClusterRole + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { + const result = this.api.listClusterRoleWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + /** * list or watch objects of kind ClusterRole * @param pretty If \'true\', then the output is pretty printed. @@ -10716,6 +19942,24 @@ export class PromiseRbacAuthorizationV1alpha1Api { return result.toPromise(); } + /** + * list or watch objects of kind ClusterRoleBinding + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { + const result = this.api.listClusterRoleBindingWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + /** * list or watch objects of kind ClusterRoleBinding * @param pretty If \'true\', then the output is pretty printed. @@ -10734,6 +19978,25 @@ export class PromiseRbacAuthorizationV1alpha1Api { return result.toPromise(); } + /** + * list or watch objects of kind Role + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { + const result = this.api.listNamespacedRoleWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + /** * list or watch objects of kind Role * @param namespace object name and auth scope, such as for teams and projects @@ -10753,6 +20016,25 @@ export class PromiseRbacAuthorizationV1alpha1Api { return result.toPromise(); } + /** + * list or watch objects of kind RoleBinding + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { + const result = this.api.listNamespacedRoleBindingWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + /** * list or watch objects of kind RoleBinding * @param namespace object name and auth scope, such as for teams and projects @@ -10772,6 +20054,24 @@ export class PromiseRbacAuthorizationV1alpha1Api { return result.toPromise(); } + /** + * list or watch objects of kind RoleBinding + * @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. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { + const result = this.api.listRoleBindingForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + /** * list or watch objects of kind RoleBinding * @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. @@ -10790,6 +20090,24 @@ export class PromiseRbacAuthorizationV1alpha1Api { return result.toPromise(); } + /** + * list or watch objects of kind Role + * @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. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { + const result = this.api.listRoleForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + /** * list or watch objects of kind Role * @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. @@ -10808,6 +20126,20 @@ export class PromiseRbacAuthorizationV1alpha1Api { return result.toPromise(); } + /** + * partially update the specified ClusterRole + * @param name name of the ClusterRole + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise> { + const result = this.api.patchClusterRoleWithHttpInfo(name, body, pretty, dryRun, fieldManager, force, _options); + return result.toPromise(); + } + /** * partially update the specified ClusterRole * @param name name of the ClusterRole @@ -10822,6 +20154,20 @@ export class PromiseRbacAuthorizationV1alpha1Api { return result.toPromise(); } + /** + * partially update the specified ClusterRoleBinding + * @param name name of the ClusterRoleBinding + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise> { + const result = this.api.patchClusterRoleBindingWithHttpInfo(name, body, pretty, dryRun, fieldManager, force, _options); + return result.toPromise(); + } + /** * partially update the specified ClusterRoleBinding * @param name name of the ClusterRoleBinding @@ -10836,6 +20182,21 @@ export class PromiseRbacAuthorizationV1alpha1Api { return result.toPromise(); } + /** + * partially update the specified Role + * @param name name of the Role + * @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. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise> { + const result = this.api.patchNamespacedRoleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options); + return result.toPromise(); + } + /** * partially update the specified Role * @param name name of the Role @@ -10851,6 +20212,21 @@ export class PromiseRbacAuthorizationV1alpha1Api { return result.toPromise(); } + /** + * partially update the specified RoleBinding + * @param name name of the RoleBinding + * @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. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise> { + const result = this.api.patchNamespacedRoleBindingWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options); + return result.toPromise(); + } + /** * partially update the specified RoleBinding * @param name name of the RoleBinding @@ -10866,6 +20242,16 @@ export class PromiseRbacAuthorizationV1alpha1Api { return result.toPromise(); } + /** + * read the specified ClusterRole + * @param name name of the ClusterRole + * @param pretty If \'true\', then the output is pretty printed. + */ + public readClusterRoleWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.readClusterRoleWithHttpInfo(name, pretty, _options); + return result.toPromise(); + } + /** * read the specified ClusterRole * @param name name of the ClusterRole @@ -10876,6 +20262,16 @@ export class PromiseRbacAuthorizationV1alpha1Api { return result.toPromise(); } + /** + * read the specified ClusterRoleBinding + * @param name name of the ClusterRoleBinding + * @param pretty If \'true\', then the output is pretty printed. + */ + public readClusterRoleBindingWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.readClusterRoleBindingWithHttpInfo(name, pretty, _options); + return result.toPromise(); + } + /** * read the specified ClusterRoleBinding * @param name name of the ClusterRoleBinding @@ -10886,6 +20282,17 @@ export class PromiseRbacAuthorizationV1alpha1Api { return result.toPromise(); } + /** + * read the specified Role + * @param name name of the Role + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + */ + public readNamespacedRoleWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.readNamespacedRoleWithHttpInfo(name, namespace, pretty, _options); + return result.toPromise(); + } + /** * read the specified Role * @param name name of the Role @@ -10897,6 +20304,17 @@ export class PromiseRbacAuthorizationV1alpha1Api { return result.toPromise(); } + /** + * read the specified RoleBinding + * @param name name of the RoleBinding + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + */ + public readNamespacedRoleBindingWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.readNamespacedRoleBindingWithHttpInfo(name, namespace, pretty, _options); + return result.toPromise(); + } + /** * read the specified RoleBinding * @param name name of the RoleBinding @@ -10908,6 +20326,19 @@ export class PromiseRbacAuthorizationV1alpha1Api { return result.toPromise(); } + /** + * replace the specified ClusterRole + * @param name name of the ClusterRole + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public replaceClusterRoleWithHttpInfo(name: string, body: V1alpha1ClusterRole, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.replaceClusterRoleWithHttpInfo(name, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + /** * replace the specified ClusterRole * @param name name of the ClusterRole @@ -10921,6 +20352,19 @@ export class PromiseRbacAuthorizationV1alpha1Api { return result.toPromise(); } + /** + * replace the specified ClusterRoleBinding + * @param name name of the ClusterRoleBinding + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public replaceClusterRoleBindingWithHttpInfo(name: string, body: V1alpha1ClusterRoleBinding, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.replaceClusterRoleBindingWithHttpInfo(name, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + /** * replace the specified ClusterRoleBinding * @param name name of the ClusterRoleBinding @@ -10934,6 +20378,20 @@ export class PromiseRbacAuthorizationV1alpha1Api { return result.toPromise(); } + /** + * replace the specified Role + * @param name name of the Role + * @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. + * @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. + */ + public replaceNamespacedRoleWithHttpInfo(name: string, namespace: string, body: V1alpha1Role, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.replaceNamespacedRoleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + /** * replace the specified Role * @param name name of the Role @@ -10948,6 +20406,20 @@ export class PromiseRbacAuthorizationV1alpha1Api { return result.toPromise(); } + /** + * replace the specified RoleBinding + * @param name name of the RoleBinding + * @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. + * @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. + */ + public replaceNamespacedRoleBindingWithHttpInfo(name: string, namespace: string, body: V1alpha1RoleBinding, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.replaceNamespacedRoleBindingWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + /** * replace the specified RoleBinding * @param name name of the RoleBinding @@ -10981,6 +20453,14 @@ export class PromiseSchedulingApi { this.api = new ObservableSchedulingApi(configuration, requestFactory, responseProcessor); } + /** + * get information of a group + */ + public getAPIGroupWithHttpInfo(_options?: Configuration): Promise> { + const result = this.api.getAPIGroupWithHttpInfo(_options); + return result.toPromise(); + } + /** * get information of a group */ @@ -11008,6 +20488,18 @@ export class PromiseSchedulingV1Api { this.api = new ObservableSchedulingV1Api(configuration, requestFactory, responseProcessor); } + /** + * create a PriorityClass + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public createPriorityClassWithHttpInfo(body: V1PriorityClass, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.createPriorityClassWithHttpInfo(body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + /** * create a PriorityClass * @param body @@ -11020,6 +20512,27 @@ export class PromiseSchedulingV1Api { return result.toPromise(); } + /** + * delete collection of PriorityClass + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionPriorityClassWithHttpInfo(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteCollectionPriorityClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + return result.toPromise(); + } + /** * delete collection of PriorityClass * @param pretty If \'true\', then the output is pretty printed. @@ -11041,6 +20554,21 @@ export class PromiseSchedulingV1Api { return result.toPromise(); } + /** + * delete a PriorityClass + * @param name name of the PriorityClass + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deletePriorityClassWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deletePriorityClassWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + return result.toPromise(); + } + /** * delete a PriorityClass * @param name name of the PriorityClass @@ -11056,6 +20584,14 @@ export class PromiseSchedulingV1Api { return result.toPromise(); } + /** + * get available resources + */ + public getAPIResourcesWithHttpInfo(_options?: Configuration): Promise> { + const result = this.api.getAPIResourcesWithHttpInfo(_options); + return result.toPromise(); + } + /** * get available resources */ @@ -11064,6 +20600,24 @@ export class PromiseSchedulingV1Api { return result.toPromise(); } + /** + * list or watch objects of kind PriorityClass + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { + const result = this.api.listPriorityClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + /** * list or watch objects of kind PriorityClass * @param pretty If \'true\', then the output is pretty printed. @@ -11082,6 +20636,20 @@ export class PromiseSchedulingV1Api { return result.toPromise(); } + /** + * partially update the specified PriorityClass + * @param name name of the PriorityClass + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise> { + const result = this.api.patchPriorityClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, force, _options); + return result.toPromise(); + } + /** * partially update the specified PriorityClass * @param name name of the PriorityClass @@ -11096,6 +20664,16 @@ export class PromiseSchedulingV1Api { return result.toPromise(); } + /** + * read the specified PriorityClass + * @param name name of the PriorityClass + * @param pretty If \'true\', then the output is pretty printed. + */ + public readPriorityClassWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.readPriorityClassWithHttpInfo(name, pretty, _options); + return result.toPromise(); + } + /** * read the specified PriorityClass * @param name name of the PriorityClass @@ -11106,6 +20684,19 @@ export class PromiseSchedulingV1Api { return result.toPromise(); } + /** + * replace the specified PriorityClass + * @param name name of the PriorityClass + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public replacePriorityClassWithHttpInfo(name: string, body: V1PriorityClass, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.replacePriorityClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + /** * replace the specified PriorityClass * @param name name of the PriorityClass @@ -11138,6 +20729,18 @@ export class PromiseSchedulingV1alpha1Api { this.api = new ObservableSchedulingV1alpha1Api(configuration, requestFactory, responseProcessor); } + /** + * create a PriorityClass + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public createPriorityClassWithHttpInfo(body: V1alpha1PriorityClass, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.createPriorityClassWithHttpInfo(body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + /** * create a PriorityClass * @param body @@ -11150,6 +20753,27 @@ export class PromiseSchedulingV1alpha1Api { return result.toPromise(); } + /** + * delete collection of PriorityClass + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionPriorityClassWithHttpInfo(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteCollectionPriorityClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + return result.toPromise(); + } + /** * delete collection of PriorityClass * @param pretty If \'true\', then the output is pretty printed. @@ -11171,6 +20795,21 @@ export class PromiseSchedulingV1alpha1Api { return result.toPromise(); } + /** + * delete a PriorityClass + * @param name name of the PriorityClass + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deletePriorityClassWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deletePriorityClassWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + return result.toPromise(); + } + /** * delete a PriorityClass * @param name name of the PriorityClass @@ -11186,6 +20825,14 @@ export class PromiseSchedulingV1alpha1Api { return result.toPromise(); } + /** + * get available resources + */ + public getAPIResourcesWithHttpInfo(_options?: Configuration): Promise> { + const result = this.api.getAPIResourcesWithHttpInfo(_options); + return result.toPromise(); + } + /** * get available resources */ @@ -11194,6 +20841,24 @@ export class PromiseSchedulingV1alpha1Api { return result.toPromise(); } + /** + * list or watch objects of kind PriorityClass + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { + const result = this.api.listPriorityClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + /** * list or watch objects of kind PriorityClass * @param pretty If \'true\', then the output is pretty printed. @@ -11212,6 +20877,20 @@ export class PromiseSchedulingV1alpha1Api { return result.toPromise(); } + /** + * partially update the specified PriorityClass + * @param name name of the PriorityClass + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise> { + const result = this.api.patchPriorityClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, force, _options); + return result.toPromise(); + } + /** * partially update the specified PriorityClass * @param name name of the PriorityClass @@ -11227,12 +20906,35 @@ export class PromiseSchedulingV1alpha1Api { } /** - * read the specified PriorityClass + * read the specified PriorityClass + * @param name name of the PriorityClass + * @param pretty If \'true\', then the output is pretty printed. + */ + public readPriorityClassWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.readPriorityClassWithHttpInfo(name, pretty, _options); + return result.toPromise(); + } + + /** + * read the specified PriorityClass + * @param name name of the PriorityClass + * @param pretty If \'true\', then the output is pretty printed. + */ + public readPriorityClass(name: string, pretty?: string, _options?: Configuration): Promise { + const result = this.api.readPriorityClass(name, pretty, _options); + return result.toPromise(); + } + + /** + * replace the specified PriorityClass * @param name name of the PriorityClass + * @param body * @param pretty If \'true\', then the output is pretty printed. + * @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. */ - public readPriorityClass(name: string, pretty?: string, _options?: Configuration): Promise { - const result = this.api.readPriorityClass(name, pretty, _options); + public replacePriorityClassWithHttpInfo(name: string, body: V1alpha1PriorityClass, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.replacePriorityClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, _options); return result.toPromise(); } @@ -11268,6 +20970,14 @@ export class PromiseStorageApi { this.api = new ObservableStorageApi(configuration, requestFactory, responseProcessor); } + /** + * get information of a group + */ + public getAPIGroupWithHttpInfo(_options?: Configuration): Promise> { + const result = this.api.getAPIGroupWithHttpInfo(_options); + return result.toPromise(); + } + /** * get information of a group */ @@ -11295,6 +21005,18 @@ export class PromiseStorageV1Api { this.api = new ObservableStorageV1Api(configuration, requestFactory, responseProcessor); } + /** + * create a CSIDriver + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public createCSIDriverWithHttpInfo(body: V1CSIDriver, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.createCSIDriverWithHttpInfo(body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + /** * create a CSIDriver * @param body @@ -11307,6 +21029,18 @@ export class PromiseStorageV1Api { return result.toPromise(); } + /** + * create a CSINode + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public createCSINodeWithHttpInfo(body: V1CSINode, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.createCSINodeWithHttpInfo(body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + /** * create a CSINode * @param body @@ -11319,6 +21053,18 @@ export class PromiseStorageV1Api { return result.toPromise(); } + /** + * create a StorageClass + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public createStorageClassWithHttpInfo(body: V1StorageClass, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.createStorageClassWithHttpInfo(body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + /** * create a StorageClass * @param body @@ -11331,6 +21077,18 @@ export class PromiseStorageV1Api { return result.toPromise(); } + /** + * create a VolumeAttachment + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public createVolumeAttachmentWithHttpInfo(body: V1VolumeAttachment, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.createVolumeAttachmentWithHttpInfo(body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + /** * create a VolumeAttachment * @param body @@ -11343,6 +21101,21 @@ export class PromiseStorageV1Api { return result.toPromise(); } + /** + * delete a CSIDriver + * @param name name of the CSIDriver + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteCSIDriverWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteCSIDriverWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + return result.toPromise(); + } + /** * delete a CSIDriver * @param name name of the CSIDriver @@ -11358,6 +21131,21 @@ export class PromiseStorageV1Api { return result.toPromise(); } + /** + * delete a CSINode + * @param name name of the CSINode + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteCSINodeWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteCSINodeWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + return result.toPromise(); + } + /** * delete a CSINode * @param name name of the CSINode @@ -11373,6 +21161,27 @@ export class PromiseStorageV1Api { return result.toPromise(); } + /** + * delete collection of CSIDriver + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionCSIDriverWithHttpInfo(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteCollectionCSIDriverWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + return result.toPromise(); + } + /** * delete collection of CSIDriver * @param pretty If \'true\', then the output is pretty printed. @@ -11394,6 +21203,27 @@ export class PromiseStorageV1Api { return result.toPromise(); } + /** + * delete collection of CSINode + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionCSINodeWithHttpInfo(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteCollectionCSINodeWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + return result.toPromise(); + } + /** * delete collection of CSINode * @param pretty If \'true\', then the output is pretty printed. @@ -11415,6 +21245,27 @@ export class PromiseStorageV1Api { return result.toPromise(); } + /** + * delete collection of StorageClass + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionStorageClassWithHttpInfo(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteCollectionStorageClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + return result.toPromise(); + } + /** * delete collection of StorageClass * @param pretty If \'true\', then the output is pretty printed. @@ -11436,6 +21287,27 @@ export class PromiseStorageV1Api { return result.toPromise(); } + /** + * delete collection of VolumeAttachment + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionVolumeAttachmentWithHttpInfo(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteCollectionVolumeAttachmentWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + return result.toPromise(); + } + /** * delete collection of VolumeAttachment * @param pretty If \'true\', then the output is pretty printed. @@ -11457,6 +21329,21 @@ export class PromiseStorageV1Api { return result.toPromise(); } + /** + * delete a StorageClass + * @param name name of the StorageClass + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteStorageClassWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteStorageClassWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + return result.toPromise(); + } + /** * delete a StorageClass * @param name name of the StorageClass @@ -11472,6 +21359,21 @@ export class PromiseStorageV1Api { return result.toPromise(); } + /** + * delete a VolumeAttachment + * @param name name of the VolumeAttachment + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteVolumeAttachmentWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteVolumeAttachmentWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + return result.toPromise(); + } + /** * delete a VolumeAttachment * @param name name of the VolumeAttachment @@ -11487,6 +21389,14 @@ export class PromiseStorageV1Api { return result.toPromise(); } + /** + * get available resources + */ + public getAPIResourcesWithHttpInfo(_options?: Configuration): Promise> { + const result = this.api.getAPIResourcesWithHttpInfo(_options); + return result.toPromise(); + } + /** * get available resources */ @@ -11496,7 +21406,79 @@ export class PromiseStorageV1Api { } /** - * list or watch objects of kind CSIDriver + * list or watch objects of kind CSIDriver + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { + const result = this.api.listCSIDriverWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + + /** + * list or watch objects of kind CSIDriver + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + const result = this.api.listCSIDriver(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + + /** + * list or watch objects of kind CSINode + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { + const result = this.api.listCSINodeWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + + /** + * list or watch objects of kind CSINode + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + const result = this.api.listCSINode(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + + /** + * list or watch objects of kind StorageClass * @param pretty If \'true\', then the output is pretty printed. * @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. @@ -11508,13 +21490,13 @@ export class PromiseStorageV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public listCSIDriver(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { - const result = this.api.listCSIDriver(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + public listStorageClassWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { + const result = this.api.listStorageClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); return result.toPromise(); } /** - * list or watch objects of kind CSINode + * list or watch objects of kind StorageClass * @param pretty If \'true\', then the output is pretty printed. * @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. @@ -11526,13 +21508,13 @@ export class PromiseStorageV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public listCSINode(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { - const result = this.api.listCSINode(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + public listStorageClass(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { + const result = this.api.listStorageClass(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); return result.toPromise(); } /** - * list or watch objects of kind StorageClass + * list or watch objects of kind VolumeAttachment * @param pretty If \'true\', then the output is pretty printed. * @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. @@ -11544,8 +21526,8 @@ export class PromiseStorageV1Api { * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. */ - public listStorageClass(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise { - const result = this.api.listStorageClass(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + public listVolumeAttachmentWithHttpInfo(pretty?: string, allowWatchBookmarks?: boolean, _continue?: string, fieldSelector?: string, labelSelector?: string, limit?: number, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { + const result = this.api.listVolumeAttachmentWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); return result.toPromise(); } @@ -11567,6 +21549,20 @@ export class PromiseStorageV1Api { return result.toPromise(); } + /** + * partially update the specified CSIDriver + * @param name name of the CSIDriver + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise> { + const result = this.api.patchCSIDriverWithHttpInfo(name, body, pretty, dryRun, fieldManager, force, _options); + return result.toPromise(); + } + /** * partially update the specified CSIDriver * @param name name of the CSIDriver @@ -11581,6 +21577,20 @@ export class PromiseStorageV1Api { return result.toPromise(); } + /** + * partially update the specified CSINode + * @param name name of the CSINode + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise> { + const result = this.api.patchCSINodeWithHttpInfo(name, body, pretty, dryRun, fieldManager, force, _options); + return result.toPromise(); + } + /** * partially update the specified CSINode * @param name name of the CSINode @@ -11595,6 +21605,20 @@ export class PromiseStorageV1Api { return result.toPromise(); } + /** + * partially update the specified StorageClass + * @param name name of the StorageClass + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise> { + const result = this.api.patchStorageClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, force, _options); + return result.toPromise(); + } + /** * partially update the specified StorageClass * @param name name of the StorageClass @@ -11609,6 +21633,20 @@ export class PromiseStorageV1Api { return result.toPromise(); } + /** + * partially update the specified VolumeAttachment + * @param name name of the VolumeAttachment + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise> { + const result = this.api.patchVolumeAttachmentWithHttpInfo(name, body, pretty, dryRun, fieldManager, force, _options); + return result.toPromise(); + } + /** * partially update the specified VolumeAttachment * @param name name of the VolumeAttachment @@ -11623,6 +21661,20 @@ export class PromiseStorageV1Api { return result.toPromise(); } + /** + * partially update status of the specified VolumeAttachment + * @param name name of the VolumeAttachment + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise> { + const result = this.api.patchVolumeAttachmentStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, force, _options); + return result.toPromise(); + } + /** * partially update status of the specified VolumeAttachment * @param name name of the VolumeAttachment @@ -11637,6 +21689,16 @@ export class PromiseStorageV1Api { return result.toPromise(); } + /** + * read the specified CSIDriver + * @param name name of the CSIDriver + * @param pretty If \'true\', then the output is pretty printed. + */ + public readCSIDriverWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.readCSIDriverWithHttpInfo(name, pretty, _options); + return result.toPromise(); + } + /** * read the specified CSIDriver * @param name name of the CSIDriver @@ -11647,6 +21709,16 @@ export class PromiseStorageV1Api { return result.toPromise(); } + /** + * read the specified CSINode + * @param name name of the CSINode + * @param pretty If \'true\', then the output is pretty printed. + */ + public readCSINodeWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.readCSINodeWithHttpInfo(name, pretty, _options); + return result.toPromise(); + } + /** * read the specified CSINode * @param name name of the CSINode @@ -11657,6 +21729,16 @@ export class PromiseStorageV1Api { return result.toPromise(); } + /** + * read the specified StorageClass + * @param name name of the StorageClass + * @param pretty If \'true\', then the output is pretty printed. + */ + public readStorageClassWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.readStorageClassWithHttpInfo(name, pretty, _options); + return result.toPromise(); + } + /** * read the specified StorageClass * @param name name of the StorageClass @@ -11667,6 +21749,16 @@ export class PromiseStorageV1Api { return result.toPromise(); } + /** + * read the specified VolumeAttachment + * @param name name of the VolumeAttachment + * @param pretty If \'true\', then the output is pretty printed. + */ + public readVolumeAttachmentWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.readVolumeAttachmentWithHttpInfo(name, pretty, _options); + return result.toPromise(); + } + /** * read the specified VolumeAttachment * @param name name of the VolumeAttachment @@ -11677,6 +21769,16 @@ export class PromiseStorageV1Api { return result.toPromise(); } + /** + * read status of the specified VolumeAttachment + * @param name name of the VolumeAttachment + * @param pretty If \'true\', then the output is pretty printed. + */ + public readVolumeAttachmentStatusWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.readVolumeAttachmentStatusWithHttpInfo(name, pretty, _options); + return result.toPromise(); + } + /** * read status of the specified VolumeAttachment * @param name name of the VolumeAttachment @@ -11687,6 +21789,19 @@ export class PromiseStorageV1Api { return result.toPromise(); } + /** + * replace the specified CSIDriver + * @param name name of the CSIDriver + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public replaceCSIDriverWithHttpInfo(name: string, body: V1CSIDriver, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.replaceCSIDriverWithHttpInfo(name, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + /** * replace the specified CSIDriver * @param name name of the CSIDriver @@ -11700,6 +21815,19 @@ export class PromiseStorageV1Api { return result.toPromise(); } + /** + * replace the specified CSINode + * @param name name of the CSINode + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public replaceCSINodeWithHttpInfo(name: string, body: V1CSINode, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.replaceCSINodeWithHttpInfo(name, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + /** * replace the specified CSINode * @param name name of the CSINode @@ -11713,6 +21841,19 @@ export class PromiseStorageV1Api { return result.toPromise(); } + /** + * replace the specified StorageClass + * @param name name of the StorageClass + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public replaceStorageClassWithHttpInfo(name: string, body: V1StorageClass, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.replaceStorageClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + /** * replace the specified StorageClass * @param name name of the StorageClass @@ -11726,6 +21867,19 @@ export class PromiseStorageV1Api { return result.toPromise(); } + /** + * replace the specified VolumeAttachment + * @param name name of the VolumeAttachment + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public replaceVolumeAttachmentWithHttpInfo(name: string, body: V1VolumeAttachment, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.replaceVolumeAttachmentWithHttpInfo(name, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + /** * replace the specified VolumeAttachment * @param name name of the VolumeAttachment @@ -11739,6 +21893,19 @@ export class PromiseStorageV1Api { return result.toPromise(); } + /** + * replace status of the specified VolumeAttachment + * @param name name of the VolumeAttachment + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public replaceVolumeAttachmentStatusWithHttpInfo(name: string, body: V1VolumeAttachment, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.replaceVolumeAttachmentStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + /** * replace status of the specified VolumeAttachment * @param name name of the VolumeAttachment @@ -11771,6 +21938,19 @@ export class PromiseStorageV1alpha1Api { this.api = new ObservableStorageV1alpha1Api(configuration, requestFactory, responseProcessor); } + /** + * create a 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. + * @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. + */ + public createNamespacedCSIStorageCapacityWithHttpInfo(namespace: string, body: V1alpha1CSIStorageCapacity, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.createNamespacedCSIStorageCapacityWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + /** * create a CSIStorageCapacity * @param namespace object name and auth scope, such as for teams and projects @@ -11784,6 +21964,18 @@ export class PromiseStorageV1alpha1Api { return result.toPromise(); } + /** + * create a VolumeAttachment + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public createVolumeAttachmentWithHttpInfo(body: V1alpha1VolumeAttachment, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.createVolumeAttachmentWithHttpInfo(body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + /** * create a VolumeAttachment * @param body @@ -11796,6 +21988,28 @@ export class PromiseStorageV1alpha1Api { return result.toPromise(); } + /** + * delete collection of CSIStorageCapacity + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionNamespacedCSIStorageCapacityWithHttpInfo(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteCollectionNamespacedCSIStorageCapacityWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + return result.toPromise(); + } + /** * delete collection of CSIStorageCapacity * @param namespace object name and auth scope, such as for teams and projects @@ -11818,6 +22032,27 @@ export class PromiseStorageV1alpha1Api { return result.toPromise(); } + /** + * delete collection of VolumeAttachment + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionVolumeAttachmentWithHttpInfo(pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteCollectionVolumeAttachmentWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + return result.toPromise(); + } + /** * delete collection of VolumeAttachment * @param pretty If \'true\', then the output is pretty printed. @@ -11850,8 +22085,39 @@ export class PromiseStorageV1alpha1Api { * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \'Orphan\' - orphan the dependents; \'Background\' - allow the garbage collector to delete the dependents in the background; \'Foreground\' - a cascading policy that deletes all dependents in the foreground. * @param body */ - public deleteNamespacedCSIStorageCapacity(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { - const result = this.api.deleteNamespacedCSIStorageCapacity(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + public deleteNamespacedCSIStorageCapacityWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteNamespacedCSIStorageCapacityWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + return result.toPromise(); + } + + /** + * delete a CSIStorageCapacity + * @param name name of the CSIStorageCapacity + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteNamespacedCSIStorageCapacity(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise { + const result = this.api.deleteNamespacedCSIStorageCapacity(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + return result.toPromise(); + } + + /** + * delete a VolumeAttachment + * @param name name of the VolumeAttachment + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteVolumeAttachmentWithHttpInfo(name: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteVolumeAttachmentWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); return result.toPromise(); } @@ -11870,6 +22136,14 @@ export class PromiseStorageV1alpha1Api { return result.toPromise(); } + /** + * get available resources + */ + public getAPIResourcesWithHttpInfo(_options?: Configuration): Promise> { + const result = this.api.getAPIResourcesWithHttpInfo(_options); + return result.toPromise(); + } + /** * get available resources */ @@ -11878,6 +22152,24 @@ export class PromiseStorageV1alpha1Api { return result.toPromise(); } + /** + * list or watch objects of kind CSIStorageCapacity + * @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. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { + const result = this.api.listCSIStorageCapacityForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + /** * list or watch objects of kind CSIStorageCapacity * @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. @@ -11896,6 +22188,25 @@ export class PromiseStorageV1alpha1Api { return result.toPromise(); } + /** + * 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. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { + const result = this.api.listNamespacedCSIStorageCapacityWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + /** * list or watch objects of kind CSIStorageCapacity * @param namespace object name and auth scope, such as for teams and projects @@ -11915,6 +22226,24 @@ export class PromiseStorageV1alpha1Api { return result.toPromise(); } + /** + * list or watch objects of kind VolumeAttachment + * @param pretty If \'true\', then the output is pretty printed. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { + const result = this.api.listVolumeAttachmentWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + /** * list or watch objects of kind VolumeAttachment * @param pretty If \'true\', then the output is pretty printed. @@ -11933,6 +22262,21 @@ export class PromiseStorageV1alpha1Api { return result.toPromise(); } + /** + * partially update 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. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise> { + const result = this.api.patchNamespacedCSIStorageCapacityWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options); + return result.toPromise(); + } + /** * partially update the specified CSIStorageCapacity * @param name name of the CSIStorageCapacity @@ -11948,6 +22292,20 @@ export class PromiseStorageV1alpha1Api { return result.toPromise(); } + /** + * partially update the specified VolumeAttachment + * @param name name of the VolumeAttachment + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise> { + const result = this.api.patchVolumeAttachmentWithHttpInfo(name, body, pretty, dryRun, fieldManager, force, _options); + return result.toPromise(); + } + /** * partially update the specified VolumeAttachment * @param name name of the VolumeAttachment @@ -11962,6 +22320,17 @@ export class PromiseStorageV1alpha1Api { return result.toPromise(); } + /** + * read the specified CSIStorageCapacity + * @param name name of the CSIStorageCapacity + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + */ + public readNamespacedCSIStorageCapacityWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.readNamespacedCSIStorageCapacityWithHttpInfo(name, namespace, pretty, _options); + return result.toPromise(); + } + /** * read the specified CSIStorageCapacity * @param name name of the CSIStorageCapacity @@ -11973,6 +22342,16 @@ export class PromiseStorageV1alpha1Api { return result.toPromise(); } + /** + * read the specified VolumeAttachment + * @param name name of the VolumeAttachment + * @param pretty If \'true\', then the output is pretty printed. + */ + public readVolumeAttachmentWithHttpInfo(name: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.readVolumeAttachmentWithHttpInfo(name, pretty, _options); + return result.toPromise(); + } + /** * read the specified VolumeAttachment * @param name name of the VolumeAttachment @@ -11983,6 +22362,20 @@ export class PromiseStorageV1alpha1Api { return result.toPromise(); } + /** + * 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. + * @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. + */ + public replaceNamespacedCSIStorageCapacityWithHttpInfo(name: string, namespace: string, body: V1alpha1CSIStorageCapacity, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.replaceNamespacedCSIStorageCapacityWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + /** * replace the specified CSIStorageCapacity * @param name name of the CSIStorageCapacity @@ -11997,6 +22390,19 @@ export class PromiseStorageV1alpha1Api { return result.toPromise(); } + /** + * replace the specified VolumeAttachment + * @param name name of the VolumeAttachment + * @param body + * @param pretty If \'true\', then the output is pretty printed. + * @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. + */ + public replaceVolumeAttachmentWithHttpInfo(name: string, body: V1alpha1VolumeAttachment, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.replaceVolumeAttachmentWithHttpInfo(name, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + /** * replace the specified VolumeAttachment * @param name name of the VolumeAttachment @@ -12029,6 +22435,19 @@ export class PromiseStorageV1beta1Api { this.api = new ObservableStorageV1beta1Api(configuration, requestFactory, responseProcessor); } + /** + * create a 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. + * @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. + */ + public createNamespacedCSIStorageCapacityWithHttpInfo(namespace: string, body: V1beta1CSIStorageCapacity, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.createNamespacedCSIStorageCapacityWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + /** * create a CSIStorageCapacity * @param namespace object name and auth scope, such as for teams and projects @@ -12042,6 +22461,28 @@ export class PromiseStorageV1beta1Api { return result.toPromise(); } + /** + * delete collection of CSIStorageCapacity + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @param body + */ + public deleteCollectionNamespacedCSIStorageCapacityWithHttpInfo(namespace: string, pretty?: string, _continue?: string, dryRun?: string, fieldSelector?: string, gracePeriodSeconds?: number, labelSelector?: string, limit?: number, orphanDependents?: boolean, propagationPolicy?: string, resourceVersion?: string, resourceVersionMatch?: string, timeoutSeconds?: number, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteCollectionNamespacedCSIStorageCapacityWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, timeoutSeconds, body, _options); + return result.toPromise(); + } + /** * delete collection of CSIStorageCapacity * @param namespace object name and auth scope, such as for teams and projects @@ -12064,6 +22505,22 @@ export class PromiseStorageV1beta1Api { return result.toPromise(); } + /** + * delete a CSIStorageCapacity + * @param name name of the CSIStorageCapacity + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + * @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 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 deleteNamespacedCSIStorageCapacityWithHttpInfo(name: string, namespace: string, pretty?: string, dryRun?: string, gracePeriodSeconds?: number, orphanDependents?: boolean, propagationPolicy?: string, body?: V1DeleteOptions, _options?: Configuration): Promise> { + const result = this.api.deleteNamespacedCSIStorageCapacityWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _options); + return result.toPromise(); + } + /** * delete a CSIStorageCapacity * @param name name of the CSIStorageCapacity @@ -12080,6 +22537,14 @@ export class PromiseStorageV1beta1Api { return result.toPromise(); } + /** + * get available resources + */ + public getAPIResourcesWithHttpInfo(_options?: Configuration): Promise> { + const result = this.api.getAPIResourcesWithHttpInfo(_options); + return result.toPromise(); + } + /** * get available resources */ @@ -12088,6 +22553,24 @@ export class PromiseStorageV1beta1Api { return result.toPromise(); } + /** + * list or watch objects of kind CSIStorageCapacity + * @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. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { + const result = this.api.listCSIStorageCapacityForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + /** * list or watch objects of kind CSIStorageCapacity * @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. @@ -12106,6 +22589,25 @@ export class PromiseStorageV1beta1Api { return result.toPromise(); } + /** + * 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. + * @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 timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + * @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, timeoutSeconds?: number, watch?: boolean, _options?: Configuration): Promise> { + const result = this.api.listNamespacedCSIStorageCapacityWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, timeoutSeconds, watch, _options); + return result.toPromise(); + } + /** * list or watch objects of kind CSIStorageCapacity * @param namespace object name and auth scope, such as for teams and projects @@ -12125,6 +22627,21 @@ export class PromiseStorageV1beta1Api { return result.toPromise(); } + /** + * partially update 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. + * @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 force Force is going to \"force\" Apply 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, force?: boolean, _options?: Configuration): Promise> { + const result = this.api.patchNamespacedCSIStorageCapacityWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force, _options); + return result.toPromise(); + } + /** * partially update the specified CSIStorageCapacity * @param name name of the CSIStorageCapacity @@ -12140,6 +22657,17 @@ export class PromiseStorageV1beta1Api { return result.toPromise(); } + /** + * read the specified CSIStorageCapacity + * @param name name of the CSIStorageCapacity + * @param namespace object name and auth scope, such as for teams and projects + * @param pretty If \'true\', then the output is pretty printed. + */ + public readNamespacedCSIStorageCapacityWithHttpInfo(name: string, namespace: string, pretty?: string, _options?: Configuration): Promise> { + const result = this.api.readNamespacedCSIStorageCapacityWithHttpInfo(name, namespace, pretty, _options); + return result.toPromise(); + } + /** * read the specified CSIStorageCapacity * @param name name of the CSIStorageCapacity @@ -12151,6 +22679,20 @@ export class PromiseStorageV1beta1Api { return result.toPromise(); } + /** + * 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. + * @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. + */ + public replaceNamespacedCSIStorageCapacityWithHttpInfo(name: string, namespace: string, body: V1beta1CSIStorageCapacity, pretty?: string, dryRun?: string, fieldManager?: string, _options?: Configuration): Promise> { + const result = this.api.replaceNamespacedCSIStorageCapacityWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, _options); + return result.toPromise(); + } + /** * replace the specified CSIStorageCapacity * @param name name of the CSIStorageCapacity @@ -12184,6 +22726,14 @@ export class PromiseVersionApi { this.api = new ObservableVersionApi(configuration, requestFactory, responseProcessor); } + /** + * get the code version + */ + public getCodeWithHttpInfo(_options?: Configuration): Promise> { + const result = this.api.getCodeWithHttpInfo(_options); + return result.toPromise(); + } + /** * get the code version */ @@ -12211,6 +22761,14 @@ export class PromiseWellKnownApi { this.api = new ObservableWellKnownApi(configuration, requestFactory, responseProcessor); } + /** + * get service account issuer OpenID configuration, also known as the \'OIDC discovery doc\' + */ + public getServiceAccountIssuerOpenIDConfigurationWithHttpInfo(_options?: Configuration): Promise> { + const result = this.api.getServiceAccountIssuerOpenIDConfigurationWithHttpInfo(_options); + return result.toPromise(); + } + /** * get service account issuer OpenID configuration, also known as the \'OIDC discovery doc\' */ From f1e230b2094b036b8e13effe54c75acdb1d076ba Mon Sep 17 00:00:00 2001 From: David Gamero Date: Fri, 13 Oct 2023 12:01:25 -0400 Subject: [PATCH 2/6] update patch examples --- examples/patch-example.js | 33 +++++++++++++- .../{ => typescript/patch}/patch-example.ts | 8 ++-- package-lock.json | 43 ++++++++++--------- package.json | 2 +- 4 files changed, 59 insertions(+), 27 deletions(-) rename examples/{ => typescript/patch}/patch-example.ts (82%) diff --git a/examples/patch-example.js b/examples/patch-example.js index 23d3e3bc9bc..65e31f46cd6 100644 --- a/examples/patch-example.js +++ b/examples/patch-example.js @@ -1,5 +1,7 @@ // in a real program use require('@kubernetes/client-node') const k8s = require('../dist/index'); +const { createConfiguration, ServerConfiguration } = require('../dist'); +const { PromiseMiddlewareWrapper } = require('../dist/gen/middleware'); const kc = new k8s.KubeConfig(); kc.loadFromDefault(); @@ -19,9 +21,36 @@ k8sApi.listNamespacedPod({ namespace }).then((res) => { }, ]; // TODO this method of passing the content type will change when we figure out a way to properly do this - const options = { headers: { 'Content-type': k8s.PatchUtils.PATCH_FORMAT_JSON_PATCH } }; + const headerPatchMiddleware = new PromiseMiddlewareWrapper({ + pre: async (requestContext) => { + requestContext.setHeaderParam('Content-type', 'application/json-patch+json'); + return requestContext; + }, + post: async (responseContext) => responseContext, + }); + let currentContext = kc.getCurrentContext(); + let currentCluster = kc.getCluster(currentContext); + if (currentCluster === undefined || currentCluster === null) { + throw new Error('Cluster is undefined'); + } + let server = currentCluster.server; + if (server === undefined) { + throw new Error('Server is undefined'); + } + + const baseServerConfig = new ServerConfiguration(server, {}); + const configuration = createConfiguration({ + middleware: [headerPatchMiddleware], + baseServer: baseServerConfig, + authMethods: { + default: kc, + }, + }); k8sApi - .patchNamespacedPod({ name: res?.items?.[0].metadata?.name ?? '', namespace, body: patch }, options) + .patchNamespacedPod( + { name: res?.items?.[0].metadata?.name ?? '', namespace, body: patch }, + configuration, + ) .then(() => { console.log('Patched.'); }) diff --git a/examples/patch-example.ts b/examples/typescript/patch/patch-example.ts similarity index 82% rename from examples/patch-example.ts rename to examples/typescript/patch/patch-example.ts index beb02e35503..4e09c02d99e 100644 --- a/examples/patch-example.ts +++ b/examples/typescript/patch/patch-example.ts @@ -1,6 +1,6 @@ import cluster from "cluster"; -import { CoreV1Api, Middleware, RequestContext, ResponseContext,KubeConfig, PatchUtils, createConfiguration, AuthMethodsConfiguration, Configuration, ServerConfiguration } from "../dist"; -import { PromiseMiddlewareWrapper } from "../dist/gen/middleware"; +import { CoreV1Api, Middleware, RequestContext, ResponseContext,KubeConfig, createConfiguration, AuthMethodsConfiguration, Configuration, ServerConfiguration } from "../../../dist"; +import { PromiseMiddlewareWrapper } from "../../../dist/gen/middleware"; // const k8s = require('@kubernetes/client-node'); @@ -22,10 +22,10 @@ k8sApi.listNamespacedPod({ } } ]; - const options = { "headers": { "Content-type": PatchUtils.PATCH_FORMAT_JSON_PATCH}}; + const options = { "headers": { "Content-type": "application/json-patch+json"}}; const headerPatchMiddleware = new PromiseMiddlewareWrapper({ pre: async (requestContext: RequestContext) => { - requestContext.setHeaderParam("Content-type", PatchUtils.PATCH_FORMAT_JSON_PATCH); + requestContext.setHeaderParam("Content-type", "application/json-patch+json"); return requestContext; }, post: async (responseContext: ResponseContext) => responseContext diff --git a/package-lock.json b/package-lock.json index 31911775fb4..edd88589cdf 100644 --- a/package-lock.json +++ b/package-lock.json @@ -49,7 +49,7 @@ "prettier": "^3.0.0", "source-map-support": "^0.5.9", "ts-mockito": "^2.3.1", - "ts-node": "^8.2.0", + "ts-node": "^8.10.2", "tslint": "^6.1.3", "typedoc": "^0.25.0", "typescript": "~5.2.2" @@ -3258,25 +3258,28 @@ } }, "node_modules/ts-node": { - "version": "8.2.0", - "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-8.2.0.tgz", - "integrity": "sha512-m8XQwUurkbYqXrKqr3WHCW310utRNvV5OnRVeISeea7LoCWVcdfeB/Ntl8JYWFh+WRoUAdBgESrzKochQt7sMw==", + "version": "8.10.2", + "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-8.10.2.tgz", + "integrity": "sha512-ISJJGgkIpDdBhWVu3jufsWpK3Rzo7bdiIXJjQc0ynKxVOVcg2oIrf2H2cejminGrptVc6q6/uynAHNCuWGbpVA==", "dev": true, "dependencies": { "arg": "^4.1.0", "diff": "^4.0.1", "make-error": "^1.1.1", - "source-map-support": "^0.5.6", - "yn": "^3.0.0" + "source-map-support": "^0.5.17", + "yn": "3.1.1" }, "bin": { - "ts-node": "dist/bin.js" + "ts-node": "dist/bin.js", + "ts-node-script": "dist/bin-script.js", + "ts-node-transpile-only": "dist/bin-transpile.js", + "ts-script": "dist/bin-script-deprecated.js" }, "engines": { - "node": ">=4.2.0" + "node": ">=6.0.0" }, "peerDependencies": { - "typescript": ">=2.0" + "typescript": ">=2.7" } }, "node_modules/tslib": { @@ -3726,9 +3729,9 @@ } }, "node_modules/yn": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.0.tgz", - "integrity": "sha512-kKfnnYkbTfrAdd0xICNFw7Atm8nKpLcLv9AZGEt+kczL/WQVai4e2V6ZN8U/O+iI6WrNuJjNNOyu4zfhl9D3Hg==", + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz", + "integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==", "dev": true, "engines": { "node": ">=6" @@ -6228,16 +6231,16 @@ } }, "ts-node": { - "version": "8.2.0", - "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-8.2.0.tgz", - "integrity": "sha512-m8XQwUurkbYqXrKqr3WHCW310utRNvV5OnRVeISeea7LoCWVcdfeB/Ntl8JYWFh+WRoUAdBgESrzKochQt7sMw==", + "version": "8.10.2", + "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-8.10.2.tgz", + "integrity": "sha512-ISJJGgkIpDdBhWVu3jufsWpK3Rzo7bdiIXJjQc0ynKxVOVcg2oIrf2H2cejminGrptVc6q6/uynAHNCuWGbpVA==", "dev": true, "requires": { "arg": "^4.1.0", "diff": "^4.0.1", "make-error": "^1.1.1", - "source-map-support": "^0.5.6", - "yn": "^3.0.0" + "source-map-support": "^0.5.17", + "yn": "3.1.1" } }, "tslib": { @@ -6588,9 +6591,9 @@ } }, "yn": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.0.tgz", - "integrity": "sha512-kKfnnYkbTfrAdd0xICNFw7Atm8nKpLcLv9AZGEt+kczL/WQVai4e2V6ZN8U/O+iI6WrNuJjNNOyu4zfhl9D3Hg==", + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz", + "integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==", "dev": true }, "yocto-queue": { diff --git a/package.json b/package.json index 22f37449dfb..dd92c5dbb33 100644 --- a/package.json +++ b/package.json @@ -94,7 +94,7 @@ "prettier": "^3.0.0", "source-map-support": "^0.5.9", "ts-mockito": "^2.3.1", - "ts-node": "^8.2.0", + "ts-node": "^8.10.2", "tslint": "^6.1.3", "typedoc": "^0.25.0", "typescript": "~5.2.2" From 5c059ccdbd2140e938391e61e846052acf2bf607 Mon Sep 17 00:00:00 2001 From: David Gamero Date: Mon, 16 Oct 2023 14:03:19 -0400 Subject: [PATCH 3/6] audit fix --- package-lock.json | 574 +++++++++++++++++++++++----------------------- 1 file changed, 292 insertions(+), 282 deletions(-) diff --git a/package-lock.json b/package-lock.json index edd88589cdf..21434ed0309 100644 --- a/package-lock.json +++ b/package-lock.json @@ -56,12 +56,16 @@ } }, "node_modules/@babel/code-frame": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.0.0.tgz", - "integrity": "sha512-OfC2uemaknXr87bdLUkWog7nYuliM9Ij5HUcajsVcMCpQrcLmtxRbVFTIqmcSkSeYRBFBRxs2FiUqFJDLdiebA==", + "version": "7.22.13", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.22.13.tgz", + "integrity": "sha512-XktuhWlJ5g+3TJXc5upd9Ks1HutSArik6jf2eAjYFyIOf4ej3RN+184cZbzDvbPnuTJIUhPKKJE3cIsYTiAT3w==", "dev": true, "dependencies": { - "@babel/highlight": "^7.0.0" + "@babel/highlight": "^7.22.13", + "chalk": "^2.4.2" + }, + "engines": { + "node": ">=6.9.0" } }, "node_modules/@babel/core": { @@ -94,55 +98,53 @@ "url": "https://opencollective.com/babel" } }, - "node_modules/@babel/core/node_modules/@babel/code-frame": { - "version": "7.12.11", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.12.11.tgz", - "integrity": "sha512-Zt1yodBx1UcyiePMSkWnU4hPqhwq7hGi2nFL1LeA3EUl+q2LQx16MISgJ0+z7dnmgvP9QtIleuETGOiOH1RcIw==", - "dev": true, - "dependencies": { - "@babel/highlight": "^7.10.4" - } - }, - "node_modules/@babel/core/node_modules/@babel/highlight": { - "version": "7.10.4", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.10.4.tgz", - "integrity": "sha512-i6rgnR/YgPEQzZZnbTHHuZdlE8qyoBNalD6F+q4vAFlcMEcqmkoG+mPqJYJCo63qPf74+Y1UZsl3l6f7/RIkmA==", + "node_modules/@babel/generator": { + "version": "7.23.0", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.23.0.tgz", + "integrity": "sha512-lN85QRR+5IbYrMWM6Y4pE/noaQtg4pNiqeNGX60eqOfo6gtEj6uw/JagelB8vVztSd7R6M5n1+PQkDbHbBRU4g==", "dev": true, "dependencies": { - "@babel/helper-validator-identifier": "^7.10.4", - "chalk": "^2.0.0", - "js-tokens": "^4.0.0" + "@babel/types": "^7.23.0", + "@jridgewell/gen-mapping": "^0.3.2", + "@jridgewell/trace-mapping": "^0.3.17", + "jsesc": "^2.5.1" + }, + "engines": { + "node": ">=6.9.0" } }, - "node_modules/@babel/generator": { - "version": "7.12.11", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.12.11.tgz", - "integrity": "sha512-Ggg6WPOJtSi8yYQvLVjG8F/TlpWDlKx0OpS4Kt+xMQPs5OaGYWy+v1A+1TvxI6sAMGZpKWWoAQ1DaeQbImlItA==", + "node_modules/@babel/helper-environment-visitor": { + "version": "7.22.20", + "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.22.20.tgz", + "integrity": "sha512-zfedSIzFhat/gFhWfHtgWvlec0nqB9YEIVrpuwjruLlXfUSnA8cJB0miHKwqDnQ7d32aKo2xt88/xZptwxbfhA==", "dev": true, - "dependencies": { - "@babel/types": "^7.12.11", - "jsesc": "^2.5.1", - "source-map": "^0.5.0" + "engines": { + "node": ">=6.9.0" } }, "node_modules/@babel/helper-function-name": { - "version": "7.12.11", - "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.12.11.tgz", - "integrity": "sha512-AtQKjtYNolKNi6nNNVLQ27CP6D9oFR6bq/HPYSizlzbp7uC1M59XJe8L+0uXjbIaZaUJF99ruHqVGiKXU/7ybA==", + "version": "7.23.0", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.23.0.tgz", + "integrity": "sha512-OErEqsrxjZTJciZ4Oo+eoZqeW9UIiOcuYKRJA4ZAgV9myA+pOXhhmpfNCKjEH/auVfEYVFJ6y1Tc4r0eIApqiw==", "dev": true, "dependencies": { - "@babel/helper-get-function-arity": "^7.12.10", - "@babel/template": "^7.12.7", - "@babel/types": "^7.12.11" + "@babel/template": "^7.22.15", + "@babel/types": "^7.23.0" + }, + "engines": { + "node": ">=6.9.0" } }, - "node_modules/@babel/helper-get-function-arity": { - "version": "7.12.10", - "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.12.10.tgz", - "integrity": "sha512-mm0n5BPjR06wh9mPQaDdXWDoll/j5UpCAPl1x8fS71GHm7HA6Ua2V4ylG1Ju8lvcTOietbPNNPaSilKj+pj+Ag==", + "node_modules/@babel/helper-hoist-variables": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.22.5.tgz", + "integrity": "sha512-wGjk9QZVzvknA6yKIUURb8zY3grXCcOZt+/7Wcy8O2uctxhplmUPkOdlgoNhmdVee2c92JXbf1xpMtVNbfoxRw==", "dev": true, "dependencies": { - "@babel/types": "^7.12.10" + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" } }, "node_modules/@babel/helper-member-expression-to-functions": { @@ -211,19 +213,34 @@ } }, "node_modules/@babel/helper-split-export-declaration": { - "version": "7.12.11", - "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.12.11.tgz", - "integrity": "sha512-LsIVN8j48gHgwzfocYUSkO/hjYAOJqlpJEc7tGXcIm4cubjVUf8LGW6eWRyxEu7gA25q02p0rQUWoCI33HNS5g==", + "version": "7.22.6", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.22.6.tgz", + "integrity": "sha512-AsUnxuLhRYsisFiaJwvp1QF+I3KjD5FOxut14q/GzovUe6orHLesW2C7d754kRm53h5gqrz6sFl6sxc4BVtE/g==", "dev": true, "dependencies": { - "@babel/types": "^7.12.11" + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-string-parser": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.22.5.tgz", + "integrity": "sha512-mM4COjgZox8U+JcXQwPijIZLElkgEpO5rsERVDJTc2qfCDfERyob6k5WegS14SX18IIjv+XD+GrqNumY5JRCDw==", + "dev": true, + "engines": { + "node": ">=6.9.0" } }, "node_modules/@babel/helper-validator-identifier": { - "version": "7.12.11", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.12.11.tgz", - "integrity": "sha512-np/lG3uARFybkoHokJUmf1QfEvRVCPbmQeUQpKow5cQ3xWrV9i3rUHodKDJPQfTVX61qKi+UdYk8kik84n7XOw==", - "dev": true + "version": "7.22.20", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.20.tgz", + "integrity": "sha512-Y4OZ+ytlatR8AI+8KZfKuL5urKp7qey08ha31L8b3BwewJAoJamTzyvxPR/5D+KkdJCGPq/+8TukHBlY10FX9A==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } }, "node_modules/@babel/helpers": { "version": "7.12.5", @@ -237,20 +254,23 @@ } }, "node_modules/@babel/highlight": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.0.0.tgz", - "integrity": "sha512-UFMC4ZeFC48Tpvj7C8UgLvtkaUuovQX+5xNWrsIoMG8o2z+XFKjKaN9iVmS84dPwVN00W4wPmqvYoZF3EGAsfw==", + "version": "7.22.20", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.22.20.tgz", + "integrity": "sha512-dkdMCN3py0+ksCgYmGG8jKeGA/8Tk+gJwSYYlFGxG5lmhfKNoAy004YpLxpS1W2J8m/EK2Ew+yOs9pVRwO89mg==", "dev": true, "dependencies": { - "chalk": "^2.0.0", - "esutils": "^2.0.2", + "@babel/helper-validator-identifier": "^7.22.20", + "chalk": "^2.4.2", "js-tokens": "^4.0.0" + }, + "engines": { + "node": ">=6.9.0" } }, "node_modules/@babel/parser": { - "version": "7.12.11", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.12.11.tgz", - "integrity": "sha512-N3UxG+uuF4CMYoNj8AhnbAcJF0PiuJ9KHuy1lQmkYsxTer/MAH9UBNHsBoAX/4s6NvlDD047No8mYVGGzLL4hg==", + "version": "7.23.0", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.23.0.tgz", + "integrity": "sha512-vvPKKdMemU85V9WE/l5wZEmImpCtLqbnTvqDS2U1fJ96KrxoW7KrXhNsNCblQlg8Ck4b85yxdTyelsMUgFUXiw==", "dev": true, "bin": { "parser": "bin/babel-parser.js" @@ -260,82 +280,52 @@ } }, "node_modules/@babel/template": { - "version": "7.12.7", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.12.7.tgz", - "integrity": "sha512-GkDzmHS6GV7ZeXfJZ0tLRBhZcMcY0/Lnb+eEbXDBfCAcZCjrZKe6p3J4we/D24O9Y8enxWAg1cWwof59yLh2ow==", + "version": "7.22.15", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.22.15.tgz", + "integrity": "sha512-QPErUVm4uyJa60rkI73qneDacvdvzxshT3kksGqlGWYdOTIUOwJ7RDUL8sGqslY1uXWSL6xMFKEXDS3ox2uF0w==", "dev": true, "dependencies": { - "@babel/code-frame": "^7.10.4", - "@babel/parser": "^7.12.7", - "@babel/types": "^7.12.7" - } - }, - "node_modules/@babel/template/node_modules/@babel/code-frame": { - "version": "7.12.11", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.12.11.tgz", - "integrity": "sha512-Zt1yodBx1UcyiePMSkWnU4hPqhwq7hGi2nFL1LeA3EUl+q2LQx16MISgJ0+z7dnmgvP9QtIleuETGOiOH1RcIw==", - "dev": true, - "dependencies": { - "@babel/highlight": "^7.10.4" - } - }, - "node_modules/@babel/template/node_modules/@babel/highlight": { - "version": "7.10.4", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.10.4.tgz", - "integrity": "sha512-i6rgnR/YgPEQzZZnbTHHuZdlE8qyoBNalD6F+q4vAFlcMEcqmkoG+mPqJYJCo63qPf74+Y1UZsl3l6f7/RIkmA==", - "dev": true, - "dependencies": { - "@babel/helper-validator-identifier": "^7.10.4", - "chalk": "^2.0.0", - "js-tokens": "^4.0.0" + "@babel/code-frame": "^7.22.13", + "@babel/parser": "^7.22.15", + "@babel/types": "^7.22.15" + }, + "engines": { + "node": ">=6.9.0" } }, "node_modules/@babel/traverse": { - "version": "7.12.12", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.12.12.tgz", - "integrity": "sha512-s88i0X0lPy45RrLM8b9mz8RPH5FqO9G9p7ti59cToE44xFm1Q+Pjh5Gq4SXBbtb88X7Uy7pexeqRIQDDMNkL0w==", - "dev": true, - "dependencies": { - "@babel/code-frame": "^7.12.11", - "@babel/generator": "^7.12.11", - "@babel/helper-function-name": "^7.12.11", - "@babel/helper-split-export-declaration": "^7.12.11", - "@babel/parser": "^7.12.11", - "@babel/types": "^7.12.12", + "version": "7.23.2", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.23.2.tgz", + "integrity": "sha512-azpe59SQ48qG6nu2CzcMLbxUudtN+dOM9kDbUqGq3HXUJRlo7i8fvPoxQUzYgLZ4cMVmuZgm8vvBpNeRhd6XSw==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.22.13", + "@babel/generator": "^7.23.0", + "@babel/helper-environment-visitor": "^7.22.20", + "@babel/helper-function-name": "^7.23.0", + "@babel/helper-hoist-variables": "^7.22.5", + "@babel/helper-split-export-declaration": "^7.22.6", + "@babel/parser": "^7.23.0", + "@babel/types": "^7.23.0", "debug": "^4.1.0", - "globals": "^11.1.0", - "lodash": "^4.17.19" - } - }, - "node_modules/@babel/traverse/node_modules/@babel/code-frame": { - "version": "7.12.11", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.12.11.tgz", - "integrity": "sha512-Zt1yodBx1UcyiePMSkWnU4hPqhwq7hGi2nFL1LeA3EUl+q2LQx16MISgJ0+z7dnmgvP9QtIleuETGOiOH1RcIw==", - "dev": true, - "dependencies": { - "@babel/highlight": "^7.10.4" - } - }, - "node_modules/@babel/traverse/node_modules/@babel/highlight": { - "version": "7.10.4", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.10.4.tgz", - "integrity": "sha512-i6rgnR/YgPEQzZZnbTHHuZdlE8qyoBNalD6F+q4vAFlcMEcqmkoG+mPqJYJCo63qPf74+Y1UZsl3l6f7/RIkmA==", - "dev": true, - "dependencies": { - "@babel/helper-validator-identifier": "^7.10.4", - "chalk": "^2.0.0", - "js-tokens": "^4.0.0" + "globals": "^11.1.0" + }, + "engines": { + "node": ">=6.9.0" } }, "node_modules/@babel/types": { - "version": "7.12.12", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.12.12.tgz", - "integrity": "sha512-lnIX7piTxOH22xE7fDXDbSHg9MM1/6ORnafpJmov5rs0kX5g4BZxeXNJLXsMRiO0U5Rb8/FvMS6xlTnTHvxonQ==", + "version": "7.23.0", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.23.0.tgz", + "integrity": "sha512-0oIyUfKoI3mSqMvsxBdclDwxXKXAUA8v/apZbc+iSyARYou1o8ZGDxbUYyLFoW2arqS2jDGqJuZvv1d/io1axg==", "dev": true, "dependencies": { - "@babel/helper-validator-identifier": "^7.12.11", - "lodash": "^4.17.19", + "@babel/helper-string-parser": "^7.22.5", + "@babel/helper-validator-identifier": "^7.22.20", "to-fast-properties": "^2.0.0" + }, + "engines": { + "node": ">=6.9.0" } }, "node_modules/@isaacs/cliui": { @@ -518,6 +508,54 @@ "node": ">=8" } }, + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.3.tgz", + "integrity": "sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==", + "dev": true, + "dependencies": { + "@jridgewell/set-array": "^1.0.1", + "@jridgewell/sourcemap-codec": "^1.4.10", + "@jridgewell/trace-mapping": "^0.3.9" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.1.tgz", + "integrity": "sha512-dSYZh7HhCDtCKm4QakX0xFpsRDqjjtZf/kjI/v3T3Nwt5r8/qz/M19F9ySyOqU94SXBmeG9ttTul+YnR4LOxFA==", + "dev": true, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/set-array": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz", + "integrity": "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==", + "dev": true, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.4.15", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz", + "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==", + "dev": true + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.19", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.19.tgz", + "integrity": "sha512-kf37QtfW+Hwx/buWGMPcR60iF9ziHa6r/CZJIHbmcm4+0qrXiVdxegAH0F6yddEVQ7zdkjcGCgCzUu+BcbhQxw==", + "dev": true, + "dependencies": { + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" + } + }, "node_modules/@pkgjs/parseargs": { "version": "0.11.0", "resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz", @@ -868,9 +906,9 @@ } }, "node_modules/chalk": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.0.tgz", - "integrity": "sha512-Wr/w0f4o9LuE7K53cD0qmbAMM+2XNLzR29vFn5hqko4sxGlUsyy363NvmyGIyk5tpe9cjTr9SJYbysEyPkRnFw==", + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", "dev": true, "dependencies": { "ansi-styles": "^3.2.1", @@ -1163,15 +1201,6 @@ "node": ">=4" } }, - "node_modules/esutils": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.2.tgz", - "integrity": "sha1-Cr9PHKpbyx96nYrMbepPqqBLrJs=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/fill-range": { "version": "7.0.1", "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", @@ -1627,9 +1656,9 @@ } }, "node_modules/istanbul-lib-instrument/node_modules/semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", "dev": true, "bin": { "semver": "bin/semver.js" @@ -2075,9 +2104,9 @@ } }, "node_modules/make-dir/node_modules/semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", "dev": true, "bin": { "semver": "bin/semver.js" @@ -2914,9 +2943,9 @@ "dev": true }, "node_modules/semver": { - "version": "5.5.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.5.1.tgz", - "integrity": "sha512-PqpAxfrEhlSUWge8dwIp4tZnQ25DIOthpiaHNIthsjEFQD6EvqUKUDM7L8O2rShkFccYo1VjJR0coWfNkCubRw==", + "version": "5.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", + "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", "dev": true, "bin": { "semver": "bin/semver" @@ -3752,12 +3781,13 @@ }, "dependencies": { "@babel/code-frame": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.0.0.tgz", - "integrity": "sha512-OfC2uemaknXr87bdLUkWog7nYuliM9Ij5HUcajsVcMCpQrcLmtxRbVFTIqmcSkSeYRBFBRxs2FiUqFJDLdiebA==", + "version": "7.22.13", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.22.13.tgz", + "integrity": "sha512-XktuhWlJ5g+3TJXc5upd9Ks1HutSArik6jf2eAjYFyIOf4ej3RN+184cZbzDvbPnuTJIUhPKKJE3cIsYTiAT3w==", "dev": true, "requires": { - "@babel/highlight": "^7.0.0" + "@babel/highlight": "^7.22.13", + "chalk": "^2.4.2" } }, "@babel/core": { @@ -3781,59 +3811,43 @@ "lodash": "^4.17.19", "semver": "^5.4.1", "source-map": "^0.5.0" - }, - "dependencies": { - "@babel/code-frame": { - "version": "7.12.11", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.12.11.tgz", - "integrity": "sha512-Zt1yodBx1UcyiePMSkWnU4hPqhwq7hGi2nFL1LeA3EUl+q2LQx16MISgJ0+z7dnmgvP9QtIleuETGOiOH1RcIw==", - "dev": true, - "requires": { - "@babel/highlight": "^7.10.4" - } - }, - "@babel/highlight": { - "version": "7.10.4", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.10.4.tgz", - "integrity": "sha512-i6rgnR/YgPEQzZZnbTHHuZdlE8qyoBNalD6F+q4vAFlcMEcqmkoG+mPqJYJCo63qPf74+Y1UZsl3l6f7/RIkmA==", - "dev": true, - "requires": { - "@babel/helper-validator-identifier": "^7.10.4", - "chalk": "^2.0.0", - "js-tokens": "^4.0.0" - } - } } }, "@babel/generator": { - "version": "7.12.11", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.12.11.tgz", - "integrity": "sha512-Ggg6WPOJtSi8yYQvLVjG8F/TlpWDlKx0OpS4Kt+xMQPs5OaGYWy+v1A+1TvxI6sAMGZpKWWoAQ1DaeQbImlItA==", + "version": "7.23.0", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.23.0.tgz", + "integrity": "sha512-lN85QRR+5IbYrMWM6Y4pE/noaQtg4pNiqeNGX60eqOfo6gtEj6uw/JagelB8vVztSd7R6M5n1+PQkDbHbBRU4g==", "dev": true, "requires": { - "@babel/types": "^7.12.11", - "jsesc": "^2.5.1", - "source-map": "^0.5.0" + "@babel/types": "^7.23.0", + "@jridgewell/gen-mapping": "^0.3.2", + "@jridgewell/trace-mapping": "^0.3.17", + "jsesc": "^2.5.1" } }, + "@babel/helper-environment-visitor": { + "version": "7.22.20", + "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.22.20.tgz", + "integrity": "sha512-zfedSIzFhat/gFhWfHtgWvlec0nqB9YEIVrpuwjruLlXfUSnA8cJB0miHKwqDnQ7d32aKo2xt88/xZptwxbfhA==", + "dev": true + }, "@babel/helper-function-name": { - "version": "7.12.11", - "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.12.11.tgz", - "integrity": "sha512-AtQKjtYNolKNi6nNNVLQ27CP6D9oFR6bq/HPYSizlzbp7uC1M59XJe8L+0uXjbIaZaUJF99ruHqVGiKXU/7ybA==", + "version": "7.23.0", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.23.0.tgz", + "integrity": "sha512-OErEqsrxjZTJciZ4Oo+eoZqeW9UIiOcuYKRJA4ZAgV9myA+pOXhhmpfNCKjEH/auVfEYVFJ6y1Tc4r0eIApqiw==", "dev": true, "requires": { - "@babel/helper-get-function-arity": "^7.12.10", - "@babel/template": "^7.12.7", - "@babel/types": "^7.12.11" + "@babel/template": "^7.22.15", + "@babel/types": "^7.23.0" } }, - "@babel/helper-get-function-arity": { - "version": "7.12.10", - "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.12.10.tgz", - "integrity": "sha512-mm0n5BPjR06wh9mPQaDdXWDoll/j5UpCAPl1x8fS71GHm7HA6Ua2V4ylG1Ju8lvcTOietbPNNPaSilKj+pj+Ag==", + "@babel/helper-hoist-variables": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.22.5.tgz", + "integrity": "sha512-wGjk9QZVzvknA6yKIUURb8zY3grXCcOZt+/7Wcy8O2uctxhplmUPkOdlgoNhmdVee2c92JXbf1xpMtVNbfoxRw==", "dev": true, "requires": { - "@babel/types": "^7.12.10" + "@babel/types": "^7.22.5" } }, "@babel/helper-member-expression-to-functions": { @@ -3902,18 +3916,24 @@ } }, "@babel/helper-split-export-declaration": { - "version": "7.12.11", - "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.12.11.tgz", - "integrity": "sha512-LsIVN8j48gHgwzfocYUSkO/hjYAOJqlpJEc7tGXcIm4cubjVUf8LGW6eWRyxEu7gA25q02p0rQUWoCI33HNS5g==", + "version": "7.22.6", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.22.6.tgz", + "integrity": "sha512-AsUnxuLhRYsisFiaJwvp1QF+I3KjD5FOxut14q/GzovUe6orHLesW2C7d754kRm53h5gqrz6sFl6sxc4BVtE/g==", "dev": true, "requires": { - "@babel/types": "^7.12.11" + "@babel/types": "^7.22.5" } }, + "@babel/helper-string-parser": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.22.5.tgz", + "integrity": "sha512-mM4COjgZox8U+JcXQwPijIZLElkgEpO5rsERVDJTc2qfCDfERyob6k5WegS14SX18IIjv+XD+GrqNumY5JRCDw==", + "dev": true + }, "@babel/helper-validator-identifier": { - "version": "7.12.11", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.12.11.tgz", - "integrity": "sha512-np/lG3uARFybkoHokJUmf1QfEvRVCPbmQeUQpKow5cQ3xWrV9i3rUHodKDJPQfTVX61qKi+UdYk8kik84n7XOw==", + "version": "7.22.20", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.20.tgz", + "integrity": "sha512-Y4OZ+ytlatR8AI+8KZfKuL5urKp7qey08ha31L8b3BwewJAoJamTzyvxPR/5D+KkdJCGPq/+8TukHBlY10FX9A==", "dev": true }, "@babel/helpers": { @@ -3928,102 +3948,59 @@ } }, "@babel/highlight": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.0.0.tgz", - "integrity": "sha512-UFMC4ZeFC48Tpvj7C8UgLvtkaUuovQX+5xNWrsIoMG8o2z+XFKjKaN9iVmS84dPwVN00W4wPmqvYoZF3EGAsfw==", + "version": "7.22.20", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.22.20.tgz", + "integrity": "sha512-dkdMCN3py0+ksCgYmGG8jKeGA/8Tk+gJwSYYlFGxG5lmhfKNoAy004YpLxpS1W2J8m/EK2Ew+yOs9pVRwO89mg==", "dev": true, "requires": { - "chalk": "^2.0.0", - "esutils": "^2.0.2", + "@babel/helper-validator-identifier": "^7.22.20", + "chalk": "^2.4.2", "js-tokens": "^4.0.0" } }, "@babel/parser": { - "version": "7.12.11", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.12.11.tgz", - "integrity": "sha512-N3UxG+uuF4CMYoNj8AhnbAcJF0PiuJ9KHuy1lQmkYsxTer/MAH9UBNHsBoAX/4s6NvlDD047No8mYVGGzLL4hg==", + "version": "7.23.0", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.23.0.tgz", + "integrity": "sha512-vvPKKdMemU85V9WE/l5wZEmImpCtLqbnTvqDS2U1fJ96KrxoW7KrXhNsNCblQlg8Ck4b85yxdTyelsMUgFUXiw==", "dev": true }, "@babel/template": { - "version": "7.12.7", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.12.7.tgz", - "integrity": "sha512-GkDzmHS6GV7ZeXfJZ0tLRBhZcMcY0/Lnb+eEbXDBfCAcZCjrZKe6p3J4we/D24O9Y8enxWAg1cWwof59yLh2ow==", + "version": "7.22.15", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.22.15.tgz", + "integrity": "sha512-QPErUVm4uyJa60rkI73qneDacvdvzxshT3kksGqlGWYdOTIUOwJ7RDUL8sGqslY1uXWSL6xMFKEXDS3ox2uF0w==", "dev": true, "requires": { - "@babel/code-frame": "^7.10.4", - "@babel/parser": "^7.12.7", - "@babel/types": "^7.12.7" - }, - "dependencies": { - "@babel/code-frame": { - "version": "7.12.11", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.12.11.tgz", - "integrity": "sha512-Zt1yodBx1UcyiePMSkWnU4hPqhwq7hGi2nFL1LeA3EUl+q2LQx16MISgJ0+z7dnmgvP9QtIleuETGOiOH1RcIw==", - "dev": true, - "requires": { - "@babel/highlight": "^7.10.4" - } - }, - "@babel/highlight": { - "version": "7.10.4", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.10.4.tgz", - "integrity": "sha512-i6rgnR/YgPEQzZZnbTHHuZdlE8qyoBNalD6F+q4vAFlcMEcqmkoG+mPqJYJCo63qPf74+Y1UZsl3l6f7/RIkmA==", - "dev": true, - "requires": { - "@babel/helper-validator-identifier": "^7.10.4", - "chalk": "^2.0.0", - "js-tokens": "^4.0.0" - } - } + "@babel/code-frame": "^7.22.13", + "@babel/parser": "^7.22.15", + "@babel/types": "^7.22.15" } }, "@babel/traverse": { - "version": "7.12.12", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.12.12.tgz", - "integrity": "sha512-s88i0X0lPy45RrLM8b9mz8RPH5FqO9G9p7ti59cToE44xFm1Q+Pjh5Gq4SXBbtb88X7Uy7pexeqRIQDDMNkL0w==", + "version": "7.23.2", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.23.2.tgz", + "integrity": "sha512-azpe59SQ48qG6nu2CzcMLbxUudtN+dOM9kDbUqGq3HXUJRlo7i8fvPoxQUzYgLZ4cMVmuZgm8vvBpNeRhd6XSw==", "dev": true, "requires": { - "@babel/code-frame": "^7.12.11", - "@babel/generator": "^7.12.11", - "@babel/helper-function-name": "^7.12.11", - "@babel/helper-split-export-declaration": "^7.12.11", - "@babel/parser": "^7.12.11", - "@babel/types": "^7.12.12", + "@babel/code-frame": "^7.22.13", + "@babel/generator": "^7.23.0", + "@babel/helper-environment-visitor": "^7.22.20", + "@babel/helper-function-name": "^7.23.0", + "@babel/helper-hoist-variables": "^7.22.5", + "@babel/helper-split-export-declaration": "^7.22.6", + "@babel/parser": "^7.23.0", + "@babel/types": "^7.23.0", "debug": "^4.1.0", - "globals": "^11.1.0", - "lodash": "^4.17.19" - }, - "dependencies": { - "@babel/code-frame": { - "version": "7.12.11", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.12.11.tgz", - "integrity": "sha512-Zt1yodBx1UcyiePMSkWnU4hPqhwq7hGi2nFL1LeA3EUl+q2LQx16MISgJ0+z7dnmgvP9QtIleuETGOiOH1RcIw==", - "dev": true, - "requires": { - "@babel/highlight": "^7.10.4" - } - }, - "@babel/highlight": { - "version": "7.10.4", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.10.4.tgz", - "integrity": "sha512-i6rgnR/YgPEQzZZnbTHHuZdlE8qyoBNalD6F+q4vAFlcMEcqmkoG+mPqJYJCo63qPf74+Y1UZsl3l6f7/RIkmA==", - "dev": true, - "requires": { - "@babel/helper-validator-identifier": "^7.10.4", - "chalk": "^2.0.0", - "js-tokens": "^4.0.0" - } - } + "globals": "^11.1.0" } }, "@babel/types": { - "version": "7.12.12", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.12.12.tgz", - "integrity": "sha512-lnIX7piTxOH22xE7fDXDbSHg9MM1/6ORnafpJmov5rs0kX5g4BZxeXNJLXsMRiO0U5Rb8/FvMS6xlTnTHvxonQ==", + "version": "7.23.0", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.23.0.tgz", + "integrity": "sha512-0oIyUfKoI3mSqMvsxBdclDwxXKXAUA8v/apZbc+iSyARYou1o8ZGDxbUYyLFoW2arqS2jDGqJuZvv1d/io1axg==", "dev": true, "requires": { - "@babel/helper-validator-identifier": "^7.12.11", - "lodash": "^4.17.19", + "@babel/helper-string-parser": "^7.22.5", + "@babel/helper-validator-identifier": "^7.22.20", "to-fast-properties": "^2.0.0" } }, @@ -4157,6 +4134,45 @@ "integrity": "sha512-tsAQNx32a8CoFhjhijUIhI4kccIAgmGhy8LZMZgGfmXcpMbPRUqn5LWmgRttILi6yeGmBJd2xsPkFMs0PzgPCw==", "dev": true }, + "@jridgewell/gen-mapping": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.3.tgz", + "integrity": "sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==", + "dev": true, + "requires": { + "@jridgewell/set-array": "^1.0.1", + "@jridgewell/sourcemap-codec": "^1.4.10", + "@jridgewell/trace-mapping": "^0.3.9" + } + }, + "@jridgewell/resolve-uri": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.1.tgz", + "integrity": "sha512-dSYZh7HhCDtCKm4QakX0xFpsRDqjjtZf/kjI/v3T3Nwt5r8/qz/M19F9ySyOqU94SXBmeG9ttTul+YnR4LOxFA==", + "dev": true + }, + "@jridgewell/set-array": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz", + "integrity": "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==", + "dev": true + }, + "@jridgewell/sourcemap-codec": { + "version": "1.4.15", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz", + "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==", + "dev": true + }, + "@jridgewell/trace-mapping": { + "version": "0.3.19", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.19.tgz", + "integrity": "sha512-kf37QtfW+Hwx/buWGMPcR60iF9ziHa6r/CZJIHbmcm4+0qrXiVdxegAH0F6yddEVQ7zdkjcGCgCzUu+BcbhQxw==", + "dev": true, + "requires": { + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" + } + }, "@pkgjs/parseargs": { "version": "0.11.0", "resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz", @@ -4457,9 +4473,9 @@ } }, "chalk": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.0.tgz", - "integrity": "sha512-Wr/w0f4o9LuE7K53cD0qmbAMM+2XNLzR29vFn5hqko4sxGlUsyy363NvmyGIyk5tpe9cjTr9SJYbysEyPkRnFw==", + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", "dev": true, "requires": { "ansi-styles": "^3.2.1", @@ -4684,12 +4700,6 @@ "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", "dev": true }, - "esutils": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.2.tgz", - "integrity": "sha1-Cr9PHKpbyx96nYrMbepPqqBLrJs=", - "dev": true - }, "fill-range": { "version": "7.0.1", "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", @@ -5004,9 +5014,9 @@ }, "dependencies": { "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", "dev": true } } @@ -5334,9 +5344,9 @@ }, "dependencies": { "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", "dev": true } } @@ -5962,9 +5972,9 @@ "dev": true }, "semver": { - "version": "5.5.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.5.1.tgz", - "integrity": "sha512-PqpAxfrEhlSUWge8dwIp4tZnQ25DIOthpiaHNIthsjEFQD6EvqUKUDM7L8O2rShkFccYo1VjJR0coWfNkCubRw==", + "version": "5.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", + "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", "dev": true }, "serialize-javascript": { From f3af15b5068181bfc392511256aa4fc78620c73c Mon Sep 17 00:00:00 2001 From: David Gamero Date: Mon, 16 Oct 2023 14:15:31 -0400 Subject: [PATCH 4/6] audit fix --- examples/typescript/patch/patch-example.ts | 125 ++++++++++++--------- 1 file changed, 71 insertions(+), 54 deletions(-) diff --git a/examples/typescript/patch/patch-example.ts b/examples/typescript/patch/patch-example.ts index 4e09c02d99e..95e7aa13e84 100644 --- a/examples/typescript/patch/patch-example.ts +++ b/examples/typescript/patch/patch-example.ts @@ -1,6 +1,13 @@ -import cluster from "cluster"; -import { CoreV1Api, Middleware, RequestContext, ResponseContext,KubeConfig, createConfiguration, AuthMethodsConfiguration, Configuration, ServerConfiguration } from "../../../dist"; -import { PromiseMiddlewareWrapper } from "../../../dist/gen/middleware"; +import { + CoreV1Api, + RequestContext, + ResponseContext, + KubeConfig, + createConfiguration, + Configuration, + ServerConfiguration, +} from '../../../dist'; +import { PromiseMiddlewareWrapper } from '../../../dist/gen/middleware'; // const k8s = require('@kubernetes/client-node'); @@ -9,57 +16,67 @@ kc.loadFromDefault(); const k8sApi = kc.makeApiClient(CoreV1Api); -k8sApi.listNamespacedPod({ - namespace: 'default' -}) -.then((res) => { - const patch = [ - { - "op": "replace", - "path":"/metadata/labels", - "value": { - "foo": "bar" - } - } - ]; - const options = { "headers": { "Content-type": "application/json-patch+json"}}; - const headerPatchMiddleware = new PromiseMiddlewareWrapper({ - pre: async (requestContext: RequestContext) => { - requestContext.setHeaderParam("Content-type", "application/json-patch+json"); - return requestContext; - }, - post: async (responseContext: ResponseContext) => responseContext +k8sApi + .listNamespacedPod({ + namespace: 'default', }) - let currentContext = kc.getCurrentContext(); - let currentCluster = kc.getCluster(currentContext); - if (currentCluster === undefined || currentCluster === null) { - throw new Error("Cluster is undefined"); - } - let server = currentCluster.server ; - if (server === undefined) { - throw new Error("Server is undefined"); - } + .then((res) => { + const patch = [ + { + op: 'replace', + path: '/metadata/labels', + value: { + foo: 'bar', + }, + }, + ]; + const options = { headers: { 'Content-type': 'application/json-patch+json' } }; + const headerPatchMiddleware = new PromiseMiddlewareWrapper({ + pre: async (requestContext: RequestContext) => { + requestContext.setHeaderParam('Content-type', 'application/json-patch+json'); + return requestContext; + }, + post: async (responseContext: ResponseContext) => responseContext, + }); + let currentContext = kc.getCurrentContext(); + let currentCluster = kc.getCluster(currentContext); + if (currentCluster === undefined || currentCluster === null) { + throw new Error('Cluster is undefined'); + } + let server = currentCluster.server; + if (server === undefined) { + throw new Error('Server is undefined'); + } - const baseServerConfig: ServerConfiguration<{}> = new ServerConfiguration<{}>(server, {}); - const configuration: Configuration = createConfiguration({ - middleware: [headerPatchMiddleware], - baseServer: baseServerConfig, - authMethods: { - default: kc, - }, - }); + const baseServerConfig: ServerConfiguration<{}> = new ServerConfiguration<{}>(server, {}); + const configuration: Configuration = createConfiguration({ + middleware: [headerPatchMiddleware], + baseServer: baseServerConfig, + authMethods: { + default: kc, + }, + }); - let podName = res.items[0].metadata?.name; - if (podName === undefined) { - throw new Error("Pod name is undefined"); - } - k8sApi.patchNamespacedPod({ - name: podName, - namespace: 'default', - body: patch, - }, - configuration - ) - .then(() => { console.log("Patched.")}) - .catch((err) => { console.log("Error: "); console.log(err)}); -}); + let podName = res.items[0].metadata?.name; + if (podName === undefined) { + throw new Error('Pod name is undefined'); + } + k8sApi + .patchNamespacedPod( + { + name: podName, + namespace: 'default', + body: patch, + }, + configuration, + ) + .then(() => { + // tslint:disable-next-line:no-console + console.log('Patched.'); + }) + .catch((err) => { + // tslint:disable-next-line:no-console + console.log('Error: '); + console.log(err); + }); + }); From c17ff3193dbd111b9e5b5db939647af70005381e Mon Sep 17 00:00:00 2001 From: David Gamero Date: Mon, 16 Oct 2023 14:17:56 -0400 Subject: [PATCH 5/6] audit fix --- examples/typescript/patch/patch-example.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/examples/typescript/patch/patch-example.ts b/examples/typescript/patch/patch-example.ts index 95e7aa13e84..346fda2b0c8 100644 --- a/examples/typescript/patch/patch-example.ts +++ b/examples/typescript/patch/patch-example.ts @@ -38,12 +38,12 @@ k8sApi }, post: async (responseContext: ResponseContext) => responseContext, }); - let currentContext = kc.getCurrentContext(); - let currentCluster = kc.getCluster(currentContext); + const currentContext = kc.getCurrentContext(); + const currentCluster = kc.getCluster(currentContext); if (currentCluster === undefined || currentCluster === null) { throw new Error('Cluster is undefined'); } - let server = currentCluster.server; + const server = currentCluster.server; if (server === undefined) { throw new Error('Server is undefined'); } @@ -57,7 +57,7 @@ k8sApi }, }); - let podName = res.items[0].metadata?.name; + const podName = res.items[0].metadata?.name; if (podName === undefined) { throw new Error('Pod name is undefined'); } @@ -77,6 +77,7 @@ k8sApi .catch((err) => { // tslint:disable-next-line:no-console console.log('Error: '); + // tslint:disable-next-line:no-console console.log(err); }); }); From 62e5ab1701cb5659656f1941ef11eb748e626c25 Mon Sep 17 00:00:00 2001 From: David Gamero Date: Tue, 14 Nov 2023 01:01:49 -0500 Subject: [PATCH 6/6] comment feedback --- examples/patch-example.js | 1 - examples/typescript/patch/patch-example.ts | 7 ++----- settings | 2 +- src/gen/.openapi-generator/COMMIT | 4 ++-- src/gen/.openapi-generator/VERSION | 2 +- 5 files changed, 6 insertions(+), 10 deletions(-) diff --git a/examples/patch-example.js b/examples/patch-example.js index 65e31f46cd6..8141565dd35 100644 --- a/examples/patch-example.js +++ b/examples/patch-example.js @@ -20,7 +20,6 @@ k8sApi.listNamespacedPod({ namespace }).then((res) => { }, }, ]; - // TODO this method of passing the content type will change when we figure out a way to properly do this const headerPatchMiddleware = new PromiseMiddlewareWrapper({ pre: async (requestContext) => { requestContext.setHeaderParam('Content-type', 'application/json-patch+json'); diff --git a/examples/typescript/patch/patch-example.ts b/examples/typescript/patch/patch-example.ts index 346fda2b0c8..f50af310655 100644 --- a/examples/typescript/patch/patch-example.ts +++ b/examples/typescript/patch/patch-example.ts @@ -1,3 +1,4 @@ +// in a real program use require('@kubernetes/client-node') import { CoreV1Api, RequestContext, @@ -9,8 +10,6 @@ import { } from '../../../dist'; import { PromiseMiddlewareWrapper } from '../../../dist/gen/middleware'; -// const k8s = require('@kubernetes/client-node'); - const kc = new KubeConfig(); kc.loadFromDefault(); @@ -76,8 +75,6 @@ k8sApi }) .catch((err) => { // tslint:disable-next-line:no-console - console.log('Error: '); - // tslint:disable-next-line:no-console - console.log(err); + console.log('Error: ', err); }); }); diff --git a/settings b/settings index 9c3f67671e8..a10f14200ac 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=ba367e60e85392a7fd58cdb374c35c3aaaece872 +export OPENAPI_GENERATOR_COMMIT=53289263d921e627cb05894c8477238dff48d62f diff --git a/src/gen/.openapi-generator/COMMIT b/src/gen/.openapi-generator/COMMIT index 6d5074a6a2d..d6e1f19be2a 100644 --- a/src/gen/.openapi-generator/COMMIT +++ b/src/gen/.openapi-generator/COMMIT @@ -1,2 +1,2 @@ -Requested Commit: ba367e60e85392a7fd58cdb374c35c3aaaece872 -Actual Commit: ba367e60e85392a7fd58cdb374c35c3aaaece872 +Requested Commit: 53289263d921e627cb05894c8477238dff48d62f +Actual Commit: 53289263d921e627cb05894c8477238dff48d62f diff --git a/src/gen/.openapi-generator/VERSION b/src/gen/.openapi-generator/VERSION index 40e36364ab2..0f78c31cdc7 100644 --- a/src/gen/.openapi-generator/VERSION +++ b/src/gen/.openapi-generator/VERSION @@ -1 +1 @@ -7.1.0-SNAPSHOT \ No newline at end of file +7.2.0-SNAPSHOT \ No newline at end of file