cloudflare
Version:
The official TypeScript library for the Cloudflare API
35 lines • 1.29 kB
TypeScript
import { APIResource } from "../../../core/resource.js";
import * as Shared from "../../shared.js";
import * as SubnetsAPI from "./subnets.js";
import { BaseSubnets, SubnetGetParams, SubnetGetResponse, Subnets } from "./subnets.js";
import { APIPromise } from "../../../core/api-promise.js";
import { RequestOptions } from "../../../internal/request-options.js";
export declare class BaseASN extends APIResource {
static readonly _key: readonly ['intel', 'asn'];
/**
* Gets an overview of the Autonomous System Number (ASN) and a list of subnets for
* it.
*
* @example
* ```ts
* const asn = await client.intel.asn.get(0, {
* account_id: '023e105f4ecef8ad9ca31a8372d0c353',
* });
* ```
*/
get(asn: Shared.ASNParam, params: ASNGetParams, options?: RequestOptions): APIPromise<Shared.ASN>;
}
export declare class ASN extends BaseASN {
subnets: SubnetsAPI.Subnets;
}
export interface ASNGetParams {
/**
* Identifier.
*/
account_id: string;
}
export declare namespace ASN {
export { type ASNGetParams as ASNGetParams };
export { Subnets as Subnets, BaseSubnets as BaseSubnets, type SubnetGetResponse as SubnetGetResponse, type SubnetGetParams as SubnetGetParams, };
}
//# sourceMappingURL=asn.d.ts.map