dist/gen/api/coreV1Api.js
/**
     * connect POST requests to exec of Pod
     * @param name name of the PodExecOptions
     * @param namespace object name and auth scope, such as for teams and projects
     * @param command Command is the remote command to execute. argv array. Not executed within a shell.
     * @param container Container in which to execute the command. Defaults to only container if there is only one container in the pod.
     * @param stderr Redirect the standard error stream of the pod for this call. Defaults to true.
     * @param stdin Redirect the standard input stream of the pod for this call. Defaults to false.
     * @param stdout Redirect the standard output stream of the pod for this call. Defaults to true.
     * @param tty TTY if true indicates that a tty will be allocated for the exec call. Defaults to false.
     */
connect POST requests to exec of Pod
@param name name of the PodExecOptions
@param namespace object name and auth scope, such as for teams and projects
@param command Command is the remote command to execute. argv array. Not executed within a shell.
@param container Container in which to execute the command. Defaults to only container if there is only one container in the pod.
@param stderr Redirect the standard error stream of the pod for this call. Defaults to true.
@param stdin Redirect the standard input stream of the pod for this call. Defaults to false.
@param stdout Redirect the standard output stream of the pod for this call. Defaults to true.
@param tty TTY if true indicates that a tty will be allocated for the exec call. Defaults to false.
connect POST requests to exec of Pod @param name name of the PodExecOptions @param namespace object name and auth scope such as for teams and projects @param command Command is the remote command to execute . argv array . Not executed within a shell . @param container Container in which to execute the command . Defaults to only container if there is only one container in the pod . @param stderr Redirect the standard error stream of the pod for this call . Defaults to true . @param stdin Redirect the standard input stream of the pod for this call . Defaults to false . @param stdout Redirect the standard output stream of the pod for this call . Defaults to true . @param tty TTY if true indicates that a tty will be allocated for the exec call . Defaults to false .
connectPostNamespacedPodExec(name, namespace, command, 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}/exec'
                .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 connectPostNamespacedPodExec.');
            }
            if (namespace === null || namespace === undefined) {
                throw new Error('Required parameter namespace was null or undefined when calling connectPostNamespacedPodExec.');
            }
            if (command !== undefined) {
                localVarQueryParameters['command'] = models_1.ObjectSerializer.serialize(command, "string");
            }
            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 });
                        }
                    }
                });
            });
        });
    }
connectPostNamespacedPodExec ( name , namespace , command , 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}/exec' . 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 connectPostNamespacedPodExec.' ) ; } if ( namespace === null || namespace === undefined ) { throw new Error ( 'Required parameter namespace was null or undefined when calling connectPostNamespacedPodExec.' ) ; } if ( command !== undefined ) { localVarQueryParameters [ 'command' ] = models_1 . ObjectSerializer . serialize ( command , "string" ) ; } 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 exec of Pod
 @param name name of the PodExecOptions
 @param namespace object name and auth scope, such as for teams and projects
 @param command Command is the remote command to execute.
connect POST requests to exec of Pod @param name name of the PodExecOptions @param namespace object name and auth scope such as for teams and projects @param command Command is the remote command to execute .
// verify required parameter 'name' is not null or undefined // verify required parameter 'namespace' is not null or undefined