Skip to content

Commit

Permalink
feat(api): OpenAPI spec update via Stainless API (#1596)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Mar 21, 2024
1 parent 26a3686 commit 9f43eae
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 6 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
The Cloudflare Go library provides convenient access to [the Cloudflare REST
API](https://developers.cloudflare.com/api) from applications written in Go. The full API of this library can be found in [api.md](api.md).

It is generated with [Stainless](https://www.stainlessapi.com/).

## Installation

<!-- x-release-please-start-version -->
Expand Down
21 changes: 15 additions & 6 deletions workers_for_platforms/dispatchnamespace.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,10 @@ type DispatchNamespaceNewResponse struct {
// API Resource UUID tag.
NamespaceID string `json:"namespace_id"`
// Name of the Workers for Platforms dispatch namespace.
NamespaceName string `json:"namespace_name"`
JSON dispatchNamespaceNewResponseJSON `json:"-"`
NamespaceName string `json:"namespace_name"`
// The current number of scripts in this Dispatch Namespace
ScriptCount int64 `json:"script_count"`
JSON dispatchNamespaceNewResponseJSON `json:"-"`
}

// dispatchNamespaceNewResponseJSON contains the JSON metadata for the struct
Expand All @@ -111,6 +113,7 @@ type dispatchNamespaceNewResponseJSON struct {
ModifiedOn apijson.Field
NamespaceID apijson.Field
NamespaceName apijson.Field
ScriptCount apijson.Field
raw string
ExtraFields map[string]apijson.Field
}
Expand All @@ -135,8 +138,10 @@ type DispatchNamespaceListResponse struct {
// API Resource UUID tag.
NamespaceID string `json:"namespace_id"`
// Name of the Workers for Platforms dispatch namespace.
NamespaceName string `json:"namespace_name"`
JSON dispatchNamespaceListResponseJSON `json:"-"`
NamespaceName string `json:"namespace_name"`
// The current number of scripts in this Dispatch Namespace
ScriptCount int64 `json:"script_count"`
JSON dispatchNamespaceListResponseJSON `json:"-"`
}

// dispatchNamespaceListResponseJSON contains the JSON metadata for the struct
Expand All @@ -148,6 +153,7 @@ type dispatchNamespaceListResponseJSON struct {
ModifiedOn apijson.Field
NamespaceID apijson.Field
NamespaceName apijson.Field
ScriptCount apijson.Field
raw string
ExtraFields map[string]apijson.Field
}
Expand All @@ -174,8 +180,10 @@ type DispatchNamespaceGetResponse struct {
// API Resource UUID tag.
NamespaceID string `json:"namespace_id"`
// Name of the Workers for Platforms dispatch namespace.
NamespaceName string `json:"namespace_name"`
JSON dispatchNamespaceGetResponseJSON `json:"-"`
NamespaceName string `json:"namespace_name"`
// The current number of scripts in this Dispatch Namespace
ScriptCount int64 `json:"script_count"`
JSON dispatchNamespaceGetResponseJSON `json:"-"`
}

// dispatchNamespaceGetResponseJSON contains the JSON metadata for the struct
Expand All @@ -187,6 +195,7 @@ type dispatchNamespaceGetResponseJSON struct {
ModifiedOn apijson.Field
NamespaceID apijson.Field
NamespaceName apijson.Field
ScriptCount apijson.Field
raw string
ExtraFields map[string]apijson.Field
}
Expand Down

0 comments on commit 9f43eae

Please sign in to comment.