@@ -5,23 +5,23 @@ import { APIResource } from 'cloudflare/resource';
55import * as ASNAPI from 'cloudflare/resources/intel/asn/asn' ;
66import * as SubnetsAPI from 'cloudflare/resources/intel/asn/subnets' ;
77
8- export class ASNResource extends APIResource {
8+ export class ASN extends APIResource {
99 subnets : SubnetsAPI . Subnets = new SubnetsAPI . Subnets ( this . _client ) ;
1010
1111 /**
1212 * Get ASN Overview
1313 */
14- get ( asn : ASN , params : ASNGetParams , options ?: Core . RequestOptions ) : Core . APIPromise < ASN > {
14+ get ( asn : IntelASN , params : ASNGetParams , options ?: Core . RequestOptions ) : Core . APIPromise < IntelASN > {
1515 const { account_id } = params ;
1616 return (
1717 this . _client . get ( `/accounts/${ account_id } /intel/asn/${ asn } ` , options ) as Core . APIPromise < {
18- result : ASN ;
18+ result : IntelASN ;
1919 } >
2020 ) . _thenUnwrap ( ( obj ) => obj . result ) ;
2121 }
2222}
2323
24- export type ASN = number ;
24+ export type IntelASN = number ;
2525
2626export interface ASNGetParams {
2727 /**
@@ -30,8 +30,8 @@ export interface ASNGetParams {
3030 account_id : string ;
3131}
3232
33- export namespace ASNResource {
34- export import ASN = ASNAPI . ASN ;
33+ export namespace ASN {
34+ export import IntelASN = ASNAPI . IntelASN ;
3535 export import ASNGetParams = ASNAPI . ASNGetParams ;
3636 export import Subnets = SubnetsAPI . Subnets ;
3737 export import SubnetGetResponse = SubnetsAPI . SubnetGetResponse ;
0 commit comments