dist/gen/api/customObjectsApi.js
/**
     * Deletes the specified namespace scoped custom object
     * @param group the custom resource\&#39;s group
     * @param version the custom resource\&#39;s version
     * @param namespace The custom resource\&#39;s namespace
     * @param plural the custom resource\&#39;s plural name. For TPRs this would be lowercase plural kind.
     * @param name the custom object\&#39;s name
     * @param body
     * @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.
     */
Deletes the specified namespace scoped custom object
@param group the custom resource\'s group
@param version the custom resource\'s version
@param namespace The custom resource\'s namespace
@param plural the custom resource\'s plural name. For TPRs this would be lowercase plural kind.
@param name the custom object\'s name
@param body
@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.
Deletes the specified namespace scoped custom object @param group the custom resource \ ' s group @param version the custom resource \ ' s version @param namespace The custom resource \ ' s namespace @param plural the custom resource \ ' s plural name . For TPRs this would be lowercase plural kind . @param name the custom object \ ' s name @param body @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 .
deleteNamespacedCustomObject(group, version, namespace, plural, name, body, gracePeriodSeconds, orphanDependents, propagationPolicy, options = { headers: {} }) {
        return tslib_1.__awaiter(this, void 0, void 0, function* () {
            const localVarPath = this.basePath + '/apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}'
                .replace('{' + 'group' + '}', encodeURIComponent(String(group)))
                .replace('{' + 'version' + '}', encodeURIComponent(String(version)))
                .replace('{' + 'namespace' + '}', encodeURIComponent(String(namespace)))
                .replace('{' + 'plural' + '}', encodeURIComponent(String(plural)))
                .replace('{' + 'name' + '}', encodeURIComponent(String(name)));
            let localVarQueryParameters = {};
            let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
            let localVarFormParams = {};
            if (group === null || group === undefined) {
                throw new Error('Required parameter group was null or undefined when calling deleteNamespacedCustomObject.');
            }
            if (version === null || version === undefined) {
                throw new Error('Required parameter version was null or undefined when calling deleteNamespacedCustomObject.');
            }
            if (namespace === null || namespace === undefined) {
                throw new Error('Required parameter namespace was null or undefined when calling deleteNamespacedCustomObject.');
            }
            if (plural === null || plural === undefined) {
                throw new Error('Required parameter plural was null or undefined when calling deleteNamespacedCustomObject.');
            }
            if (name === null || name === undefined) {
                throw new Error('Required parameter name was null or undefined when calling deleteNamespacedCustomObject.');
            }
            if (body === null || body === undefined) {
                throw new Error('Required parameter body was null or undefined when calling deleteNamespacedCustomObject.');
            }
            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, "object");
                        if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
                            resolve({ response: response, body: body });
                        }
                        else {
                            reject({ response: response, body: body });
                        }
                    }
                });
            });
        });
    }
deleteNamespacedCustomObject ( group , version , namespace , plural , name , body , gracePeriodSeconds , orphanDependents , propagationPolicy , options = { headers : { } } ) { return tslib_1 . __awaiter ( this , void 0 , void 0 , function * ( ) { const localVarPath = this . basePath + '/apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}' . replace ( '{' + 'group' + '}' , encodeURIComponent ( String ( group ) ) ) . replace ( '{' + 'version' + '}' , encodeURIComponent ( String ( version ) ) ) . replace ( '{' + 'namespace' + '}' , encodeURIComponent ( String ( namespace ) ) ) . replace ( '{' + 'plural' + '}' , encodeURIComponent ( String ( plural ) ) ) . replace ( '{' + 'name' + '}' , encodeURIComponent ( String ( name ) ) ) ; let localVarQueryParameters = { } ; let localVarHeaderParams = Object . assign ( { } , this . defaultHeaders ) ; let localVarFormParams = { } ; if ( group === null || group === undefined ) { throw new Error ( 'Required parameter group was null or undefined when calling deleteNamespacedCustomObject.' ) ; } if ( version === null || version === undefined ) { throw new Error ( 'Required parameter version was null or undefined when calling deleteNamespacedCustomObject.' ) ; } if ( namespace === null || namespace === undefined ) { throw new Error ( 'Required parameter namespace was null or undefined when calling deleteNamespacedCustomObject.' ) ; } if ( plural === null || plural === undefined ) { throw new Error ( 'Required parameter plural was null or undefined when calling deleteNamespacedCustomObject.' ) ; } if ( name === null || name === undefined ) { throw new Error ( 'Required parameter name was null or undefined when calling deleteNamespacedCustomObject.' ) ; } if ( body === null || body === undefined ) { throw new Error ( 'Required parameter body was null or undefined when calling deleteNamespacedCustomObject.' ) ; } 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 , "object" ) ; if ( response . statusCode && response . statusCode >= 200 && response . statusCode <= 299 ) { resolve ( { response : response , body : body } ) ; } else { reject ( { response : response , body : body } ) ; } } } ) ; } ) ; } ) ; }
Deletes the specified namespace scoped custom object
 @param group the custom resource\&#39;s group
 @param version the custom resource\&#39;s version
 @param namespace The custom resource\&#39;s namespace
 @param plural the custom resource\&#39;s plural name.
Deletes the specified namespace scoped custom object @param group the custom resource \ &#39 ; s group @param version the custom resource \ &#39 ; s version @param namespace The custom resource \ &#39 ; s namespace @param plural the custom resource \ &#39 ; s plural name .
// verify required parameter 'group' is not null or undefined // verify required parameter 'version' is not null or undefined // verify required parameter 'namespace' is not null or undefined // verify required parameter 'plural' is not null or undefined // verify required parameter 'name' is not null or undefined // verify required parameter 'body' is not null or undefined