Skip to content

Commit

Permalink
feat(api): update via SDK Studio (#2172)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored Nov 20, 2024
1 parent f9347d8 commit 9a03141
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 1448
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-4acaaed718bd08d16e3866d5ad032fbf2bbfeb978df2cf5164edb81fe41e4f89.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-5414c8c509823f43fe91c2e86ca0011bbb433261ed182678d52d6b7f86ba28f1.yml
15 changes: 15 additions & 0 deletions src/resources/api-gateway/operations/operations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ export class Operations extends APIResource {

export class OperationListResponsesV4PagePaginationArray extends V4PagePaginationArray<OperationListResponse> {}

/**
* basic op.
*/
export interface APIShieldOperationModel {
/**
* The endpoint which can contain path parameter templates in curly braces, each
Expand All @@ -118,6 +121,9 @@ export interface APIShieldOperationModel {
method: 'GET' | 'POST' | 'HEAD' | 'OPTIONS' | 'PUT' | 'DELETE' | 'CONNECT' | 'PATCH' | 'TRACE';
}

/**
* basic op.
*/
export interface APIShieldOperationModelParam {
/**
* The endpoint which can contain path parameter templates in curly braces, each
Expand All @@ -141,6 +147,9 @@ export interface APIShieldOperationModelParam {
export type OperationCreateResponse = Array<OperationCreateResponse.OperationCreateResponseItem>;

export namespace OperationCreateResponse {
/**
* basic op.
*/
export interface OperationCreateResponseItem {
/**
* The endpoint which can contain path parameter templates in curly braces, each
Expand Down Expand Up @@ -418,6 +427,9 @@ export namespace OperationCreateResponse {
}
}

/**
* basic op.
*/
export interface OperationListResponse {
/**
* The endpoint which can contain path parameter templates in curly braces, each
Expand Down Expand Up @@ -716,6 +728,9 @@ export interface OperationBulkDeleteResponse {
success: true;
}

/**
* basic op.
*/
export interface OperationGetResponse {
/**
* The endpoint which can contain path parameter templates in curly braces, each
Expand Down
6 changes: 6 additions & 0 deletions src/resources/api-gateway/user-schemas/operations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,17 @@ export class Operations extends APIResource {

export class OperationListResponsesV4PagePaginationArray extends V4PagePaginationArray<OperationListResponse> {}

/**
* basic op.
*/
export type OperationListResponse =
| OperationListResponse.APIShieldOperation
| OperationsAPI.APIShieldOperationModel;

export namespace OperationListResponse {
/**
* basic op.
*/
export interface APIShieldOperation {
/**
* The endpoint which can contain path parameter templates in curly braces, each
Expand Down

0 comments on commit 9a03141

Please sign in to comment.