UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

45 lines (38 loc) 1.1 kB
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import { APIResource } from '../../resource'; import * as Core from '../../core'; export class Settings extends APIResource { /** * Retrieve the current status of Content Scanning */ get(params: SettingGetParams, options?: Core.RequestOptions): Core.APIPromise<SettingGetResponse> { const { zone_id } = params; return ( this._client.get(`/zones/${zone_id}/content-upload-scan/settings`, options) as Core.APIPromise<{ result: SettingGetResponse; }> )._thenUnwrap((obj) => obj.result); } } /** * The status for Content Scanning */ export interface SettingGetResponse { /** * Last modification date (ISO 8601) of the Content Scanning status */ modified?: string; /** * Status of Content Scanning */ value?: string; } export interface SettingGetParams { /** * Identifier */ zone_id: string; } export declare namespace Settings { export { type SettingGetResponse as SettingGetResponse, type SettingGetParams as SettingGetParams }; }