dist/gen/api/coreV1Api.js
/**
     * delete a ConfigMap
     * @param name name of the ConfigMap
     * @param namespace object name and auth scope, such as for teams and projects
     * @param pretty If \&#39;true\&#39;, then the output is pretty printed.
     * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
     * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
     * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \&quot;orphan\&quot; finalizer will be added to/removed from the object\&#39;s finalizers list. Either this field or PropagationPolicy may be set, but not both.
     * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: \&#39;Orphan\&#39; - orphan the dependents; \&#39;Background\&#39; - allow the garbage collector to delete the dependents in the background; \&#39;Foreground\&#39; - a cascading policy that deletes all dependents in the foreground.
     * @param body
     */
delete a ConfigMap
@param name name of the ConfigMap
@param namespace object name and auth scope, such as for teams and projects
@param pretty If \'true\', then the output is pretty printed.
@param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
@param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
@param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object\'s finalizers list. Either this field or PropagationPolicy may be set, but not both.
@param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy.
delete a ConfigMap @param name name of the ConfigMap @param namespace object name and auth scope such as for teams and projects @param pretty If \ ' true \ ' then the output is pretty printed . @param dryRun When present indicates that modifications should not be persisted . An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request . Valid values are : - All : all dry run stages will be processed @param gracePeriodSeconds The duration in seconds before the object should be deleted . Value must be non - negative integer . The value zero indicates delete immediately . If this value is nil the default grace period for the specified type will be used . Defaults to a per object value if not specified . zero means delete immediately . @param orphanDependents Deprecated : please use the PropagationPolicy this field will be deprecated in 1 . 7 . Should the dependent objects be orphaned . If true / false the \ " orphan \ " finalizer will be added to / removed from the object \ ' s finalizers list . Either this field or PropagationPolicy may be set but not both . @param propagationPolicy Whether and how garbage collection will be performed . Either this field or OrphanDependents may be set but not both . The default policy is decided by the existing finalizer set in the metadata . finalizers and the resource - specific default policy .
deleteNamespacedConfigMap(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, options = { headers: {} }) {
        return tslib_1.__awaiter(this, void 0, void 0, function* () {
            const localVarPath = this.basePath + '/api/v1/namespaces/{namespace}/configmaps/{name}'
                .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 deleteNamespacedConfigMap.');
            }
            if (namespace === null || namespace === undefined) {
                throw new Error('Required parameter namespace was null or undefined when calling deleteNamespacedConfigMap.');
            }
            if (pretty !== undefined) {
                localVarQueryParameters['pretty'] = models_1.ObjectSerializer.serialize(pretty, "string");
            }
            if (dryRun !== undefined) {
                localVarQueryParameters['dryRun'] = models_1.ObjectSerializer.serialize(dryRun, "string");
            }
            if (gracePeriodSeconds !== undefined) {
                localVarQueryParameters['gracePeriodSeconds'] = models_1.ObjectSerializer.serialize(gracePeriodSeconds, "number");
            }
            if (orphanDependents !== undefined) {
                localVarQueryParameters['orphanDependents'] = models_1.ObjectSerializer.serialize(orphanDependents, "boolean");
            }
            if (propagationPolicy !== undefined) {
                localVarQueryParameters['propagationPolicy'] = models_1.ObjectSerializer.serialize(propagationPolicy, "string");
            }
            Object.assign(localVarHeaderParams, options.headers);
            let localVarUseFormData = false;
            let localVarRequestOptions = {
                method: 'DELETE',
                qs: localVarQueryParameters,
                headers: localVarHeaderParams,
                uri: localVarPath,
                useQuerystring: this._useQuerystring,
                json: true,
                body: models_1.ObjectSerializer.serialize(body, "V1DeleteOptions")
            };
            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, "V1Status");
                        if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
                            resolve({ response: response, body: body });
                        }
                        else {
                            reject({ response: response, body: body });
                        }
                    }
                });
            });
        });
    }
deleteNamespacedConfigMap ( name , namespace , pretty , dryRun , gracePeriodSeconds , orphanDependents , propagationPolicy , body , options = { headers : { } } ) { return tslib_1 . __awaiter ( this , void 0 , void 0 , function * ( ) { const localVarPath = this . basePath + '/api/v1/namespaces/{namespace}/configmaps/{name}' . 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 deleteNamespacedConfigMap.' ) ; } if ( namespace === null || namespace === undefined ) { throw new Error ( 'Required parameter namespace was null or undefined when calling deleteNamespacedConfigMap.' ) ; } if ( pretty !== undefined ) { localVarQueryParameters [ 'pretty' ] = models_1 . ObjectSerializer . serialize ( pretty , "string" ) ; } if ( dryRun !== undefined ) { localVarQueryParameters [ 'dryRun' ] = models_1 . ObjectSerializer . serialize ( dryRun , "string" ) ; } if ( gracePeriodSeconds !== undefined ) { localVarQueryParameters [ 'gracePeriodSeconds' ] = models_1 . ObjectSerializer . serialize ( gracePeriodSeconds , "number" ) ; } if ( orphanDependents !== undefined ) { localVarQueryParameters [ 'orphanDependents' ] = models_1 . ObjectSerializer . serialize ( orphanDependents , "boolean" ) ; } if ( propagationPolicy !== undefined ) { localVarQueryParameters [ 'propagationPolicy' ] = models_1 . ObjectSerializer . serialize ( propagationPolicy , "string" ) ; } Object . assign ( localVarHeaderParams , options . headers ) ; let localVarUseFormData = false ; let localVarRequestOptions = { method : 'DELETE' , qs : localVarQueryParameters , headers : localVarHeaderParams , uri : localVarPath , useQuerystring : this . _useQuerystring , json : true , body : models_1 . ObjectSerializer . serialize ( body , "V1DeleteOptions" ) } ; 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 , "V1Status" ) ; if ( response . statusCode && response . statusCode >= 200 && response . statusCode <= 299 ) { resolve ( { response : response , body : body } ) ; } else { reject ( { response : response , body : body } ) ; } } } ) ; } ) ; } ) ; }
delete a ConfigMap
 @param name name of the ConfigMap
 @param namespace object name and auth scope, such as for teams and projects
 @param pretty If \&#39;true\&#39;, then the output is pretty printed.
delete a ConfigMap @param name name of the ConfigMap @param namespace object name and auth scope such as for teams and projects @param pretty If \ &#39 ; true \ &#39 ; then the output is pretty printed .
// verify required parameter 'name' is not null or undefined // verify required parameter 'namespace' is not null or undefined