// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from 'cloudflaredev/resource';
import * as SubnetsAPI from 'cloudflaredev/resources/intel/asn/subnets';
export class ASN extends APIResource {
    constructor() {
        super(...arguments);
        this.subnets = new SubnetsAPI.Subnets(this._client);
    }
    /**
     * Get ASN Overview
     */
    get(asn, params, options) {
        const { account_id } = params;
        return this._client.get(`/accounts/${account_id}/intel/asn/${asn}`, options)._thenUnwrap((obj) => obj.result);
    }
}
(function (ASN) {
    ASN.Subnets = SubnetsAPI.Subnets;
})(ASN || (ASN = {}));
//# sourceMappingURL=asn.mjs.map