// File generated from our OpenAPI spec by Stainless.
import { APIResource } from 'cloudflare/resource';
import { isRequestOptions } from 'cloudflare/core';
import * as IPsAPI from 'cloudflare/resources/ips';
export class IPs extends APIResource {
    list(query = {}, options) {
        if (isRequestOptions(query)) {
            return this.list({}, query);
        }
        return this._client.get('/ips', { query, ...options })._thenUnwrap((obj) => obj.result);
    }
}
(function (IPs) {
    IPs.IPs = IPsAPI.IPs;
})(IPs || (IPs = {}));
//# sourceMappingURL=ips.mjs.map