UNPKG

cloudflare

Version:

The official TypeScript library for the Cloudflare API

47 lines (39 loc) 1.13 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 Recommendations extends APIResource { /** * Retrieve the SSL/TLS Recommender's recommendation for a zone. */ get( params: RecommendationGetParams, options?: Core.RequestOptions, ): Core.APIPromise<RecommendationGetResponse> { const { zone_id } = params; return ( this._client.get(`/zones/${zone_id}/ssl/recommendation`, options) as Core.APIPromise<{ result: RecommendationGetResponse; }> )._thenUnwrap((obj) => obj.result); } } export interface RecommendationGetResponse { /** * Identifier of a recommendation result. */ id?: string; modified_on?: string; value?: 'flexible' | 'full' | 'strict'; } export interface RecommendationGetParams { /** * Identifier */ zone_id: string; } export declare namespace Recommendations { export { type RecommendationGetResponse as RecommendationGetResponse, type RecommendationGetParams as RecommendationGetParams, }; }