cloudflare
Version:
The official TypeScript library for the Cloudflare API
43 lines • 1.36 kB
text/typescript
import { APIResource } from "../../core/resource.mjs";
import { APIPromise } from "../../core/api-promise.mjs";
import { RequestOptions } from "../../internal/request-options.mjs";
export declare class BaseSettings extends APIResource {
static readonly _key: readonly ['contentScanning', 'settings'];
/**
* Get the current Content Scanning status for the zone, together with the date the
* status was last modified.
*
* @example
* ```ts
* const setting = await client.contentScanning.settings.get({
* zone_id: '023e105f4ecef8ad9ca31a8372d0c353',
* });
* ```
*/
get(params: SettingGetParams, options?: RequestOptions): APIPromise<SettingGetResponse>;
}
export declare class Settings extends BaseSettings {
}
/**
* Defines the status for Content Scanning.
*/
export interface SettingGetResponse {
/**
* Defines the last modification date (ISO 8601) of the Content Scanning status.
*/
modified?: string;
/**
* Defines the status of Content Scanning.
*/
value?: string;
}
export interface SettingGetParams {
/**
* Defines an identifier.
*/
zone_id: string;
}
export declare namespace Settings {
export { type SettingGetResponse as SettingGetResponse, type SettingGetParams as SettingGetParams };
}
//# sourceMappingURL=settings.d.mts.map