dist/gen/api/customObjectsApi.js
/**
     * list or watch cluster scoped custom objects
     * @param group The custom resource\&#39;s group name
     * @param version The custom resource\&#39;s version
     * @param plural The custom resource\&#39;s plural name. For TPRs this would be lowercase plural kind.
     * @param pretty If \&#39;true\&#39;, then the output is pretty printed.
     * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything.
     * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything.
     * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it\&#39;s 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.
     * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
     * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications.
     */
list or watch cluster scoped custom objects
@param group The custom resource\'s group name
@param version The custom resource\'s version
@param plural The custom resource\'s plural name. For TPRs this would be lowercase plural kind.
@param pretty If \'true\', then the output is pretty printed.
@param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything.
@param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything.
@param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it\'s 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.
@param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
@param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications.
list or watch cluster scoped custom objects @param group The custom resource \ ' s group name @param version The custom resource \ ' s version @param plural The custom resource \ ' s plural name . For TPRs this would be lowercase plural kind . @param pretty If \ ' true \ ' then the output is pretty printed . @param fieldSelector A selector to restrict the list of returned objects by their fields . Defaults to everything . @param labelSelector A selector to restrict the list of returned objects by their labels . Defaults to everything . @param resourceVersion When specified with a watch call shows changes that occur after that particular version of a resource . Defaults to changes from the beginning of history . When specified for list : - if unset then the result is returned from remote storage based on quorum - read flag ; - if it \ ' s 0 then we simply return what we currently have in cache no guarantee ; - if set to non zero then the result is at least as fresh as given rv . @param timeoutSeconds Timeout for the list / watch call . This limits the duration of the call regardless of any activity or inactivity . @param watch Watch for changes to the described resources and return them as a stream of add update and remove notifications .
listClusterCustomObject(group, version, plural, pretty, fieldSelector, labelSelector, resourceVersion, timeoutSeconds, watch, options = { headers: {} }) {
        return tslib_1.__awaiter(this, void 0, void 0, function* () {
            const localVarPath = this.basePath + '/apis/{group}/{version}/{plural}'
                .replace('{' + 'group' + '}', encodeURIComponent(String(group)))
                .replace('{' + 'version' + '}', encodeURIComponent(String(version)))
                .replace('{' + 'plural' + '}', encodeURIComponent(String(plural)));
            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 listClusterCustomObject.');
            }
            if (version === null || version === undefined) {
                throw new Error('Required parameter version was null or undefined when calling listClusterCustomObject.');
            }
            if (plural === null || plural === undefined) {
                throw new Error('Required parameter plural was null or undefined when calling listClusterCustomObject.');
            }
            if (pretty !== undefined) {
                localVarQueryParameters['pretty'] = models_1.ObjectSerializer.serialize(pretty, "string");
            }
            if (fieldSelector !== undefined) {
                localVarQueryParameters['fieldSelector'] = models_1.ObjectSerializer.serialize(fieldSelector, "string");
            }
            if (labelSelector !== undefined) {
                localVarQueryParameters['labelSelector'] = models_1.ObjectSerializer.serialize(labelSelector, "string");
            }
            if (resourceVersion !== undefined) {
                localVarQueryParameters['resourceVersion'] = models_1.ObjectSerializer.serialize(resourceVersion, "string");
            }
            if (timeoutSeconds !== undefined) {
                localVarQueryParameters['timeoutSeconds'] = models_1.ObjectSerializer.serialize(timeoutSeconds, "number");
            }
            if (watch !== undefined) {
                localVarQueryParameters['watch'] = models_1.ObjectSerializer.serialize(watch, "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, "object");
                        if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
                            resolve({ response: response, body: body });
                        }
                        else {
                            reject({ response: response, body: body });
                        }
                    }
                });
            });
        });
    }
listClusterCustomObject ( group , version , plural , pretty , fieldSelector , labelSelector , resourceVersion , timeoutSeconds , watch , options = { headers : { } } ) { return tslib_1 . __awaiter ( this , void 0 , void 0 , function * ( ) { const localVarPath = this . basePath + '/apis/{group}/{version}/{plural}' . replace ( '{' + 'group' + '}' , encodeURIComponent ( String ( group ) ) ) . replace ( '{' + 'version' + '}' , encodeURIComponent ( String ( version ) ) ) . replace ( '{' + 'plural' + '}' , encodeURIComponent ( String ( plural ) ) ) ; 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 listClusterCustomObject.' ) ; } if ( version === null || version === undefined ) { throw new Error ( 'Required parameter version was null or undefined when calling listClusterCustomObject.' ) ; } if ( plural === null || plural === undefined ) { throw new Error ( 'Required parameter plural was null or undefined when calling listClusterCustomObject.' ) ; } if ( pretty !== undefined ) { localVarQueryParameters [ 'pretty' ] = models_1 . ObjectSerializer . serialize ( pretty , "string" ) ; } if ( fieldSelector !== undefined ) { localVarQueryParameters [ 'fieldSelector' ] = models_1 . ObjectSerializer . serialize ( fieldSelector , "string" ) ; } if ( labelSelector !== undefined ) { localVarQueryParameters [ 'labelSelector' ] = models_1 . ObjectSerializer . serialize ( labelSelector , "string" ) ; } if ( resourceVersion !== undefined ) { localVarQueryParameters [ 'resourceVersion' ] = models_1 . ObjectSerializer . serialize ( resourceVersion , "string" ) ; } if ( timeoutSeconds !== undefined ) { localVarQueryParameters [ 'timeoutSeconds' ] = models_1 . ObjectSerializer . serialize ( timeoutSeconds , "number" ) ; } if ( watch !== undefined ) { localVarQueryParameters [ 'watch' ] = models_1 . ObjectSerializer . serialize ( watch , "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 , "object" ) ; if ( response . statusCode && response . statusCode >= 200 && response . statusCode <= 299 ) { resolve ( { response : response , body : body } ) ; } else { reject ( { response : response , body : body } ) ; } } } ) ; } ) ; } ) ; }
list or watch cluster scoped custom objects
 @param group The custom resource\&#39;s group name
 @param version The custom resource\&#39;s version
 @param plural The custom resource\&#39;s plural name.
list or watch cluster scoped custom objects @param group The custom resource \ &#39 ; s group name @param version The custom resource \ &#39 ; s version @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 'plural' is not null or undefined