bunny-client
Version:
TypeScript API Client for BunnyCDN 🐰
63 lines • 1.84 kB
TypeScript
export interface Region {
/**
* Allow latency routing
* @example true
*/
AllowLatencyRouting: boolean;
/**
* Region [continent code](https://web.archive.org/web/20230428180958/https://gist.github.com/alyssaq/3415363a18610d22f0d307bcaac857cd)
* @example "OC"
*/
ContinentCode: string;
/**
* Region [country code](https://web.archive.org/web/20230428180958/https://gist.github.com/alyssaq/3415363a18610d22f0d307bcaac857cd)
* @example "AU"
*/
CountryCode: string;
/**
* Region id
* @example 15
*/
Id: number;
/**
* Region latitude
* @example -33.8674869
*/
Latitude: number;
/**
* Region longitude
* @example 151.20699020000006
*/
Longitude: number;
/**
* Region name, composed of `${ContinentCode}: ${RegionName}, ${RegionCode}`
* @example "OC: Sydney, SYD"
* @example "NA: Honolulu, HI"
*/
Name: string;
/**
* Region price per gigabyte in dollars (USD$)
* @example 0.03
*/
PricePerGigabyte: number;
/**
* Region code
* @example "SYD"
*/
RegionCode: string;
}
export interface RegionListRequest {
/**
* User-specific [API Key](https://dash.bunny.net/account/settings)
* @example "cb1a7c68-89a0-462a-9495-13ebd7366cfe"
*/
apiKey?: string;
}
export type RegionListResponse = Region[];
export declare const regionList: import("untypeable/dist/client-ca591958").g<RegionListRequest, RegionListResponse>;
export declare const regionListEndpoints: {
readonly "GET /region": "GET /region";
readonly regionList: "regionList";
};
export declare function regionListClient(defaultRequestInit: RequestInit, { apiKey }?: RegionListRequest): Promise<RegionListResponse>;
//# sourceMappingURL=regionList.d.ts.map