Skip to content

Commit

Permalink
Merge pull request #1577 from cloudflare/release-please--branches--v2…
Browse files Browse the repository at this point in the history
…--changes--next

release: 2.0.0-beta.9
  • Loading branch information
jacobbednarz authored Mar 18, 2024
2 parents 8487fc6 + ac620ac commit e58c4f3
Show file tree
Hide file tree
Showing 7 changed files with 140 additions and 124 deletions.
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "2.0.0-beta.8"
".": "2.0.0-beta.9"
}
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Changelog

## 2.0.0-beta.9 (2024-03-18)

Full Changelog: [v2.0.0-beta.8...v2.0.0-beta.9](https://github.com/cloudflare/cloudflare-go/compare/v2.0.0-beta.8...v2.0.0-beta.9)

### Features

* **api:** update via SDK Studio ([#1576](https://github.com/cloudflare/cloudflare-go/issues/1576)) ([37c724d](https://github.com/cloudflare/cloudflare-go/commit/37c724da8aee898d767fe87d1f89be67b91ae7f5))
* **api:** update via SDK Studio ([#1578](https://github.com/cloudflare/cloudflare-go/issues/1578)) ([1e98ca0](https://github.com/cloudflare/cloudflare-go/commit/1e98ca0dad9445b08ce02ac90b7830461377690c))

## 2.0.0-beta.8 (2024-03-18)

Full Changelog: [v2.0.0-beta.7...v2.0.0-beta.8](https://github.com/cloudflare/cloudflare-go/compare/v2.0.0-beta.7...v2.0.0-beta.8)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Or to pin the version:
<!-- x-release-please-start-version -->

```sh
go get -u 'github.com/cloudflare/cloudflare-go/[email protected].8'
go get -u 'github.com/cloudflare/cloudflare-go/[email protected].9'
```

<!-- x-release-please-end -->
Expand Down
2 changes: 1 addition & 1 deletion internal/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

package internal

const PackageVersion = "2.0.0-beta.8" // x-release-please-version
const PackageVersion = "2.0.0-beta.9" // x-release-please-version
213 changes: 100 additions & 113 deletions spectrum/app.go

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions spectrum/app_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ func TestAppNewWithOptionalParams(t *testing.T) {
OriginPort: cloudflare.F[spectrum.AppNewParamsOriginPort](shared.UnionInt(int64(22))),
Protocol: cloudflare.F("tcp/22"),
ArgoSmartRouting: cloudflare.F(true),
EdgeIPs: cloudflare.F[spectrum.AppNewParamsEdgeIPs](spectrum.AppNewParamsEdgeIPsSpectrumEdgeIPEyeballIPsVariable(spectrum.AppNewParamsEdgeIPsSpectrumEdgeIPEyeballIPsVariable{
Connectivity: cloudflare.F(spectrum.AppNewParamsEdgeIPsSpectrumEdgeIPEyeballIPsVariableConnectivityAll),
Type: cloudflare.F(spectrum.AppNewParamsEdgeIPsSpectrumEdgeIPEyeballIPsVariableTypeDynamic),
EdgeIPs: cloudflare.F[spectrum.AppNewParamsEdgeIPs](spectrum.AppNewParamsEdgeIPsEyeballIPs(spectrum.AppNewParamsEdgeIPsEyeballIPs{
Connectivity: cloudflare.F(spectrum.AppNewParamsEdgeIPsEyeballIPsConnectivityAll),
Type: cloudflare.F(spectrum.AppNewParamsEdgeIPsEyeballIPsTypeDynamic),
})),
IPFirewall: cloudflare.F(true),
ProxyProtocol: cloudflare.F(spectrum.AppNewParamsProxyProtocolOff),
Expand Down Expand Up @@ -95,9 +95,9 @@ func TestAppUpdateWithOptionalParams(t *testing.T) {
OriginPort: cloudflare.F[spectrum.AppUpdateParamsOriginPort](shared.UnionInt(int64(22))),
Protocol: cloudflare.F("tcp/22"),
ArgoSmartRouting: cloudflare.F(true),
EdgeIPs: cloudflare.F[spectrum.AppUpdateParamsEdgeIPs](spectrum.AppUpdateParamsEdgeIPsSpectrumEdgeIPEyeballIPsVariable(spectrum.AppUpdateParamsEdgeIPsSpectrumEdgeIPEyeballIPsVariable{
Connectivity: cloudflare.F(spectrum.AppUpdateParamsEdgeIPsSpectrumEdgeIPEyeballIPsVariableConnectivityAll),
Type: cloudflare.F(spectrum.AppUpdateParamsEdgeIPsSpectrumEdgeIPEyeballIPsVariableTypeDynamic),
EdgeIPs: cloudflare.F[spectrum.AppUpdateParamsEdgeIPs](spectrum.AppUpdateParamsEdgeIPsEyeballIPs(spectrum.AppUpdateParamsEdgeIPsEyeballIPs{
Connectivity: cloudflare.F(spectrum.AppUpdateParamsEdgeIPsEyeballIPsConnectivityAll),
Type: cloudflare.F(spectrum.AppUpdateParamsEdgeIPsEyeballIPsTypeDynamic),
})),
IPFirewall: cloudflare.F(true),
ProxyProtocol: cloudflare.F(spectrum.AppUpdateParamsProxyProtocolOff),
Expand Down
24 changes: 22 additions & 2 deletions workers/ai.go
Original file line number Diff line number Diff line change
Expand Up @@ -333,8 +333,8 @@ func (r AIRunParams) MarshalMultipart() (data []byte, contentType string, err er
// [workers.AIRunParamsBodySentenceSimilarity],
// [workers.AIRunParamsBodyTextEmbeddings], [shared.UnionString],
// [workers.AIRunParamsBodyObject], [shared.UnionString],
// [workers.AIRunParamsBodyObject], [shared.UnionString],
// [workers.AIRunParamsBodyObject], [workers.AIRunParamsBodyObject],
// [workers.AIRunParamsBodyImageClassification], [shared.UnionString],
// [workers.AIRunParamsBodyObjectDetection], [workers.AIRunParamsBodyObject],
// [workers.AIRunParamsBodyObject], [workers.AIRunParamsBodyTranslation],
// [workers.AIRunParamsBodySummarization], [shared.UnionString],
// [workers.AIRunParamsBodyObject].
Expand Down Expand Up @@ -409,6 +409,26 @@ func (r AIRunParamsBodyObject) MarshalJSON() (data []byte, err error) {

func (r AIRunParamsBodyObject) ImplementsWorkersAIRunParamsBody() {}

type AIRunParamsBodyImageClassification struct {
Image param.Field[[]float64] `json:"image"`
}

func (r AIRunParamsBodyImageClassification) MarshalJSON() (data []byte, err error) {
return apijson.MarshalRoot(r)
}

func (r AIRunParamsBodyImageClassification) ImplementsWorkersAIRunParamsBody() {}

type AIRunParamsBodyObjectDetection struct {
Image param.Field[[]float64] `json:"image"`
}

func (r AIRunParamsBodyObjectDetection) MarshalJSON() (data []byte, err error) {
return apijson.MarshalRoot(r)
}

func (r AIRunParamsBodyObjectDetection) ImplementsWorkersAIRunParamsBody() {}

type AIRunParamsBodyTranslation struct {
TargetLang param.Field[string] `json:"target_lang,required"`
Text param.Field[string] `json:"text,required"`
Expand Down

0 comments on commit e58c4f3

Please sign in to comment.