dist/gen/api/coreV1Api.js
/**
     * connect POST requests to attach of Pod
     * @param name name of the PodAttachOptions
     * @param namespace object name and auth scope, such as for teams and projects
     * @param container The container in which to execute the command. Defaults to only container if there is only one container in the pod.
     * @param stderr Stderr if true indicates that stderr is to be redirected for the attach call. Defaults to true.
     * @param stdin Stdin if true, redirects the standard input stream of the pod for this call. Defaults to false.
     * @param stdout Stdout if true indicates that stdout is to be redirected for the attach call. Defaults to true.
     * @param tty TTY if true indicates that a tty will be allocated for the attach call. This is passed through the container runtime so the tty is allocated on the worker node by the container runtime. Defaults to false.
     */
connect POST requests to attach of Pod
@param name name of the PodAttachOptions
@param namespace object name and auth scope, such as for teams and projects
@param container The container in which to execute the command. Defaults to only container if there is only one container in the pod.
@param stderr Stderr if true indicates that stderr is to be redirected for the attach call. Defaults to true.
@param stdin Stdin if true, redirects the standard input stream of the pod for this call. Defaults to false.
@param stdout Stdout if true indicates that stdout is to be redirected for the attach call. Defaults to true.
@param tty TTY if true indicates that a tty will be allocated for the attach call. This is passed through the container runtime so the tty is allocated on the worker node by the container runtime. Defaults to false.
connect POST requests to attach of Pod @param name name of the PodAttachOptions @param namespace object name and auth scope such as for teams and projects @param container The container in which to execute the command . Defaults to only container if there is only one container in the pod . @param stderr Stderr if true indicates that stderr is to be redirected for the attach call . Defaults to true . @param stdin Stdin if true redirects the standard input stream of the pod for this call . Defaults to false . @param stdout Stdout if true indicates that stdout is to be redirected for the attach call . Defaults to true . @param tty TTY if true indicates that a tty will be allocated for the attach call . This is passed through the container runtime so the tty is allocated on the worker node by the container runtime . Defaults to false .
connectPostNamespacedPodAttach(name, namespace, container, stderr, stdin, stdout, tty, options = { headers: {} }) {
        return tslib_1.__awaiter(this, void 0, void 0, function* () {
            const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/pods/{name}/attach'
                .replace('{' + 'name' + '}', encodeURIComponent(String(name)))
                .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace)));
            let localVarQueryParameters = {};
            let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
            let localVarFormParams = {};
            if (name === null || name === undefined) {
                throw new Error('Required parameter name was null or undefined when calling connectPostNamespacedPodAttach.');
            }
            if (namespace === null || namespace === undefined) {
                throw new Error('Required parameter namespace was null or undefined when calling connectPostNamespacedPodAttach.');
            }
            if (container !== undefined) {
                localVarQueryParameters['container'] = models_1.ObjectSerializer.serialize(container, "string");
            }
            if (stderr !== undefined) {
                localVarQueryParameters['stderr'] = models_1.ObjectSerializer.serialize(stderr, "boolean");
            }
            if (stdin !== undefined) {
                localVarQueryParameters['stdin'] = models_1.ObjectSerializer.serialize(stdin, "boolean");
            }
            if (stdout !== undefined) {
                localVarQueryParameters['stdout'] = models_1.ObjectSerializer.serialize(stdout, "boolean");
            }
            if (tty !== undefined) {
                localVarQueryParameters['tty'] = models_1.ObjectSerializer.serialize(tty, "boolean");
            }
            Object.assign(localVarHeaderParams, options.headers);
            let localVarUseFormData = false;
            let localVarRequestOptions = {
                method: 'POST',
                qs: localVarQueryParameters,
                headers: localVarHeaderParams,
                uri: localVarPath,
                useQuerystring: this._useQuerystring,
                json: true,
            };
            this.authentications.BearerToken.applyToRequest(localVarRequestOptions);
            this.authentications.default.applyToRequest(localVarRequestOptions);
            if (Object.keys(localVarFormParams).length) {
                if (localVarUseFormData) {
                    localVarRequestOptions.formData = localVarFormParams;
                }
                else {
                    localVarRequestOptions.form = localVarFormParams;
                }
            }
            return new Promise((resolve, reject) => {
                localVarRequest(localVarRequestOptions, (error, response, body) => {
                    if (error) {
                        reject(error);
                    }
                    else {
                        body = models_1.ObjectSerializer.deserialize(body, "string");
                        if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
                            resolve({ response: response, body: body });
                        }
                        else {
                            reject({ response: response, body: body });
                        }
                    }
                });
            });
        });
    }
connectPostNamespacedPodAttach ( name , namespace , container , stderr , stdin , stdout , tty , options = { headers : { } } ) { return tslib_1 . __awaiter ( this , void 0 , void 0 , function * ( ) { const localVarPath = this . basePath + '/api/v1/namespaces/{namespace}/pods/{name}/attach' . replace ( '{' + 'name' + '}' , encodeURIComponent ( String ( name ) ) ) . replace ( '{' + 'namespace' + '}' , encodeURIComponent ( String ( namespace ) ) ) ; let localVarQueryParameters = { } ; let localVarHeaderParams = Object . assign ( { } , this . defaultHeaders ) ; let localVarFormParams = { } ; if ( name === null || name === undefined ) { throw new Error ( 'Required parameter name was null or undefined when calling connectPostNamespacedPodAttach.' ) ; } if ( namespace === null || namespace === undefined ) { throw new Error ( 'Required parameter namespace was null or undefined when calling connectPostNamespacedPodAttach.' ) ; } if ( container !== undefined ) { localVarQueryParameters [ 'container' ] = models_1 . ObjectSerializer . serialize ( container , "string" ) ; } if ( stderr !== undefined ) { localVarQueryParameters [ 'stderr' ] = models_1 . ObjectSerializer . serialize ( stderr , "boolean" ) ; } if ( stdin !== undefined ) { localVarQueryParameters [ 'stdin' ] = models_1 . ObjectSerializer . serialize ( stdin , "boolean" ) ; } if ( stdout !== undefined ) { localVarQueryParameters [ 'stdout' ] = models_1 . ObjectSerializer . serialize ( stdout , "boolean" ) ; } if ( tty !== undefined ) { localVarQueryParameters [ 'tty' ] = models_1 . ObjectSerializer . serialize ( tty , "boolean" ) ; } Object . assign ( localVarHeaderParams , options . headers ) ; let localVarUseFormData = false ; let localVarRequestOptions = { method : 'POST' , qs : localVarQueryParameters , headers : localVarHeaderParams , uri : localVarPath , useQuerystring : this . _useQuerystring , json : true , } ; this . authentications . BearerToken . applyToRequest ( localVarRequestOptions ) ; this . authentications . default . applyToRequest ( localVarRequestOptions ) ; if ( Object . keys ( localVarFormParams ) . length ) { if ( localVarUseFormData ) { localVarRequestOptions . formData = localVarFormParams ; } else { localVarRequestOptions . form = localVarFormParams ; } } return new Promise ( ( resolve , reject ) => { localVarRequest ( localVarRequestOptions , ( error , response , body ) => { if ( error ) { reject ( error ) ; } else { body = models_1 . ObjectSerializer . deserialize ( body , "string" ) ; if ( response . statusCode && response . statusCode >= 200 && response . statusCode <= 299 ) { resolve ( { response : response , body : body } ) ; } else { reject ( { response : response , body : body } ) ; } } } ) ; } ) ; } ) ; }
connect POST requests to attach of Pod
 @param name name of the PodAttachOptions
 @param namespace object name and auth scope, such as for teams and projects
 @param container The container in which to execute the command.
connect POST requests to attach of Pod @param name name of the PodAttachOptions @param namespace object name and auth scope such as for teams and projects @param container The container in which to execute the command .
// verify required parameter 'name' is not null or undefined // verify required parameter 'namespace' is not null or undefined