Skip to content

Commit

Permalink
feat(api): api update (#2386)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored Feb 5, 2025
1 parent 6be8d89 commit e56cf67
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 76 deletions.
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 1525
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-b9c3a90028bf6b940420332aee2ee13b3cf1fa04e607205d7efe8fdb1c7d41e8.yml
configured_endpoints: 1524
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-aa93097d3c029937a6c5f40f1de4e577b20ec66ff43fa27c110f6cd3ea718704.yml
8 changes: 0 additions & 8 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -682,14 +682,6 @@ Methods:

## Recommendations

Types:

- <code><a href="./src/resources/ssl/recommendations.ts">RecommendationGetResponse</a></code>

Methods:

- <code title="get /zones/{zone_identifier}/ssl/recommendation">client.ssl.recommendations.<a href="./src/resources/ssl/recommendations.ts">get</a>(zoneIdentifier) -> RecommendationGetResponse | null</code>

## Universal

### Settings
Expand Down
2 changes: 1 addition & 1 deletion src/resources/ssl/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export {
type CertificatePackEditParams,
type CertificatePackGetParams,
} from './certificate-packs/index';
export { Recommendations, type RecommendationGetResponse } from './recommendations';
export { Recommendations } from './recommendations';
export { SSL } from './ssl';
export { Universal } from './universal/index';
export {
Expand Down
32 changes: 1 addition & 31 deletions src/resources/ssl/recommendations.ts
Original file line number Diff line number Diff line change
@@ -1,35 +1,5 @@
// 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(
zoneIdentifier: string,
options?: Core.RequestOptions,
): Core.APIPromise<RecommendationGetResponse | null> {
return (
this._client.get(`/zones/${zoneIdentifier}/ssl/recommendation`, options) as Core.APIPromise<{
result: RecommendationGetResponse | null;
}>
)._thenUnwrap((obj) => obj.result);
}
}

export interface RecommendationGetResponse {
/**
* Identifier of a recommedation result.
*/
id?: string;

modified_on?: string;

value?: 'flexible' | 'full' | 'strict';
}

export declare namespace Recommendations {
export { type RecommendationGetResponse as RecommendationGetResponse };
}
export class Recommendations extends APIResource {}
4 changes: 2 additions & 2 deletions src/resources/ssl/ssl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { APIResource } from '../../resource';
import * as AnalyzeAPI from './analyze';
import { Analyze, AnalyzeCreateParams, AnalyzeCreateResponse } from './analyze';
import * as RecommendationsAPI from './recommendations';
import { RecommendationGetResponse, Recommendations } from './recommendations';
import { Recommendations } from './recommendations';
import * as VerificationAPI from './verification';
import {
Verification,
Expand Down Expand Up @@ -79,7 +79,7 @@ export declare namespace SSL {
type CertificatePackGetParams as CertificatePackGetParams,
};

export { Recommendations as Recommendations, type RecommendationGetResponse as RecommendationGetResponse };
export { Recommendations as Recommendations };

export { Universal as Universal };

Expand Down
32 changes: 0 additions & 32 deletions tests/api-resources/ssl/recommendations.test.ts

This file was deleted.

0 comments on commit e56cf67

Please sign in to comment.