@linode/api-v4
Version:
JavaScript wrapper around the Linode APIv4
30 lines • 1.28 kB
TypeScript
import { COUNTRY_CODE_TO_CONTINENT_CODE } from './constants';
export type Capabilities = 'Backups' | 'Bare Metal' | 'Block Storage' | 'Block Storage Encryption' | 'Block Storage Migrations' | 'Cloud Firewall' | 'Disk Encryption' | 'Distributed Plans' | 'LA Disk Encryption' | 'Linode Interfaces' | 'GPU Linodes' | 'Kubernetes' | 'Kubernetes Enterprise' | 'Linodes' | 'Managed Databases' | 'Metadata' | 'NodeBalancers' | 'NETINT Quadra T1U' | 'Object Storage' | 'Placement Group' | 'Premium Plans' | 'Vlans' | 'VPCs' | 'StackScripts';
export interface DNSResolvers {
ipv4: string;
ipv6: string;
}
export type RegionStatus = 'ok' | 'outage';
export type RegionSite = 'core' | 'distributed';
export interface Region {
id: string;
label: string;
country: Country;
capabilities: Capabilities[];
placement_group_limits: {
maximum_pgs_per_customer: number | null;
maximum_linodes_per_pg: number;
};
status: RegionStatus;
resolvers: DNSResolvers;
site_type: RegionSite;
}
export interface RegionAvailability {
available: boolean;
plan: string;
region: string;
}
type CountryCode = keyof typeof COUNTRY_CODE_TO_CONTINENT_CODE;
export type Country = Lowercase<CountryCode>;
export {};
//# sourceMappingURL=types.d.ts.map