UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

57 lines 1.49 kB
import * as Core from 'cloudflare/core'; import { APIResource } from 'cloudflare/resource'; import * as HTTP3API from 'cloudflare/resources/zones/settings/http3'; export declare class HTTP3Resource extends APIResource { /** * Value of the HTTP3 setting. */ edit(params: HTTP3EditParams, options?: Core.RequestOptions): Core.APIPromise<HTTP3>; /** * Value of the HTTP3 setting. */ get(params: HTTP3GetParams, options?: Core.RequestOptions): Core.APIPromise<HTTP3>; } /** * HTTP3 enabled for this zone. */ export interface HTTP3 { /** * ID of the zone setting. */ id: 'http3'; /** * Current value of the zone setting. */ value: 'on' | 'off'; /** * Whether or not this setting can be modified for this zone (based on your * Cloudflare plan level). */ editable?: true | false; /** * last time this setting was modified. */ modified_on?: string | null; } export interface HTTP3EditParams { /** * Path param: Identifier */ zone_id: string; /** * Body param: Value of the HTTP3 setting. */ value: 'on' | 'off'; } export interface HTTP3GetParams { /** * Identifier */ zone_id: string; } export declare namespace HTTP3Resource { export import HTTP3 = HTTP3API.HTTP3; export import HTTP3EditParams = HTTP3API.HTTP3EditParams; export import HTTP3GetParams = HTTP3API.HTTP3GetParams; } //# sourceMappingURL=http3.d.ts.map