// File generated from our OpenAPI spec by Stainless.
import { APIResource } from 'cloudflare/resource';
import { isRequestOptions } from 'cloudflare/core';
export class IPVersion extends APIResource {
    get(ipVersion, query = {}, options) {
        if (isRequestOptions(query)) {
            return this.get(ipVersion, {}, query);
        }
        return this._client.get(`/radar/http/top/locations/ip_version/${ipVersion}`, {
            query,
            ...options,
        })._thenUnwrap((obj) => obj.result);
    }
}
(function (IPVersion) {
})(IPVersion || (IPVersion = {}));
//# sourceMappingURL=ip-version.mjs.map