UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

20 lines 712 B
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import { APIResource } from 'cloudflare/resource'; import * as SubnetsAPI from 'cloudflare/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