dist/gen/api/coreV1Api.js
/**
     * read log of the specified Pod
     * @param name name of the Pod
     * @param namespace object name and auth scope, such as for teams and projects
     * @param container The container for which to stream logs. Defaults to only container if there is one container in the pod.
     * @param follow Follow the log stream of the pod. Defaults to false.
     * @param limitBytes If set, the number of bytes to read from the server before terminating the log output. This may not display a complete final line of logging, and may return slightly more or slightly less than the specified limit.
     * @param pretty If \&#39;true\&#39;, then the output is pretty printed.
     * @param previous Return previous terminated container logs. Defaults to false.
     * @param sinceSeconds A relative time in seconds before the current time from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified.
     * @param tailLines If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime
     * @param timestamps If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false.
     */
read log of the specified Pod
@param name name of the Pod
@param namespace object name and auth scope, such as for teams and projects
@param container The container for which to stream logs. Defaults to only container if there is one container in the pod.
@param follow Follow the log stream of the pod. Defaults to false.
@param limitBytes If set, the number of bytes to read from the server before terminating the log output. This may not display a complete final line of logging, and may return slightly more or slightly less than the specified limit.
@param pretty If \'true\', then the output is pretty printed.
@param previous Return previous terminated container logs. Defaults to false.
@param sinceSeconds A relative time in seconds before the current time from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified.
@param tailLines If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime
@param timestamps If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false.
read log of the specified Pod @param name name of the Pod @param namespace object name and auth scope such as for teams and projects @param container The container for which to stream logs . Defaults to only container if there is one container in the pod . @param follow Follow the log stream of the pod . Defaults to false . @param limitBytes If set the number of bytes to read from the server before terminating the log output . This may not display a complete final line of logging and may return slightly more or slightly less than the specified limit . @param pretty If \ ' true \ ' then the output is pretty printed . @param previous Return previous terminated container logs . Defaults to false . @param sinceSeconds A relative time in seconds before the current time from which to show logs . If this value precedes the time a pod was started only logs since the pod start will be returned . If this value is in the future no logs will be returned . Only one of sinceSeconds or sinceTime may be specified . @param tailLines If set the number of lines from the end of the logs to show . If not specified logs are shown from the creation of the container or sinceSeconds or sinceTime @param timestamps If true add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output . Defaults to false .
readNamespacedPodLog(name, namespace, container, follow, limitBytes, pretty, previous, sinceSeconds, tailLines, timestamps, options = { headers: {} }) {
        return tslib_1.__awaiter(this, void 0, void 0, function* () {
            const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/pods/{name}/log'
                .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 readNamespacedPodLog.');
            }
            if (namespace === null || namespace === undefined) {
                throw new Error('Required parameter namespace was null or undefined when calling readNamespacedPodLog.');
            }
            if (container !== undefined) {
                localVarQueryParameters['container'] = models_1.ObjectSerializer.serialize(container, "string");
            }
            if (follow !== undefined) {
                localVarQueryParameters['follow'] = models_1.ObjectSerializer.serialize(follow, "boolean");
            }
            if (limitBytes !== undefined) {
                localVarQueryParameters['limitBytes'] = models_1.ObjectSerializer.serialize(limitBytes, "number");
            }
            if (pretty !== undefined) {
                localVarQueryParameters['pretty'] = models_1.ObjectSerializer.serialize(pretty, "string");
            }
            if (previous !== undefined) {
                localVarQueryParameters['previous'] = models_1.ObjectSerializer.serialize(previous, "boolean");
            }
            if (sinceSeconds !== undefined) {
                localVarQueryParameters['sinceSeconds'] = models_1.ObjectSerializer.serialize(sinceSeconds, "number");
            }
            if (tailLines !== undefined) {
                localVarQueryParameters['tailLines'] = models_1.ObjectSerializer.serialize(tailLines, "number");
            }
            if (timestamps !== undefined) {
                localVarQueryParameters['timestamps'] = models_1.ObjectSerializer.serialize(timestamps, "boolean");
            }
            Object.assign(localVarHeaderParams, options.headers);
            let localVarUseFormData = false;
            let localVarRequestOptions = {
                method: 'GET',
                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 });
                        }
                    }
                });
            });
        });
    }
readNamespacedPodLog ( name , namespace , container , follow , limitBytes , pretty , previous , sinceSeconds , tailLines , timestamps , options = { headers : { } } ) { return tslib_1 . __awaiter ( this , void 0 , void 0 , function * ( ) { const localVarPath = this . basePath + '/api/v1/namespaces/{namespace}/pods/{name}/log' . 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 readNamespacedPodLog.' ) ; } if ( namespace === null || namespace === undefined ) { throw new Error ( 'Required parameter namespace was null or undefined when calling readNamespacedPodLog.' ) ; } if ( container !== undefined ) { localVarQueryParameters [ 'container' ] = models_1 . ObjectSerializer . serialize ( container , "string" ) ; } if ( follow !== undefined ) { localVarQueryParameters [ 'follow' ] = models_1 . ObjectSerializer . serialize ( follow , "boolean" ) ; } if ( limitBytes !== undefined ) { localVarQueryParameters [ 'limitBytes' ] = models_1 . ObjectSerializer . serialize ( limitBytes , "number" ) ; } if ( pretty !== undefined ) { localVarQueryParameters [ 'pretty' ] = models_1 . ObjectSerializer . serialize ( pretty , "string" ) ; } if ( previous !== undefined ) { localVarQueryParameters [ 'previous' ] = models_1 . ObjectSerializer . serialize ( previous , "boolean" ) ; } if ( sinceSeconds !== undefined ) { localVarQueryParameters [ 'sinceSeconds' ] = models_1 . ObjectSerializer . serialize ( sinceSeconds , "number" ) ; } if ( tailLines !== undefined ) { localVarQueryParameters [ 'tailLines' ] = models_1 . ObjectSerializer . serialize ( tailLines , "number" ) ; } if ( timestamps !== undefined ) { localVarQueryParameters [ 'timestamps' ] = models_1 . ObjectSerializer . serialize ( timestamps , "boolean" ) ; } Object . assign ( localVarHeaderParams , options . headers ) ; let localVarUseFormData = false ; let localVarRequestOptions = { method : 'GET' , 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 } ) ; } } } ) ; } ) ; } ) ; }
read log of the specified Pod
 @param name name of the Pod
 @param namespace object name and auth scope, such as for teams and projects
 @param container The container for which to stream logs.
read log of the specified Pod @param name name of the Pod @param namespace object name and auth scope such as for teams and projects @param container The container for which to stream logs .
// verify required parameter 'name' is not null or undefined // verify required parameter 'namespace' is not null or undefined