-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: OpenAPI spec update via Stainless API (#24)
- Loading branch information
1 parent
63656ab
commit 36f3d4d
Showing
10 changed files
with
54 additions
and
157 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
configured_endpoints: 1138 | ||
configured_endpoints: 1137 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,63 +1,5 @@ | ||
// File generated from our OpenAPI spec by Stainless. | ||
|
||
import * as Core from 'cloudflare/core'; | ||
import { APIResource } from 'cloudflare/resource'; | ||
import * as SinkholesAPI from 'cloudflare/resources/intel/sinkholes'; | ||
|
||
export class Sinkholes extends APIResource { | ||
/** | ||
* List sinkholes owned by this account | ||
*/ | ||
list(accountIdentifier: string, options?: Core.RequestOptions): Core.APIPromise<SinkholeListResponse> { | ||
return ( | ||
this._client.get(`/accounts/${accountIdentifier}/intel/sinkholes`, options) as Core.APIPromise<{ | ||
result: SinkholeListResponse; | ||
}> | ||
)._thenUnwrap((obj) => obj.result); | ||
} | ||
} | ||
|
||
export type SinkholeListResponse = Array<SinkholeListResponse.SinkholeListResponseItem>; | ||
|
||
export namespace SinkholeListResponse { | ||
export interface SinkholeListResponseItem { | ||
/** | ||
* The unique identifier for the sinkhole | ||
*/ | ||
id?: number; | ||
|
||
/** | ||
* The account tag that owns this sinkhole | ||
*/ | ||
account_tag?: string; | ||
|
||
/** | ||
* The date and time when the sinkhole was created | ||
*/ | ||
created_on?: string; | ||
|
||
/** | ||
* The date and time when the sinkhole was last modified | ||
*/ | ||
modified_on?: string; | ||
|
||
/** | ||
* The name of the sinkhole | ||
*/ | ||
name?: string; | ||
|
||
/** | ||
* The name of the R2 bucket to store results | ||
*/ | ||
r2_bucket?: string; | ||
|
||
/** | ||
* The id of the R2 instance | ||
*/ | ||
r2_id?: string; | ||
} | ||
} | ||
|
||
export namespace Sinkholes { | ||
export import SinkholeListResponse = SinkholesAPI.SinkholeListResponse; | ||
} | ||
export class Sinkholes extends APIResource {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.