Skip to content

Commit

Permalink
feat(api): OpenAPI spec update via Stainless API (#2065)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed May 17, 2024
1 parent 9427b1c commit 369b122
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 1296
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-241f970730129e553d466806420a1cf2f6d665abec11667004cb9cf070932a1e.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-2bddc40a8ff2dca86129579a3be28dccb6e6376cde30e50c62641a366280395c.yml
14 changes: 7 additions & 7 deletions ai_gateway/aigateway.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ func (r aiGatewayNewResponseJSON) RawJSON() string {
}

type AIGatewayNewResponseTask struct {
// gateway slug
// gateway id
ID string `json:"id,required"`
CacheInvalidateOnUpdate bool `json:"cache_invalidate_on_update,required"`
CacheTTL int64 `json:"cache_ttl,required"`
Expand Down Expand Up @@ -173,7 +173,7 @@ func (r aiGatewayNewResponseTaskJSON) RawJSON() string {
}

type AIGatewayUpdateResponse struct {
// gateway slug
// gateway id
ID string `json:"id,required"`
CacheInvalidateOnUpdate bool `json:"cache_invalidate_on_update,required"`
CacheTTL int64 `json:"cache_ttl,required"`
Expand Down Expand Up @@ -211,7 +211,7 @@ func (r aiGatewayUpdateResponseJSON) RawJSON() string {
}

type AIGatewayListResponse struct {
// gateway slug
// gateway id
ID string `json:"id,required"`
CacheInvalidateOnUpdate bool `json:"cache_invalidate_on_update,required"`
CacheTTL int64 `json:"cache_ttl,required"`
Expand Down Expand Up @@ -249,7 +249,7 @@ func (r aiGatewayListResponseJSON) RawJSON() string {
}

type AIGatewayDeleteResponse struct {
// gateway slug
// gateway id
ID string `json:"id,required"`
CacheInvalidateOnUpdate bool `json:"cache_invalidate_on_update,required"`
CacheTTL int64 `json:"cache_ttl,required"`
Expand Down Expand Up @@ -287,7 +287,7 @@ func (r aiGatewayDeleteResponseJSON) RawJSON() string {
}

type AIGatewayGetResponse struct {
// gateway slug
// gateway id
ID string `json:"id,required"`
CacheInvalidateOnUpdate bool `json:"cache_invalidate_on_update,required"`
CacheTTL int64 `json:"cache_ttl,required"`
Expand Down Expand Up @@ -326,7 +326,7 @@ func (r aiGatewayGetResponseJSON) RawJSON() string {

type AIGatewayNewParams struct {
AccountID param.Field[string] `path:"account_id,required"`
// gateway slug
// gateway id
ID param.Field[string] `json:"id,required"`
CacheInvalidateOnUpdate param.Field[bool] `json:"cache_invalidate_on_update,required"`
CacheTTL param.Field[int64] `json:"cache_ttl,required"`
Expand Down Expand Up @@ -402,7 +402,7 @@ func (r aiGatewayUpdateResponseEnvelopeJSON) RawJSON() string {

type AIGatewayListParams struct {
AccountID param.Field[string] `path:"account_id,required"`
// gateway slug
// gateway id
ID param.Field[string] `query:"id"`
// Order By Column Name
OrderBy param.Field[string] `query:"order_by"`
Expand Down

0 comments on commit 369b122

Please sign in to comment.