/* tslint:disable */ /* eslint-disable */ /** * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: unversioned * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import * as runtime from '../runtime'; import { IoK8sApiAppsV1ControllerRevision, IoK8sApiAppsV1ControllerRevisionFromJSON, IoK8sApiAppsV1ControllerRevisionList, IoK8sApiAppsV1ControllerRevisionListFromJSON, IoK8sApiAppsV1ControllerRevisionToJSON, IoK8sApiAppsV1DaemonSet, IoK8sApiAppsV1DaemonSetFromJSON, IoK8sApiAppsV1DaemonSetList, IoK8sApiAppsV1DaemonSetListFromJSON, IoK8sApiAppsV1DaemonSetToJSON, IoK8sApiAppsV1Deployment, IoK8sApiAppsV1DeploymentFromJSON, IoK8sApiAppsV1DeploymentList, IoK8sApiAppsV1DeploymentListFromJSON, IoK8sApiAppsV1DeploymentToJSON, IoK8sApiAppsV1ReplicaSet, IoK8sApiAppsV1ReplicaSetFromJSON, IoK8sApiAppsV1ReplicaSetList, IoK8sApiAppsV1ReplicaSetListFromJSON, IoK8sApiAppsV1ReplicaSetToJSON, IoK8sApiAppsV1StatefulSet, IoK8sApiAppsV1StatefulSetFromJSON, IoK8sApiAppsV1StatefulSetList, IoK8sApiAppsV1StatefulSetListFromJSON, IoK8sApiAppsV1StatefulSetToJSON, IoK8sApiAutoscalingV1Scale, IoK8sApiAutoscalingV1ScaleFromJSON, IoK8sApiAutoscalingV1ScaleToJSON, IoK8sApimachineryPkgApisMetaV1APIResourceList, IoK8sApimachineryPkgApisMetaV1APIResourceListFromJSON, IoK8sApimachineryPkgApisMetaV1DeleteOptions, IoK8sApimachineryPkgApisMetaV1DeleteOptionsToJSON, IoK8sApimachineryPkgApisMetaV1Status, IoK8sApimachineryPkgApisMetaV1StatusFromJSON, IoK8sApimachineryPkgApisMetaV1WatchEvent, IoK8sApimachineryPkgApisMetaV1WatchEventFromJSON, } from '../models'; export interface CreateAppsV1NamespacedControllerRevisionRequest { namespace: string; body: IoK8sApiAppsV1ControllerRevision; pretty?: string; dryRun?: string; fieldManager?: string; fieldValidation?: string; } export interface CreateAppsV1NamespacedDaemonSetRequest { namespace: string; body: IoK8sApiAppsV1DaemonSet; pretty?: string; dryRun?: string; fieldManager?: string; fieldValidation?: string; } export interface CreateAppsV1NamespacedDeploymentRequest { namespace: string; body: IoK8sApiAppsV1Deployment; pretty?: string; dryRun?: string; fieldManager?: string; fieldValidation?: string; } export interface CreateAppsV1NamespacedReplicaSetRequest { namespace: string; body: IoK8sApiAppsV1ReplicaSet; pretty?: string; dryRun?: string; fieldManager?: string; fieldValidation?: string; } export interface CreateAppsV1NamespacedStatefulSetRequest { namespace: string; body: IoK8sApiAppsV1StatefulSet; pretty?: string; dryRun?: string; fieldManager?: string; fieldValidation?: string; } export interface DeleteAppsV1CollectionNamespacedControllerRevisionRequest { namespace: string; pretty?: string; _continue?: string; dryRun?: string; fieldSelector?: string; gracePeriodSeconds?: number; ignoreStoreReadErrorWithClusterBreakingPotential?: boolean; labelSelector?: string; limit?: number; orphanDependents?: boolean; propagationPolicy?: string; resourceVersion?: string; resourceVersionMatch?: string; sendInitialEvents?: boolean; timeoutSeconds?: number; body?: IoK8sApimachineryPkgApisMetaV1DeleteOptions; } export interface DeleteAppsV1CollectionNamespacedDaemonSetRequest { namespace: string; pretty?: string; _continue?: string; dryRun?: string; fieldSelector?: string; gracePeriodSeconds?: number; ignoreStoreReadErrorWithClusterBreakingPotential?: boolean; labelSelector?: string; limit?: number; orphanDependents?: boolean; propagationPolicy?: string; resourceVersion?: string; resourceVersionMatch?: string; sendInitialEvents?: boolean; timeoutSeconds?: number; body?: IoK8sApimachineryPkgApisMetaV1DeleteOptions; } export interface DeleteAppsV1CollectionNamespacedDeploymentRequest { namespace: string; pretty?: string; _continue?: string; dryRun?: string; fieldSelector?: string; gracePeriodSeconds?: number; ignoreStoreReadErrorWithClusterBreakingPotential?: boolean; labelSelector?: string; limit?: number; orphanDependents?: boolean; propagationPolicy?: string; resourceVersion?: string; resourceVersionMatch?: string; sendInitialEvents?: boolean; timeoutSeconds?: number; body?: IoK8sApimachineryPkgApisMetaV1DeleteOptions; } export interface DeleteAppsV1CollectionNamespacedReplicaSetRequest { namespace: string; pretty?: string; _continue?: string; dryRun?: string; fieldSelector?: string; gracePeriodSeconds?: number; ignoreStoreReadErrorWithClusterBreakingPotential?: boolean; labelSelector?: string; limit?: number; orphanDependents?: boolean; propagationPolicy?: string; resourceVersion?: string; resourceVersionMatch?: string; sendInitialEvents?: boolean; timeoutSeconds?: number; body?: IoK8sApimachineryPkgApisMetaV1DeleteOptions; } export interface DeleteAppsV1CollectionNamespacedStatefulSetRequest { namespace: string; pretty?: string; _continue?: string; dryRun?: string; fieldSelector?: string; gracePeriodSeconds?: number; ignoreStoreReadErrorWithClusterBreakingPotential?: boolean; labelSelector?: string; limit?: number; orphanDependents?: boolean; propagationPolicy?: string; resourceVersion?: string; resourceVersionMatch?: string; sendInitialEvents?: boolean; timeoutSeconds?: number; body?: IoK8sApimachineryPkgApisMetaV1DeleteOptions; } export interface DeleteAppsV1NamespacedControllerRevisionRequest { name: string; namespace: string; pretty?: string; dryRun?: string; gracePeriodSeconds?: number; ignoreStoreReadErrorWithClusterBreakingPotential?: boolean; orphanDependents?: boolean; propagationPolicy?: string; body?: IoK8sApimachineryPkgApisMetaV1DeleteOptions; } export interface DeleteAppsV1NamespacedDaemonSetRequest { name: string; namespace: string; pretty?: string; dryRun?: string; gracePeriodSeconds?: number; ignoreStoreReadErrorWithClusterBreakingPotential?: boolean; orphanDependents?: boolean; propagationPolicy?: string; body?: IoK8sApimachineryPkgApisMetaV1DeleteOptions; } export interface DeleteAppsV1NamespacedDeploymentRequest { name: string; namespace: string; pretty?: string; dryRun?: string; gracePeriodSeconds?: number; ignoreStoreReadErrorWithClusterBreakingPotential?: boolean; orphanDependents?: boolean; propagationPolicy?: string; body?: IoK8sApimachineryPkgApisMetaV1DeleteOptions; } export interface DeleteAppsV1NamespacedReplicaSetRequest { name: string; namespace: string; pretty?: string; dryRun?: string; gracePeriodSeconds?: number; ignoreStoreReadErrorWithClusterBreakingPotential?: boolean; orphanDependents?: boolean; propagationPolicy?: string; body?: IoK8sApimachineryPkgApisMetaV1DeleteOptions; } export interface DeleteAppsV1NamespacedStatefulSetRequest { name: string; namespace: string; pretty?: string; dryRun?: string; gracePeriodSeconds?: number; ignoreStoreReadErrorWithClusterBreakingPotential?: boolean; orphanDependents?: boolean; propagationPolicy?: string; body?: IoK8sApimachineryPkgApisMetaV1DeleteOptions; } export interface ListAppsV1ControllerRevisionForAllNamespacesRequest { allowWatchBookmarks?: boolean; _continue?: string; fieldSelector?: string; labelSelector?: string; limit?: number; pretty?: string; resourceVersion?: string; resourceVersionMatch?: string; sendInitialEvents?: boolean; timeoutSeconds?: number; watch?: boolean; } export interface ListAppsV1DaemonSetForAllNamespacesRequest { allowWatchBookmarks?: boolean; _continue?: string; fieldSelector?: string; labelSelector?: string; limit?: number; pretty?: string; resourceVersion?: string; resourceVersionMatch?: string; sendInitialEvents?: boolean; timeoutSeconds?: number; watch?: boolean; } export interface ListAppsV1DeploymentForAllNamespacesRequest { allowWatchBookmarks?: boolean; _continue?: string; fieldSelector?: string; labelSelector?: string; limit?: number; pretty?: string; resourceVersion?: string; resourceVersionMatch?: string; sendInitialEvents?: boolean; timeoutSeconds?: number; watch?: boolean; } export interface ListAppsV1NamespacedControllerRevisionRequest { namespace: string; pretty?: string; allowWatchBookmarks?: boolean; _continue?: string; fieldSelector?: string; labelSelector?: string; limit?: number; resourceVersion?: string; resourceVersionMatch?: string; sendInitialEvents?: boolean; timeoutSeconds?: number; watch?: boolean; } export interface ListAppsV1NamespacedDaemonSetRequest { namespace: string; pretty?: string; allowWatchBookmarks?: boolean; _continue?: string; fieldSelector?: string; labelSelector?: string; limit?: number; resourceVersion?: string; resourceVersionMatch?: string; sendInitialEvents?: boolean; timeoutSeconds?: number; watch?: boolean; } export interface ListAppsV1NamespacedDeploymentRequest { namespace: string; pretty?: string; allowWatchBookmarks?: boolean; _continue?: string; fieldSelector?: string; labelSelector?: string; limit?: number; resourceVersion?: string; resourceVersionMatch?: string; sendInitialEvents?: boolean; timeoutSeconds?: number; watch?: boolean; } export interface ListAppsV1NamespacedReplicaSetRequest { namespace: string; pretty?: string; allowWatchBookmarks?: boolean; _continue?: string; fieldSelector?: string; labelSelector?: string; limit?: number; resourceVersion?: string; resourceVersionMatch?: string; sendInitialEvents?: boolean; timeoutSeconds?: number; watch?: boolean; } export interface ListAppsV1NamespacedStatefulSetRequest { namespace: string; pretty?: string; allowWatchBookmarks?: boolean; _continue?: string; fieldSelector?: string; labelSelector?: string; limit?: number; resourceVersion?: string; resourceVersionMatch?: string; sendInitialEvents?: boolean; timeoutSeconds?: number; watch?: boolean; } export interface ListAppsV1ReplicaSetForAllNamespacesRequest { allowWatchBookmarks?: boolean; _continue?: string; fieldSelector?: string; labelSelector?: string; limit?: number; pretty?: string; resourceVersion?: string; resourceVersionMatch?: string; sendInitialEvents?: boolean; timeoutSeconds?: number; watch?: boolean; } export interface ListAppsV1StatefulSetForAllNamespacesRequest { allowWatchBookmarks?: boolean; _continue?: string; fieldSelector?: string; labelSelector?: string; limit?: number; pretty?: string; resourceVersion?: string; resourceVersionMatch?: string; sendInitialEvents?: boolean; timeoutSeconds?: number; watch?: boolean; } export interface PatchAppsV1NamespacedControllerRevisionRequest { name: string; namespace: string; body: object; pretty?: string; dryRun?: string; fieldManager?: string; fieldValidation?: string; force?: boolean; } export interface PatchAppsV1NamespacedDaemonSetRequest { name: string; namespace: string; body: object; pretty?: string; dryRun?: string; fieldManager?: string; fieldValidation?: string; force?: boolean; } export interface PatchAppsV1NamespacedDaemonSetStatusRequest { name: string; namespace: string; body: object; pretty?: string; dryRun?: string; fieldManager?: string; fieldValidation?: string; force?: boolean; } export interface PatchAppsV1NamespacedDeploymentRequest { name: string; namespace: string; body: object; pretty?: string; dryRun?: string; fieldManager?: string; fieldValidation?: string; force?: boolean; } export interface PatchAppsV1NamespacedDeploymentScaleRequest { name: string; namespace: string; body: object; pretty?: string; dryRun?: string; fieldManager?: string; fieldValidation?: string; force?: boolean; } export interface PatchAppsV1NamespacedDeploymentStatusRequest { name: string; namespace: string; body: object; pretty?: string; dryRun?: string; fieldManager?: string; fieldValidation?: string; force?: boolean; } export interface PatchAppsV1NamespacedReplicaSetRequest { name: string; namespace: string; body: object; pretty?: string; dryRun?: string; fieldManager?: string; fieldValidation?: string; force?: boolean; } export interface PatchAppsV1NamespacedReplicaSetScaleRequest { name: string; namespace: string; body: object; pretty?: string; dryRun?: string; fieldManager?: string; fieldValidation?: string; force?: boolean; } export interface PatchAppsV1NamespacedReplicaSetStatusRequest { name: string; namespace: string; body: object; pretty?: string; dryRun?: string; fieldManager?: string; fieldValidation?: string; force?: boolean; } export interface PatchAppsV1NamespacedStatefulSetRequest { name: string; namespace: string; body: object; pretty?: string; dryRun?: string; fieldManager?: string; fieldValidation?: string; force?: boolean; } export interface PatchAppsV1NamespacedStatefulSetScaleRequest { name: string; namespace: string; body: object; pretty?: string; dryRun?: string; fieldManager?: string; fieldValidation?: string; force?: boolean; } export interface PatchAppsV1NamespacedStatefulSetStatusRequest { name: string; namespace: string; body: object; pretty?: string; dryRun?: string; fieldManager?: string; fieldValidation?: string; force?: boolean; } export interface ReadAppsV1NamespacedControllerRevisionRequest { name: string; namespace: string; pretty?: string; } export interface ReadAppsV1NamespacedDaemonSetRequest { name: string; namespace: string; pretty?: string; } export interface ReadAppsV1NamespacedDaemonSetStatusRequest { name: string; namespace: string; pretty?: string; } export interface ReadAppsV1NamespacedDeploymentRequest { name: string; namespace: string; pretty?: string; } export interface ReadAppsV1NamespacedDeploymentScaleRequest { name: string; namespace: string; pretty?: string; } export interface ReadAppsV1NamespacedDeploymentStatusRequest { name: string; namespace: string; pretty?: string; } export interface ReadAppsV1NamespacedReplicaSetRequest { name: string; namespace: string; pretty?: string; } export interface ReadAppsV1NamespacedReplicaSetScaleRequest { name: string; namespace: string; pretty?: string; } export interface ReadAppsV1NamespacedReplicaSetStatusRequest { name: string; namespace: string; pretty?: string; } export interface ReadAppsV1NamespacedStatefulSetRequest { name: string; namespace: string; pretty?: string; } export interface ReadAppsV1NamespacedStatefulSetScaleRequest { name: string; namespace: string; pretty?: string; } export interface ReadAppsV1NamespacedStatefulSetStatusRequest { name: string; namespace: string; pretty?: string; } export interface ReplaceAppsV1NamespacedControllerRevisionRequest { name: string; namespace: string; body: IoK8sApiAppsV1ControllerRevision; pretty?: string; dryRun?: string; fieldManager?: string; fieldValidation?: string; } export interface ReplaceAppsV1NamespacedDaemonSetRequest { name: string; namespace: string; body: IoK8sApiAppsV1DaemonSet; pretty?: string; dryRun?: string; fieldManager?: string; fieldValidation?: string; } export interface ReplaceAppsV1NamespacedDaemonSetStatusRequest { name: string; namespace: string; body: IoK8sApiAppsV1DaemonSet; pretty?: string; dryRun?: string; fieldManager?: string; fieldValidation?: string; } export interface ReplaceAppsV1NamespacedDeploymentRequest { name: string; namespace: string; body: IoK8sApiAppsV1Deployment; pretty?: string; dryRun?: string; fieldManager?: string; fieldValidation?: string; } export interface ReplaceAppsV1NamespacedDeploymentScaleRequest { name: string; namespace: string; body: IoK8sApiAutoscalingV1Scale; pretty?: string; dryRun?: string; fieldManager?: string; fieldValidation?: string; } export interface ReplaceAppsV1NamespacedDeploymentStatusRequest { name: string; namespace: string; body: IoK8sApiAppsV1Deployment; pretty?: string; dryRun?: string; fieldManager?: string; fieldValidation?: string; } export interface ReplaceAppsV1NamespacedReplicaSetRequest { name: string; namespace: string; body: IoK8sApiAppsV1ReplicaSet; pretty?: string; dryRun?: string; fieldManager?: string; fieldValidation?: string; } export interface ReplaceAppsV1NamespacedReplicaSetScaleRequest { name: string; namespace: string; body: IoK8sApiAutoscalingV1Scale; pretty?: string; dryRun?: string; fieldManager?: string; fieldValidation?: string; } export interface ReplaceAppsV1NamespacedReplicaSetStatusRequest { name: string; namespace: string; body: IoK8sApiAppsV1ReplicaSet; pretty?: string; dryRun?: string; fieldManager?: string; fieldValidation?: string; } export interface ReplaceAppsV1NamespacedStatefulSetRequest { name: string; namespace: string; body: IoK8sApiAppsV1StatefulSet; pretty?: string; dryRun?: string; fieldManager?: string; fieldValidation?: string; } export interface ReplaceAppsV1NamespacedStatefulSetScaleRequest { name: string; namespace: string; body: IoK8sApiAutoscalingV1Scale; pretty?: string; dryRun?: string; fieldManager?: string; fieldValidation?: string; } export interface ReplaceAppsV1NamespacedStatefulSetStatusRequest { name: string; namespace: string; body: IoK8sApiAppsV1StatefulSet; pretty?: string; dryRun?: string; fieldManager?: string; fieldValidation?: string; } export interface WatchAppsV1ControllerRevisionListForAllNamespacesRequest { allowWatchBookmarks?: boolean; _continue?: string; fieldSelector?: string; labelSelector?: string; limit?: number; pretty?: string; resourceVersion?: string; resourceVersionMatch?: string; sendInitialEvents?: boolean; timeoutSeconds?: number; watch?: boolean; } export interface WatchAppsV1DaemonSetListForAllNamespacesRequest { allowWatchBookmarks?: boolean; _continue?: string; fieldSelector?: string; labelSelector?: string; limit?: number; pretty?: string; resourceVersion?: string; resourceVersionMatch?: string; sendInitialEvents?: boolean; timeoutSeconds?: number; watch?: boolean; } export interface WatchAppsV1DeploymentListForAllNamespacesRequest { allowWatchBookmarks?: boolean; _continue?: string; fieldSelector?: string; labelSelector?: string; limit?: number; pretty?: string; resourceVersion?: string; resourceVersionMatch?: string; sendInitialEvents?: boolean; timeoutSeconds?: number; watch?: boolean; } export interface WatchAppsV1NamespacedControllerRevisionRequest { name: string; namespace: string; allowWatchBookmarks?: boolean; _continue?: string; fieldSelector?: string; labelSelector?: string; limit?: number; pretty?: string; resourceVersion?: string; resourceVersionMatch?: string; sendInitialEvents?: boolean; timeoutSeconds?: number; watch?: boolean; } export interface WatchAppsV1NamespacedControllerRevisionListRequest { namespace: string; allowWatchBookmarks?: boolean; _continue?: string; fieldSelector?: string; labelSelector?: string; limit?: number; pretty?: string; resourceVersion?: string; resourceVersionMatch?: string; sendInitialEvents?: boolean; timeoutSeconds?: number; watch?: boolean; } export interface WatchAppsV1NamespacedDaemonSetRequest { name: string; namespace: string; allowWatchBookmarks?: boolean; _continue?: string; fieldSelector?: string; labelSelector?: string; limit?: number; pretty?: string; resourceVersion?: string; resourceVersionMatch?: string; sendInitialEvents?: boolean; timeoutSeconds?: number; watch?: boolean; } export interface WatchAppsV1NamespacedDaemonSetListRequest { namespace: string; allowWatchBookmarks?: boolean; _continue?: string; fieldSelector?: string; labelSelector?: string; limit?: number; pretty?: string; resourceVersion?: string; resourceVersionMatch?: string; sendInitialEvents?: boolean; timeoutSeconds?: number; watch?: boolean; } export interface WatchAppsV1NamespacedDeploymentRequest { name: string; namespace: string; allowWatchBookmarks?: boolean; _continue?: string; fieldSelector?: string; labelSelector?: string; limit?: number; pretty?: string; resourceVersion?: string; resourceVersionMatch?: string; sendInitialEvents?: boolean; timeoutSeconds?: number; watch?: boolean; } export interface WatchAppsV1NamespacedDeploymentListRequest { namespace: string; allowWatchBookmarks?: boolean; _continue?: string; fieldSelector?: string; labelSelector?: string; limit?: number; pretty?: string; resourceVersion?: string; resourceVersionMatch?: string; sendInitialEvents?: boolean; timeoutSeconds?: number; watch?: boolean; } export interface WatchAppsV1NamespacedReplicaSetRequest { name: string; namespace: string; allowWatchBookmarks?: boolean; _continue?: string; fieldSelector?: string; labelSelector?: string; limit?: number; pretty?: string; resourceVersion?: string; resourceVersionMatch?: string; sendInitialEvents?: boolean; timeoutSeconds?: number; watch?: boolean; } export interface WatchAppsV1NamespacedReplicaSetListRequest { namespace: string; allowWatchBookmarks?: boolean; _continue?: string; fieldSelector?: string; labelSelector?: string; limit?: number; pretty?: string; resourceVersion?: string; resourceVersionMatch?: string; sendInitialEvents?: boolean; timeoutSeconds?: number; watch?: boolean; } export interface WatchAppsV1NamespacedStatefulSetRequest { name: string; namespace: string; allowWatchBookmarks?: boolean; _continue?: string; fieldSelector?: string; labelSelector?: string; limit?: number; pretty?: string; resourceVersion?: string; resourceVersionMatch?: string; sendInitialEvents?: boolean; timeoutSeconds?: number; watch?: boolean; } export interface WatchAppsV1NamespacedStatefulSetListRequest { namespace: string; allowWatchBookmarks?: boolean; _continue?: string; fieldSelector?: string; labelSelector?: string; limit?: number; pretty?: string; resourceVersion?: string; resourceVersionMatch?: string; sendInitialEvents?: boolean; timeoutSeconds?: number; watch?: boolean; } export interface WatchAppsV1ReplicaSetListForAllNamespacesRequest { allowWatchBookmarks?: boolean; _continue?: string; fieldSelector?: string; labelSelector?: string; limit?: number; pretty?: string; resourceVersion?: string; resourceVersionMatch?: string; sendInitialEvents?: boolean; timeoutSeconds?: number; watch?: boolean; } export interface WatchAppsV1StatefulSetListForAllNamespacesRequest { allowWatchBookmarks?: boolean; _continue?: string; fieldSelector?: string; labelSelector?: string; limit?: number; pretty?: string; resourceVersion?: string; resourceVersionMatch?: string; sendInitialEvents?: boolean; timeoutSeconds?: number; watch?: boolean; } /** * */ export class AppsV1Api extends runtime.BaseAPI { /** * create a ControllerRevision */ async createAppsV1NamespacedControllerRevisionRaw( requestParameters: CreateAppsV1NamespacedControllerRevisionRequest, initOverrides?: RequestInit, ): Promise> { if (requestParameters.namespace === null || requestParameters.namespace === undefined) { throw new runtime.RequiredError( 'namespace', 'Required parameter requestParameters.namespace was null or undefined when calling createAppsV1NamespacedControllerRevision.', ); } if (requestParameters.body === null || requestParameters.body === undefined) { throw new runtime.RequiredError( 'body', 'Required parameter requestParameters.body was null or undefined when calling createAppsV1NamespacedControllerRevision.', ); } const queryParameters: any = {}; if (requestParameters.pretty !== undefined) { queryParameters['pretty'] = requestParameters.pretty; } if (requestParameters.dryRun !== undefined) { queryParameters['dryRun'] = requestParameters.dryRun; } if (requestParameters.fieldManager !== undefined) { queryParameters['fieldManager'] = requestParameters.fieldManager; } if (requestParameters.fieldValidation !== undefined) { queryParameters['fieldValidation'] = requestParameters.fieldValidation; } const headerParameters: runtime.HTTPHeaders = {}; headerParameters['Content-Type'] = 'application/json'; if (this.configuration && this.configuration.apiKey) { headerParameters['authorization'] = this.configuration.apiKey('authorization'); // BearerToken authentication } const response = await this.request( { path: `/apis/apps/v1/namespaces/{namespace}/controllerrevisions`.replace( `{${'namespace'}}`, encodeURIComponent(String(requestParameters.namespace)), ), method: 'POST', headers: headerParameters, query: queryParameters, body: IoK8sApiAppsV1ControllerRevisionToJSON(requestParameters.body), }, initOverrides, ); return new runtime.JSONApiResponse(response, (jsonValue) => IoK8sApiAppsV1ControllerRevisionFromJSON(jsonValue), ); } /** * create a ControllerRevision */ async createAppsV1NamespacedControllerRevision( requestParameters: CreateAppsV1NamespacedControllerRevisionRequest, initOverrides?: RequestInit, ): Promise { const response = await this.createAppsV1NamespacedControllerRevisionRaw( requestParameters, initOverrides, ); return await response.value(); } /** * create a DaemonSet */ async createAppsV1NamespacedDaemonSetRaw( requestParameters: CreateAppsV1NamespacedDaemonSetRequest, initOverrides?: RequestInit, ): Promise> { if (requestParameters.namespace === null || requestParameters.namespace === undefined) { throw new runtime.RequiredError( 'namespace', 'Required parameter requestParameters.namespace was null or undefined when calling createAppsV1NamespacedDaemonSet.', ); } if (requestParameters.body === null || requestParameters.body === undefined) { throw new runtime.RequiredError( 'body', 'Required parameter requestParameters.body was null or undefined when calling createAppsV1NamespacedDaemonSet.', ); } const queryParameters: any = {}; if (requestParameters.pretty !== undefined) { queryParameters['pretty'] = requestParameters.pretty; } if (requestParameters.dryRun !== undefined) { queryParameters['dryRun'] = requestParameters.dryRun; } if (requestParameters.fieldManager !== undefined) { queryParameters['fieldManager'] = requestParameters.fieldManager; } if (requestParameters.fieldValidation !== undefined) { queryParameters['fieldValidation'] = requestParameters.fieldValidation; } const headerParameters: runtime.HTTPHeaders = {}; headerParameters['Content-Type'] = 'application/json'; if (this.configuration && this.configuration.apiKey) { headerParameters['authorization'] = this.configuration.apiKey('authorization'); // BearerToken authentication } const response = await this.request( { path: `/apis/apps/v1/namespaces/{namespace}/daemonsets`.replace( `{${'namespace'}}`, encodeURIComponent(String(requestParameters.namespace)), ), method: 'POST', headers: headerParameters, query: queryParameters, body: IoK8sApiAppsV1DaemonSetToJSON(requestParameters.body), }, initOverrides, ); return new runtime.JSONApiResponse(response, (jsonValue) => IoK8sApiAppsV1DaemonSetFromJSON(jsonValue), ); } /** * create a DaemonSet */ async createAppsV1NamespacedDaemonSet( requestParameters: CreateAppsV1NamespacedDaemonSetRequest, initOverrides?: RequestInit, ): Promise { const response = await this.createAppsV1NamespacedDaemonSetRaw( requestParameters, initOverrides, ); return await response.value(); } /** * create a Deployment */ async createAppsV1NamespacedDeploymentRaw( requestParameters: CreateAppsV1NamespacedDeploymentRequest, initOverrides?: RequestInit, ): Promise> { if (requestParameters.namespace === null || requestParameters.namespace === undefined) { throw new runtime.RequiredError( 'namespace', 'Required parameter requestParameters.namespace was null or undefined when calling createAppsV1NamespacedDeployment.', ); } if (requestParameters.body === null || requestParameters.body === undefined) { throw new runtime.RequiredError( 'body', 'Required parameter requestParameters.body was null or undefined when calling createAppsV1NamespacedDeployment.', ); } const queryParameters: any = {}; if (requestParameters.pretty !== undefined) { queryParameters['pretty'] = requestParameters.pretty; } if (requestParameters.dryRun !== undefined) { queryParameters['dryRun'] = requestParameters.dryRun; } if (requestParameters.fieldManager !== undefined) { queryParameters['fieldManager'] = requestParameters.fieldManager; } if (requestParameters.fieldValidation !== undefined) { queryParameters['fieldValidation'] = requestParameters.fieldValidation; } const headerParameters: runtime.HTTPHeaders = {}; headerParameters['Content-Type'] = 'application/json'; if (this.configuration && this.configuration.apiKey) { headerParameters['authorization'] = this.configuration.apiKey('authorization'); // BearerToken authentication } const response = await this.request( { path: `/apis/apps/v1/namespaces/{namespace}/deployments`.replace( `{${'namespace'}}`, encodeURIComponent(String(requestParameters.namespace)), ), method: 'POST', headers: headerParameters, query: queryParameters, body: IoK8sApiAppsV1DeploymentToJSON(requestParameters.body), }, initOverrides, ); return new runtime.JSONApiResponse(response, (jsonValue) => IoK8sApiAppsV1DeploymentFromJSON(jsonValue), ); } /** * create a Deployment */ async createAppsV1NamespacedDeployment( requestParameters: CreateAppsV1NamespacedDeploymentRequest, initOverrides?: RequestInit, ): Promise { const response = await this.createAppsV1NamespacedDeploymentRaw( requestParameters, initOverrides, ); return await response.value(); } /** * create a ReplicaSet */ async createAppsV1NamespacedReplicaSetRaw( requestParameters: CreateAppsV1NamespacedReplicaSetRequest, initOverrides?: RequestInit, ): Promise> { if (requestParameters.namespace === null || requestParameters.namespace === undefined) { throw new runtime.RequiredError( 'namespace', 'Required parameter requestParameters.namespace was null or undefined when calling createAppsV1NamespacedReplicaSet.', ); } if (requestParameters.body === null || requestParameters.body === undefined) { throw new runtime.RequiredError( 'body', 'Required parameter requestParameters.body was null or undefined when calling createAppsV1NamespacedReplicaSet.', ); } const queryParameters: any = {}; if (requestParameters.pretty !== undefined) { queryParameters['pretty'] = requestParameters.pretty; } if (requestParameters.dryRun !== undefined) { queryParameters['dryRun'] = requestParameters.dryRun; } if (requestParameters.fieldManager !== undefined) { queryParameters['fieldManager'] = requestParameters.fieldManager; } if (requestParameters.fieldValidation !== undefined) { queryParameters['fieldValidation'] = requestParameters.fieldValidation; } const headerParameters: runtime.HTTPHeaders = {}; headerParameters['Content-Type'] = 'application/json'; if (this.configuration && this.configuration.apiKey) { headerParameters['authorization'] = this.configuration.apiKey('authorization'); // BearerToken authentication } const response = await this.request( { path: `/apis/apps/v1/namespaces/{namespace}/replicasets`.replace( `{${'namespace'}}`, encodeURIComponent(String(requestParameters.namespace)), ), method: 'POST', headers: headerParameters, query: queryParameters, body: IoK8sApiAppsV1ReplicaSetToJSON(requestParameters.body), }, initOverrides, ); return new runtime.JSONApiResponse(response, (jsonValue) => IoK8sApiAppsV1ReplicaSetFromJSON(jsonValue), ); } /** * create a ReplicaSet */ async createAppsV1NamespacedReplicaSet( requestParameters: CreateAppsV1NamespacedReplicaSetRequest, initOverrides?: RequestInit, ): Promise { const response = await this.createAppsV1NamespacedReplicaSetRaw( requestParameters, initOverrides, ); return await response.value(); } /** * create a StatefulSet */ async createAppsV1NamespacedStatefulSetRaw( requestParameters: CreateAppsV1NamespacedStatefulSetRequest, initOverrides?: RequestInit, ): Promise> { if (requestParameters.namespace === null || requestParameters.namespace === undefined) { throw new runtime.RequiredError( 'namespace', 'Required parameter requestParameters.namespace was null or undefined when calling createAppsV1NamespacedStatefulSet.', ); } if (requestParameters.body === null || requestParameters.body === undefined) { throw new runtime.RequiredError( 'body', 'Required parameter requestParameters.body was null or undefined when calling createAppsV1NamespacedStatefulSet.', ); } const queryParameters: any = {}; if (requestParameters.pretty !== undefined) { queryParameters['pretty'] = requestParameters.pretty; } if (requestParameters.dryRun !== undefined) { queryParameters['dryRun'] = requestParameters.dryRun; } if (requestParameters.fieldManager !== undefined) { queryParameters['fieldManager'] = requestParameters.fieldManager; } if (requestParameters.fieldValidation !== undefined) { queryParameters['fieldValidation'] = requestParameters.fieldValidation; } const headerParameters: runtime.HTTPHeaders = {}; headerParameters['Content-Type'] = 'application/json'; if (this.configuration && this.configuration.apiKey) { headerParameters['authorization'] = this.configuration.apiKey('authorization'); // BearerToken authentication } const response = await this.request( { path: `/apis/apps/v1/namespaces/{namespace}/statefulsets`.replace( `{${'namespace'}}`, encodeURIComponent(String(requestParameters.namespace)), ), method: 'POST', headers: headerParameters, query: queryParameters, body: IoK8sApiAppsV1StatefulSetToJSON(requestParameters.body), }, initOverrides, ); return new runtime.JSONApiResponse(response, (jsonValue) => IoK8sApiAppsV1StatefulSetFromJSON(jsonValue), ); } /** * create a StatefulSet */ async createAppsV1NamespacedStatefulSet( requestParameters: CreateAppsV1NamespacedStatefulSetRequest, initOverrides?: RequestInit, ): Promise { const response = await this.createAppsV1NamespacedStatefulSetRaw( requestParameters, initOverrides, ); return await response.value(); } /** * delete collection of ControllerRevision */ async deleteAppsV1CollectionNamespacedControllerRevisionRaw( requestParameters: DeleteAppsV1CollectionNamespacedControllerRevisionRequest, initOverrides?: RequestInit, ): Promise> { if (requestParameters.namespace === null || requestParameters.namespace === undefined) { throw new runtime.RequiredError( 'namespace', 'Required parameter requestParameters.namespace was null or undefined when calling deleteAppsV1CollectionNamespacedControllerRevision.', ); } const queryParameters: any = {}; if (requestParameters.pretty !== undefined) { queryParameters['pretty'] = requestParameters.pretty; } if (requestParameters._continue !== undefined) { queryParameters['continue'] = requestParameters._continue; } if (requestParameters.dryRun !== undefined) { queryParameters['dryRun'] = requestParameters.dryRun; } if (requestParameters.fieldSelector !== undefined) { queryParameters['fieldSelector'] = requestParameters.fieldSelector; } if (requestParameters.gracePeriodSeconds !== undefined) { queryParameters['gracePeriodSeconds'] = requestParameters.gracePeriodSeconds; } if (requestParameters.ignoreStoreReadErrorWithClusterBreakingPotential !== undefined) { queryParameters['ignoreStoreReadErrorWithClusterBreakingPotential'] = requestParameters.ignoreStoreReadErrorWithClusterBreakingPotential; } if (requestParameters.labelSelector !== undefined) { queryParameters['labelSelector'] = requestParameters.labelSelector; } if (requestParameters.limit !== undefined) { queryParameters['limit'] = requestParameters.limit; } if (requestParameters.orphanDependents !== undefined) { queryParameters['orphanDependents'] = requestParameters.orphanDependents; } if (requestParameters.propagationPolicy !== undefined) { queryParameters['propagationPolicy'] = requestParameters.propagationPolicy; } if (requestParameters.resourceVersion !== undefined) { queryParameters['resourceVersion'] = requestParameters.resourceVersion; } if (requestParameters.resourceVersionMatch !== undefined) { queryParameters['resourceVersionMatch'] = requestParameters.resourceVersionMatch; } if (requestParameters.sendInitialEvents !== undefined) { queryParameters['sendInitialEvents'] = requestParameters.sendInitialEvents; } if (requestParameters.timeoutSeconds !== undefined) { queryParameters['timeoutSeconds'] = requestParameters.timeoutSeconds; } const headerParameters: runtime.HTTPHeaders = {}; headerParameters['Content-Type'] = 'application/json'; if (this.configuration && this.configuration.apiKey) { headerParameters['authorization'] = this.configuration.apiKey('authorization'); // BearerToken authentication } const response = await this.request( { path: `/apis/apps/v1/namespaces/{namespace}/controllerrevisions`.replace( `{${'namespace'}}`, encodeURIComponent(String(requestParameters.namespace)), ), method: 'DELETE', headers: headerParameters, query: queryParameters, body: IoK8sApimachineryPkgApisMetaV1DeleteOptionsToJSON(requestParameters.body), }, initOverrides, ); return new runtime.JSONApiResponse(response, (jsonValue) => IoK8sApimachineryPkgApisMetaV1StatusFromJSON(jsonValue), ); } /** * delete collection of ControllerRevision */ async deleteAppsV1CollectionNamespacedControllerRevision( requestParameters: DeleteAppsV1CollectionNamespacedControllerRevisionRequest, initOverrides?: RequestInit, ): Promise { const response = await this.deleteAppsV1CollectionNamespacedControllerRevisionRaw( requestParameters, initOverrides, ); return await response.value(); } /** * delete collection of DaemonSet */ async deleteAppsV1CollectionNamespacedDaemonSetRaw( requestParameters: DeleteAppsV1CollectionNamespacedDaemonSetRequest, initOverrides?: RequestInit, ): Promise> { if (requestParameters.namespace === null || requestParameters.namespace === undefined) { throw new runtime.RequiredError( 'namespace', 'Required parameter requestParameters.namespace was null or undefined when calling deleteAppsV1CollectionNamespacedDaemonSet.', ); } const queryParameters: any = {}; if (requestParameters.pretty !== undefined) { queryParameters['pretty'] = requestParameters.pretty; } if (requestParameters._continue !== undefined) { queryParameters['continue'] = requestParameters._continue; } if (requestParameters.dryRun !== undefined) { queryParameters['dryRun'] = requestParameters.dryRun; } if (requestParameters.fieldSelector !== undefined) { queryParameters['fieldSelector'] = requestParameters.fieldSelector; } if (requestParameters.gracePeriodSeconds !== undefined) { queryParameters['gracePeriodSeconds'] = requestParameters.gracePeriodSeconds; } if (requestParameters.ignoreStoreReadErrorWithClusterBreakingPotential !== undefined) { queryParameters['ignoreStoreReadErrorWithClusterBreakingPotential'] = requestParameters.ignoreStoreReadErrorWithClusterBreakingPotential; } if (requestParameters.labelSelector !== undefined) { queryParameters['labelSelector'] = requestParameters.labelSelector; } if (requestParameters.limit !== undefined) { queryParameters['limit'] = requestParameters.limit; } if (requestParameters.orphanDependents !== undefined) { queryParameters['orphanDependents'] = requestParameters.orphanDependents; } if (requestParameters.propagationPolicy !== undefined) { queryParameters['propagationPolicy'] = requestParameters.propagationPolicy; } if (requestParameters.resourceVersion !== undefined) { queryParameters['resourceVersion'] = requestParameters.resourceVersion; } if (requestParameters.resourceVersionMatch !== undefined) { queryParameters['resourceVersionMatch'] = requestParameters.resourceVersionMatch; } if (requestParameters.sendInitialEvents !== undefined) { queryParameters['sendInitialEvents'] = requestParameters.sendInitialEvents; } if (requestParameters.timeoutSeconds !== undefined) { queryParameters['timeoutSeconds'] = requestParameters.timeoutSeconds; } const headerParameters: runtime.HTTPHeaders = {}; headerParameters['Content-Type'] = 'application/json'; if (this.configuration && this.configuration.apiKey) { headerParameters['authorization'] = this.configuration.apiKey('authorization'); // BearerToken authentication } const response = await this.request( { path: `/apis/apps/v1/namespaces/{namespace}/daemonsets`.replace( `{${'namespace'}}`, encodeURIComponent(String(requestParameters.namespace)), ), method: 'DELETE', headers: headerParameters, query: queryParameters, body: IoK8sApimachineryPkgApisMetaV1DeleteOptionsToJSON(requestParameters.body), }, initOverrides, ); return new runtime.JSONApiResponse(response, (jsonValue) => IoK8sApimachineryPkgApisMetaV1StatusFromJSON(jsonValue), ); } /** * delete collection of DaemonSet */ async deleteAppsV1CollectionNamespacedDaemonSet( requestParameters: DeleteAppsV1CollectionNamespacedDaemonSetRequest, initOverrides?: RequestInit, ): Promise { const response = await this.deleteAppsV1CollectionNamespacedDaemonSetRaw( requestParameters, initOverrides, ); return await response.value(); } /** * delete collection of Deployment */ async deleteAppsV1CollectionNamespacedDeploymentRaw( requestParameters: DeleteAppsV1CollectionNamespacedDeploymentRequest, initOverrides?: RequestInit, ): Promise> { if (requestParameters.namespace === null || requestParameters.namespace === undefined) { throw new runtime.RequiredError( 'namespace', 'Required parameter requestParameters.namespace was null or undefined when calling deleteAppsV1CollectionNamespacedDeployment.', ); } const queryParameters: any = {}; if (requestParameters.pretty !== undefined) { queryParameters['pretty'] = requestParameters.pretty; } if (requestParameters._continue !== undefined) { queryParameters['continue'] = requestParameters._continue; } if (requestParameters.dryRun !== undefined) { queryParameters['dryRun'] = requestParameters.dryRun; } if (requestParameters.fieldSelector !== undefined) { queryParameters['fieldSelector'] = requestParameters.fieldSelector; } if (requestParameters.gracePeriodSeconds !== undefined) { queryParameters['gracePeriodSeconds'] = requestParameters.gracePeriodSeconds; } if (requestParameters.ignoreStoreReadErrorWithClusterBreakingPotential !== undefined) { queryParameters['ignoreStoreReadErrorWithClusterBreakingPotential'] = requestParameters.ignoreStoreReadErrorWithClusterBreakingPotential; } if (requestParameters.labelSelector !== undefined) { queryParameters['labelSelector'] = requestParameters.labelSelector; } if (requestParameters.limit !== undefined) { queryParameters['limit'] = requestParameters.limit; } if (requestParameters.orphanDependents !== undefined) { queryParameters['orphanDependents'] = requestParameters.orphanDependents; } if (requestParameters.propagationPolicy !== undefined) { queryParameters['propagationPolicy'] = requestParameters.propagationPolicy; } if (requestParameters.resourceVersion !== undefined) { queryParameters['resourceVersion'] = requestParameters.resourceVersion; } if (requestParameters.resourceVersionMatch !== undefined) { queryParameters['resourceVersionMatch'] = requestParameters.resourceVersionMatch; } if (requestParameters.sendInitialEvents !== undefined) { queryParameters['sendInitialEvents'] = requestParameters.sendInitialEvents; } if (requestParameters.timeoutSeconds !== undefined) { queryParameters['timeoutSeconds'] = requestParameters.timeoutSeconds; } const headerParameters: runtime.HTTPHeaders = {}; headerParameters['Content-Type'] = 'application/json'; if (this.configuration && this.configuration.apiKey) { headerParameters['authorization'] = this.configuration.apiKey('authorization'); // BearerToken authentication } const response = await this.request( { path: `/apis/apps/v1/namespaces/{namespace}/deployments`.replace( `{${'namespace'}}`, encodeURIComponent(String(requestParameters.namespace)), ), method: 'DELETE', headers: headerParameters, query: queryParameters, body: IoK8sApimachineryPkgApisMetaV1DeleteOptionsToJSON(requestParameters.body), }, initOverrides, ); return new runtime.JSONApiResponse(response, (jsonValue) => IoK8sApimachineryPkgApisMetaV1StatusFromJSON(jsonValue), ); } /** * delete collection of Deployment */ async deleteAppsV1CollectionNamespacedDeployment( requestParameters: DeleteAppsV1CollectionNamespacedDeploymentRequest, initOverrides?: RequestInit, ): Promise { const response = await this.deleteAppsV1CollectionNamespacedDeploymentRaw( requestParameters, initOverrides, ); return await response.value(); } /** * delete collection of ReplicaSet */ async deleteAppsV1CollectionNamespacedReplicaSetRaw( requestParameters: DeleteAppsV1CollectionNamespacedReplicaSetRequest, initOverrides?: RequestInit, ): Promise> { if (requestParameters.namespace === null || requestParameters.namespace === undefined) { throw new runtime.RequiredError( 'namespace', 'Required parameter requestParameters.namespace was null or undefined when calling deleteAppsV1CollectionNamespacedReplicaSet.', ); } const queryParameters: any = {}; if (requestParameters.pretty !== undefined) { queryParameters['pretty'] = requestParameters.pretty; } if (requestParameters._continue !== undefined) { queryParameters['continue'] = requestParameters._continue; } if (requestParameters.dryRun !== undefined) { queryParameters['dryRun'] = requestParameters.dryRun; } if (requestParameters.fieldSelector !== undefined) { queryParameters['fieldSelector'] = requestParameters.fieldSelector; } if (requestParameters.gracePeriodSeconds !== undefined) { queryParameters['gracePeriodSeconds'] = requestParameters.gracePeriodSeconds; } if (requestParameters.ignoreStoreReadErrorWithClusterBreakingPotential !== undefined) { queryParameters['ignoreStoreReadErrorWithClusterBreakingPotential'] = requestParameters.ignoreStoreReadErrorWithClusterBreakingPotential; } if (requestParameters.labelSelector !== undefined) { queryParameters['labelSelector'] = requestParameters.labelSelector; } if (requestParameters.limit !== undefined) { queryParameters['limit'] = requestParameters.limit; } if (requestParameters.orphanDependents !== undefined) { queryParameters['orphanDependents'] = requestParameters.orphanDependents; } if (requestParameters.propagationPolicy !== undefined) { queryParameters['propagationPolicy'] = requestParameters.propagationPolicy; } if (requestParameters.resourceVersion !== undefined) { queryParameters['resourceVersion'] = requestParameters.resourceVersion; } if (requestParameters.resourceVersionMatch !== undefined) { queryParameters['resourceVersionMatch'] = requestParameters.resourceVersionMatch; } if (requestParameters.sendInitialEvents !== undefined) { queryParameters['sendInitialEvents'] = requestParameters.sendInitialEvents; } if (requestParameters.timeoutSeconds !== undefined) { queryParameters['timeoutSeconds'] = requestParameters.timeoutSeconds; } const headerParameters: runtime.HTTPHeaders = {}; headerParameters['Content-Type'] = 'application/json'; if (this.configuration && this.configuration.apiKey) { headerParameters['authorization'] = this.configuration.apiKey('authorization'); // BearerToken authentication } const response = await this.request( { path: `/apis/apps/v1/namespaces/{namespace}/replicasets`.replace( `{${'namespace'}}`, encodeURIComponent(String(requestParameters.namespace)), ), method: 'DELETE', headers: headerParameters, query: queryParameters, body: IoK8sApimachineryPkgApisMetaV1DeleteOptionsToJSON(requestParameters.body), }, initOverrides, ); return new runtime.JSONApiResponse(response, (jsonValue) => IoK8sApimachineryPkgApisMetaV1StatusFromJSON(jsonValue), ); } /** * delete collection of ReplicaSet */ async deleteAppsV1CollectionNamespacedReplicaSet( requestParameters: DeleteAppsV1CollectionNamespacedReplicaSetRequest, initOverrides?: RequestInit, ): Promise { const response = await this.deleteAppsV1CollectionNamespacedReplicaSetRaw( requestParameters, initOverrides, ); return await response.value(); } /** * delete collection of StatefulSet */ async deleteAppsV1CollectionNamespacedStatefulSetRaw( requestParameters: DeleteAppsV1CollectionNamespacedStatefulSetRequest, initOverrides?: RequestInit, ): Promise> { if (requestParameters.namespace === null || requestParameters.namespace === undefined) { throw new runtime.RequiredError( 'namespace', 'Required parameter requestParameters.namespace was null or undefined when calling deleteAppsV1CollectionNamespacedStatefulSet.', ); } const queryParameters: any = {}; if (requestParameters.pretty !== undefined) { queryParameters['pretty'] = requestParameters.pretty; } if (requestParameters._continue !== undefined) { queryParameters['continue'] = requestParameters._continue; } if (requestParameters.dryRun !== undefined) { queryParameters['dryRun'] = requestParameters.dryRun; } if (requestParameters.fieldSelector !== undefined) { queryParameters['fieldSelector'] = requestParameters.fieldSelector; } if (requestParameters.gracePeriodSeconds !== undefined) { queryParameters['gracePeriodSeconds'] = requestParameters.gracePeriodSeconds; } if (requestParameters.ignoreStoreReadErrorWithClusterBreakingPotential !== undefined) { queryParameters['ignoreStoreReadErrorWithClusterBreakingPotential'] = requestParameters.ignoreStoreReadErrorWithClusterBreakingPotential; } if (requestParameters.labelSelector !== undefined) { queryParameters['labelSelector'] = requestParameters.labelSelector; } if (requestParameters.limit !== undefined) { queryParameters['limit'] = requestParameters.limit; } if (requestParameters.orphanDependents !== undefined) { queryParameters['orphanDependents'] = requestParameters.orphanDependents; } if (requestParameters.propagationPolicy !== undefined) { queryParameters['propagationPolicy'] = requestParameters.propagationPolicy; } if (requestParameters.resourceVersion !== undefined) { queryParameters['resourceVersion'] = requestParameters.resourceVersion; } if (requestParameters.resourceVersionMatch !== undefined) { queryParameters['resourceVersionMatch'] = requestParameters.resourceVersionMatch; } if (requestParameters.sendInitialEvents !== undefined) { queryParameters['sendInitialEvents'] = requestParameters.sendInitialEvents; } if (requestParameters.timeoutSeconds !== undefined) { queryParameters['timeoutSeconds'] = requestParameters.timeoutSeconds; } const headerParameters: runtime.HTTPHeaders = {}; headerParameters['Content-Type'] = 'application/json'; if (this.configuration && this.configuration.apiKey) { headerParameters['authorization'] = this.configuration.apiKey('authorization'); // BearerToken authentication } const response = await this.request( { path: `/apis/apps/v1/namespaces/{namespace}/statefulsets`.replace( `{${'namespace'}}`, encodeURIComponent(String(requestParameters.namespace)), ), method: 'DELETE', headers: headerParameters, query: queryParameters, body: IoK8sApimachineryPkgApisMetaV1DeleteOptionsToJSON(requestParameters.body), }, initOverrides, ); return new runtime.JSONApiResponse(response, (jsonValue) => IoK8sApimachineryPkgApisMetaV1StatusFromJSON(jsonValue), ); } /** * delete collection of StatefulSet */ async deleteAppsV1CollectionNamespacedStatefulSet( requestParameters: DeleteAppsV1CollectionNamespacedStatefulSetRequest, initOverrides?: RequestInit, ): Promise { const response = await this.deleteAppsV1CollectionNamespacedStatefulSetRaw( requestParameters, initOverrides, ); return await response.value(); } /** * delete a ControllerRevision */ async deleteAppsV1NamespacedControllerRevisionRaw( requestParameters: DeleteAppsV1NamespacedControllerRevisionRequest, initOverrides?: RequestInit, ): Promise> { if (requestParameters.name === null || requestParameters.name === undefined) { throw new runtime.RequiredError( 'name', 'Required parameter requestParameters.name was null or undefined when calling deleteAppsV1NamespacedControllerRevision.', ); } if (requestParameters.namespace === null || requestParameters.namespace === undefined) { throw new runtime.RequiredError( 'namespace', 'Required parameter requestParameters.namespace was null or undefined when calling deleteAppsV1NamespacedControllerRevision.', ); } const queryParameters: any = {}; if (requestParameters.pretty !== undefined) { queryParameters['pretty'] = requestParameters.pretty; } if (requestParameters.dryRun !== undefined) { queryParameters['dryRun'] = requestParameters.dryRun; } if (requestParameters.gracePeriodSeconds !== undefined) { queryParameters['gracePeriodSeconds'] = requestParameters.gracePeriodSeconds; } if (requestParameters.ignoreStoreReadErrorWithClusterBreakingPotential !== undefined) { queryParameters['ignoreStoreReadErrorWithClusterBreakingPotential'] = requestParameters.ignoreStoreReadErrorWithClusterBreakingPotential; } if (requestParameters.orphanDependents !== undefined) { queryParameters['orphanDependents'] = requestParameters.orphanDependents; } if (requestParameters.propagationPolicy !== undefined) { queryParameters['propagationPolicy'] = requestParameters.propagationPolicy; } const headerParameters: runtime.HTTPHeaders = {}; headerParameters['Content-Type'] = 'application/json'; if (this.configuration && this.configuration.apiKey) { headerParameters['authorization'] = this.configuration.apiKey('authorization'); // BearerToken authentication } const response = await this.request( { path: `/apis/apps/v1/namespaces/{namespace}/controllerrevisions/{name}` .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters.name))) .replace(`{${'namespace'}}`, encodeURIComponent(String(requestParameters.namespace))), method: 'DELETE', headers: headerParameters, query: queryParameters, body: IoK8sApimachineryPkgApisMetaV1DeleteOptionsToJSON(requestParameters.body), }, initOverrides, ); return new runtime.JSONApiResponse(response, (jsonValue) => IoK8sApimachineryPkgApisMetaV1StatusFromJSON(jsonValue), ); } /** * delete a ControllerRevision */ async deleteAppsV1NamespacedControllerRevision( requestParameters: DeleteAppsV1NamespacedControllerRevisionRequest, initOverrides?: RequestInit, ): Promise { const response = await this.deleteAppsV1NamespacedControllerRevisionRaw( requestParameters, initOverrides, ); return await response.value(); } /** * delete a DaemonSet */ async deleteAppsV1NamespacedDaemonSetRaw( requestParameters: DeleteAppsV1NamespacedDaemonSetRequest, initOverrides?: RequestInit, ): Promise> { if (requestParameters.name === null || requestParameters.name === undefined) { throw new runtime.RequiredError( 'name', 'Required parameter requestParameters.name was null or undefined when calling deleteAppsV1NamespacedDaemonSet.', ); } if (requestParameters.namespace === null || requestParameters.namespace === undefined) { throw new runtime.RequiredError( 'namespace', 'Required parameter requestParameters.namespace was null or undefined when calling deleteAppsV1NamespacedDaemonSet.', ); } const queryParameters: any = {}; if (requestParameters.pretty !== undefined) { queryParameters['pretty'] = requestParameters.pretty; } if (requestParameters.dryRun !== undefined) { queryParameters['dryRun'] = requestParameters.dryRun; } if (requestParameters.gracePeriodSeconds !== undefined) { queryParameters['gracePeriodSeconds'] = requestParameters.gracePeriodSeconds; } if (requestParameters.ignoreStoreReadErrorWithClusterBreakingPotential !== undefined) { queryParameters['ignoreStoreReadErrorWithClusterBreakingPotential'] = requestParameters.ignoreStoreReadErrorWithClusterBreakingPotential; } if (requestParameters.orphanDependents !== undefined) { queryParameters['orphanDependents'] = requestParameters.orphanDependents; } if (requestParameters.propagationPolicy !== undefined) { queryParameters['propagationPolicy'] = requestParameters.propagationPolicy; } const headerParameters: runtime.HTTPHeaders = {}; headerParameters['Content-Type'] = 'application/json'; if (this.configuration && this.configuration.apiKey) { headerParameters['authorization'] = this.configuration.apiKey('authorization'); // BearerToken authentication } const response = await this.request( { path: `/apis/apps/v1/namespaces/{namespace}/daemonsets/{name}` .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters.name))) .replace(`{${'namespace'}}`, encodeURIComponent(String(requestParameters.namespace))), method: 'DELETE', headers: headerParameters, query: queryParameters, body: IoK8sApimachineryPkgApisMetaV1DeleteOptionsToJSON(requestParameters.body), }, initOverrides, ); return new runtime.JSONApiResponse(response, (jsonValue) => IoK8sApimachineryPkgApisMetaV1StatusFromJSON(jsonValue), ); } /** * delete a DaemonSet */ async deleteAppsV1NamespacedDaemonSet( requestParameters: DeleteAppsV1NamespacedDaemonSetRequest, initOverrides?: RequestInit, ): Promise { const response = await this.deleteAppsV1NamespacedDaemonSetRaw( requestParameters, initOverrides, ); return await response.value(); } /** * delete a Deployment */ async deleteAppsV1NamespacedDeploymentRaw( requestParameters: DeleteAppsV1NamespacedDeploymentRequest, initOverrides?: RequestInit, ): Promise> { if (requestParameters.name === null || requestParameters.name === undefined) { throw new runtime.RequiredError( 'name', 'Required parameter requestParameters.name was null or undefined when calling deleteAppsV1NamespacedDeployment.', ); } if (requestParameters.namespace === null || requestParameters.namespace === undefined) { throw new runtime.RequiredError( 'namespace', 'Required parameter requestParameters.namespace was null or undefined when calling deleteAppsV1NamespacedDeployment.', ); } const queryParameters: any = {}; if (requestParameters.pretty !== undefined) { queryParameters['pretty'] = requestParameters.pretty; } if (requestParameters.dryRun !== undefined) { queryParameters['dryRun'] = requestParameters.dryRun; } if (requestParameters.gracePeriodSeconds !== undefined) { queryParameters['gracePeriodSeconds'] = requestParameters.gracePeriodSeconds; } if (requestParameters.ignoreStoreReadErrorWithClusterBreakingPotential !== undefined) { queryParameters['ignoreStoreReadErrorWithClusterBreakingPotential'] = requestParameters.ignoreStoreReadErrorWithClusterBreakingPotential; } if (requestParameters.orphanDependents !== undefined) { queryParameters['orphanDependents'] = requestParameters.orphanDependents; } if (requestParameters.propagationPolicy !== undefined) { queryParameters['propagationPolicy'] = requestParameters.propagationPolicy; } const headerParameters: runtime.HTTPHeaders = {}; headerParameters['Content-Type'] = 'application/json'; if (this.configuration && this.configuration.apiKey) { headerParameters['authorization'] = this.configuration.apiKey('authorization'); // BearerToken authentication } const response = await this.request( { path: `/apis/apps/v1/namespaces/{namespace}/deployments/{name}` .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters.name))) .replace(`{${'namespace'}}`, encodeURIComponent(String(requestParameters.namespace))), method: 'DELETE', headers: headerParameters, query: queryParameters, body: IoK8sApimachineryPkgApisMetaV1DeleteOptionsToJSON(requestParameters.body), }, initOverrides, ); return new runtime.JSONApiResponse(response, (jsonValue) => IoK8sApimachineryPkgApisMetaV1StatusFromJSON(jsonValue), ); } /** * delete a Deployment */ async deleteAppsV1NamespacedDeployment( requestParameters: DeleteAppsV1NamespacedDeploymentRequest, initOverrides?: RequestInit, ): Promise { const response = await this.deleteAppsV1NamespacedDeploymentRaw( requestParameters, initOverrides, ); return await response.value(); } /** * delete a ReplicaSet */ async deleteAppsV1NamespacedReplicaSetRaw( requestParameters: DeleteAppsV1NamespacedReplicaSetRequest, initOverrides?: RequestInit, ): Promise> { if (requestParameters.name === null || requestParameters.name === undefined) { throw new runtime.RequiredError( 'name', 'Required parameter requestParameters.name was null or undefined when calling deleteAppsV1NamespacedReplicaSet.', ); } if (requestParameters.namespace === null || requestParameters.namespace === undefined) { throw new runtime.RequiredError( 'namespace', 'Required parameter requestParameters.namespace was null or undefined when calling deleteAppsV1NamespacedReplicaSet.', ); } const queryParameters: any = {}; if (requestParameters.pretty !== undefined) { queryParameters['pretty'] = requestParameters.pretty; } if (requestParameters.dryRun !== undefined) { queryParameters['dryRun'] = requestParameters.dryRun; } if (requestParameters.gracePeriodSeconds !== undefined) { queryParameters['gracePeriodSeconds'] = requestParameters.gracePeriodSeconds; } if (requestParameters.ignoreStoreReadErrorWithClusterBreakingPotential !== undefined) { queryParameters['ignoreStoreReadErrorWithClusterBreakingPotential'] = requestParameters.ignoreStoreReadErrorWithClusterBreakingPotential; } if (requestParameters.orphanDependents !== undefined) { queryParameters['orphanDependents'] = requestParameters.orphanDependents; } if (requestParameters.propagationPolicy !== undefined) { queryParameters['propagationPolicy'] = requestParameters.propagationPolicy; } const headerParameters: runtime.HTTPHeaders = {}; headerParameters['Content-Type'] = 'application/json'; if (this.configuration && this.configuration.apiKey) { headerParameters['authorization'] = this.configuration.apiKey('authorization'); // BearerToken authentication } const response = await this.request( { path: `/apis/apps/v1/namespaces/{namespace}/replicasets/{name}` .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters.name))) .replace(`{${'namespace'}}`, encodeURIComponent(String(requestParameters.namespace))), method: 'DELETE', headers: headerParameters, query: queryParameters, body: IoK8sApimachineryPkgApisMetaV1DeleteOptionsToJSON(requestParameters.body), }, initOverrides, ); return new runtime.JSONApiResponse(response, (jsonValue) => IoK8sApimachineryPkgApisMetaV1StatusFromJSON(jsonValue), ); } /** * delete a ReplicaSet */ async deleteAppsV1NamespacedReplicaSet( requestParameters: DeleteAppsV1NamespacedReplicaSetRequest, initOverrides?: RequestInit, ): Promise { const response = await this.deleteAppsV1NamespacedReplicaSetRaw( requestParameters, initOverrides, ); return await response.value(); } /** * delete a StatefulSet */ async deleteAppsV1NamespacedStatefulSetRaw( requestParameters: DeleteAppsV1NamespacedStatefulSetRequest, initOverrides?: RequestInit, ): Promise> { if (requestParameters.name === null || requestParameters.name === undefined) { throw new runtime.RequiredError( 'name', 'Required parameter requestParameters.name was null or undefined when calling deleteAppsV1NamespacedStatefulSet.', ); } if (requestParameters.namespace === null || requestParameters.namespace === undefined) { throw new runtime.RequiredError( 'namespace', 'Required parameter requestParameters.namespace was null or undefined when calling deleteAppsV1NamespacedStatefulSet.', ); } const queryParameters: any = {}; if (requestParameters.pretty !== undefined) { queryParameters['pretty'] = requestParameters.pretty; } if (requestParameters.dryRun !== undefined) { queryParameters['dryRun'] = requestParameters.dryRun; } if (requestParameters.gracePeriodSeconds !== undefined) { queryParameters['gracePeriodSeconds'] = requestParameters.gracePeriodSeconds; } if (requestParameters.ignoreStoreReadErrorWithClusterBreakingPotential !== undefined) { queryParameters['ignoreStoreReadErrorWithClusterBreakingPotential'] = requestParameters.ignoreStoreReadErrorWithClusterBreakingPotential; } if (requestParameters.orphanDependents !== undefined) { queryParameters['orphanDependents'] = requestParameters.orphanDependents; } if (requestParameters.propagationPolicy !== undefined) { queryParameters['propagationPolicy'] = requestParameters.propagationPolicy; } const headerParameters: runtime.HTTPHeaders = {}; headerParameters['Content-Type'] = 'application/json'; if (this.configuration && this.configuration.apiKey) { headerParameters['authorization'] = this.configuration.apiKey('authorization'); // BearerToken authentication } const response = await this.request( { path: `/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}` .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters.name))) .replace(`{${'namespace'}}`, encodeURIComponent(String(requestParameters.namespace))), method: 'DELETE', headers: headerParameters, query: queryParameters, body: IoK8sApimachineryPkgApisMetaV1DeleteOptionsToJSON(requestParameters.body), }, initOverrides, ); return new runtime.JSONApiResponse(response, (jsonValue) => IoK8sApimachineryPkgApisMetaV1StatusFromJSON(jsonValue), ); } /** * delete a StatefulSet */ async deleteAppsV1NamespacedStatefulSet( requestParameters: DeleteAppsV1NamespacedStatefulSetRequest, initOverrides?: RequestInit, ): Promise { const response = await this.deleteAppsV1NamespacedStatefulSetRaw( requestParameters, initOverrides, ); return await response.value(); } /** * get available resources */ async getAppsV1APIResourcesRaw( initOverrides?: RequestInit, ): Promise> { const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; if (this.configuration && this.configuration.apiKey) { headerParameters['authorization'] = this.configuration.apiKey('authorization'); // BearerToken authentication } const response = await this.request( { path: `/apis/apps/v1/`, method: 'GET', headers: headerParameters, query: queryParameters, }, initOverrides, ); return new runtime.JSONApiResponse(response, (jsonValue) => IoK8sApimachineryPkgApisMetaV1APIResourceListFromJSON(jsonValue), ); } /** * get available resources */ async getAppsV1APIResources( initOverrides?: RequestInit, ): Promise { const response = await this.getAppsV1APIResourcesRaw(initOverrides); return await response.value(); } /** * list or watch objects of kind ControllerRevision */ async listAppsV1ControllerRevisionForAllNamespacesRaw( requestParameters: ListAppsV1ControllerRevisionForAllNamespacesRequest, initOverrides?: RequestInit, ): Promise> { const queryParameters: any = {}; if (requestParameters.allowWatchBookmarks !== undefined) { queryParameters['allowWatchBookmarks'] = requestParameters.allowWatchBookmarks; } if (requestParameters._continue !== undefined) { queryParameters['continue'] = requestParameters._continue; } if (requestParameters.fieldSelector !== undefined) { queryParameters['fieldSelector'] = requestParameters.fieldSelector; } if (requestParameters.labelSelector !== undefined) { queryParameters['labelSelector'] = requestParameters.labelSelector; } if (requestParameters.limit !== undefined) { queryParameters['limit'] = requestParameters.limit; } if (requestParameters.pretty !== undefined) { queryParameters['pretty'] = requestParameters.pretty; } if (requestParameters.resourceVersion !== undefined) { queryParameters['resourceVersion'] = requestParameters.resourceVersion; } if (requestParameters.resourceVersionMatch !== undefined) { queryParameters['resourceVersionMatch'] = requestParameters.resourceVersionMatch; } if (requestParameters.sendInitialEvents !== undefined) { queryParameters['sendInitialEvents'] = requestParameters.sendInitialEvents; } if (requestParameters.timeoutSeconds !== undefined) { queryParameters['timeoutSeconds'] = requestParameters.timeoutSeconds; } if (requestParameters.watch !== undefined) { queryParameters['watch'] = requestParameters.watch; } const headerParameters: runtime.HTTPHeaders = {}; if (this.configuration && this.configuration.apiKey) { headerParameters['authorization'] = this.configuration.apiKey('authorization'); // BearerToken authentication } const response = await this.request( { path: `/apis/apps/v1/controllerrevisions`, method: 'GET', headers: headerParameters, query: queryParameters, }, initOverrides, ); return new runtime.JSONApiResponse(response, (jsonValue) => IoK8sApiAppsV1ControllerRevisionListFromJSON(jsonValue), ); } /** * list or watch objects of kind ControllerRevision */ async listAppsV1ControllerRevisionForAllNamespaces( requestParameters: ListAppsV1ControllerRevisionForAllNamespacesRequest, initOverrides?: RequestInit, ): Promise { const response = await this.listAppsV1ControllerRevisionForAllNamespacesRaw( requestParameters, initOverrides, ); return await response.value(); } /** * list or watch objects of kind DaemonSet */ async listAppsV1DaemonSetForAllNamespacesRaw( requestParameters: ListAppsV1DaemonSetForAllNamespacesRequest, initOverrides?: RequestInit, ): Promise> { const queryParameters: any = {}; if (requestParameters.allowWatchBookmarks !== undefined) { queryParameters['allowWatchBookmarks'] = requestParameters.allowWatchBookmarks; } if (requestParameters._continue !== undefined) { queryParameters['continue'] = requestParameters._continue; } if (requestParameters.fieldSelector !== undefined) { queryParameters['fieldSelector'] = requestParameters.fieldSelector; } if (requestParameters.labelSelector !== undefined) { queryParameters['labelSelector'] = requestParameters.labelSelector; } if (requestParameters.limit !== undefined) { queryParameters['limit'] = requestParameters.limit; } if (requestParameters.pretty !== undefined) { queryParameters['pretty'] = requestParameters.pretty; } if (requestParameters.resourceVersion !== undefined) { queryParameters['resourceVersion'] = requestParameters.resourceVersion; } if (requestParameters.resourceVersionMatch !== undefined) { queryParameters['resourceVersionMatch'] = requestParameters.resourceVersionMatch; } if (requestParameters.sendInitialEvents !== undefined) { queryParameters['sendInitialEvents'] = requestParameters.sendInitialEvents; } if (requestParameters.timeoutSeconds !== undefined) { queryParameters['timeoutSeconds'] = requestParameters.timeoutSeconds; } if (requestParameters.watch !== undefined) { queryParameters['watch'] = requestParameters.watch; } const headerParameters: runtime.HTTPHeaders = {}; if (this.configuration && this.configuration.apiKey) { headerParameters['authorization'] = this.configuration.apiKey('authorization'); // BearerToken authentication } const response = await this.request( { path: `/apis/apps/v1/daemonsets`, method: 'GET', headers: headerParameters, query: queryParameters, }, initOverrides, ); return new runtime.JSONApiResponse(response, (jsonValue) => IoK8sApiAppsV1DaemonSetListFromJSON(jsonValue), ); } /** * list or watch objects of kind DaemonSet */ async listAppsV1DaemonSetForAllNamespaces( requestParameters: ListAppsV1DaemonSetForAllNamespacesRequest, initOverrides?: RequestInit, ): Promise { const response = await this.listAppsV1DaemonSetForAllNamespacesRaw( requestParameters, initOverrides, ); return await response.value(); } /** * list or watch objects of kind Deployment */ async listAppsV1DeploymentForAllNamespacesRaw( requestParameters: ListAppsV1DeploymentForAllNamespacesRequest, initOverrides?: RequestInit, ): Promise> { const queryParameters: any = {}; if (requestParameters.allowWatchBookmarks !== undefined) { queryParameters['allowWatchBookmarks'] = requestParameters.allowWatchBookmarks; } if (requestParameters._continue !== undefined) { queryParameters['continue'] = requestParameters._continue; } if (requestParameters.fieldSelector !== undefined) { queryParameters['fieldSelector'] = requestParameters.fieldSelector; } if (requestParameters.labelSelector !== undefined) { queryParameters['labelSelector'] = requestParameters.labelSelector; } if (requestParameters.limit !== undefined) { queryParameters['limit'] = requestParameters.limit; } if (requestParameters.pretty !== undefined) { queryParameters['pretty'] = requestParameters.pretty; } if (requestParameters.resourceVersion !== undefined) { queryParameters['resourceVersion'] = requestParameters.resourceVersion; } if (requestParameters.resourceVersionMatch !== undefined) { queryParameters['resourceVersionMatch'] = requestParameters.resourceVersionMatch; } if (requestParameters.sendInitialEvents !== undefined) { queryParameters['sendInitialEvents'] = requestParameters.sendInitialEvents; } if (requestParameters.timeoutSeconds !== undefined) { queryParameters['timeoutSeconds'] = requestParameters.timeoutSeconds; } if (requestParameters.watch !== undefined) { queryParameters['watch'] = requestParameters.watch; } const headerParameters: runtime.HTTPHeaders = {}; if (this.configuration && this.configuration.apiKey) { headerParameters['authorization'] = this.configuration.apiKey('authorization'); // BearerToken authentication } const response = await this.request( { path: `/apis/apps/v1/deployments`, method: 'GET', headers: headerParameters, query: queryParameters, }, initOverrides, ); return new runtime.JSONApiResponse(response, (jsonValue) => IoK8sApiAppsV1DeploymentListFromJSON(jsonValue), ); } /** * list or watch objects of kind Deployment */ async listAppsV1DeploymentForAllNamespaces( requestParameters: ListAppsV1DeploymentForAllNamespacesRequest, initOverrides?: RequestInit, ): Promise { const response = await this.listAppsV1DeploymentForAllNamespacesRaw( requestParameters, initOverrides, ); return await response.value(); } /** * list or watch objects of kind ControllerRevision */ async listAppsV1NamespacedControllerRevisionRaw( requestParameters: ListAppsV1NamespacedControllerRevisionRequest, initOverrides?: RequestInit, ): Promise> { if (requestParameters.namespace === null || requestParameters.namespace === undefined) { throw new runtime.RequiredError( 'namespace', 'Required parameter requestParameters.namespace was null or undefined when calling listAppsV1NamespacedControllerRevision.', ); } const queryParameters: any = {}; if (requestParameters.pretty !== undefined) { queryParameters['pretty'] = requestParameters.pretty; } if (requestParameters.allowWatchBookmarks !== undefined) { queryParameters['allowWatchBookmarks'] = requestParameters.allowWatchBookmarks; } if (requestParameters._continue !== undefined) { queryParameters['continue'] = requestParameters._continue; } if (requestParameters.fieldSelector !== undefined) { queryParameters['fieldSelector'] = requestParameters.fieldSelector; } if (requestParameters.labelSelector !== undefined) { queryParameters['labelSelector'] = requestParameters.labelSelector; } if (requestParameters.limit !== undefined) { queryParameters['limit'] = requestParameters.limit; } if (requestParameters.resourceVersion !== undefined) { queryParameters['resourceVersion'] = requestParameters.resourceVersion; } if (requestParameters.resourceVersionMatch !== undefined) { queryParameters['resourceVersionMatch'] = requestParameters.resourceVersionMatch; } if (requestParameters.sendInitialEvents !== undefined) { queryParameters['sendInitialEvents'] = requestParameters.sendInitialEvents; } if (requestParameters.timeoutSeconds !== undefined) { queryParameters['timeoutSeconds'] = requestParameters.timeoutSeconds; } if (requestParameters.watch !== undefined) { queryParameters['watch'] = requestParameters.watch; } const headerParameters: runtime.HTTPHeaders = {}; if (this.configuration && this.configuration.apiKey) { headerParameters['authorization'] = this.configuration.apiKey('authorization'); // BearerToken authentication } const response = await this.request( { path: `/apis/apps/v1/namespaces/{namespace}/controllerrevisions`.replace( `{${'namespace'}}`, encodeURIComponent(String(requestParameters.namespace)), ), method: 'GET', headers: headerParameters, query: queryParameters, }, initOverrides, ); return new runtime.JSONApiResponse(response, (jsonValue) => IoK8sApiAppsV1ControllerRevisionListFromJSON(jsonValue), ); } /** * list or watch objects of kind ControllerRevision */ async listAppsV1NamespacedControllerRevision( requestParameters: ListAppsV1NamespacedControllerRevisionRequest, initOverrides?: RequestInit, ): Promise { const response = await this.listAppsV1NamespacedControllerRevisionRaw( requestParameters, initOverrides, ); return await response.value(); } /** * list or watch objects of kind DaemonSet */ async listAppsV1NamespacedDaemonSetRaw( requestParameters: ListAppsV1NamespacedDaemonSetRequest, initOverrides?: RequestInit, ): Promise> { if (requestParameters.namespace === null || requestParameters.namespace === undefined) { throw new runtime.RequiredError( 'namespace', 'Required parameter requestParameters.namespace was null or undefined when calling listAppsV1NamespacedDaemonSet.', ); } const queryParameters: any = {}; if (requestParameters.pretty !== undefined) { queryParameters['pretty'] = requestParameters.pretty; } if (requestParameters.allowWatchBookmarks !== undefined) { queryParameters['allowWatchBookmarks'] = requestParameters.allowWatchBookmarks; } if (requestParameters._continue !== undefined) { queryParameters['continue'] = requestParameters._continue; } if (requestParameters.fieldSelector !== undefined) { queryParameters['fieldSelector'] = requestParameters.fieldSelector; } if (requestParameters.labelSelector !== undefined) { queryParameters['labelSelector'] = requestParameters.labelSelector; } if (requestParameters.limit !== undefined) { queryParameters['limit'] = requestParameters.limit; } if (requestParameters.resourceVersion !== undefined) { queryParameters['resourceVersion'] = requestParameters.resourceVersion; } if (requestParameters.resourceVersionMatch !== undefined) { queryParameters['resourceVersionMatch'] = requestParameters.resourceVersionMatch; } if (requestParameters.sendInitialEvents !== undefined) { queryParameters['sendInitialEvents'] = requestParameters.sendInitialEvents; } if (requestParameters.timeoutSeconds !== undefined) { queryParameters['timeoutSeconds'] = requestParameters.timeoutSeconds; } if (requestParameters.watch !== undefined) { queryParameters['watch'] = requestParameters.watch; } const headerParameters: runtime.HTTPHeaders = {}; if (this.configuration && this.configuration.apiKey) { headerParameters['authorization'] = this.configuration.apiKey('authorization'); // BearerToken authentication } const response = await this.request( { path: `/apis/apps/v1/namespaces/{namespace}/daemonsets`.replace( `{${'namespace'}}`, encodeURIComponent(String(requestParameters.namespace)), ), method: 'GET', headers: headerParameters, query: queryParameters, }, initOverrides, ); return new runtime.JSONApiResponse(response, (jsonValue) => IoK8sApiAppsV1DaemonSetListFromJSON(jsonValue), ); } /** * list or watch objects of kind DaemonSet */ async listAppsV1NamespacedDaemonSet( requestParameters: ListAppsV1NamespacedDaemonSetRequest, initOverrides?: RequestInit, ): Promise { const response = await this.listAppsV1NamespacedDaemonSetRaw(requestParameters, initOverrides); return await response.value(); } /** * list or watch objects of kind Deployment */ async listAppsV1NamespacedDeploymentRaw( requestParameters: ListAppsV1NamespacedDeploymentRequest, initOverrides?: RequestInit, ): Promise> { if (requestParameters.namespace === null || requestParameters.namespace === undefined) { throw new runtime.RequiredError( 'namespace', 'Required parameter requestParameters.namespace was null or undefined when calling listAppsV1NamespacedDeployment.', ); } const queryParameters: any = {}; if (requestParameters.pretty !== undefined) { queryParameters['pretty'] = requestParameters.pretty; } if (requestParameters.allowWatchBookmarks !== undefined) { queryParameters['allowWatchBookmarks'] = requestParameters.allowWatchBookmarks; } if (requestParameters._continue !== undefined) { queryParameters['continue'] = requestParameters._continue; } if (requestParameters.fieldSelector !== undefined) { queryParameters['fieldSelector'] = requestParameters.fieldSelector; } if (requestParameters.labelSelector !== undefined) { queryParameters['labelSelector'] = requestParameters.labelSelector; } if (requestParameters.limit !== undefined) { queryParameters['limit'] = requestParameters.limit; } if (requestParameters.resourceVersion !== undefined) { queryParameters['resourceVersion'] = requestParameters.resourceVersion; } if (requestParameters.resourceVersionMatch !== undefined) { queryParameters['resourceVersionMatch'] = requestParameters.resourceVersionMatch; } if (requestParameters.sendInitialEvents !== undefined) { queryParameters['sendInitialEvents'] = requestParameters.sendInitialEvents; } if (requestParameters.timeoutSeconds !== undefined) { queryParameters['timeoutSeconds'] = requestParameters.timeoutSeconds; } if (requestParameters.watch !== undefined) { queryParameters['watch'] = requestParameters.watch; } const headerParameters: runtime.HTTPHeaders = {}; if (this.configuration && this.configuration.apiKey) { headerParameters['authorization'] = this.configuration.apiKey('authorization'); // BearerToken authentication } const response = await this.request( { path: `/apis/apps/v1/namespaces/{namespace}/deployments`.replace( `{${'namespace'}}`, encodeURIComponent(String(requestParameters.namespace)), ), method: 'GET', headers: headerParameters, query: queryParameters, }, initOverrides, ); return new runtime.JSONApiResponse(response, (jsonValue) => IoK8sApiAppsV1DeploymentListFromJSON(jsonValue), ); } /** * list or watch objects of kind Deployment */ async listAppsV1NamespacedDeployment( requestParameters: ListAppsV1NamespacedDeploymentRequest, initOverrides?: RequestInit, ): Promise { const response = await this.listAppsV1NamespacedDeploymentRaw(requestParameters, initOverrides); return await response.value(); } /** * list or watch objects of kind ReplicaSet */ async listAppsV1NamespacedReplicaSetRaw( requestParameters: ListAppsV1NamespacedReplicaSetRequest, initOverrides?: RequestInit, ): Promise> { if (requestParameters.namespace === null || requestParameters.namespace === undefined) { throw new runtime.RequiredError( 'namespace', 'Required parameter requestParameters.namespace was null or undefined when calling listAppsV1NamespacedReplicaSet.', ); } const queryParameters: any = {}; if (requestParameters.pretty !== undefined) { queryParameters['pretty'] = requestParameters.pretty; } if (requestParameters.allowWatchBookmarks !== undefined) { queryParameters['allowWatchBookmarks'] = requestParameters.allowWatchBookmarks; } if (requestParameters._continue !== undefined) { queryParameters['continue'] = requestParameters._continue; } if (requestParameters.fieldSelector !== undefined) { queryParameters['fieldSelector'] = requestParameters.fieldSelector; } if (requestParameters.labelSelector !== undefined) { queryParameters['labelSelector'] = requestParameters.labelSelector; } if (requestParameters.limit !== undefined) { queryParameters['limit'] = requestParameters.limit; } if (requestParameters.resourceVersion !== undefined) { queryParameters['resourceVersion'] = requestParameters.resourceVersion; } if (requestParameters.resourceVersionMatch !== undefined) { queryParameters['resourceVersionMatch'] = requestParameters.resourceVersionMatch; } if (requestParameters.sendInitialEvents !== undefined) { queryParameters['sendInitialEvents'] = requestParameters.sendInitialEvents; } if (requestParameters.timeoutSeconds !== undefined) { queryParameters['timeoutSeconds'] = requestParameters.timeoutSeconds; } if (requestParameters.watch !== undefined) { queryParameters['watch'] = requestParameters.watch; } const headerParameters: runtime.HTTPHeaders = {}; if (this.configuration && this.configuration.apiKey) { headerParameters['authorization'] = this.configuration.apiKey('authorization'); // BearerToken authentication } const response = await this.request( { path: `/apis/apps/v1/namespaces/{namespace}/replicasets`.replace( `{${'namespace'}}`, encodeURIComponent(String(requestParameters.namespace)), ), method: 'GET', headers: headerParameters, query: queryParameters, }, initOverrides, ); return new runtime.JSONApiResponse(response, (jsonValue) => IoK8sApiAppsV1ReplicaSetListFromJSON(jsonValue), ); } /** * list or watch objects of kind ReplicaSet */ async listAppsV1NamespacedReplicaSet( requestParameters: ListAppsV1NamespacedReplicaSetRequest, initOverrides?: RequestInit, ): Promise { const response = await this.listAppsV1NamespacedReplicaSetRaw(requestParameters, initOverrides); return await response.value(); } /** * list or watch objects of kind StatefulSet */ async listAppsV1NamespacedStatefulSetRaw( requestParameters: ListAppsV1NamespacedStatefulSetRequest, initOverrides?: RequestInit, ): Promise> { if (requestParameters.namespace === null || requestParameters.namespace === undefined) { throw new runtime.RequiredError( 'namespace', 'Required parameter requestParameters.namespace was null or undefined when calling listAppsV1NamespacedStatefulSet.', ); } const queryParameters: any = {}; if (requestParameters.pretty !== undefined) { queryParameters['pretty'] = requestParameters.pretty; } if (requestParameters.allowWatchBookmarks !== undefined) { queryParameters['allowWatchBookmarks'] = requestParameters.allowWatchBookmarks; } if (requestParameters._continue !== undefined) { queryParameters['continue'] = requestParameters._continue; } if (requestParameters.fieldSelector !== undefined) { queryParameters['fieldSelector'] = requestParameters.fieldSelector; } if (requestParameters.labelSelector !== undefined) { queryParameters['labelSelector'] = requestParameters.labelSelector; } if (requestParameters.limit !== undefined) { queryParameters['limit'] = requestParameters.limit; } if (requestParameters.resourceVersion !== undefined) { queryParameters['resourceVersion'] = requestParameters.resourceVersion; } if (requestParameters.resourceVersionMatch !== undefined) { queryParameters['resourceVersionMatch'] = requestParameters.resourceVersionMatch; } if (requestParameters.sendInitialEvents !== undefined) { queryParameters['sendInitialEvents'] = requestParameters.sendInitialEvents; } if (requestParameters.timeoutSeconds !== undefined) { queryParameters['timeoutSeconds'] = requestParameters.timeoutSeconds; } if (requestParameters.watch !== undefined) { queryParameters['watch'] = requestParameters.watch; } const headerParameters: runtime.HTTPHeaders = {}; if (this.configuration && this.configuration.apiKey) { headerParameters['authorization'] = this.configuration.apiKey('authorization'); // BearerToken authentication } const response = await this.request( { path: `/apis/apps/v1/namespaces/{namespace}/statefulsets`.replace( `{${'namespace'}}`, encodeURIComponent(String(requestParameters.namespace)), ), method: 'GET', headers: headerParameters, query: queryParameters, }, initOverrides, ); return new runtime.JSONApiResponse(response, (jsonValue) => IoK8sApiAppsV1StatefulSetListFromJSON(jsonValue), ); } /** * list or watch objects of kind StatefulSet */ async listAppsV1NamespacedStatefulSet( requestParameters: ListAppsV1NamespacedStatefulSetRequest, initOverrides?: RequestInit, ): Promise { const response = await this.listAppsV1NamespacedStatefulSetRaw( requestParameters, initOverrides, ); return await response.value(); } /** * list or watch objects of kind ReplicaSet */ async listAppsV1ReplicaSetForAllNamespacesRaw( requestParameters: ListAppsV1ReplicaSetForAllNamespacesRequest, initOverrides?: RequestInit, ): Promise> { const queryParameters: any = {}; if (requestParameters.allowWatchBookmarks !== undefined) { queryParameters['allowWatchBookmarks'] = requestParameters.allowWatchBookmarks; } if (requestParameters._continue !== undefined) { queryParameters['continue'] = requestParameters._continue; } if (requestParameters.fieldSelector !== undefined) { queryParameters['fieldSelector'] = requestParameters.fieldSelector; } if (requestParameters.labelSelector !== undefined) { queryParameters['labelSelector'] = requestParameters.labelSelector; } if (requestParameters.limit !== undefined) { queryParameters['limit'] = requestParameters.limit; } if (requestParameters.pretty !== undefined) { queryParameters['pretty'] = requestParameters.pretty; } if (requestParameters.resourceVersion !== undefined) { queryParameters['resourceVersion'] = requestParameters.resourceVersion; } if (requestParameters.resourceVersionMatch !== undefined) { queryParameters['resourceVersionMatch'] = requestParameters.resourceVersionMatch; } if (requestParameters.sendInitialEvents !== undefined) { queryParameters['sendInitialEvents'] = requestParameters.sendInitialEvents; } if (requestParameters.timeoutSeconds !== undefined) { queryParameters['timeoutSeconds'] = requestParameters.timeoutSeconds; } if (requestParameters.watch !== undefined) { queryParameters['watch'] = requestParameters.watch; } const headerParameters: runtime.HTTPHeaders = {}; if (this.configuration && this.configuration.apiKey) { headerParameters['authorization'] = this.configuration.apiKey('authorization'); // BearerToken authentication } const response = await this.request( { path: `/apis/apps/v1/replicasets`, method: 'GET', headers: headerParameters, query: queryParameters, }, initOverrides, ); return new runtime.JSONApiResponse(response, (jsonValue) => IoK8sApiAppsV1ReplicaSetListFromJSON(jsonValue), ); } /** * list or watch objects of kind ReplicaSet */ async listAppsV1ReplicaSetForAllNamespaces( requestParameters: ListAppsV1ReplicaSetForAllNamespacesRequest, initOverrides?: RequestInit, ): Promise { const response = await this.listAppsV1ReplicaSetForAllNamespacesRaw( requestParameters, initOverrides, ); return await response.value(); } /** * list or watch objects of kind StatefulSet */ async listAppsV1StatefulSetForAllNamespacesRaw( requestParameters: ListAppsV1StatefulSetForAllNamespacesRequest, initOverrides?: RequestInit, ): Promise> { const queryParameters: any = {}; if (requestParameters.allowWatchBookmarks !== undefined) { queryParameters['allowWatchBookmarks'] = requestParameters.allowWatchBookmarks; } if (requestParameters._continue !== undefined) { queryParameters['continue'] = requestParameters._continue; } if (requestParameters.fieldSelector !== undefined) { queryParameters['fieldSelector'] = requestParameters.fieldSelector; } if (requestParameters.labelSelector !== undefined) { queryParameters['labelSelector'] = requestParameters.labelSelector; } if (requestParameters.limit !== undefined) { queryParameters['limit'] = requestParameters.limit; } if (requestParameters.pretty !== undefined) { queryParameters['pretty'] = requestParameters.pretty; } if (requestParameters.resourceVersion !== undefined) { queryParameters['resourceVersion'] = requestParameters.resourceVersion; } if (requestParameters.resourceVersionMatch !== undefined) { queryParameters['resourceVersionMatch'] = requestParameters.resourceVersionMatch; } if (requestParameters.sendInitialEvents !== undefined) { queryParameters['sendInitialEvents'] = requestParameters.sendInitialEvents; } if (requestParameters.timeoutSeconds !== undefined) { queryParameters['timeoutSeconds'] = requestParameters.timeoutSeconds; } if (requestParameters.watch !== undefined) { queryParameters['watch'] = requestParameters.watch; } const headerParameters: runtime.HTTPHeaders = {}; if (this.configuration && this.configuration.apiKey) { headerParameters['authorization'] = this.configuration.apiKey('authorization'); // BearerToken authentication } const response = await this.request( { path: `/apis/apps/v1/statefulsets`, method: 'GET', headers: headerParameters, query: queryParameters, }, initOverrides, ); return new runtime.JSONApiResponse(response, (jsonValue) => IoK8sApiAppsV1StatefulSetListFromJSON(jsonValue), ); } /** * list or watch objects of kind StatefulSet */ async listAppsV1StatefulSetForAllNamespaces( requestParameters: ListAppsV1StatefulSetForAllNamespacesRequest, initOverrides?: RequestInit, ): Promise { const response = await this.listAppsV1StatefulSetForAllNamespacesRaw( requestParameters, initOverrides, ); return await response.value(); } /** * partially update the specified ControllerRevision */ async patchAppsV1NamespacedControllerRevisionRaw( requestParameters: PatchAppsV1NamespacedControllerRevisionRequest, initOverrides?: RequestInit, ): Promise> { if (requestParameters.name === null || requestParameters.name === undefined) { throw new runtime.RequiredError( 'name', 'Required parameter requestParameters.name was null or undefined when calling patchAppsV1NamespacedControllerRevision.', ); } if (requestParameters.namespace === null || requestParameters.namespace === undefined) { throw new runtime.RequiredError( 'namespace', 'Required parameter requestParameters.namespace was null or undefined when calling patchAppsV1NamespacedControllerRevision.', ); } if (requestParameters.body === null || requestParameters.body === undefined) { throw new runtime.RequiredError( 'body', 'Required parameter requestParameters.body was null or undefined when calling patchAppsV1NamespacedControllerRevision.', ); } const queryParameters: any = {}; if (requestParameters.pretty !== undefined) { queryParameters['pretty'] = requestParameters.pretty; } if (requestParameters.dryRun !== undefined) { queryParameters['dryRun'] = requestParameters.dryRun; } if (requestParameters.fieldManager !== undefined) { queryParameters['fieldManager'] = requestParameters.fieldManager; } if (requestParameters.fieldValidation !== undefined) { queryParameters['fieldValidation'] = requestParameters.fieldValidation; } if (requestParameters.force !== undefined) { queryParameters['force'] = requestParameters.force; } const headerParameters: runtime.HTTPHeaders = {}; headerParameters['Content-Type'] = 'application/json-patch+json'; if (this.configuration && this.configuration.apiKey) { headerParameters['authorization'] = this.configuration.apiKey('authorization'); // BearerToken authentication } const response = await this.request( { path: `/apis/apps/v1/namespaces/{namespace}/controllerrevisions/{name}` .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters.name))) .replace(`{${'namespace'}}`, encodeURIComponent(String(requestParameters.namespace))), method: 'PATCH', headers: headerParameters, query: queryParameters, body: requestParameters.body as any, }, initOverrides, ); return new runtime.JSONApiResponse(response, (jsonValue) => IoK8sApiAppsV1ControllerRevisionFromJSON(jsonValue), ); } /** * partially update the specified ControllerRevision */ async patchAppsV1NamespacedControllerRevision( requestParameters: PatchAppsV1NamespacedControllerRevisionRequest, initOverrides?: RequestInit, ): Promise { const response = await this.patchAppsV1NamespacedControllerRevisionRaw( requestParameters, initOverrides, ); return await response.value(); } /** * partially update the specified DaemonSet */ async patchAppsV1NamespacedDaemonSetRaw( requestParameters: PatchAppsV1NamespacedDaemonSetRequest, initOverrides?: RequestInit, ): Promise> { if (requestParameters.name === null || requestParameters.name === undefined) { throw new runtime.RequiredError( 'name', 'Required parameter requestParameters.name was null or undefined when calling patchAppsV1NamespacedDaemonSet.', ); } if (requestParameters.namespace === null || requestParameters.namespace === undefined) { throw new runtime.RequiredError( 'namespace', 'Required parameter requestParameters.namespace was null or undefined when calling patchAppsV1NamespacedDaemonSet.', ); } if (requestParameters.body === null || requestParameters.body === undefined) { throw new runtime.RequiredError( 'body', 'Required parameter requestParameters.body was null or undefined when calling patchAppsV1NamespacedDaemonSet.', ); } const queryParameters: any = {}; if (requestParameters.pretty !== undefined) { queryParameters['pretty'] = requestParameters.pretty; } if (requestParameters.dryRun !== undefined) { queryParameters['dryRun'] = requestParameters.dryRun; } if (requestParameters.fieldManager !== undefined) { queryParameters['fieldManager'] = requestParameters.fieldManager; } if (requestParameters.fieldValidation !== undefined) { queryParameters['fieldValidation'] = requestParameters.fieldValidation; } if (requestParameters.force !== undefined) { queryParameters['force'] = requestParameters.force; } const headerParameters: runtime.HTTPHeaders = {}; headerParameters['Content-Type'] = 'application/json-patch+json'; if (this.configuration && this.configuration.apiKey) { headerParameters['authorization'] = this.configuration.apiKey('authorization'); // BearerToken authentication } const response = await this.request( { path: `/apis/apps/v1/namespaces/{namespace}/daemonsets/{name}` .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters.name))) .replace(`{${'namespace'}}`, encodeURIComponent(String(requestParameters.namespace))), method: 'PATCH', headers: headerParameters, query: queryParameters, body: requestParameters.body as any, }, initOverrides, ); return new runtime.JSONApiResponse(response, (jsonValue) => IoK8sApiAppsV1DaemonSetFromJSON(jsonValue), ); } /** * partially update the specified DaemonSet */ async patchAppsV1NamespacedDaemonSet( requestParameters: PatchAppsV1NamespacedDaemonSetRequest, initOverrides?: RequestInit, ): Promise { const response = await this.patchAppsV1NamespacedDaemonSetRaw(requestParameters, initOverrides); return await response.value(); } /** * partially update status of the specified DaemonSet */ async patchAppsV1NamespacedDaemonSetStatusRaw( requestParameters: PatchAppsV1NamespacedDaemonSetStatusRequest, initOverrides?: RequestInit, ): Promise> { if (requestParameters.name === null || requestParameters.name === undefined) { throw new runtime.RequiredError( 'name', 'Required parameter requestParameters.name was null or undefined when calling patchAppsV1NamespacedDaemonSetStatus.', ); } if (requestParameters.namespace === null || requestParameters.namespace === undefined) { throw new runtime.RequiredError( 'namespace', 'Required parameter requestParameters.namespace was null or undefined when calling patchAppsV1NamespacedDaemonSetStatus.', ); } if (requestParameters.body === null || requestParameters.body === undefined) { throw new runtime.RequiredError( 'body', 'Required parameter requestParameters.body was null or undefined when calling patchAppsV1NamespacedDaemonSetStatus.', ); } const queryParameters: any = {}; if (requestParameters.pretty !== undefined) { queryParameters['pretty'] = requestParameters.pretty; } if (requestParameters.dryRun !== undefined) { queryParameters['dryRun'] = requestParameters.dryRun; } if (requestParameters.fieldManager !== undefined) { queryParameters['fieldManager'] = requestParameters.fieldManager; } if (requestParameters.fieldValidation !== undefined) { queryParameters['fieldValidation'] = requestParameters.fieldValidation; } if (requestParameters.force !== undefined) { queryParameters['force'] = requestParameters.force; } const headerParameters: runtime.HTTPHeaders = {}; headerParameters['Content-Type'] = 'application/json-patch+json'; if (this.configuration && this.configuration.apiKey) { headerParameters['authorization'] = this.configuration.apiKey('authorization'); // BearerToken authentication } const response = await this.request( { path: `/apis/apps/v1/namespaces/{namespace}/daemonsets/{name}/status` .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters.name))) .replace(`{${'namespace'}}`, encodeURIComponent(String(requestParameters.namespace))), method: 'PATCH', headers: headerParameters, query: queryParameters, body: requestParameters.body as any, }, initOverrides, ); return new runtime.JSONApiResponse(response, (jsonValue) => IoK8sApiAppsV1DaemonSetFromJSON(jsonValue), ); } /** * partially update status of the specified DaemonSet */ async patchAppsV1NamespacedDaemonSetStatus( requestParameters: PatchAppsV1NamespacedDaemonSetStatusRequest, initOverrides?: RequestInit, ): Promise { const response = await this.patchAppsV1NamespacedDaemonSetStatusRaw( requestParameters, initOverrides, ); return await response.value(); } /** * partially update the specified Deployment */ async patchAppsV1NamespacedDeploymentRaw( requestParameters: PatchAppsV1NamespacedDeploymentRequest, initOverrides?: RequestInit, ): Promise> { if (requestParameters.name === null || requestParameters.name === undefined) { throw new runtime.RequiredError( 'name', 'Required parameter requestParameters.name was null or undefined when calling patchAppsV1NamespacedDeployment.', ); } if (requestParameters.namespace === null || requestParameters.namespace === undefined) { throw new runtime.RequiredError( 'namespace', 'Required parameter requestParameters.namespace was null or undefined when calling patchAppsV1NamespacedDeployment.', ); } if (requestParameters.body === null || requestParameters.body === undefined) { throw new runtime.RequiredError( 'body', 'Required parameter requestParameters.body was null or undefined when calling patchAppsV1NamespacedDeployment.', ); } const queryParameters: any = {}; if (requestParameters.pretty !== undefined) { queryParameters['pretty'] = requestParameters.pretty; } if (requestParameters.dryRun !== undefined) { queryParameters['dryRun'] = requestParameters.dryRun; } if (requestParameters.fieldManager !== undefined) { queryParameters['fieldManager'] = requestParameters.fieldManager; } if (requestParameters.fieldValidation !== undefined) { queryParameters['fieldValidation'] = requestParameters.fieldValidation; } if (requestParameters.force !== undefined) { queryParameters['force'] = requestParameters.force; } const headerParameters: runtime.HTTPHeaders = {}; headerParameters['Content-Type'] = 'application/json-patch+json'; if (this.configuration && this.configuration.apiKey) { headerParameters['authorization'] = this.configuration.apiKey('authorization'); // BearerToken authentication } const response = await this.request( { path: `/apis/apps/v1/namespaces/{namespace}/deployments/{name}` .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters.name))) .replace(`{${'namespace'}}`, encodeURIComponent(String(requestParameters.namespace))), method: 'PATCH', headers: headerParameters, query: queryParameters, body: requestParameters.body as any, }, initOverrides, ); return new runtime.JSONApiResponse(response, (jsonValue) => IoK8sApiAppsV1DeploymentFromJSON(jsonValue), ); } /** * partially update the specified Deployment */ async patchAppsV1NamespacedDeployment( requestParameters: PatchAppsV1NamespacedDeploymentRequest, initOverrides?: RequestInit, ): Promise { const response = await this.patchAppsV1NamespacedDeploymentRaw( requestParameters, initOverrides, ); return await response.value(); } /** * partially update scale of the specified Deployment */ async patchAppsV1NamespacedDeploymentScaleRaw( requestParameters: PatchAppsV1NamespacedDeploymentScaleRequest, initOverrides?: RequestInit, ): Promise> { if (requestParameters.name === null || requestParameters.name === undefined) { throw new runtime.RequiredError( 'name', 'Required parameter requestParameters.name was null or undefined when calling patchAppsV1NamespacedDeploymentScale.', ); } if (requestParameters.namespace === null || requestParameters.namespace === undefined) { throw new runtime.RequiredError( 'namespace', 'Required parameter requestParameters.namespace was null or undefined when calling patchAppsV1NamespacedDeploymentScale.', ); } if (requestParameters.body === null || requestParameters.body === undefined) { throw new runtime.RequiredError( 'body', 'Required parameter requestParameters.body was null or undefined when calling patchAppsV1NamespacedDeploymentScale.', ); } const queryParameters: any = {}; if (requestParameters.pretty !== undefined) { queryParameters['pretty'] = requestParameters.pretty; } if (requestParameters.dryRun !== undefined) { queryParameters['dryRun'] = requestParameters.dryRun; } if (requestParameters.fieldManager !== undefined) { queryParameters['fieldManager'] = requestParameters.fieldManager; } if (requestParameters.fieldValidation !== undefined) { queryParameters['fieldValidation'] = requestParameters.fieldValidation; } if (requestParameters.force !== undefined) { queryParameters['force'] = requestParameters.force; } const headerParameters: runtime.HTTPHeaders = {}; headerParameters['Content-Type'] = 'application/json-patch+json'; if (this.configuration && this.configuration.apiKey) { headerParameters['authorization'] = this.configuration.apiKey('authorization'); // BearerToken authentication } const response = await this.request( { path: `/apis/apps/v1/namespaces/{namespace}/deployments/{name}/scale` .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters.name))) .replace(`{${'namespace'}}`, encodeURIComponent(String(requestParameters.namespace))), method: 'PATCH', headers: headerParameters, query: queryParameters, body: requestParameters.body as any, }, initOverrides, ); return new runtime.JSONApiResponse(response, (jsonValue) => IoK8sApiAutoscalingV1ScaleFromJSON(jsonValue), ); } /** * partially update scale of the specified Deployment */ async patchAppsV1NamespacedDeploymentScale( requestParameters: PatchAppsV1NamespacedDeploymentScaleRequest, initOverrides?: RequestInit, ): Promise { const response = await this.patchAppsV1NamespacedDeploymentScaleRaw( requestParameters, initOverrides, ); return await response.value(); } /** * partially update status of the specified Deployment */ async patchAppsV1NamespacedDeploymentStatusRaw( requestParameters: PatchAppsV1NamespacedDeploymentStatusRequest, initOverrides?: RequestInit, ): Promise> { if (requestParameters.name === null || requestParameters.name === undefined) { throw new runtime.RequiredError( 'name', 'Required parameter requestParameters.name was null or undefined when calling patchAppsV1NamespacedDeploymentStatus.', ); } if (requestParameters.namespace === null || requestParameters.namespace === undefined) { throw new runtime.RequiredError( 'namespace', 'Required parameter requestParameters.namespace was null or undefined when calling patchAppsV1NamespacedDeploymentStatus.', ); } if (requestParameters.body === null || requestParameters.body === undefined) { throw new runtime.RequiredError( 'body', 'Required parameter requestParameters.body was null or undefined when calling patchAppsV1NamespacedDeploymentStatus.', ); } const queryParameters: any = {}; if (requestParameters.pretty !== undefined) { queryParameters['pretty'] = requestParameters.pretty; } if (requestParameters.dryRun !== undefined) { queryParameters['dryRun'] = requestParameters.dryRun; } if (requestParameters.fieldManager !== undefined) { queryParameters['fieldManager'] = requestParameters.fieldManager; } if (requestParameters.fieldValidation !== undefined) { queryParameters['fieldValidation'] = requestParameters.fieldValidation; } if (requestParameters.force !== undefined) { queryParameters['force'] = requestParameters.force; } const headerParameters: runtime.HTTPHeaders = {}; headerParameters['Content-Type'] = 'application/json-patch+json'; if (this.configuration && this.configuration.apiKey) { headerParameters['authorization'] = this.configuration.apiKey('authorization'); // BearerToken authentication } const response = await this.request( { path: `/apis/apps/v1/namespaces/{namespace}/deployments/{name}/status` .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters.name))) .replace(`{${'namespace'}}`, encodeURIComponent(String(requestParameters.namespace))), method: 'PATCH', headers: headerParameters, query: queryParameters, body: requestParameters.body as any, }, initOverrides, ); return new runtime.JSONApiResponse(response, (jsonValue) => IoK8sApiAppsV1DeploymentFromJSON(jsonValue), ); } /** * partially update status of the specified Deployment */ async patchAppsV1NamespacedDeploymentStatus( requestParameters: PatchAppsV1NamespacedDeploymentStatusRequest, initOverrides?: RequestInit, ): Promise { const response = await this.patchAppsV1NamespacedDeploymentStatusRaw( requestParameters, initOverrides, ); return await response.value(); } /** * partially update the specified ReplicaSet */ async patchAppsV1NamespacedReplicaSetRaw( requestParameters: PatchAppsV1NamespacedReplicaSetRequest, initOverrides?: RequestInit, ): Promise> { if (requestParameters.name === null || requestParameters.name === undefined) { throw new runtime.RequiredError( 'name', 'Required parameter requestParameters.name was null or undefined when calling patchAppsV1NamespacedReplicaSet.', ); } if (requestParameters.namespace === null || requestParameters.namespace === undefined) { throw new runtime.RequiredError( 'namespace', 'Required parameter requestParameters.namespace was null or undefined when calling patchAppsV1NamespacedReplicaSet.', ); } if (requestParameters.body === null || requestParameters.body === undefined) { throw new runtime.RequiredError( 'body', 'Required parameter requestParameters.body was null or undefined when calling patchAppsV1NamespacedReplicaSet.', ); } const queryParameters: any = {}; if (requestParameters.pretty !== undefined) { queryParameters['pretty'] = requestParameters.pretty; } if (requestParameters.dryRun !== undefined) { queryParameters['dryRun'] = requestParameters.dryRun; } if (requestParameters.fieldManager !== undefined) { queryParameters['fieldManager'] = requestParameters.fieldManager; } if (requestParameters.fieldValidation !== undefined) { queryParameters['fieldValidation'] = requestParameters.fieldValidation; } if (requestParameters.force !== undefined) { queryParameters['force'] = requestParameters.force; } const headerParameters: runtime.HTTPHeaders = {}; headerParameters['Content-Type'] = 'application/json-patch+json'; if (this.configuration && this.configuration.apiKey) { headerParameters['authorization'] = this.configuration.apiKey('authorization'); // BearerToken authentication } const response = await this.request( { path: `/apis/apps/v1/namespaces/{namespace}/replicasets/{name}` .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters.name))) .replace(`{${'namespace'}}`, encodeURIComponent(String(requestParameters.namespace))), method: 'PATCH', headers: headerParameters, query: queryParameters, body: requestParameters.body as any, }, initOverrides, ); return new runtime.JSONApiResponse(response, (jsonValue) => IoK8sApiAppsV1ReplicaSetFromJSON(jsonValue), ); } /** * partially update the specified ReplicaSet */ async patchAppsV1NamespacedReplicaSet( requestParameters: PatchAppsV1NamespacedReplicaSetRequest, initOverrides?: RequestInit, ): Promise { const response = await this.patchAppsV1NamespacedReplicaSetRaw( requestParameters, initOverrides, ); return await response.value(); } /** * partially update scale of the specified ReplicaSet */ async patchAppsV1NamespacedReplicaSetScaleRaw( requestParameters: PatchAppsV1NamespacedReplicaSetScaleRequest, initOverrides?: RequestInit, ): Promise> { if (requestParameters.name === null || requestParameters.name === undefined) { throw new runtime.RequiredError( 'name', 'Required parameter requestParameters.name was null or undefined when calling patchAppsV1NamespacedReplicaSetScale.', ); } if (requestParameters.namespace === null || requestParameters.namespace === undefined) { throw new runtime.RequiredError( 'namespace', 'Required parameter requestParameters.namespace was null or undefined when calling patchAppsV1NamespacedReplicaSetScale.', ); } if (requestParameters.body === null || requestParameters.body === undefined) { throw new runtime.RequiredError( 'body', 'Required parameter requestParameters.body was null or undefined when calling patchAppsV1NamespacedReplicaSetScale.', ); } const queryParameters: any = {}; if (requestParameters.pretty !== undefined) { queryParameters['pretty'] = requestParameters.pretty; } if (requestParameters.dryRun !== undefined) { queryParameters['dryRun'] = requestParameters.dryRun; } if (requestParameters.fieldManager !== undefined) { queryParameters['fieldManager'] = requestParameters.fieldManager; } if (requestParameters.fieldValidation !== undefined) { queryParameters['fieldValidation'] = requestParameters.fieldValidation; } if (requestParameters.force !== undefined) { queryParameters['force'] = requestParameters.force; } const headerParameters: runtime.HTTPHeaders = {}; headerParameters['Content-Type'] = 'application/json-patch+json'; if (this.configuration && this.configuration.apiKey) { headerParameters['authorization'] = this.configuration.apiKey('authorization'); // BearerToken authentication } const response = await this.request( { path: `/apis/apps/v1/namespaces/{namespace}/replicasets/{name}/scale` .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters.name))) .replace(`{${'namespace'}}`, encodeURIComponent(String(requestParameters.namespace))), method: 'PATCH', headers: headerParameters, query: queryParameters, body: requestParameters.body as any, }, initOverrides, ); return new runtime.JSONApiResponse(response, (jsonValue) => IoK8sApiAutoscalingV1ScaleFromJSON(jsonValue), ); } /** * partially update scale of the specified ReplicaSet */ async patchAppsV1NamespacedReplicaSetScale( requestParameters: PatchAppsV1NamespacedReplicaSetScaleRequest, initOverrides?: RequestInit, ): Promise { const response = await this.patchAppsV1NamespacedReplicaSetScaleRaw( requestParameters, initOverrides, ); return await response.value(); } /** * partially update status of the specified ReplicaSet */ async patchAppsV1NamespacedReplicaSetStatusRaw( requestParameters: PatchAppsV1NamespacedReplicaSetStatusRequest, initOverrides?: RequestInit, ): Promise> { if (requestParameters.name === null || requestParameters.name === undefined) { throw new runtime.RequiredError( 'name', 'Required parameter requestParameters.name was null or undefined when calling patchAppsV1NamespacedReplicaSetStatus.', ); } if (requestParameters.namespace === null || requestParameters.namespace === undefined) { throw new runtime.RequiredError( 'namespace', 'Required parameter requestParameters.namespace was null or undefined when calling patchAppsV1NamespacedReplicaSetStatus.', ); } if (requestParameters.body === null || requestParameters.body === undefined) { throw new runtime.RequiredError( 'body', 'Required parameter requestParameters.body was null or undefined when calling patchAppsV1NamespacedReplicaSetStatus.', ); } const queryParameters: any = {}; if (requestParameters.pretty !== undefined) { queryParameters['pretty'] = requestParameters.pretty; } if (requestParameters.dryRun !== undefined) { queryParameters['dryRun'] = requestParameters.dryRun; } if (requestParameters.fieldManager !== undefined) { queryParameters['fieldManager'] = requestParameters.fieldManager; } if (requestParameters.fieldValidation !== undefined) { queryParameters['fieldValidation'] = requestParameters.fieldValidation; } if (requestParameters.force !== undefined) { queryParameters['force'] = requestParameters.force; } const headerParameters: runtime.HTTPHeaders = {}; headerParameters['Content-Type'] = 'application/json-patch+json'; if (this.configuration && this.configuration.apiKey) { headerParameters['authorization'] = this.configuration.apiKey('authorization'); // BearerToken authentication } const response = await this.request( { path: `/apis/apps/v1/namespaces/{namespace}/replicasets/{name}/status` .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters.name))) .replace(`{${'namespace'}}`, encodeURIComponent(String(requestParameters.namespace))), method: 'PATCH', headers: headerParameters, query: queryParameters, body: requestParameters.body as any, }, initOverrides, ); return new runtime.JSONApiResponse(response, (jsonValue) => IoK8sApiAppsV1ReplicaSetFromJSON(jsonValue), ); } /** * partially update status of the specified ReplicaSet */ async patchAppsV1NamespacedReplicaSetStatus( requestParameters: PatchAppsV1NamespacedReplicaSetStatusRequest, initOverrides?: RequestInit, ): Promise { const response = await this.patchAppsV1NamespacedReplicaSetStatusRaw( requestParameters, initOverrides, ); return await response.value(); } /** * partially update the specified StatefulSet */ async patchAppsV1NamespacedStatefulSetRaw( requestParameters: PatchAppsV1NamespacedStatefulSetRequest, initOverrides?: RequestInit, ): Promise> { if (requestParameters.name === null || requestParameters.name === undefined) { throw new runtime.RequiredError( 'name', 'Required parameter requestParameters.name was null or undefined when calling patchAppsV1NamespacedStatefulSet.', ); } if (requestParameters.namespace === null || requestParameters.namespace === undefined) { throw new runtime.RequiredError( 'namespace', 'Required parameter requestParameters.namespace was null or undefined when calling patchAppsV1NamespacedStatefulSet.', ); } if (requestParameters.body === null || requestParameters.body === undefined) { throw new runtime.RequiredError( 'body', 'Required parameter requestParameters.body was null or undefined when calling patchAppsV1NamespacedStatefulSet.', ); } const queryParameters: any = {}; if (requestParameters.pretty !== undefined) { queryParameters['pretty'] = requestParameters.pretty; } if (requestParameters.dryRun !== undefined) { queryParameters['dryRun'] = requestParameters.dryRun; } if (requestParameters.fieldManager !== undefined) { queryParameters['fieldManager'] = requestParameters.fieldManager; } if (requestParameters.fieldValidation !== undefined) { queryParameters['fieldValidation'] = requestParameters.fieldValidation; } if (requestParameters.force !== undefined) { queryParameters['force'] = requestParameters.force; } const headerParameters: runtime.HTTPHeaders = {}; headerParameters['Content-Type'] = 'application/json-patch+json'; if (this.configuration && this.configuration.apiKey) { headerParameters['authorization'] = this.configuration.apiKey('authorization'); // BearerToken authentication } const response = await this.request( { path: `/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}` .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters.name))) .replace(`{${'namespace'}}`, encodeURIComponent(String(requestParameters.namespace))), method: 'PATCH', headers: headerParameters, query: queryParameters, body: requestParameters.body as any, }, initOverrides, ); return new runtime.JSONApiResponse(response, (jsonValue) => IoK8sApiAppsV1StatefulSetFromJSON(jsonValue), ); } /** * partially update the specified StatefulSet */ async patchAppsV1NamespacedStatefulSet( requestParameters: PatchAppsV1NamespacedStatefulSetRequest, initOverrides?: RequestInit, ): Promise { const response = await this.patchAppsV1NamespacedStatefulSetRaw( requestParameters, initOverrides, ); return await response.value(); } /** * partially update scale of the specified StatefulSet */ async patchAppsV1NamespacedStatefulSetScaleRaw( requestParameters: PatchAppsV1NamespacedStatefulSetScaleRequest, initOverrides?: RequestInit, ): Promise> { if (requestParameters.name === null || requestParameters.name === undefined) { throw new runtime.RequiredError( 'name', 'Required parameter requestParameters.name was null or undefined when calling patchAppsV1NamespacedStatefulSetScale.', ); } if (requestParameters.namespace === null || requestParameters.namespace === undefined) { throw new runtime.RequiredError( 'namespace', 'Required parameter requestParameters.namespace was null or undefined when calling patchAppsV1NamespacedStatefulSetScale.', ); } if (requestParameters.body === null || requestParameters.body === undefined) { throw new runtime.RequiredError( 'body', 'Required parameter requestParameters.body was null or undefined when calling patchAppsV1NamespacedStatefulSetScale.', ); } const queryParameters: any = {}; if (requestParameters.pretty !== undefined) { queryParameters['pretty'] = requestParameters.pretty; } if (requestParameters.dryRun !== undefined) { queryParameters['dryRun'] = requestParameters.dryRun; } if (requestParameters.fieldManager !== undefined) { queryParameters['fieldManager'] = requestParameters.fieldManager; } if (requestParameters.fieldValidation !== undefined) { queryParameters['fieldValidation'] = requestParameters.fieldValidation; } if (requestParameters.force !== undefined) { queryParameters['force'] = requestParameters.force; } const headerParameters: runtime.HTTPHeaders = {}; headerParameters['Content-Type'] = 'application/json-patch+json'; if (this.configuration && this.configuration.apiKey) { headerParameters['authorization'] = this.configuration.apiKey('authorization'); // BearerToken authentication } const response = await this.request( { path: `/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/scale` .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters.name))) .replace(`{${'namespace'}}`, encodeURIComponent(String(requestParameters.namespace))), method: 'PATCH', headers: headerParameters, query: queryParameters, body: requestParameters.body as any, }, initOverrides, ); return new runtime.JSONApiResponse(response, (jsonValue) => IoK8sApiAutoscalingV1ScaleFromJSON(jsonValue), ); } /** * partially update scale of the specified StatefulSet */ async patchAppsV1NamespacedStatefulSetScale( requestParameters: PatchAppsV1NamespacedStatefulSetScaleRequest, initOverrides?: RequestInit, ): Promise { const response = await this.patchAppsV1NamespacedStatefulSetScaleRaw( requestParameters, initOverrides, ); return await response.value(); } /** * partially update status of the specified StatefulSet */ async patchAppsV1NamespacedStatefulSetStatusRaw( requestParameters: PatchAppsV1NamespacedStatefulSetStatusRequest, initOverrides?: RequestInit, ): Promise> { if (requestParameters.name === null || requestParameters.name === undefined) { throw new runtime.RequiredError( 'name', 'Required parameter requestParameters.name was null or undefined when calling patchAppsV1NamespacedStatefulSetStatus.', ); } if (requestParameters.namespace === null || requestParameters.namespace === undefined) { throw new runtime.RequiredError( 'namespace', 'Required parameter requestParameters.namespace was null or undefined when calling patchAppsV1NamespacedStatefulSetStatus.', ); } if (requestParameters.body === null || requestParameters.body === undefined) { throw new runtime.RequiredError( 'body', 'Required parameter requestParameters.body was null or undefined when calling patchAppsV1NamespacedStatefulSetStatus.', ); } const queryParameters: any = {}; if (requestParameters.pretty !== undefined) { queryParameters['pretty'] = requestParameters.pretty; } if (requestParameters.dryRun !== undefined) { queryParameters['dryRun'] = requestParameters.dryRun; } if (requestParameters.fieldManager !== undefined) { queryParameters['fieldManager'] = requestParameters.fieldManager; } if (requestParameters.fieldValidation !== undefined) { queryParameters['fieldValidation'] = requestParameters.fieldValidation; } if (requestParameters.force !== undefined) { queryParameters['force'] = requestParameters.force; } const headerParameters: runtime.HTTPHeaders = {}; headerParameters['Content-Type'] = 'application/json-patch+json'; if (this.configuration && this.configuration.apiKey) { headerParameters['authorization'] = this.configuration.apiKey('authorization'); // BearerToken authentication } const response = await this.request( { path: `/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/status` .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters.name))) .replace(`{${'namespace'}}`, encodeURIComponent(String(requestParameters.namespace))), method: 'PATCH', headers: headerParameters, query: queryParameters, body: requestParameters.body as any, }, initOverrides, ); return new runtime.JSONApiResponse(response, (jsonValue) => IoK8sApiAppsV1StatefulSetFromJSON(jsonValue), ); } /** * partially update status of the specified StatefulSet */ async patchAppsV1NamespacedStatefulSetStatus( requestParameters: PatchAppsV1NamespacedStatefulSetStatusRequest, initOverrides?: RequestInit, ): Promise { const response = await this.patchAppsV1NamespacedStatefulSetStatusRaw( requestParameters, initOverrides, ); return await response.value(); } /** * read the specified ControllerRevision */ async readAppsV1NamespacedControllerRevisionRaw( requestParameters: ReadAppsV1NamespacedControllerRevisionRequest, initOverrides?: RequestInit, ): Promise> { if (requestParameters.name === null || requestParameters.name === undefined) { throw new runtime.RequiredError( 'name', 'Required parameter requestParameters.name was null or undefined when calling readAppsV1NamespacedControllerRevision.', ); } if (requestParameters.namespace === null || requestParameters.namespace === undefined) { throw new runtime.RequiredError( 'namespace', 'Required parameter requestParameters.namespace was null or undefined when calling readAppsV1NamespacedControllerRevision.', ); } const queryParameters: any = {}; if (requestParameters.pretty !== undefined) { queryParameters['pretty'] = requestParameters.pretty; } const headerParameters: runtime.HTTPHeaders = {}; if (this.configuration && this.configuration.apiKey) { headerParameters['authorization'] = this.configuration.apiKey('authorization'); // BearerToken authentication } const response = await this.request( { path: `/apis/apps/v1/namespaces/{namespace}/controllerrevisions/{name}` .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters.name))) .replace(`{${'namespace'}}`, encodeURIComponent(String(requestParameters.namespace))), method: 'GET', headers: headerParameters, query: queryParameters, }, initOverrides, ); return new runtime.JSONApiResponse(response, (jsonValue) => IoK8sApiAppsV1ControllerRevisionFromJSON(jsonValue), ); } /** * read the specified ControllerRevision */ async readAppsV1NamespacedControllerRevision( requestParameters: ReadAppsV1NamespacedControllerRevisionRequest, initOverrides?: RequestInit, ): Promise { const response = await this.readAppsV1NamespacedControllerRevisionRaw( requestParameters, initOverrides, ); return await response.value(); } /** * read the specified DaemonSet */ async readAppsV1NamespacedDaemonSetRaw( requestParameters: ReadAppsV1NamespacedDaemonSetRequest, initOverrides?: RequestInit, ): Promise> { if (requestParameters.name === null || requestParameters.name === undefined) { throw new runtime.RequiredError( 'name', 'Required parameter requestParameters.name was null or undefined when calling readAppsV1NamespacedDaemonSet.', ); } if (requestParameters.namespace === null || requestParameters.namespace === undefined) { throw new runtime.RequiredError( 'namespace', 'Required parameter requestParameters.namespace was null or undefined when calling readAppsV1NamespacedDaemonSet.', ); } const queryParameters: any = {}; if (requestParameters.pretty !== undefined) { queryParameters['pretty'] = requestParameters.pretty; } const headerParameters: runtime.HTTPHeaders = {}; if (this.configuration && this.configuration.apiKey) { headerParameters['authorization'] = this.configuration.apiKey('authorization'); // BearerToken authentication } const response = await this.request( { path: `/apis/apps/v1/namespaces/{namespace}/daemonsets/{name}` .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters.name))) .replace(`{${'namespace'}}`, encodeURIComponent(String(requestParameters.namespace))), method: 'GET', headers: headerParameters, query: queryParameters, }, initOverrides, ); return new runtime.JSONApiResponse(response, (jsonValue) => IoK8sApiAppsV1DaemonSetFromJSON(jsonValue), ); } /** * read the specified DaemonSet */ async readAppsV1NamespacedDaemonSet( requestParameters: ReadAppsV1NamespacedDaemonSetRequest, initOverrides?: RequestInit, ): Promise { const response = await this.readAppsV1NamespacedDaemonSetRaw(requestParameters, initOverrides); return await response.value(); } /** * read status of the specified DaemonSet */ async readAppsV1NamespacedDaemonSetStatusRaw( requestParameters: ReadAppsV1NamespacedDaemonSetStatusRequest, initOverrides?: RequestInit, ): Promise> { if (requestParameters.name === null || requestParameters.name === undefined) { throw new runtime.RequiredError( 'name', 'Required parameter requestParameters.name was null or undefined when calling readAppsV1NamespacedDaemonSetStatus.', ); } if (requestParameters.namespace === null || requestParameters.namespace === undefined) { throw new runtime.RequiredError( 'namespace', 'Required parameter requestParameters.namespace was null or undefined when calling readAppsV1NamespacedDaemonSetStatus.', ); } const queryParameters: any = {}; if (requestParameters.pretty !== undefined) { queryParameters['pretty'] = requestParameters.pretty; } const headerParameters: runtime.HTTPHeaders = {}; if (this.configuration && this.configuration.apiKey) { headerParameters['authorization'] = this.configuration.apiKey('authorization'); // BearerToken authentication } const response = await this.request( { path: `/apis/apps/v1/namespaces/{namespace}/daemonsets/{name}/status` .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters.name))) .replace(`{${'namespace'}}`, encodeURIComponent(String(requestParameters.namespace))), method: 'GET', headers: headerParameters, query: queryParameters, }, initOverrides, ); return new runtime.JSONApiResponse(response, (jsonValue) => IoK8sApiAppsV1DaemonSetFromJSON(jsonValue), ); } /** * read status of the specified DaemonSet */ async readAppsV1NamespacedDaemonSetStatus( requestParameters: ReadAppsV1NamespacedDaemonSetStatusRequest, initOverrides?: RequestInit, ): Promise { const response = await this.readAppsV1NamespacedDaemonSetStatusRaw( requestParameters, initOverrides, ); return await response.value(); } /** * read the specified Deployment */ async readAppsV1NamespacedDeploymentRaw( requestParameters: ReadAppsV1NamespacedDeploymentRequest, initOverrides?: RequestInit, ): Promise> { if (requestParameters.name === null || requestParameters.name === undefined) { throw new runtime.RequiredError( 'name', 'Required parameter requestParameters.name was null or undefined when calling readAppsV1NamespacedDeployment.', ); } if (requestParameters.namespace === null || requestParameters.namespace === undefined) { throw new runtime.RequiredError( 'namespace', 'Required parameter requestParameters.namespace was null or undefined when calling readAppsV1NamespacedDeployment.', ); } const queryParameters: any = {}; if (requestParameters.pretty !== undefined) { queryParameters['pretty'] = requestParameters.pretty; } const headerParameters: runtime.HTTPHeaders = {}; if (this.configuration && this.configuration.apiKey) { headerParameters['authorization'] = this.configuration.apiKey('authorization'); // BearerToken authentication } const response = await this.request( { path: `/apis/apps/v1/namespaces/{namespace}/deployments/{name}` .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters.name))) .replace(`{${'namespace'}}`, encodeURIComponent(String(requestParameters.namespace))), method: 'GET', headers: headerParameters, query: queryParameters, }, initOverrides, ); return new runtime.JSONApiResponse(response, (jsonValue) => IoK8sApiAppsV1DeploymentFromJSON(jsonValue), ); } /** * read the specified Deployment */ async readAppsV1NamespacedDeployment( requestParameters: ReadAppsV1NamespacedDeploymentRequest, initOverrides?: RequestInit, ): Promise { const response = await this.readAppsV1NamespacedDeploymentRaw(requestParameters, initOverrides); return await response.value(); } /** * read scale of the specified Deployment */ async readAppsV1NamespacedDeploymentScaleRaw( requestParameters: ReadAppsV1NamespacedDeploymentScaleRequest, initOverrides?: RequestInit, ): Promise> { if (requestParameters.name === null || requestParameters.name === undefined) { throw new runtime.RequiredError( 'name', 'Required parameter requestParameters.name was null or undefined when calling readAppsV1NamespacedDeploymentScale.', ); } if (requestParameters.namespace === null || requestParameters.namespace === undefined) { throw new runtime.RequiredError( 'namespace', 'Required parameter requestParameters.namespace was null or undefined when calling readAppsV1NamespacedDeploymentScale.', ); } const queryParameters: any = {}; if (requestParameters.pretty !== undefined) { queryParameters['pretty'] = requestParameters.pretty; } const headerParameters: runtime.HTTPHeaders = {}; if (this.configuration && this.configuration.apiKey) { headerParameters['authorization'] = this.configuration.apiKey('authorization'); // BearerToken authentication } const response = await this.request( { path: `/apis/apps/v1/namespaces/{namespace}/deployments/{name}/scale` .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters.name))) .replace(`{${'namespace'}}`, encodeURIComponent(String(requestParameters.namespace))), method: 'GET', headers: headerParameters, query: queryParameters, }, initOverrides, ); return new runtime.JSONApiResponse(response, (jsonValue) => IoK8sApiAutoscalingV1ScaleFromJSON(jsonValue), ); } /** * read scale of the specified Deployment */ async readAppsV1NamespacedDeploymentScale( requestParameters: ReadAppsV1NamespacedDeploymentScaleRequest, initOverrides?: RequestInit, ): Promise { const response = await this.readAppsV1NamespacedDeploymentScaleRaw( requestParameters, initOverrides, ); return await response.value(); } /** * read status of the specified Deployment */ async readAppsV1NamespacedDeploymentStatusRaw( requestParameters: ReadAppsV1NamespacedDeploymentStatusRequest, initOverrides?: RequestInit, ): Promise> { if (requestParameters.name === null || requestParameters.name === undefined) { throw new runtime.RequiredError( 'name', 'Required parameter requestParameters.name was null or undefined when calling readAppsV1NamespacedDeploymentStatus.', ); } if (requestParameters.namespace === null || requestParameters.namespace === undefined) { throw new runtime.RequiredError( 'namespace', 'Required parameter requestParameters.namespace was null or undefined when calling readAppsV1NamespacedDeploymentStatus.', ); } const queryParameters: any = {}; if (requestParameters.pretty !== undefined) { queryParameters['pretty'] = requestParameters.pretty; } const headerParameters: runtime.HTTPHeaders = {}; if (this.configuration && this.configuration.apiKey) { headerParameters['authorization'] = this.configuration.apiKey('authorization'); // BearerToken authentication } const response = await this.request( { path: `/apis/apps/v1/namespaces/{namespace}/deployments/{name}/status` .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters.name))) .replace(`{${'namespace'}}`, encodeURIComponent(String(requestParameters.namespace))), method: 'GET', headers: headerParameters, query: queryParameters, }, initOverrides, ); return new runtime.JSONApiResponse(response, (jsonValue) => IoK8sApiAppsV1DeploymentFromJSON(jsonValue), ); } /** * read status of the specified Deployment */ async readAppsV1NamespacedDeploymentStatus( requestParameters: ReadAppsV1NamespacedDeploymentStatusRequest, initOverrides?: RequestInit, ): Promise { const response = await this.readAppsV1NamespacedDeploymentStatusRaw( requestParameters, initOverrides, ); return await response.value(); } /** * read the specified ReplicaSet */ async readAppsV1NamespacedReplicaSetRaw( requestParameters: ReadAppsV1NamespacedReplicaSetRequest, initOverrides?: RequestInit, ): Promise> { if (requestParameters.name === null || requestParameters.name === undefined) { throw new runtime.RequiredError( 'name', 'Required parameter requestParameters.name was null or undefined when calling readAppsV1NamespacedReplicaSet.', ); } if (requestParameters.namespace === null || requestParameters.namespace === undefined) { throw new runtime.RequiredError( 'namespace', 'Required parameter requestParameters.namespace was null or undefined when calling readAppsV1NamespacedReplicaSet.', ); } const queryParameters: any = {}; if (requestParameters.pretty !== undefined) { queryParameters['pretty'] = requestParameters.pretty; } const headerParameters: runtime.HTTPHeaders = {}; if (this.configuration && this.configuration.apiKey) { headerParameters['authorization'] = this.configuration.apiKey('authorization'); // BearerToken authentication } const response = await this.request( { path: `/apis/apps/v1/namespaces/{namespace}/replicasets/{name}` .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters.name))) .replace(`{${'namespace'}}`, encodeURIComponent(String(requestParameters.namespace))), method: 'GET', headers: headerParameters, query: queryParameters, }, initOverrides, ); return new runtime.JSONApiResponse(response, (jsonValue) => IoK8sApiAppsV1ReplicaSetFromJSON(jsonValue), ); } /** * read the specified ReplicaSet */ async readAppsV1NamespacedReplicaSet( requestParameters: ReadAppsV1NamespacedReplicaSetRequest, initOverrides?: RequestInit, ): Promise { const response = await this.readAppsV1NamespacedReplicaSetRaw(requestParameters, initOverrides); return await response.value(); } /** * read scale of the specified ReplicaSet */ async readAppsV1NamespacedReplicaSetScaleRaw( requestParameters: ReadAppsV1NamespacedReplicaSetScaleRequest, initOverrides?: RequestInit, ): Promise> { if (requestParameters.name === null || requestParameters.name === undefined) { throw new runtime.RequiredError( 'name', 'Required parameter requestParameters.name was null or undefined when calling readAppsV1NamespacedReplicaSetScale.', ); } if (requestParameters.namespace === null || requestParameters.namespace === undefined) { throw new runtime.RequiredError( 'namespace', 'Required parameter requestParameters.namespace was null or undefined when calling readAppsV1NamespacedReplicaSetScale.', ); } const queryParameters: any = {}; if (requestParameters.pretty !== undefined) { queryParameters['pretty'] = requestParameters.pretty; } const headerParameters: runtime.HTTPHeaders = {}; if (this.configuration && this.configuration.apiKey) { headerParameters['authorization'] = this.configuration.apiKey('authorization'); // BearerToken authentication } const response = await this.request( { path: `/apis/apps/v1/namespaces/{namespace}/replicasets/{name}/scale` .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters.name))) .replace(`{${'namespace'}}`, encodeURIComponent(String(requestParameters.namespace))), method: 'GET', headers: headerParameters, query: queryParameters, }, initOverrides, ); return new runtime.JSONApiResponse(response, (jsonValue) => IoK8sApiAutoscalingV1ScaleFromJSON(jsonValue), ); } /** * read scale of the specified ReplicaSet */ async readAppsV1NamespacedReplicaSetScale( requestParameters: ReadAppsV1NamespacedReplicaSetScaleRequest, initOverrides?: RequestInit, ): Promise { const response = await this.readAppsV1NamespacedReplicaSetScaleRaw( requestParameters, initOverrides, ); return await response.value(); } /** * read status of the specified ReplicaSet */ async readAppsV1NamespacedReplicaSetStatusRaw( requestParameters: ReadAppsV1NamespacedReplicaSetStatusRequest, initOverrides?: RequestInit, ): Promise> { if (requestParameters.name === null || requestParameters.name === undefined) { throw new runtime.RequiredError( 'name', 'Required parameter requestParameters.name was null or undefined when calling readAppsV1NamespacedReplicaSetStatus.', ); } if (requestParameters.namespace === null || requestParameters.namespace === undefined) { throw new runtime.RequiredError( 'namespace', 'Required parameter requestParameters.namespace was null or undefined when calling readAppsV1NamespacedReplicaSetStatus.', ); } const queryParameters: any = {}; if (requestParameters.pretty !== undefined) { queryParameters['pretty'] = requestParameters.pretty; } const headerParameters: runtime.HTTPHeaders = {}; if (this.configuration && this.configuration.apiKey) { headerParameters['authorization'] = this.configuration.apiKey('authorization'); // BearerToken authentication } const response = await this.request( { path: `/apis/apps/v1/namespaces/{namespace}/replicasets/{name}/status` .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters.name))) .replace(`{${'namespace'}}`, encodeURIComponent(String(requestParameters.namespace))), method: 'GET', headers: headerParameters, query: queryParameters, }, initOverrides, ); return new runtime.JSONApiResponse(response, (jsonValue) => IoK8sApiAppsV1ReplicaSetFromJSON(jsonValue), ); } /** * read status of the specified ReplicaSet */ async readAppsV1NamespacedReplicaSetStatus( requestParameters: ReadAppsV1NamespacedReplicaSetStatusRequest, initOverrides?: RequestInit, ): Promise { const response = await this.readAppsV1NamespacedReplicaSetStatusRaw( requestParameters, initOverrides, ); return await response.value(); } /** * read the specified StatefulSet */ async readAppsV1NamespacedStatefulSetRaw( requestParameters: ReadAppsV1NamespacedStatefulSetRequest, initOverrides?: RequestInit, ): Promise> { if (requestParameters.name === null || requestParameters.name === undefined) { throw new runtime.RequiredError( 'name', 'Required parameter requestParameters.name was null or undefined when calling readAppsV1NamespacedStatefulSet.', ); } if (requestParameters.namespace === null || requestParameters.namespace === undefined) { throw new runtime.RequiredError( 'namespace', 'Required parameter requestParameters.namespace was null or undefined when calling readAppsV1NamespacedStatefulSet.', ); } const queryParameters: any = {}; if (requestParameters.pretty !== undefined) { queryParameters['pretty'] = requestParameters.pretty; } const headerParameters: runtime.HTTPHeaders = {}; if (this.configuration && this.configuration.apiKey) { headerParameters['authorization'] = this.configuration.apiKey('authorization'); // BearerToken authentication } const response = await this.request( { path: `/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}` .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters.name))) .replace(`{${'namespace'}}`, encodeURIComponent(String(requestParameters.namespace))), method: 'GET', headers: headerParameters, query: queryParameters, }, initOverrides, ); return new runtime.JSONApiResponse(response, (jsonValue) => IoK8sApiAppsV1StatefulSetFromJSON(jsonValue), ); } /** * read the specified StatefulSet */ async readAppsV1NamespacedStatefulSet( requestParameters: ReadAppsV1NamespacedStatefulSetRequest, initOverrides?: RequestInit, ): Promise { const response = await this.readAppsV1NamespacedStatefulSetRaw( requestParameters, initOverrides, ); return await response.value(); } /** * read scale of the specified StatefulSet */ async readAppsV1NamespacedStatefulSetScaleRaw( requestParameters: ReadAppsV1NamespacedStatefulSetScaleRequest, initOverrides?: RequestInit, ): Promise> { if (requestParameters.name === null || requestParameters.name === undefined) { throw new runtime.RequiredError( 'name', 'Required parameter requestParameters.name was null or undefined when calling readAppsV1NamespacedStatefulSetScale.', ); } if (requestParameters.namespace === null || requestParameters.namespace === undefined) { throw new runtime.RequiredError( 'namespace', 'Required parameter requestParameters.namespace was null or undefined when calling readAppsV1NamespacedStatefulSetScale.', ); } const queryParameters: any = {}; if (requestParameters.pretty !== undefined) { queryParameters['pretty'] = requestParameters.pretty; } const headerParameters: runtime.HTTPHeaders = {}; if (this.configuration && this.configuration.apiKey) { headerParameters['authorization'] = this.configuration.apiKey('authorization'); // BearerToken authentication } const response = await this.request( { path: `/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/scale` .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters.name))) .replace(`{${'namespace'}}`, encodeURIComponent(String(requestParameters.namespace))), method: 'GET', headers: headerParameters, query: queryParameters, }, initOverrides, ); return new runtime.JSONApiResponse(response, (jsonValue) => IoK8sApiAutoscalingV1ScaleFromJSON(jsonValue), ); } /** * read scale of the specified StatefulSet */ async readAppsV1NamespacedStatefulSetScale( requestParameters: ReadAppsV1NamespacedStatefulSetScaleRequest, initOverrides?: RequestInit, ): Promise { const response = await this.readAppsV1NamespacedStatefulSetScaleRaw( requestParameters, initOverrides, ); return await response.value(); } /** * read status of the specified StatefulSet */ async readAppsV1NamespacedStatefulSetStatusRaw( requestParameters: ReadAppsV1NamespacedStatefulSetStatusRequest, initOverrides?: RequestInit, ): Promise> { if (requestParameters.name === null || requestParameters.name === undefined) { throw new runtime.RequiredError( 'name', 'Required parameter requestParameters.name was null or undefined when calling readAppsV1NamespacedStatefulSetStatus.', ); } if (requestParameters.namespace === null || requestParameters.namespace === undefined) { throw new runtime.RequiredError( 'namespace', 'Required parameter requestParameters.namespace was null or undefined when calling readAppsV1NamespacedStatefulSetStatus.', ); } const queryParameters: any = {}; if (requestParameters.pretty !== undefined) { queryParameters['pretty'] = requestParameters.pretty; } const headerParameters: runtime.HTTPHeaders = {}; if (this.configuration && this.configuration.apiKey) { headerParameters['authorization'] = this.configuration.apiKey('authorization'); // BearerToken authentication } const response = await this.request( { path: `/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/status` .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters.name))) .replace(`{${'namespace'}}`, encodeURIComponent(String(requestParameters.namespace))), method: 'GET', headers: headerParameters, query: queryParameters, }, initOverrides, ); return new runtime.JSONApiResponse(response, (jsonValue) => IoK8sApiAppsV1StatefulSetFromJSON(jsonValue), ); } /** * read status of the specified StatefulSet */ async readAppsV1NamespacedStatefulSetStatus( requestParameters: ReadAppsV1NamespacedStatefulSetStatusRequest, initOverrides?: RequestInit, ): Promise { const response = await this.readAppsV1NamespacedStatefulSetStatusRaw( requestParameters, initOverrides, ); return await response.value(); } /** * replace the specified ControllerRevision */ async replaceAppsV1NamespacedControllerRevisionRaw( requestParameters: ReplaceAppsV1NamespacedControllerRevisionRequest, initOverrides?: RequestInit, ): Promise> { if (requestParameters.name === null || requestParameters.name === undefined) { throw new runtime.RequiredError( 'name', 'Required parameter requestParameters.name was null or undefined when calling replaceAppsV1NamespacedControllerRevision.', ); } if (requestParameters.namespace === null || requestParameters.namespace === undefined) { throw new runtime.RequiredError( 'namespace', 'Required parameter requestParameters.namespace was null or undefined when calling replaceAppsV1NamespacedControllerRevision.', ); } if (requestParameters.body === null || requestParameters.body === undefined) { throw new runtime.RequiredError( 'body', 'Required parameter requestParameters.body was null or undefined when calling replaceAppsV1NamespacedControllerRevision.', ); } const queryParameters: any = {}; if (requestParameters.pretty !== undefined) { queryParameters['pretty'] = requestParameters.pretty; } if (requestParameters.dryRun !== undefined) { queryParameters['dryRun'] = requestParameters.dryRun; } if (requestParameters.fieldManager !== undefined) { queryParameters['fieldManager'] = requestParameters.fieldManager; } if (requestParameters.fieldValidation !== undefined) { queryParameters['fieldValidation'] = requestParameters.fieldValidation; } const headerParameters: runtime.HTTPHeaders = {}; headerParameters['Content-Type'] = 'application/json'; if (this.configuration && this.configuration.apiKey) { headerParameters['authorization'] = this.configuration.apiKey('authorization'); // BearerToken authentication } const response = await this.request( { path: `/apis/apps/v1/namespaces/{namespace}/controllerrevisions/{name}` .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters.name))) .replace(`{${'namespace'}}`, encodeURIComponent(String(requestParameters.namespace))), method: 'PUT', headers: headerParameters, query: queryParameters, body: IoK8sApiAppsV1ControllerRevisionToJSON(requestParameters.body), }, initOverrides, ); return new runtime.JSONApiResponse(response, (jsonValue) => IoK8sApiAppsV1ControllerRevisionFromJSON(jsonValue), ); } /** * replace the specified ControllerRevision */ async replaceAppsV1NamespacedControllerRevision( requestParameters: ReplaceAppsV1NamespacedControllerRevisionRequest, initOverrides?: RequestInit, ): Promise { const response = await this.replaceAppsV1NamespacedControllerRevisionRaw( requestParameters, initOverrides, ); return await response.value(); } /** * replace the specified DaemonSet */ async replaceAppsV1NamespacedDaemonSetRaw( requestParameters: ReplaceAppsV1NamespacedDaemonSetRequest, initOverrides?: RequestInit, ): Promise> { if (requestParameters.name === null || requestParameters.name === undefined) { throw new runtime.RequiredError( 'name', 'Required parameter requestParameters.name was null or undefined when calling replaceAppsV1NamespacedDaemonSet.', ); } if (requestParameters.namespace === null || requestParameters.namespace === undefined) { throw new runtime.RequiredError( 'namespace', 'Required parameter requestParameters.namespace was null or undefined when calling replaceAppsV1NamespacedDaemonSet.', ); } if (requestParameters.body === null || requestParameters.body === undefined) { throw new runtime.RequiredError( 'body', 'Required parameter requestParameters.body was null or undefined when calling replaceAppsV1NamespacedDaemonSet.', ); } const queryParameters: any = {}; if (requestParameters.pretty !== undefined) { queryParameters['pretty'] = requestParameters.pretty; } if (requestParameters.dryRun !== undefined) { queryParameters['dryRun'] = requestParameters.dryRun; } if (requestParameters.fieldManager !== undefined) { queryParameters['fieldManager'] = requestParameters.fieldManager; } if (requestParameters.fieldValidation !== undefined) { queryParameters['fieldValidation'] = requestParameters.fieldValidation; } const headerParameters: runtime.HTTPHeaders = {}; headerParameters['Content-Type'] = 'application/json'; if (this.configuration && this.configuration.apiKey) { headerParameters['authorization'] = this.configuration.apiKey('authorization'); // BearerToken authentication } const response = await this.request( { path: `/apis/apps/v1/namespaces/{namespace}/daemonsets/{name}` .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters.name))) .replace(`{${'namespace'}}`, encodeURIComponent(String(requestParameters.namespace))), method: 'PUT', headers: headerParameters, query: queryParameters, body: IoK8sApiAppsV1DaemonSetToJSON(requestParameters.body), }, initOverrides, ); return new runtime.JSONApiResponse(response, (jsonValue) => IoK8sApiAppsV1DaemonSetFromJSON(jsonValue), ); } /** * replace the specified DaemonSet */ async replaceAppsV1NamespacedDaemonSet( requestParameters: ReplaceAppsV1NamespacedDaemonSetRequest, initOverrides?: RequestInit, ): Promise { const response = await this.replaceAppsV1NamespacedDaemonSetRaw( requestParameters, initOverrides, ); return await response.value(); } /** * replace status of the specified DaemonSet */ async replaceAppsV1NamespacedDaemonSetStatusRaw( requestParameters: ReplaceAppsV1NamespacedDaemonSetStatusRequest, initOverrides?: RequestInit, ): Promise> { if (requestParameters.name === null || requestParameters.name === undefined) { throw new runtime.RequiredError( 'name', 'Required parameter requestParameters.name was null or undefined when calling replaceAppsV1NamespacedDaemonSetStatus.', ); } if (requestParameters.namespace === null || requestParameters.namespace === undefined) { throw new runtime.RequiredError( 'namespace', 'Required parameter requestParameters.namespace was null or undefined when calling replaceAppsV1NamespacedDaemonSetStatus.', ); } if (requestParameters.body === null || requestParameters.body === undefined) { throw new runtime.RequiredError( 'body', 'Required parameter requestParameters.body was null or undefined when calling replaceAppsV1NamespacedDaemonSetStatus.', ); } const queryParameters: any = {}; if (requestParameters.pretty !== undefined) { queryParameters['pretty'] = requestParameters.pretty; } if (requestParameters.dryRun !== undefined) { queryParameters['dryRun'] = requestParameters.dryRun; } if (requestParameters.fieldManager !== undefined) { queryParameters['fieldManager'] = requestParameters.fieldManager; } if (requestParameters.fieldValidation !== undefined) { queryParameters['fieldValidation'] = requestParameters.fieldValidation; } const headerParameters: runtime.HTTPHeaders = {}; headerParameters['Content-Type'] = 'application/json'; if (this.configuration && this.configuration.apiKey) { headerParameters['authorization'] = this.configuration.apiKey('authorization'); // BearerToken authentication } const response = await this.request( { path: `/apis/apps/v1/namespaces/{namespace}/daemonsets/{name}/status` .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters.name))) .replace(`{${'namespace'}}`, encodeURIComponent(String(requestParameters.namespace))), method: 'PUT', headers: headerParameters, query: queryParameters, body: IoK8sApiAppsV1DaemonSetToJSON(requestParameters.body), }, initOverrides, ); return new runtime.JSONApiResponse(response, (jsonValue) => IoK8sApiAppsV1DaemonSetFromJSON(jsonValue), ); } /** * replace status of the specified DaemonSet */ async replaceAppsV1NamespacedDaemonSetStatus( requestParameters: ReplaceAppsV1NamespacedDaemonSetStatusRequest, initOverrides?: RequestInit, ): Promise { const response = await this.replaceAppsV1NamespacedDaemonSetStatusRaw( requestParameters, initOverrides, ); return await response.value(); } /** * replace the specified Deployment */ async replaceAppsV1NamespacedDeploymentRaw( requestParameters: ReplaceAppsV1NamespacedDeploymentRequest, initOverrides?: RequestInit, ): Promise> { if (requestParameters.name === null || requestParameters.name === undefined) { throw new runtime.RequiredError( 'name', 'Required parameter requestParameters.name was null or undefined when calling replaceAppsV1NamespacedDeployment.', ); } if (requestParameters.namespace === null || requestParameters.namespace === undefined) { throw new runtime.RequiredError( 'namespace', 'Required parameter requestParameters.namespace was null or undefined when calling replaceAppsV1NamespacedDeployment.', ); } if (requestParameters.body === null || requestParameters.body === undefined) { throw new runtime.RequiredError( 'body', 'Required parameter requestParameters.body was null or undefined when calling replaceAppsV1NamespacedDeployment.', ); } const queryParameters: any = {}; if (requestParameters.pretty !== undefined) { queryParameters['pretty'] = requestParameters.pretty; } if (requestParameters.dryRun !== undefined) { queryParameters['dryRun'] = requestParameters.dryRun; } if (requestParameters.fieldManager !== undefined) { queryParameters['fieldManager'] = requestParameters.fieldManager; } if (requestParameters.fieldValidation !== undefined) { queryParameters['fieldValidation'] = requestParameters.fieldValidation; } const headerParameters: runtime.HTTPHeaders = {}; headerParameters['Content-Type'] = 'application/json'; if (this.configuration && this.configuration.apiKey) { headerParameters['authorization'] = this.configuration.apiKey('authorization'); // BearerToken authentication } const response = await this.request( { path: `/apis/apps/v1/namespaces/{namespace}/deployments/{name}` .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters.name))) .replace(`{${'namespace'}}`, encodeURIComponent(String(requestParameters.namespace))), method: 'PUT', headers: headerParameters, query: queryParameters, body: IoK8sApiAppsV1DeploymentToJSON(requestParameters.body), }, initOverrides, ); return new runtime.JSONApiResponse(response, (jsonValue) => IoK8sApiAppsV1DeploymentFromJSON(jsonValue), ); } /** * replace the specified Deployment */ async replaceAppsV1NamespacedDeployment( requestParameters: ReplaceAppsV1NamespacedDeploymentRequest, initOverrides?: RequestInit, ): Promise { const response = await this.replaceAppsV1NamespacedDeploymentRaw( requestParameters, initOverrides, ); return await response.value(); } /** * replace scale of the specified Deployment */ async replaceAppsV1NamespacedDeploymentScaleRaw( requestParameters: ReplaceAppsV1NamespacedDeploymentScaleRequest, initOverrides?: RequestInit, ): Promise> { if (requestParameters.name === null || requestParameters.name === undefined) { throw new runtime.RequiredError( 'name', 'Required parameter requestParameters.name was null or undefined when calling replaceAppsV1NamespacedDeploymentScale.', ); } if (requestParameters.namespace === null || requestParameters.namespace === undefined) { throw new runtime.RequiredError( 'namespace', 'Required parameter requestParameters.namespace was null or undefined when calling replaceAppsV1NamespacedDeploymentScale.', ); } if (requestParameters.body === null || requestParameters.body === undefined) { throw new runtime.RequiredError( 'body', 'Required parameter requestParameters.body was null or undefined when calling replaceAppsV1NamespacedDeploymentScale.', ); } const queryParameters: any = {}; if (requestParameters.pretty !== undefined) { queryParameters['pretty'] = requestParameters.pretty; } if (requestParameters.dryRun !== undefined) { queryParameters['dryRun'] = requestParameters.dryRun; } if (requestParameters.fieldManager !== undefined) { queryParameters['fieldManager'] = requestParameters.fieldManager; } if (requestParameters.fieldValidation !== undefined) { queryParameters['fieldValidation'] = requestParameters.fieldValidation; } const headerParameters: runtime.HTTPHeaders = {}; headerParameters['Content-Type'] = 'application/json'; if (this.configuration && this.configuration.apiKey) { headerParameters['authorization'] = this.configuration.apiKey('authorization'); // BearerToken authentication } const response = await this.request( { path: `/apis/apps/v1/namespaces/{namespace}/deployments/{name}/scale` .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters.name))) .replace(`{${'namespace'}}`, encodeURIComponent(String(requestParameters.namespace))), method: 'PUT', headers: headerParameters, query: queryParameters, body: IoK8sApiAutoscalingV1ScaleToJSON(requestParameters.body), }, initOverrides, ); return new runtime.JSONApiResponse(response, (jsonValue) => IoK8sApiAutoscalingV1ScaleFromJSON(jsonValue), ); } /** * replace scale of the specified Deployment */ async replaceAppsV1NamespacedDeploymentScale( requestParameters: ReplaceAppsV1NamespacedDeploymentScaleRequest, initOverrides?: RequestInit, ): Promise { const response = await this.replaceAppsV1NamespacedDeploymentScaleRaw( requestParameters, initOverrides, ); return await response.value(); } /** * replace status of the specified Deployment */ async replaceAppsV1NamespacedDeploymentStatusRaw( requestParameters: ReplaceAppsV1NamespacedDeploymentStatusRequest, initOverrides?: RequestInit, ): Promise> { if (requestParameters.name === null || requestParameters.name === undefined) { throw new runtime.RequiredError( 'name', 'Required parameter requestParameters.name was null or undefined when calling replaceAppsV1NamespacedDeploymentStatus.', ); } if (requestParameters.namespace === null || requestParameters.namespace === undefined) { throw new runtime.RequiredError( 'namespace', 'Required parameter requestParameters.namespace was null or undefined when calling replaceAppsV1NamespacedDeploymentStatus.', ); } if (requestParameters.body === null || requestParameters.body === undefined) { throw new runtime.RequiredError( 'body', 'Required parameter requestParameters.body was null or undefined when calling replaceAppsV1NamespacedDeploymentStatus.', ); } const queryParameters: any = {}; if (requestParameters.pretty !== undefined) { queryParameters['pretty'] = requestParameters.pretty; } if (requestParameters.dryRun !== undefined) { queryParameters['dryRun'] = requestParameters.dryRun; } if (requestParameters.fieldManager !== undefined) { queryParameters['fieldManager'] = requestParameters.fieldManager; } if (requestParameters.fieldValidation !== undefined) { queryParameters['fieldValidation'] = requestParameters.fieldValidation; } const headerParameters: runtime.HTTPHeaders = {}; headerParameters['Content-Type'] = 'application/json'; if (this.configuration && this.configuration.apiKey) { headerParameters['authorization'] = this.configuration.apiKey('authorization'); // BearerToken authentication } const response = await this.request( { path: `/apis/apps/v1/namespaces/{namespace}/deployments/{name}/status` .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters.name))) .replace(`{${'namespace'}}`, encodeURIComponent(String(requestParameters.namespace))), method: 'PUT', headers: headerParameters, query: queryParameters, body: IoK8sApiAppsV1DeploymentToJSON(requestParameters.body), }, initOverrides, ); return new runtime.JSONApiResponse(response, (jsonValue) => IoK8sApiAppsV1DeploymentFromJSON(jsonValue), ); } /** * replace status of the specified Deployment */ async replaceAppsV1NamespacedDeploymentStatus( requestParameters: ReplaceAppsV1NamespacedDeploymentStatusRequest, initOverrides?: RequestInit, ): Promise { const response = await this.replaceAppsV1NamespacedDeploymentStatusRaw( requestParameters, initOverrides, ); return await response.value(); } /** * replace the specified ReplicaSet */ async replaceAppsV1NamespacedReplicaSetRaw( requestParameters: ReplaceAppsV1NamespacedReplicaSetRequest, initOverrides?: RequestInit, ): Promise> { if (requestParameters.name === null || requestParameters.name === undefined) { throw new runtime.RequiredError( 'name', 'Required parameter requestParameters.name was null or undefined when calling replaceAppsV1NamespacedReplicaSet.', ); } if (requestParameters.namespace === null || requestParameters.namespace === undefined) { throw new runtime.RequiredError( 'namespace', 'Required parameter requestParameters.namespace was null or undefined when calling replaceAppsV1NamespacedReplicaSet.', ); } if (requestParameters.body === null || requestParameters.body === undefined) { throw new runtime.RequiredError( 'body', 'Required parameter requestParameters.body was null or undefined when calling replaceAppsV1NamespacedReplicaSet.', ); } const queryParameters: any = {}; if (requestParameters.pretty !== undefined) { queryParameters['pretty'] = requestParameters.pretty; } if (requestParameters.dryRun !== undefined) { queryParameters['dryRun'] = requestParameters.dryRun; } if (requestParameters.fieldManager !== undefined) { queryParameters['fieldManager'] = requestParameters.fieldManager; } if (requestParameters.fieldValidation !== undefined) { queryParameters['fieldValidation'] = requestParameters.fieldValidation; } const headerParameters: runtime.HTTPHeaders = {}; headerParameters['Content-Type'] = 'application/json'; if (this.configuration && this.configuration.apiKey) { headerParameters['authorization'] = this.configuration.apiKey('authorization'); // BearerToken authentication } const response = await this.request( { path: `/apis/apps/v1/namespaces/{namespace}/replicasets/{name}` .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters.name))) .replace(`{${'namespace'}}`, encodeURIComponent(String(requestParameters.namespace))), method: 'PUT', headers: headerParameters, query: queryParameters, body: IoK8sApiAppsV1ReplicaSetToJSON(requestParameters.body), }, initOverrides, ); return new runtime.JSONApiResponse(response, (jsonValue) => IoK8sApiAppsV1ReplicaSetFromJSON(jsonValue), ); } /** * replace the specified ReplicaSet */ async replaceAppsV1NamespacedReplicaSet( requestParameters: ReplaceAppsV1NamespacedReplicaSetRequest, initOverrides?: RequestInit, ): Promise { const response = await this.replaceAppsV1NamespacedReplicaSetRaw( requestParameters, initOverrides, ); return await response.value(); } /** * replace scale of the specified ReplicaSet */ async replaceAppsV1NamespacedReplicaSetScaleRaw( requestParameters: ReplaceAppsV1NamespacedReplicaSetScaleRequest, initOverrides?: RequestInit, ): Promise> { if (requestParameters.name === null || requestParameters.name === undefined) { throw new runtime.RequiredError( 'name', 'Required parameter requestParameters.name was null or undefined when calling replaceAppsV1NamespacedReplicaSetScale.', ); } if (requestParameters.namespace === null || requestParameters.namespace === undefined) { throw new runtime.RequiredError( 'namespace', 'Required parameter requestParameters.namespace was null or undefined when calling replaceAppsV1NamespacedReplicaSetScale.', ); } if (requestParameters.body === null || requestParameters.body === undefined) { throw new runtime.RequiredError( 'body', 'Required parameter requestParameters.body was null or undefined when calling replaceAppsV1NamespacedReplicaSetScale.', ); } const queryParameters: any = {}; if (requestParameters.pretty !== undefined) { queryParameters['pretty'] = requestParameters.pretty; } if (requestParameters.dryRun !== undefined) { queryParameters['dryRun'] = requestParameters.dryRun; } if (requestParameters.fieldManager !== undefined) { queryParameters['fieldManager'] = requestParameters.fieldManager; } if (requestParameters.fieldValidation !== undefined) { queryParameters['fieldValidation'] = requestParameters.fieldValidation; } const headerParameters: runtime.HTTPHeaders = {}; headerParameters['Content-Type'] = 'application/json'; if (this.configuration && this.configuration.apiKey) { headerParameters['authorization'] = this.configuration.apiKey('authorization'); // BearerToken authentication } const response = await this.request( { path: `/apis/apps/v1/namespaces/{namespace}/replicasets/{name}/scale` .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters.name))) .replace(`{${'namespace'}}`, encodeURIComponent(String(requestParameters.namespace))), method: 'PUT', headers: headerParameters, query: queryParameters, body: IoK8sApiAutoscalingV1ScaleToJSON(requestParameters.body), }, initOverrides, ); return new runtime.JSONApiResponse(response, (jsonValue) => IoK8sApiAutoscalingV1ScaleFromJSON(jsonValue), ); } /** * replace scale of the specified ReplicaSet */ async replaceAppsV1NamespacedReplicaSetScale( requestParameters: ReplaceAppsV1NamespacedReplicaSetScaleRequest, initOverrides?: RequestInit, ): Promise { const response = await this.replaceAppsV1NamespacedReplicaSetScaleRaw( requestParameters, initOverrides, ); return await response.value(); } /** * replace status of the specified ReplicaSet */ async replaceAppsV1NamespacedReplicaSetStatusRaw( requestParameters: ReplaceAppsV1NamespacedReplicaSetStatusRequest, initOverrides?: RequestInit, ): Promise> { if (requestParameters.name === null || requestParameters.name === undefined) { throw new runtime.RequiredError( 'name', 'Required parameter requestParameters.name was null or undefined when calling replaceAppsV1NamespacedReplicaSetStatus.', ); } if (requestParameters.namespace === null || requestParameters.namespace === undefined) { throw new runtime.RequiredError( 'namespace', 'Required parameter requestParameters.namespace was null or undefined when calling replaceAppsV1NamespacedReplicaSetStatus.', ); } if (requestParameters.body === null || requestParameters.body === undefined) { throw new runtime.RequiredError( 'body', 'Required parameter requestParameters.body was null or undefined when calling replaceAppsV1NamespacedReplicaSetStatus.', ); } const queryParameters: any = {}; if (requestParameters.pretty !== undefined) { queryParameters['pretty'] = requestParameters.pretty; } if (requestParameters.dryRun !== undefined) { queryParameters['dryRun'] = requestParameters.dryRun; } if (requestParameters.fieldManager !== undefined) { queryParameters['fieldManager'] = requestParameters.fieldManager; } if (requestParameters.fieldValidation !== undefined) { queryParameters['fieldValidation'] = requestParameters.fieldValidation; } const headerParameters: runtime.HTTPHeaders = {}; headerParameters['Content-Type'] = 'application/json'; if (this.configuration && this.configuration.apiKey) { headerParameters['authorization'] = this.configuration.apiKey('authorization'); // BearerToken authentication } const response = await this.request( { path: `/apis/apps/v1/namespaces/{namespace}/replicasets/{name}/status` .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters.name))) .replace(`{${'namespace'}}`, encodeURIComponent(String(requestParameters.namespace))), method: 'PUT', headers: headerParameters, query: queryParameters, body: IoK8sApiAppsV1ReplicaSetToJSON(requestParameters.body), }, initOverrides, ); return new runtime.JSONApiResponse(response, (jsonValue) => IoK8sApiAppsV1ReplicaSetFromJSON(jsonValue), ); } /** * replace status of the specified ReplicaSet */ async replaceAppsV1NamespacedReplicaSetStatus( requestParameters: ReplaceAppsV1NamespacedReplicaSetStatusRequest, initOverrides?: RequestInit, ): Promise { const response = await this.replaceAppsV1NamespacedReplicaSetStatusRaw( requestParameters, initOverrides, ); return await response.value(); } /** * replace the specified StatefulSet */ async replaceAppsV1NamespacedStatefulSetRaw( requestParameters: ReplaceAppsV1NamespacedStatefulSetRequest, initOverrides?: RequestInit, ): Promise> { if (requestParameters.name === null || requestParameters.name === undefined) { throw new runtime.RequiredError( 'name', 'Required parameter requestParameters.name was null or undefined when calling replaceAppsV1NamespacedStatefulSet.', ); } if (requestParameters.namespace === null || requestParameters.namespace === undefined) { throw new runtime.RequiredError( 'namespace', 'Required parameter requestParameters.namespace was null or undefined when calling replaceAppsV1NamespacedStatefulSet.', ); } if (requestParameters.body === null || requestParameters.body === undefined) { throw new runtime.RequiredError( 'body', 'Required parameter requestParameters.body was null or undefined when calling replaceAppsV1NamespacedStatefulSet.', ); } const queryParameters: any = {}; if (requestParameters.pretty !== undefined) { queryParameters['pretty'] = requestParameters.pretty; } if (requestParameters.dryRun !== undefined) { queryParameters['dryRun'] = requestParameters.dryRun; } if (requestParameters.fieldManager !== undefined) { queryParameters['fieldManager'] = requestParameters.fieldManager; } if (requestParameters.fieldValidation !== undefined) { queryParameters['fieldValidation'] = requestParameters.fieldValidation; } const headerParameters: runtime.HTTPHeaders = {}; headerParameters['Content-Type'] = 'application/json'; if (this.configuration && this.configuration.apiKey) { headerParameters['authorization'] = this.configuration.apiKey('authorization'); // BearerToken authentication } const response = await this.request( { path: `/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}` .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters.name))) .replace(`{${'namespace'}}`, encodeURIComponent(String(requestParameters.namespace))), method: 'PUT', headers: headerParameters, query: queryParameters, body: IoK8sApiAppsV1StatefulSetToJSON(requestParameters.body), }, initOverrides, ); return new runtime.JSONApiResponse(response, (jsonValue) => IoK8sApiAppsV1StatefulSetFromJSON(jsonValue), ); } /** * replace the specified StatefulSet */ async replaceAppsV1NamespacedStatefulSet( requestParameters: ReplaceAppsV1NamespacedStatefulSetRequest, initOverrides?: RequestInit, ): Promise { const response = await this.replaceAppsV1NamespacedStatefulSetRaw( requestParameters, initOverrides, ); return await response.value(); } /** * replace scale of the specified StatefulSet */ async replaceAppsV1NamespacedStatefulSetScaleRaw( requestParameters: ReplaceAppsV1NamespacedStatefulSetScaleRequest, initOverrides?: RequestInit, ): Promise> { if (requestParameters.name === null || requestParameters.name === undefined) { throw new runtime.RequiredError( 'name', 'Required parameter requestParameters.name was null or undefined when calling replaceAppsV1NamespacedStatefulSetScale.', ); } if (requestParameters.namespace === null || requestParameters.namespace === undefined) { throw new runtime.RequiredError( 'namespace', 'Required parameter requestParameters.namespace was null or undefined when calling replaceAppsV1NamespacedStatefulSetScale.', ); } if (requestParameters.body === null || requestParameters.body === undefined) { throw new runtime.RequiredError( 'body', 'Required parameter requestParameters.body was null or undefined when calling replaceAppsV1NamespacedStatefulSetScale.', ); } const queryParameters: any = {}; if (requestParameters.pretty !== undefined) { queryParameters['pretty'] = requestParameters.pretty; } if (requestParameters.dryRun !== undefined) { queryParameters['dryRun'] = requestParameters.dryRun; } if (requestParameters.fieldManager !== undefined) { queryParameters['fieldManager'] = requestParameters.fieldManager; } if (requestParameters.fieldValidation !== undefined) { queryParameters['fieldValidation'] = requestParameters.fieldValidation; } const headerParameters: runtime.HTTPHeaders = {}; headerParameters['Content-Type'] = 'application/json'; if (this.configuration && this.configuration.apiKey) { headerParameters['authorization'] = this.configuration.apiKey('authorization'); // BearerToken authentication } const response = await this.request( { path: `/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/scale` .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters.name))) .replace(`{${'namespace'}}`, encodeURIComponent(String(requestParameters.namespace))), method: 'PUT', headers: headerParameters, query: queryParameters, body: IoK8sApiAutoscalingV1ScaleToJSON(requestParameters.body), }, initOverrides, ); return new runtime.JSONApiResponse(response, (jsonValue) => IoK8sApiAutoscalingV1ScaleFromJSON(jsonValue), ); } /** * replace scale of the specified StatefulSet */ async replaceAppsV1NamespacedStatefulSetScale( requestParameters: ReplaceAppsV1NamespacedStatefulSetScaleRequest, initOverrides?: RequestInit, ): Promise { const response = await this.replaceAppsV1NamespacedStatefulSetScaleRaw( requestParameters, initOverrides, ); return await response.value(); } /** * replace status of the specified StatefulSet */ async replaceAppsV1NamespacedStatefulSetStatusRaw( requestParameters: ReplaceAppsV1NamespacedStatefulSetStatusRequest, initOverrides?: RequestInit, ): Promise> { if (requestParameters.name === null || requestParameters.name === undefined) { throw new runtime.RequiredError( 'name', 'Required parameter requestParameters.name was null or undefined when calling replaceAppsV1NamespacedStatefulSetStatus.', ); } if (requestParameters.namespace === null || requestParameters.namespace === undefined) { throw new runtime.RequiredError( 'namespace', 'Required parameter requestParameters.namespace was null or undefined when calling replaceAppsV1NamespacedStatefulSetStatus.', ); } if (requestParameters.body === null || requestParameters.body === undefined) { throw new runtime.RequiredError( 'body', 'Required parameter requestParameters.body was null or undefined when calling replaceAppsV1NamespacedStatefulSetStatus.', ); } const queryParameters: any = {}; if (requestParameters.pretty !== undefined) { queryParameters['pretty'] = requestParameters.pretty; } if (requestParameters.dryRun !== undefined) { queryParameters['dryRun'] = requestParameters.dryRun; } if (requestParameters.fieldManager !== undefined) { queryParameters['fieldManager'] = requestParameters.fieldManager; } if (requestParameters.fieldValidation !== undefined) { queryParameters['fieldValidation'] = requestParameters.fieldValidation; } const headerParameters: runtime.HTTPHeaders = {}; headerParameters['Content-Type'] = 'application/json'; if (this.configuration && this.configuration.apiKey) { headerParameters['authorization'] = this.configuration.apiKey('authorization'); // BearerToken authentication } const response = await this.request( { path: `/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/status` .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters.name))) .replace(`{${'namespace'}}`, encodeURIComponent(String(requestParameters.namespace))), method: 'PUT', headers: headerParameters, query: queryParameters, body: IoK8sApiAppsV1StatefulSetToJSON(requestParameters.body), }, initOverrides, ); return new runtime.JSONApiResponse(response, (jsonValue) => IoK8sApiAppsV1StatefulSetFromJSON(jsonValue), ); } /** * replace status of the specified StatefulSet */ async replaceAppsV1NamespacedStatefulSetStatus( requestParameters: ReplaceAppsV1NamespacedStatefulSetStatusRequest, initOverrides?: RequestInit, ): Promise { const response = await this.replaceAppsV1NamespacedStatefulSetStatusRaw( requestParameters, initOverrides, ); return await response.value(); } /** * watch individual changes to a list of ControllerRevision. deprecated: use the \'watch\' parameter with a list operation instead. */ async watchAppsV1ControllerRevisionListForAllNamespacesRaw( requestParameters: WatchAppsV1ControllerRevisionListForAllNamespacesRequest, initOverrides?: RequestInit, ): Promise> { const queryParameters: any = {}; if (requestParameters.allowWatchBookmarks !== undefined) { queryParameters['allowWatchBookmarks'] = requestParameters.allowWatchBookmarks; } if (requestParameters._continue !== undefined) { queryParameters['continue'] = requestParameters._continue; } if (requestParameters.fieldSelector !== undefined) { queryParameters['fieldSelector'] = requestParameters.fieldSelector; } if (requestParameters.labelSelector !== undefined) { queryParameters['labelSelector'] = requestParameters.labelSelector; } if (requestParameters.limit !== undefined) { queryParameters['limit'] = requestParameters.limit; } if (requestParameters.pretty !== undefined) { queryParameters['pretty'] = requestParameters.pretty; } if (requestParameters.resourceVersion !== undefined) { queryParameters['resourceVersion'] = requestParameters.resourceVersion; } if (requestParameters.resourceVersionMatch !== undefined) { queryParameters['resourceVersionMatch'] = requestParameters.resourceVersionMatch; } if (requestParameters.sendInitialEvents !== undefined) { queryParameters['sendInitialEvents'] = requestParameters.sendInitialEvents; } if (requestParameters.timeoutSeconds !== undefined) { queryParameters['timeoutSeconds'] = requestParameters.timeoutSeconds; } if (requestParameters.watch !== undefined) { queryParameters['watch'] = requestParameters.watch; } const headerParameters: runtime.HTTPHeaders = {}; if (this.configuration && this.configuration.apiKey) { headerParameters['authorization'] = this.configuration.apiKey('authorization'); // BearerToken authentication } const response = await this.request( { path: `/apis/apps/v1/watch/controllerrevisions`, method: 'GET', headers: headerParameters, query: queryParameters, }, initOverrides, ); return new runtime.JSONApiResponse(response, (jsonValue) => IoK8sApimachineryPkgApisMetaV1WatchEventFromJSON(jsonValue), ); } /** * watch individual changes to a list of ControllerRevision. deprecated: use the \'watch\' parameter with a list operation instead. */ async watchAppsV1ControllerRevisionListForAllNamespaces( requestParameters: WatchAppsV1ControllerRevisionListForAllNamespacesRequest, initOverrides?: RequestInit, ): Promise { const response = await this.watchAppsV1ControllerRevisionListForAllNamespacesRaw( requestParameters, initOverrides, ); return await response.value(); } /** * watch individual changes to a list of DaemonSet. deprecated: use the \'watch\' parameter with a list operation instead. */ async watchAppsV1DaemonSetListForAllNamespacesRaw( requestParameters: WatchAppsV1DaemonSetListForAllNamespacesRequest, initOverrides?: RequestInit, ): Promise> { const queryParameters: any = {}; if (requestParameters.allowWatchBookmarks !== undefined) { queryParameters['allowWatchBookmarks'] = requestParameters.allowWatchBookmarks; } if (requestParameters._continue !== undefined) { queryParameters['continue'] = requestParameters._continue; } if (requestParameters.fieldSelector !== undefined) { queryParameters['fieldSelector'] = requestParameters.fieldSelector; } if (requestParameters.labelSelector !== undefined) { queryParameters['labelSelector'] = requestParameters.labelSelector; } if (requestParameters.limit !== undefined) { queryParameters['limit'] = requestParameters.limit; } if (requestParameters.pretty !== undefined) { queryParameters['pretty'] = requestParameters.pretty; } if (requestParameters.resourceVersion !== undefined) { queryParameters['resourceVersion'] = requestParameters.resourceVersion; } if (requestParameters.resourceVersionMatch !== undefined) { queryParameters['resourceVersionMatch'] = requestParameters.resourceVersionMatch; } if (requestParameters.sendInitialEvents !== undefined) { queryParameters['sendInitialEvents'] = requestParameters.sendInitialEvents; } if (requestParameters.timeoutSeconds !== undefined) { queryParameters['timeoutSeconds'] = requestParameters.timeoutSeconds; } if (requestParameters.watch !== undefined) { queryParameters['watch'] = requestParameters.watch; } const headerParameters: runtime.HTTPHeaders = {}; if (this.configuration && this.configuration.apiKey) { headerParameters['authorization'] = this.configuration.apiKey('authorization'); // BearerToken authentication } const response = await this.request( { path: `/apis/apps/v1/watch/daemonsets`, method: 'GET', headers: headerParameters, query: queryParameters, }, initOverrides, ); return new runtime.JSONApiResponse(response, (jsonValue) => IoK8sApimachineryPkgApisMetaV1WatchEventFromJSON(jsonValue), ); } /** * watch individual changes to a list of DaemonSet. deprecated: use the \'watch\' parameter with a list operation instead. */ async watchAppsV1DaemonSetListForAllNamespaces( requestParameters: WatchAppsV1DaemonSetListForAllNamespacesRequest, initOverrides?: RequestInit, ): Promise { const response = await this.watchAppsV1DaemonSetListForAllNamespacesRaw( requestParameters, initOverrides, ); return await response.value(); } /** * watch individual changes to a list of Deployment. deprecated: use the \'watch\' parameter with a list operation instead. */ async watchAppsV1DeploymentListForAllNamespacesRaw( requestParameters: WatchAppsV1DeploymentListForAllNamespacesRequest, initOverrides?: RequestInit, ): Promise> { const queryParameters: any = {}; if (requestParameters.allowWatchBookmarks !== undefined) { queryParameters['allowWatchBookmarks'] = requestParameters.allowWatchBookmarks; } if (requestParameters._continue !== undefined) { queryParameters['continue'] = requestParameters._continue; } if (requestParameters.fieldSelector !== undefined) { queryParameters['fieldSelector'] = requestParameters.fieldSelector; } if (requestParameters.labelSelector !== undefined) { queryParameters['labelSelector'] = requestParameters.labelSelector; } if (requestParameters.limit !== undefined) { queryParameters['limit'] = requestParameters.limit; } if (requestParameters.pretty !== undefined) { queryParameters['pretty'] = requestParameters.pretty; } if (requestParameters.resourceVersion !== undefined) { queryParameters['resourceVersion'] = requestParameters.resourceVersion; } if (requestParameters.resourceVersionMatch !== undefined) { queryParameters['resourceVersionMatch'] = requestParameters.resourceVersionMatch; } if (requestParameters.sendInitialEvents !== undefined) { queryParameters['sendInitialEvents'] = requestParameters.sendInitialEvents; } if (requestParameters.timeoutSeconds !== undefined) { queryParameters['timeoutSeconds'] = requestParameters.timeoutSeconds; } if (requestParameters.watch !== undefined) { queryParameters['watch'] = requestParameters.watch; } const headerParameters: runtime.HTTPHeaders = {}; if (this.configuration && this.configuration.apiKey) { headerParameters['authorization'] = this.configuration.apiKey('authorization'); // BearerToken authentication } const response = await this.request( { path: `/apis/apps/v1/watch/deployments`, method: 'GET', headers: headerParameters, query: queryParameters, }, initOverrides, ); return new runtime.JSONApiResponse(response, (jsonValue) => IoK8sApimachineryPkgApisMetaV1WatchEventFromJSON(jsonValue), ); } /** * watch individual changes to a list of Deployment. deprecated: use the \'watch\' parameter with a list operation instead. */ async watchAppsV1DeploymentListForAllNamespaces( requestParameters: WatchAppsV1DeploymentListForAllNamespacesRequest, initOverrides?: RequestInit, ): Promise { const response = await this.watchAppsV1DeploymentListForAllNamespacesRaw( requestParameters, initOverrides, ); return await response.value(); } /** * watch changes to an object of kind ControllerRevision. deprecated: use the \'watch\' parameter with a list operation instead, filtered to a single item with the \'fieldSelector\' parameter. */ async watchAppsV1NamespacedControllerRevisionRaw( requestParameters: WatchAppsV1NamespacedControllerRevisionRequest, initOverrides?: RequestInit, ): Promise> { if (requestParameters.name === null || requestParameters.name === undefined) { throw new runtime.RequiredError( 'name', 'Required parameter requestParameters.name was null or undefined when calling watchAppsV1NamespacedControllerRevision.', ); } if (requestParameters.namespace === null || requestParameters.namespace === undefined) { throw new runtime.RequiredError( 'namespace', 'Required parameter requestParameters.namespace was null or undefined when calling watchAppsV1NamespacedControllerRevision.', ); } const queryParameters: any = {}; if (requestParameters.allowWatchBookmarks !== undefined) { queryParameters['allowWatchBookmarks'] = requestParameters.allowWatchBookmarks; } if (requestParameters._continue !== undefined) { queryParameters['continue'] = requestParameters._continue; } if (requestParameters.fieldSelector !== undefined) { queryParameters['fieldSelector'] = requestParameters.fieldSelector; } if (requestParameters.labelSelector !== undefined) { queryParameters['labelSelector'] = requestParameters.labelSelector; } if (requestParameters.limit !== undefined) { queryParameters['limit'] = requestParameters.limit; } if (requestParameters.pretty !== undefined) { queryParameters['pretty'] = requestParameters.pretty; } if (requestParameters.resourceVersion !== undefined) { queryParameters['resourceVersion'] = requestParameters.resourceVersion; } if (requestParameters.resourceVersionMatch !== undefined) { queryParameters['resourceVersionMatch'] = requestParameters.resourceVersionMatch; } if (requestParameters.sendInitialEvents !== undefined) { queryParameters['sendInitialEvents'] = requestParameters.sendInitialEvents; } if (requestParameters.timeoutSeconds !== undefined) { queryParameters['timeoutSeconds'] = requestParameters.timeoutSeconds; } if (requestParameters.watch !== undefined) { queryParameters['watch'] = requestParameters.watch; } const headerParameters: runtime.HTTPHeaders = {}; if (this.configuration && this.configuration.apiKey) { headerParameters['authorization'] = this.configuration.apiKey('authorization'); // BearerToken authentication } const response = await this.request( { path: `/apis/apps/v1/watch/namespaces/{namespace}/controllerrevisions/{name}` .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters.name))) .replace(`{${'namespace'}}`, encodeURIComponent(String(requestParameters.namespace))), method: 'GET', headers: headerParameters, query: queryParameters, }, initOverrides, ); return new runtime.JSONApiResponse(response, (jsonValue) => IoK8sApimachineryPkgApisMetaV1WatchEventFromJSON(jsonValue), ); } /** * watch changes to an object of kind ControllerRevision. deprecated: use the \'watch\' parameter with a list operation instead, filtered to a single item with the \'fieldSelector\' parameter. */ async watchAppsV1NamespacedControllerRevision( requestParameters: WatchAppsV1NamespacedControllerRevisionRequest, initOverrides?: RequestInit, ): Promise { const response = await this.watchAppsV1NamespacedControllerRevisionRaw( requestParameters, initOverrides, ); return await response.value(); } /** * watch individual changes to a list of ControllerRevision. deprecated: use the \'watch\' parameter with a list operation instead. */ async watchAppsV1NamespacedControllerRevisionListRaw( requestParameters: WatchAppsV1NamespacedControllerRevisionListRequest, initOverrides?: RequestInit, ): Promise> { if (requestParameters.namespace === null || requestParameters.namespace === undefined) { throw new runtime.RequiredError( 'namespace', 'Required parameter requestParameters.namespace was null or undefined when calling watchAppsV1NamespacedControllerRevisionList.', ); } const queryParameters: any = {}; if (requestParameters.allowWatchBookmarks !== undefined) { queryParameters['allowWatchBookmarks'] = requestParameters.allowWatchBookmarks; } if (requestParameters._continue !== undefined) { queryParameters['continue'] = requestParameters._continue; } if (requestParameters.fieldSelector !== undefined) { queryParameters['fieldSelector'] = requestParameters.fieldSelector; } if (requestParameters.labelSelector !== undefined) { queryParameters['labelSelector'] = requestParameters.labelSelector; } if (requestParameters.limit !== undefined) { queryParameters['limit'] = requestParameters.limit; } if (requestParameters.pretty !== undefined) { queryParameters['pretty'] = requestParameters.pretty; } if (requestParameters.resourceVersion !== undefined) { queryParameters['resourceVersion'] = requestParameters.resourceVersion; } if (requestParameters.resourceVersionMatch !== undefined) { queryParameters['resourceVersionMatch'] = requestParameters.resourceVersionMatch; } if (requestParameters.sendInitialEvents !== undefined) { queryParameters['sendInitialEvents'] = requestParameters.sendInitialEvents; } if (requestParameters.timeoutSeconds !== undefined) { queryParameters['timeoutSeconds'] = requestParameters.timeoutSeconds; } if (requestParameters.watch !== undefined) { queryParameters['watch'] = requestParameters.watch; } const headerParameters: runtime.HTTPHeaders = {}; if (this.configuration && this.configuration.apiKey) { headerParameters['authorization'] = this.configuration.apiKey('authorization'); // BearerToken authentication } const response = await this.request( { path: `/apis/apps/v1/watch/namespaces/{namespace}/controllerrevisions`.replace( `{${'namespace'}}`, encodeURIComponent(String(requestParameters.namespace)), ), method: 'GET', headers: headerParameters, query: queryParameters, }, initOverrides, ); return new runtime.JSONApiResponse(response, (jsonValue) => IoK8sApimachineryPkgApisMetaV1WatchEventFromJSON(jsonValue), ); } /** * watch individual changes to a list of ControllerRevision. deprecated: use the \'watch\' parameter with a list operation instead. */ async watchAppsV1NamespacedControllerRevisionList( requestParameters: WatchAppsV1NamespacedControllerRevisionListRequest, initOverrides?: RequestInit, ): Promise { const response = await this.watchAppsV1NamespacedControllerRevisionListRaw( requestParameters, initOverrides, ); return await response.value(); } /** * watch changes to an object of kind DaemonSet. deprecated: use the \'watch\' parameter with a list operation instead, filtered to a single item with the \'fieldSelector\' parameter. */ async watchAppsV1NamespacedDaemonSetRaw( requestParameters: WatchAppsV1NamespacedDaemonSetRequest, initOverrides?: RequestInit, ): Promise> { if (requestParameters.name === null || requestParameters.name === undefined) { throw new runtime.RequiredError( 'name', 'Required parameter requestParameters.name was null or undefined when calling watchAppsV1NamespacedDaemonSet.', ); } if (requestParameters.namespace === null || requestParameters.namespace === undefined) { throw new runtime.RequiredError( 'namespace', 'Required parameter requestParameters.namespace was null or undefined when calling watchAppsV1NamespacedDaemonSet.', ); } const queryParameters: any = {}; if (requestParameters.allowWatchBookmarks !== undefined) { queryParameters['allowWatchBookmarks'] = requestParameters.allowWatchBookmarks; } if (requestParameters._continue !== undefined) { queryParameters['continue'] = requestParameters._continue; } if (requestParameters.fieldSelector !== undefined) { queryParameters['fieldSelector'] = requestParameters.fieldSelector; } if (requestParameters.labelSelector !== undefined) { queryParameters['labelSelector'] = requestParameters.labelSelector; } if (requestParameters.limit !== undefined) { queryParameters['limit'] = requestParameters.limit; } if (requestParameters.pretty !== undefined) { queryParameters['pretty'] = requestParameters.pretty; } if (requestParameters.resourceVersion !== undefined) { queryParameters['resourceVersion'] = requestParameters.resourceVersion; } if (requestParameters.resourceVersionMatch !== undefined) { queryParameters['resourceVersionMatch'] = requestParameters.resourceVersionMatch; } if (requestParameters.sendInitialEvents !== undefined) { queryParameters['sendInitialEvents'] = requestParameters.sendInitialEvents; } if (requestParameters.timeoutSeconds !== undefined) { queryParameters['timeoutSeconds'] = requestParameters.timeoutSeconds; } if (requestParameters.watch !== undefined) { queryParameters['watch'] = requestParameters.watch; } const headerParameters: runtime.HTTPHeaders = {}; if (this.configuration && this.configuration.apiKey) { headerParameters['authorization'] = this.configuration.apiKey('authorization'); // BearerToken authentication } const response = await this.request( { path: `/apis/apps/v1/watch/namespaces/{namespace}/daemonsets/{name}` .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters.name))) .replace(`{${'namespace'}}`, encodeURIComponent(String(requestParameters.namespace))), method: 'GET', headers: headerParameters, query: queryParameters, }, initOverrides, ); return new runtime.JSONApiResponse(response, (jsonValue) => IoK8sApimachineryPkgApisMetaV1WatchEventFromJSON(jsonValue), ); } /** * watch changes to an object of kind DaemonSet. deprecated: use the \'watch\' parameter with a list operation instead, filtered to a single item with the \'fieldSelector\' parameter. */ async watchAppsV1NamespacedDaemonSet( requestParameters: WatchAppsV1NamespacedDaemonSetRequest, initOverrides?: RequestInit, ): Promise { const response = await this.watchAppsV1NamespacedDaemonSetRaw(requestParameters, initOverrides); return await response.value(); } /** * watch individual changes to a list of DaemonSet. deprecated: use the \'watch\' parameter with a list operation instead. */ async watchAppsV1NamespacedDaemonSetListRaw( requestParameters: WatchAppsV1NamespacedDaemonSetListRequest, initOverrides?: RequestInit, ): Promise> { if (requestParameters.namespace === null || requestParameters.namespace === undefined) { throw new runtime.RequiredError( 'namespace', 'Required parameter requestParameters.namespace was null or undefined when calling watchAppsV1NamespacedDaemonSetList.', ); } const queryParameters: any = {}; if (requestParameters.allowWatchBookmarks !== undefined) { queryParameters['allowWatchBookmarks'] = requestParameters.allowWatchBookmarks; } if (requestParameters._continue !== undefined) { queryParameters['continue'] = requestParameters._continue; } if (requestParameters.fieldSelector !== undefined) { queryParameters['fieldSelector'] = requestParameters.fieldSelector; } if (requestParameters.labelSelector !== undefined) { queryParameters['labelSelector'] = requestParameters.labelSelector; } if (requestParameters.limit !== undefined) { queryParameters['limit'] = requestParameters.limit; } if (requestParameters.pretty !== undefined) { queryParameters['pretty'] = requestParameters.pretty; } if (requestParameters.resourceVersion !== undefined) { queryParameters['resourceVersion'] = requestParameters.resourceVersion; } if (requestParameters.resourceVersionMatch !== undefined) { queryParameters['resourceVersionMatch'] = requestParameters.resourceVersionMatch; } if (requestParameters.sendInitialEvents !== undefined) { queryParameters['sendInitialEvents'] = requestParameters.sendInitialEvents; } if (requestParameters.timeoutSeconds !== undefined) { queryParameters['timeoutSeconds'] = requestParameters.timeoutSeconds; } if (requestParameters.watch !== undefined) { queryParameters['watch'] = requestParameters.watch; } const headerParameters: runtime.HTTPHeaders = {}; if (this.configuration && this.configuration.apiKey) { headerParameters['authorization'] = this.configuration.apiKey('authorization'); // BearerToken authentication } const response = await this.request( { path: `/apis/apps/v1/watch/namespaces/{namespace}/daemonsets`.replace( `{${'namespace'}}`, encodeURIComponent(String(requestParameters.namespace)), ), method: 'GET', headers: headerParameters, query: queryParameters, }, initOverrides, ); return new runtime.JSONApiResponse(response, (jsonValue) => IoK8sApimachineryPkgApisMetaV1WatchEventFromJSON(jsonValue), ); } /** * watch individual changes to a list of DaemonSet. deprecated: use the \'watch\' parameter with a list operation instead. */ async watchAppsV1NamespacedDaemonSetList( requestParameters: WatchAppsV1NamespacedDaemonSetListRequest, initOverrides?: RequestInit, ): Promise { const response = await this.watchAppsV1NamespacedDaemonSetListRaw( requestParameters, initOverrides, ); return await response.value(); } /** * watch changes to an object of kind Deployment. deprecated: use the \'watch\' parameter with a list operation instead, filtered to a single item with the \'fieldSelector\' parameter. */ async watchAppsV1NamespacedDeploymentRaw( requestParameters: WatchAppsV1NamespacedDeploymentRequest, initOverrides?: RequestInit, ): Promise> { if (requestParameters.name === null || requestParameters.name === undefined) { throw new runtime.RequiredError( 'name', 'Required parameter requestParameters.name was null or undefined when calling watchAppsV1NamespacedDeployment.', ); } if (requestParameters.namespace === null || requestParameters.namespace === undefined) { throw new runtime.RequiredError( 'namespace', 'Required parameter requestParameters.namespace was null or undefined when calling watchAppsV1NamespacedDeployment.', ); } const queryParameters: any = {}; if (requestParameters.allowWatchBookmarks !== undefined) { queryParameters['allowWatchBookmarks'] = requestParameters.allowWatchBookmarks; } if (requestParameters._continue !== undefined) { queryParameters['continue'] = requestParameters._continue; } if (requestParameters.fieldSelector !== undefined) { queryParameters['fieldSelector'] = requestParameters.fieldSelector; } if (requestParameters.labelSelector !== undefined) { queryParameters['labelSelector'] = requestParameters.labelSelector; } if (requestParameters.limit !== undefined) { queryParameters['limit'] = requestParameters.limit; } if (requestParameters.pretty !== undefined) { queryParameters['pretty'] = requestParameters.pretty; } if (requestParameters.resourceVersion !== undefined) { queryParameters['resourceVersion'] = requestParameters.resourceVersion; } if (requestParameters.resourceVersionMatch !== undefined) { queryParameters['resourceVersionMatch'] = requestParameters.resourceVersionMatch; } if (requestParameters.sendInitialEvents !== undefined) { queryParameters['sendInitialEvents'] = requestParameters.sendInitialEvents; } if (requestParameters.timeoutSeconds !== undefined) { queryParameters['timeoutSeconds'] = requestParameters.timeoutSeconds; } if (requestParameters.watch !== undefined) { queryParameters['watch'] = requestParameters.watch; } const headerParameters: runtime.HTTPHeaders = {}; if (this.configuration && this.configuration.apiKey) { headerParameters['authorization'] = this.configuration.apiKey('authorization'); // BearerToken authentication } const response = await this.request( { path: `/apis/apps/v1/watch/namespaces/{namespace}/deployments/{name}` .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters.name))) .replace(`{${'namespace'}}`, encodeURIComponent(String(requestParameters.namespace))), method: 'GET', headers: headerParameters, query: queryParameters, }, initOverrides, ); return new runtime.JSONApiResponse(response, (jsonValue) => IoK8sApimachineryPkgApisMetaV1WatchEventFromJSON(jsonValue), ); } /** * watch changes to an object of kind Deployment. deprecated: use the \'watch\' parameter with a list operation instead, filtered to a single item with the \'fieldSelector\' parameter. */ async watchAppsV1NamespacedDeployment( requestParameters: WatchAppsV1NamespacedDeploymentRequest, initOverrides?: RequestInit, ): Promise { const response = await this.watchAppsV1NamespacedDeploymentRaw( requestParameters, initOverrides, ); return await response.value(); } /** * watch individual changes to a list of Deployment. deprecated: use the \'watch\' parameter with a list operation instead. */ async watchAppsV1NamespacedDeploymentListRaw( requestParameters: WatchAppsV1NamespacedDeploymentListRequest, initOverrides?: RequestInit, ): Promise> { if (requestParameters.namespace === null || requestParameters.namespace === undefined) { throw new runtime.RequiredError( 'namespace', 'Required parameter requestParameters.namespace was null or undefined when calling watchAppsV1NamespacedDeploymentList.', ); } const queryParameters: any = {}; if (requestParameters.allowWatchBookmarks !== undefined) { queryParameters['allowWatchBookmarks'] = requestParameters.allowWatchBookmarks; } if (requestParameters._continue !== undefined) { queryParameters['continue'] = requestParameters._continue; } if (requestParameters.fieldSelector !== undefined) { queryParameters['fieldSelector'] = requestParameters.fieldSelector; } if (requestParameters.labelSelector !== undefined) { queryParameters['labelSelector'] = requestParameters.labelSelector; } if (requestParameters.limit !== undefined) { queryParameters['limit'] = requestParameters.limit; } if (requestParameters.pretty !== undefined) { queryParameters['pretty'] = requestParameters.pretty; } if (requestParameters.resourceVersion !== undefined) { queryParameters['resourceVersion'] = requestParameters.resourceVersion; } if (requestParameters.resourceVersionMatch !== undefined) { queryParameters['resourceVersionMatch'] = requestParameters.resourceVersionMatch; } if (requestParameters.sendInitialEvents !== undefined) { queryParameters['sendInitialEvents'] = requestParameters.sendInitialEvents; } if (requestParameters.timeoutSeconds !== undefined) { queryParameters['timeoutSeconds'] = requestParameters.timeoutSeconds; } if (requestParameters.watch !== undefined) { queryParameters['watch'] = requestParameters.watch; } const headerParameters: runtime.HTTPHeaders = {}; if (this.configuration && this.configuration.apiKey) { headerParameters['authorization'] = this.configuration.apiKey('authorization'); // BearerToken authentication } const response = await this.request( { path: `/apis/apps/v1/watch/namespaces/{namespace}/deployments`.replace( `{${'namespace'}}`, encodeURIComponent(String(requestParameters.namespace)), ), method: 'GET', headers: headerParameters, query: queryParameters, }, initOverrides, ); return new runtime.JSONApiResponse(response, (jsonValue) => IoK8sApimachineryPkgApisMetaV1WatchEventFromJSON(jsonValue), ); } /** * watch individual changes to a list of Deployment. deprecated: use the \'watch\' parameter with a list operation instead. */ async watchAppsV1NamespacedDeploymentList( requestParameters: WatchAppsV1NamespacedDeploymentListRequest, initOverrides?: RequestInit, ): Promise { const response = await this.watchAppsV1NamespacedDeploymentListRaw( requestParameters, initOverrides, ); return await response.value(); } /** * watch changes to an object of kind ReplicaSet. deprecated: use the \'watch\' parameter with a list operation instead, filtered to a single item with the \'fieldSelector\' parameter. */ async watchAppsV1NamespacedReplicaSetRaw( requestParameters: WatchAppsV1NamespacedReplicaSetRequest, initOverrides?: RequestInit, ): Promise> { if (requestParameters.name === null || requestParameters.name === undefined) { throw new runtime.RequiredError( 'name', 'Required parameter requestParameters.name was null or undefined when calling watchAppsV1NamespacedReplicaSet.', ); } if (requestParameters.namespace === null || requestParameters.namespace === undefined) { throw new runtime.RequiredError( 'namespace', 'Required parameter requestParameters.namespace was null or undefined when calling watchAppsV1NamespacedReplicaSet.', ); } const queryParameters: any = {}; if (requestParameters.allowWatchBookmarks !== undefined) { queryParameters['allowWatchBookmarks'] = requestParameters.allowWatchBookmarks; } if (requestParameters._continue !== undefined) { queryParameters['continue'] = requestParameters._continue; } if (requestParameters.fieldSelector !== undefined) { queryParameters['fieldSelector'] = requestParameters.fieldSelector; } if (requestParameters.labelSelector !== undefined) { queryParameters['labelSelector'] = requestParameters.labelSelector; } if (requestParameters.limit !== undefined) { queryParameters['limit'] = requestParameters.limit; } if (requestParameters.pretty !== undefined) { queryParameters['pretty'] = requestParameters.pretty; } if (requestParameters.resourceVersion !== undefined) { queryParameters['resourceVersion'] = requestParameters.resourceVersion; } if (requestParameters.resourceVersionMatch !== undefined) { queryParameters['resourceVersionMatch'] = requestParameters.resourceVersionMatch; } if (requestParameters.sendInitialEvents !== undefined) { queryParameters['sendInitialEvents'] = requestParameters.sendInitialEvents; } if (requestParameters.timeoutSeconds !== undefined) { queryParameters['timeoutSeconds'] = requestParameters.timeoutSeconds; } if (requestParameters.watch !== undefined) { queryParameters['watch'] = requestParameters.watch; } const headerParameters: runtime.HTTPHeaders = {}; if (this.configuration && this.configuration.apiKey) { headerParameters['authorization'] = this.configuration.apiKey('authorization'); // BearerToken authentication } const response = await this.request( { path: `/apis/apps/v1/watch/namespaces/{namespace}/replicasets/{name}` .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters.name))) .replace(`{${'namespace'}}`, encodeURIComponent(String(requestParameters.namespace))), method: 'GET', headers: headerParameters, query: queryParameters, }, initOverrides, ); return new runtime.JSONApiResponse(response, (jsonValue) => IoK8sApimachineryPkgApisMetaV1WatchEventFromJSON(jsonValue), ); } /** * watch changes to an object of kind ReplicaSet. deprecated: use the \'watch\' parameter with a list operation instead, filtered to a single item with the \'fieldSelector\' parameter. */ async watchAppsV1NamespacedReplicaSet( requestParameters: WatchAppsV1NamespacedReplicaSetRequest, initOverrides?: RequestInit, ): Promise { const response = await this.watchAppsV1NamespacedReplicaSetRaw( requestParameters, initOverrides, ); return await response.value(); } /** * watch individual changes to a list of ReplicaSet. deprecated: use the \'watch\' parameter with a list operation instead. */ async watchAppsV1NamespacedReplicaSetListRaw( requestParameters: WatchAppsV1NamespacedReplicaSetListRequest, initOverrides?: RequestInit, ): Promise> { if (requestParameters.namespace === null || requestParameters.namespace === undefined) { throw new runtime.RequiredError( 'namespace', 'Required parameter requestParameters.namespace was null or undefined when calling watchAppsV1NamespacedReplicaSetList.', ); } const queryParameters: any = {}; if (requestParameters.allowWatchBookmarks !== undefined) { queryParameters['allowWatchBookmarks'] = requestParameters.allowWatchBookmarks; } if (requestParameters._continue !== undefined) { queryParameters['continue'] = requestParameters._continue; } if (requestParameters.fieldSelector !== undefined) { queryParameters['fieldSelector'] = requestParameters.fieldSelector; } if (requestParameters.labelSelector !== undefined) { queryParameters['labelSelector'] = requestParameters.labelSelector; } if (requestParameters.limit !== undefined) { queryParameters['limit'] = requestParameters.limit; } if (requestParameters.pretty !== undefined) { queryParameters['pretty'] = requestParameters.pretty; } if (requestParameters.resourceVersion !== undefined) { queryParameters['resourceVersion'] = requestParameters.resourceVersion; } if (requestParameters.resourceVersionMatch !== undefined) { queryParameters['resourceVersionMatch'] = requestParameters.resourceVersionMatch; } if (requestParameters.sendInitialEvents !== undefined) { queryParameters['sendInitialEvents'] = requestParameters.sendInitialEvents; } if (requestParameters.timeoutSeconds !== undefined) { queryParameters['timeoutSeconds'] = requestParameters.timeoutSeconds; } if (requestParameters.watch !== undefined) { queryParameters['watch'] = requestParameters.watch; } const headerParameters: runtime.HTTPHeaders = {}; if (this.configuration && this.configuration.apiKey) { headerParameters['authorization'] = this.configuration.apiKey('authorization'); // BearerToken authentication } const response = await this.request( { path: `/apis/apps/v1/watch/namespaces/{namespace}/replicasets`.replace( `{${'namespace'}}`, encodeURIComponent(String(requestParameters.namespace)), ), method: 'GET', headers: headerParameters, query: queryParameters, }, initOverrides, ); return new runtime.JSONApiResponse(response, (jsonValue) => IoK8sApimachineryPkgApisMetaV1WatchEventFromJSON(jsonValue), ); } /** * watch individual changes to a list of ReplicaSet. deprecated: use the \'watch\' parameter with a list operation instead. */ async watchAppsV1NamespacedReplicaSetList( requestParameters: WatchAppsV1NamespacedReplicaSetListRequest, initOverrides?: RequestInit, ): Promise { const response = await this.watchAppsV1NamespacedReplicaSetListRaw( requestParameters, initOverrides, ); return await response.value(); } /** * watch changes to an object of kind StatefulSet. deprecated: use the \'watch\' parameter with a list operation instead, filtered to a single item with the \'fieldSelector\' parameter. */ async watchAppsV1NamespacedStatefulSetRaw( requestParameters: WatchAppsV1NamespacedStatefulSetRequest, initOverrides?: RequestInit, ): Promise> { if (requestParameters.name === null || requestParameters.name === undefined) { throw new runtime.RequiredError( 'name', 'Required parameter requestParameters.name was null or undefined when calling watchAppsV1NamespacedStatefulSet.', ); } if (requestParameters.namespace === null || requestParameters.namespace === undefined) { throw new runtime.RequiredError( 'namespace', 'Required parameter requestParameters.namespace was null or undefined when calling watchAppsV1NamespacedStatefulSet.', ); } const queryParameters: any = {}; if (requestParameters.allowWatchBookmarks !== undefined) { queryParameters['allowWatchBookmarks'] = requestParameters.allowWatchBookmarks; } if (requestParameters._continue !== undefined) { queryParameters['continue'] = requestParameters._continue; } if (requestParameters.fieldSelector !== undefined) { queryParameters['fieldSelector'] = requestParameters.fieldSelector; } if (requestParameters.labelSelector !== undefined) { queryParameters['labelSelector'] = requestParameters.labelSelector; } if (requestParameters.limit !== undefined) { queryParameters['limit'] = requestParameters.limit; } if (requestParameters.pretty !== undefined) { queryParameters['pretty'] = requestParameters.pretty; } if (requestParameters.resourceVersion !== undefined) { queryParameters['resourceVersion'] = requestParameters.resourceVersion; } if (requestParameters.resourceVersionMatch !== undefined) { queryParameters['resourceVersionMatch'] = requestParameters.resourceVersionMatch; } if (requestParameters.sendInitialEvents !== undefined) { queryParameters['sendInitialEvents'] = requestParameters.sendInitialEvents; } if (requestParameters.timeoutSeconds !== undefined) { queryParameters['timeoutSeconds'] = requestParameters.timeoutSeconds; } if (requestParameters.watch !== undefined) { queryParameters['watch'] = requestParameters.watch; } const headerParameters: runtime.HTTPHeaders = {}; if (this.configuration && this.configuration.apiKey) { headerParameters['authorization'] = this.configuration.apiKey('authorization'); // BearerToken authentication } const response = await this.request( { path: `/apis/apps/v1/watch/namespaces/{namespace}/statefulsets/{name}` .replace(`{${'name'}}`, encodeURIComponent(String(requestParameters.name))) .replace(`{${'namespace'}}`, encodeURIComponent(String(requestParameters.namespace))), method: 'GET', headers: headerParameters, query: queryParameters, }, initOverrides, ); return new runtime.JSONApiResponse(response, (jsonValue) => IoK8sApimachineryPkgApisMetaV1WatchEventFromJSON(jsonValue), ); } /** * watch changes to an object of kind StatefulSet. deprecated: use the \'watch\' parameter with a list operation instead, filtered to a single item with the \'fieldSelector\' parameter. */ async watchAppsV1NamespacedStatefulSet( requestParameters: WatchAppsV1NamespacedStatefulSetRequest, initOverrides?: RequestInit, ): Promise { const response = await this.watchAppsV1NamespacedStatefulSetRaw( requestParameters, initOverrides, ); return await response.value(); } /** * watch individual changes to a list of StatefulSet. deprecated: use the \'watch\' parameter with a list operation instead. */ async watchAppsV1NamespacedStatefulSetListRaw( requestParameters: WatchAppsV1NamespacedStatefulSetListRequest, initOverrides?: RequestInit, ): Promise> { if (requestParameters.namespace === null || requestParameters.namespace === undefined) { throw new runtime.RequiredError( 'namespace', 'Required parameter requestParameters.namespace was null or undefined when calling watchAppsV1NamespacedStatefulSetList.', ); } const queryParameters: any = {}; if (requestParameters.allowWatchBookmarks !== undefined) { queryParameters['allowWatchBookmarks'] = requestParameters.allowWatchBookmarks; } if (requestParameters._continue !== undefined) { queryParameters['continue'] = requestParameters._continue; } if (requestParameters.fieldSelector !== undefined) { queryParameters['fieldSelector'] = requestParameters.fieldSelector; } if (requestParameters.labelSelector !== undefined) { queryParameters['labelSelector'] = requestParameters.labelSelector; } if (requestParameters.limit !== undefined) { queryParameters['limit'] = requestParameters.limit; } if (requestParameters.pretty !== undefined) { queryParameters['pretty'] = requestParameters.pretty; } if (requestParameters.resourceVersion !== undefined) { queryParameters['resourceVersion'] = requestParameters.resourceVersion; } if (requestParameters.resourceVersionMatch !== undefined) { queryParameters['resourceVersionMatch'] = requestParameters.resourceVersionMatch; } if (requestParameters.sendInitialEvents !== undefined) { queryParameters['sendInitialEvents'] = requestParameters.sendInitialEvents; } if (requestParameters.timeoutSeconds !== undefined) { queryParameters['timeoutSeconds'] = requestParameters.timeoutSeconds; } if (requestParameters.watch !== undefined) { queryParameters['watch'] = requestParameters.watch; } const headerParameters: runtime.HTTPHeaders = {}; if (this.configuration && this.configuration.apiKey) { headerParameters['authorization'] = this.configuration.apiKey('authorization'); // BearerToken authentication } const response = await this.request( { path: `/apis/apps/v1/watch/namespaces/{namespace}/statefulsets`.replace( `{${'namespace'}}`, encodeURIComponent(String(requestParameters.namespace)), ), method: 'GET', headers: headerParameters, query: queryParameters, }, initOverrides, ); return new runtime.JSONApiResponse(response, (jsonValue) => IoK8sApimachineryPkgApisMetaV1WatchEventFromJSON(jsonValue), ); } /** * watch individual changes to a list of StatefulSet. deprecated: use the \'watch\' parameter with a list operation instead. */ async watchAppsV1NamespacedStatefulSetList( requestParameters: WatchAppsV1NamespacedStatefulSetListRequest, initOverrides?: RequestInit, ): Promise { const response = await this.watchAppsV1NamespacedStatefulSetListRaw( requestParameters, initOverrides, ); return await response.value(); } /** * watch individual changes to a list of ReplicaSet. deprecated: use the \'watch\' parameter with a list operation instead. */ async watchAppsV1ReplicaSetListForAllNamespacesRaw( requestParameters: WatchAppsV1ReplicaSetListForAllNamespacesRequest, initOverrides?: RequestInit, ): Promise> { const queryParameters: any = {}; if (requestParameters.allowWatchBookmarks !== undefined) { queryParameters['allowWatchBookmarks'] = requestParameters.allowWatchBookmarks; } if (requestParameters._continue !== undefined) { queryParameters['continue'] = requestParameters._continue; } if (requestParameters.fieldSelector !== undefined) { queryParameters['fieldSelector'] = requestParameters.fieldSelector; } if (requestParameters.labelSelector !== undefined) { queryParameters['labelSelector'] = requestParameters.labelSelector; } if (requestParameters.limit !== undefined) { queryParameters['limit'] = requestParameters.limit; } if (requestParameters.pretty !== undefined) { queryParameters['pretty'] = requestParameters.pretty; } if (requestParameters.resourceVersion !== undefined) { queryParameters['resourceVersion'] = requestParameters.resourceVersion; } if (requestParameters.resourceVersionMatch !== undefined) { queryParameters['resourceVersionMatch'] = requestParameters.resourceVersionMatch; } if (requestParameters.sendInitialEvents !== undefined) { queryParameters['sendInitialEvents'] = requestParameters.sendInitialEvents; } if (requestParameters.timeoutSeconds !== undefined) { queryParameters['timeoutSeconds'] = requestParameters.timeoutSeconds; } if (requestParameters.watch !== undefined) { queryParameters['watch'] = requestParameters.watch; } const headerParameters: runtime.HTTPHeaders = {}; if (this.configuration && this.configuration.apiKey) { headerParameters['authorization'] = this.configuration.apiKey('authorization'); // BearerToken authentication } const response = await this.request( { path: `/apis/apps/v1/watch/replicasets`, method: 'GET', headers: headerParameters, query: queryParameters, }, initOverrides, ); return new runtime.JSONApiResponse(response, (jsonValue) => IoK8sApimachineryPkgApisMetaV1WatchEventFromJSON(jsonValue), ); } /** * watch individual changes to a list of ReplicaSet. deprecated: use the \'watch\' parameter with a list operation instead. */ async watchAppsV1ReplicaSetListForAllNamespaces( requestParameters: WatchAppsV1ReplicaSetListForAllNamespacesRequest, initOverrides?: RequestInit, ): Promise { const response = await this.watchAppsV1ReplicaSetListForAllNamespacesRaw( requestParameters, initOverrides, ); return await response.value(); } /** * watch individual changes to a list of StatefulSet. deprecated: use the \'watch\' parameter with a list operation instead. */ async watchAppsV1StatefulSetListForAllNamespacesRaw( requestParameters: WatchAppsV1StatefulSetListForAllNamespacesRequest, initOverrides?: RequestInit, ): Promise> { const queryParameters: any = {}; if (requestParameters.allowWatchBookmarks !== undefined) { queryParameters['allowWatchBookmarks'] = requestParameters.allowWatchBookmarks; } if (requestParameters._continue !== undefined) { queryParameters['continue'] = requestParameters._continue; } if (requestParameters.fieldSelector !== undefined) { queryParameters['fieldSelector'] = requestParameters.fieldSelector; } if (requestParameters.labelSelector !== undefined) { queryParameters['labelSelector'] = requestParameters.labelSelector; } if (requestParameters.limit !== undefined) { queryParameters['limit'] = requestParameters.limit; } if (requestParameters.pretty !== undefined) { queryParameters['pretty'] = requestParameters.pretty; } if (requestParameters.resourceVersion !== undefined) { queryParameters['resourceVersion'] = requestParameters.resourceVersion; } if (requestParameters.resourceVersionMatch !== undefined) { queryParameters['resourceVersionMatch'] = requestParameters.resourceVersionMatch; } if (requestParameters.sendInitialEvents !== undefined) { queryParameters['sendInitialEvents'] = requestParameters.sendInitialEvents; } if (requestParameters.timeoutSeconds !== undefined) { queryParameters['timeoutSeconds'] = requestParameters.timeoutSeconds; } if (requestParameters.watch !== undefined) { queryParameters['watch'] = requestParameters.watch; } const headerParameters: runtime.HTTPHeaders = {}; if (this.configuration && this.configuration.apiKey) { headerParameters['authorization'] = this.configuration.apiKey('authorization'); // BearerToken authentication } const response = await this.request( { path: `/apis/apps/v1/watch/statefulsets`, method: 'GET', headers: headerParameters, query: queryParameters, }, initOverrides, ); return new runtime.JSONApiResponse(response, (jsonValue) => IoK8sApimachineryPkgApisMetaV1WatchEventFromJSON(jsonValue), ); } /** * watch individual changes to a list of StatefulSet. deprecated: use the \'watch\' parameter with a list operation instead. */ async watchAppsV1StatefulSetListForAllNamespaces( requestParameters: WatchAppsV1StatefulSetListForAllNamespacesRequest, initOverrides?: RequestInit, ): Promise { const response = await this.watchAppsV1StatefulSetListForAllNamespacesRaw( requestParameters, initOverrides, ); return await response.value(); } }