Skip to content

Commit

Permalink
release: 2.0.0-beta.10 (#1580)
Browse files Browse the repository at this point in the history
* feat(api): OpenAPI spec update via Stainless API (#1579)

* feat(api): OpenAPI spec update via Stainless API (#1581)

* feat(api): OpenAPI spec update via Stainless API (#1582)

* feat(api): OpenAPI spec update via Stainless API (#1583)

* feat(api): OpenAPI spec update via Stainless API (#1584)

* feat(api): OpenAPI spec update via Stainless API (#1585)

* feat(api): update via SDK Studio (#1586)

* release: 2.0.0-beta.10

---------

Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
  • Loading branch information
stainless-app[bot] authored Mar 19, 2024
1 parent e58c4f3 commit cd4dc2c
Show file tree
Hide file tree
Showing 1,124 changed files with 28,620 additions and 1,629 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.9"
".": "2.0.0-beta.10"
}
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# Changelog

## 2.0.0-beta.10 (2024-03-19)

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

### Features

* **api:** OpenAPI spec update via Stainless API ([#1579](https://github.com/cloudflare/cloudflare-go/issues/1579)) ([1938be8](https://github.com/cloudflare/cloudflare-go/commit/1938be8dcf3eb341c75b9f340aa75cfc15c7dcf8))
* **api:** OpenAPI spec update via Stainless API ([#1581](https://github.com/cloudflare/cloudflare-go/issues/1581)) ([c5ecc09](https://github.com/cloudflare/cloudflare-go/commit/c5ecc09ac07fd140673e89729ac9baab26fc34b6))
* **api:** OpenAPI spec update via Stainless API ([#1582](https://github.com/cloudflare/cloudflare-go/issues/1582)) ([3f69595](https://github.com/cloudflare/cloudflare-go/commit/3f695950aed5b9d2a22f222d7e2abc670e6afcfc))
* **api:** OpenAPI spec update via Stainless API ([#1583](https://github.com/cloudflare/cloudflare-go/issues/1583)) ([0842b63](https://github.com/cloudflare/cloudflare-go/commit/0842b631a95a48da747a83a27193dd2590f8810e))
* **api:** OpenAPI spec update via Stainless API ([#1584](https://github.com/cloudflare/cloudflare-go/issues/1584)) ([8c9b31c](https://github.com/cloudflare/cloudflare-go/commit/8c9b31c5b5ae1d3d573284dc7f826e12fdc26e57))
* **api:** OpenAPI spec update via Stainless API ([#1585](https://github.com/cloudflare/cloudflare-go/issues/1585)) ([9d38fa3](https://github.com/cloudflare/cloudflare-go/commit/9d38fa34a0df98c5c47f60fd276a48b772c78501))
* **api:** update via SDK Studio ([#1586](https://github.com/cloudflare/cloudflare-go/issues/1586)) ([9984126](https://github.com/cloudflare/cloudflare-go/commit/9984126f22273e7bc8d7b8df7107f9576f19b34c))

## 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)
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Most tests require you to [set up a mock server](https://github.com/stoplightio/

```bash
# you will need npm installed
npx prism path/to/your/openapi.yml
npx prism mock path/to/your/openapi.yml
```

```bash
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].9'
go get -u 'github.com/cloudflare/cloudflare-go/[email protected].10'
```

<!-- x-release-please-end -->
Expand Down
42 changes: 41 additions & 1 deletion accounts/account.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// File generated from our OpenAPI spec by Stainless.
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

package accounts

Expand Down Expand Up @@ -178,6 +178,14 @@ const (
AccountSettingsDefaultNameserversCustomTenant AccountSettingsDefaultNameservers = "custom.tenant"
)

func (r AccountSettingsDefaultNameservers) IsKnown() bool {
switch r {
case AccountSettingsDefaultNameserversCloudflareStandard, AccountSettingsDefaultNameserversCustomAccount, AccountSettingsDefaultNameserversCustomTenant:
return true
}
return false
}

// Union satisfied by [accounts.AccountUpdateResponseUnknown] or
// [shared.UnionString].
type AccountUpdateResponse interface {
Expand Down Expand Up @@ -270,6 +278,14 @@ const (
AccountUpdateParamsSettingsDefaultNameserversCustomTenant AccountUpdateParamsSettingsDefaultNameservers = "custom.tenant"
)

func (r AccountUpdateParamsSettingsDefaultNameservers) IsKnown() bool {
switch r {
case AccountUpdateParamsSettingsDefaultNameserversCloudflareStandard, AccountUpdateParamsSettingsDefaultNameserversCustomAccount, AccountUpdateParamsSettingsDefaultNameserversCustomTenant:
return true
}
return false
}

type AccountUpdateResponseEnvelope struct {
Errors []AccountUpdateResponseEnvelopeErrors `json:"errors,required"`
Messages []AccountUpdateResponseEnvelopeMessages `json:"messages,required"`
Expand Down Expand Up @@ -351,6 +367,14 @@ const (
AccountUpdateResponseEnvelopeSuccessTrue AccountUpdateResponseEnvelopeSuccess = true
)

func (r AccountUpdateResponseEnvelopeSuccess) IsKnown() bool {
switch r {
case AccountUpdateResponseEnvelopeSuccessTrue:
return true
}
return false
}

type AccountListParams struct {
// Direction to order results.
Direction param.Field[AccountListParamsDirection] `query:"direction"`
Expand All @@ -376,6 +400,14 @@ const (
AccountListParamsDirectionDesc AccountListParamsDirection = "desc"
)

func (r AccountListParamsDirection) IsKnown() bool {
switch r {
case AccountListParamsDirectionAsc, AccountListParamsDirectionDesc:
return true
}
return false
}

type AccountGetParams struct {
AccountID param.Field[interface{}] `path:"account_id,required"`
}
Expand Down Expand Up @@ -460,3 +492,11 @@ type AccountGetResponseEnvelopeSuccess bool
const (
AccountGetResponseEnvelopeSuccessTrue AccountGetResponseEnvelopeSuccess = true
)

func (r AccountGetResponseEnvelopeSuccess) IsKnown() bool {
switch r {
case AccountGetResponseEnvelopeSuccessTrue:
return true
}
return false
}
2 changes: 1 addition & 1 deletion accounts/account_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// File generated from our OpenAPI spec by Stainless.
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

package accounts_test

Expand Down
2 changes: 1 addition & 1 deletion accounts/aliases.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// File generated from our OpenAPI spec by Stainless.
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

package accounts

Expand Down
74 changes: 73 additions & 1 deletion accounts/member.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// File generated from our OpenAPI spec by Stainless.
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

package accounts

Expand Down Expand Up @@ -978,6 +978,14 @@ const (
MemberListResponseStatusInvited MemberListResponseStatus = "invited"
)

func (r MemberListResponseStatus) IsKnown() bool {
switch r {
case MemberListResponseStatusAccepted, MemberListResponseStatusInvited:
return true
}
return false
}

type MemberDeleteResponse struct {
// Identifier
ID string `json:"id,required"`
Expand Down Expand Up @@ -1020,6 +1028,14 @@ const (
MemberNewParamsStatusPending MemberNewParamsStatus = "pending"
)

func (r MemberNewParamsStatus) IsKnown() bool {
switch r {
case MemberNewParamsStatusAccepted, MemberNewParamsStatusPending:
return true
}
return false
}

type MemberNewResponseEnvelope struct {
Errors []MemberNewResponseEnvelopeErrors `json:"errors,required"`
Messages []MemberNewResponseEnvelopeMessages `json:"messages,required"`
Expand Down Expand Up @@ -1101,6 +1117,14 @@ const (
MemberNewResponseEnvelopeSuccessTrue MemberNewResponseEnvelopeSuccess = true
)

func (r MemberNewResponseEnvelopeSuccess) IsKnown() bool {
switch r {
case MemberNewResponseEnvelopeSuccessTrue:
return true
}
return false
}

type MemberUpdateParams struct {
AccountID param.Field[interface{}] `path:"account_id,required"`
// Roles assigned to this member.
Expand Down Expand Up @@ -1328,6 +1352,14 @@ const (
MemberUpdateResponseEnvelopeSuccessTrue MemberUpdateResponseEnvelopeSuccess = true
)

func (r MemberUpdateResponseEnvelopeSuccess) IsKnown() bool {
switch r {
case MemberUpdateResponseEnvelopeSuccessTrue:
return true
}
return false
}

type MemberListParams struct {
AccountID param.Field[interface{}] `path:"account_id,required"`
// Direction to order results.
Expand Down Expand Up @@ -1358,6 +1390,14 @@ const (
MemberListParamsDirectionDesc MemberListParamsDirection = "desc"
)

func (r MemberListParamsDirection) IsKnown() bool {
switch r {
case MemberListParamsDirectionAsc, MemberListParamsDirectionDesc:
return true
}
return false
}

// Field to order results by.
type MemberListParamsOrder string

Expand All @@ -1368,6 +1408,14 @@ const (
MemberListParamsOrderStatus MemberListParamsOrder = "status"
)

func (r MemberListParamsOrder) IsKnown() bool {
switch r {
case MemberListParamsOrderUserFirstName, MemberListParamsOrderUserLastName, MemberListParamsOrderUserEmail, MemberListParamsOrderStatus:
return true
}
return false
}

// A member's status in the account.
type MemberListParamsStatus string

Expand All @@ -1377,6 +1425,14 @@ const (
MemberListParamsStatusRejected MemberListParamsStatus = "rejected"
)

func (r MemberListParamsStatus) IsKnown() bool {
switch r {
case MemberListParamsStatusAccepted, MemberListParamsStatusPending, MemberListParamsStatusRejected:
return true
}
return false
}

type MemberDeleteParams struct {
AccountID param.Field[interface{}] `path:"account_id,required"`
}
Expand Down Expand Up @@ -1462,6 +1518,14 @@ const (
MemberDeleteResponseEnvelopeSuccessTrue MemberDeleteResponseEnvelopeSuccess = true
)

func (r MemberDeleteResponseEnvelopeSuccess) IsKnown() bool {
switch r {
case MemberDeleteResponseEnvelopeSuccessTrue:
return true
}
return false
}

type MemberGetParams struct {
AccountID param.Field[interface{}] `path:"account_id,required"`
}
Expand Down Expand Up @@ -1546,3 +1610,11 @@ type MemberGetResponseEnvelopeSuccess bool
const (
MemberGetResponseEnvelopeSuccessTrue MemberGetResponseEnvelopeSuccess = true
)

func (r MemberGetResponseEnvelopeSuccess) IsKnown() bool {
switch r {
case MemberGetResponseEnvelopeSuccessTrue:
return true
}
return false
}
2 changes: 1 addition & 1 deletion accounts/member_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// File generated from our OpenAPI spec by Stainless.
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

package accounts_test

Expand Down
18 changes: 17 additions & 1 deletion accounts/role.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// File generated from our OpenAPI spec by Stainless.
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

package accounts

Expand Down Expand Up @@ -192,6 +192,14 @@ const (
RoleListResponseEnvelopeSuccessTrue RoleListResponseEnvelopeSuccess = true
)

func (r RoleListResponseEnvelopeSuccess) IsKnown() bool {
switch r {
case RoleListResponseEnvelopeSuccessTrue:
return true
}
return false
}

type RoleListResponseEnvelopeResultInfo struct {
// Total number of results for the requested service
Count float64 `json:"count"`
Expand Down Expand Up @@ -307,3 +315,11 @@ type RoleGetResponseEnvelopeSuccess bool
const (
RoleGetResponseEnvelopeSuccessTrue RoleGetResponseEnvelopeSuccess = true
)

func (r RoleGetResponseEnvelopeSuccess) IsKnown() bool {
switch r {
case RoleGetResponseEnvelopeSuccessTrue:
return true
}
return false
}
2 changes: 1 addition & 1 deletion accounts/role_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// File generated from our OpenAPI spec by Stainless.
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

package accounts_test

Expand Down
2 changes: 1 addition & 1 deletion acm/acm.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// File generated from our OpenAPI spec by Stainless.
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

package acm

Expand Down
2 changes: 1 addition & 1 deletion acm/aliases.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// File generated from our OpenAPI spec by Stainless.
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

package acm

Expand Down
Loading

0 comments on commit cd4dc2c

Please sign in to comment.