cloudflare
Version:
The official TypeScript library for the Cloudflare API
30 lines • 960 B
JavaScript
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from "../../../core/resource.mjs";
import { path } from "../../../internal/utils/path.mjs";
export var BaseSubnets = /* @__PURE__ */ (() => {
class BaseSubnets extends APIResource {
/**
* Get ASN Subnets.
*
* @example
* ```ts
* const subnet = await client.intel.asn.subnets.get(0, {
* account_id: '023e105f4ecef8ad9ca31a8372d0c353',
* });
* ```
*/
get(asn, params, options) {
const { account_id } = params;
return this._client.get(path `/accounts/${account_id}/intel/asn/${asn}/subnets`, options);
}
}
BaseSubnets._key = Object.freeze([
'intel',
'asn',
'subnets',
]);
return BaseSubnets;
})();
export class Subnets extends BaseSubnets {
}
//# sourceMappingURL=subnets.mjs.map