Skip to content

Commit 67054c6

Browse files
authored
Merge pull request #4198 from cloudflare/release-please--branches--main--changes--next
release: 6.2.0
2 parents 467151c + e42e4fb commit 67054c6

File tree

134 files changed

+19552
-2067
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

134 files changed

+19552
-2067
lines changed

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "6.1.0"
2+
".": "6.2.0"
33
}

.stats.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 1835
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-ca8fbfa82d19dca400ec61b8c93392de1acd157860e435419f9a5e9ec8c586e0.yml
3-
openapi_spec_hash: 77d55c70bc3824ac61bd056e2319ee18
4-
config_hash: 107e0f1f8a98b007260b319226b88b3c
1+
configured_endpoints: 1867
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-7c981c72c3b84f1b39c664311bcc286c0965bf2833955853107bc1988cc5ff25.yml
3+
openapi_spec_hash: d4b77a5657c299c78a79bb3e5b326fef
4+
config_hash: e16fca6aff930b2279d586d92022f7d1

CHANGELOG.md

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,56 @@
11
# Changelog
22

3+
## 6.2.0 (2025-10-22)
4+
5+
Full Changelog: [v6.1.0...v6.2.0](https://github.com/cloudflare/cloudflare-go/compare/v6.1.0...v6.2.0)
6+
7+
### Features
8+
9+
* **zero_trust:** add tenant support ([511b36f](https://github.com/cloudflare/cloudflare-go/commit/511b36f7ca1f2bf66e5b9ca7843097dc221aefdb))
10+
* **zero_trust:** add connectivity directory service support ([eb26e21](https://github.com/cloudflare/cloudflare-go/commit/eb26e213c151222d857974559fac8c9ffc19b0d5))
11+
* **organizations:** SDKs for Organizations and OrganizationsProfile ([1dbce03](https://github.com/cloudflare/cloudflare-go/commit/1dbce03083292af3a9d0dfc98d2550308d19c468))
12+
* **zero_trust**: add MCP portals support ([6f3b557](https://github.com/cloudflare/cloudflare-go/commit/6f3b5570fef970132964799e7aa98c8533376fc8))
13+
* **radar**: add new group by dimension support ([1dcc5a6](https://github.com/cloudflare/cloudflare-go/commit/1dcc5a68edc8244010ebc1496963181673548972))
14+
* **content_scanning**: add content scanning support ([1e28d33](https://github.com/cloudflare/cloudflare-go/commit/1e28d339706999bd6880dff4e06819259ae6a9f1))
15+
* **abuse:** add abuse report support ([c0d3b38](https://github.com/cloudflare/cloudflare-go/commit/eaa5dd01cea097387ecfb78fddd84ffe7f78682e))
16+
* **queues:** add subscription read support ([3f6d26f](https://github.com/cloudflare/cloudflare-go/commit/3f6d26f82d99f2a7f62b36d0a2de3f46d176f50f))
17+
* **zero_trust:** add target attributes support ([3f6d26f](https://github.com/cloudflare/cloudflare-go/commit/3f6d26f82d99f2a7f62b36d0a2de3f46d176f50f))
18+
* **accounts:** add managed by support ([d86239b](https://github.com/cloudflare/cloudflare-go/commit/d86239be194fcd596007f96719d5ea5dd51eac55))
19+
* **leaked_credential_checks:** add support for user defined patterns ([d86239b](https://github.com/cloudflare/cloudflare-go/commit/d86239be194fcd596007f96719d5ea5dd51eac55))
20+
* **magic_transit:** add support for bonds in connector snapshots ([d86239b](https://github.com/cloudflare/cloudflare-go/commit/d86239be194fcd596007f96719d5ea5dd51eac55))
21+
* **organizations:** add support for deleting orgs ([d86239b](https://github.com/cloudflare/cloudflare-go/commit/d86239be194fcd596007f96719d5ea5dd51eac55))
22+
* **queues:** add support for reading consumers ([d86239b](https://github.com/cloudflare/cloudflare-go/commit/d86239be194fcd596007f96719d5ea5dd51eac55))
23+
* **queues:** add bulk message push support ([d86239b](https://github.com/cloudflare/cloudflare-go/commit/d86239be194fcd596007f96719d5ea5dd51eac55))
24+
* **queues:** add event subscription support ([d86239b](https://github.com/cloudflare/cloudflare-go/commit/d86239be194fcd596007f96719d5ea5dd51eac55))
25+
* **radar:** add new ctlog fields ([d86239b](https://github.com/cloudflare/cloudflare-go/commit/d86239be194fcd596007f96719d5ea5dd51eac55))
26+
* **secrets_store:** support new scopes ([d86239b](https://github.com/cloudflare/cloudflare-go/commit/d86239be194fcd596007f96719d5ea5dd51eac55))
27+
* **workers:** add support for observability telemetry support ([d86239b](https://github.com/cloudflare/cloudflare-go/commit/d86239be194fcd596007f96719d5ea5dd51eac55))
28+
* **zero_trust:** add mcp portal support ([d86239b](https://github.com/cloudflare/cloudflare-go/commit/d86239be194fcd596007f96719d5ea5dd51eac55))
29+
* **zero_trust:** add new fields to logs request ([d86239b](https://github.com/cloudflare/cloudflare-go/commit/d86239be194fcd596007f96719d5ea5dd51eac55))
30+
* **alerting:** add support for abuse reports ([da98270](https://github.com/cloudflare/cloudflare-go/commit/da98270894bda2f73999581a44913301454ee5d1))
31+
* **email_security:** support additional fields ([da98270](https://github.com/cloudflare/cloudflare-go/commit/da98270894bda2f73999581a44913301454ee5d1))
32+
* **organizations:** add list support ([da98270](https://github.com/cloudflare/cloudflare-go/commit/da98270894bda2f73999581a44913301454ee5d1))
33+
* **workers:** add references support ([5fc3d87](https://github.com/cloudflare/cloudflare-go/commit/5fc3d878e3841ae66e925d6e182122077cf12935))
34+
35+
### Bug Fixes
36+
37+
* **zero_trust:** fix return types for connectivity directory service ([fdb4538](https://github.com/cloudflare/cloudflare-go/commit/fdb453898c98dc87df97d56c7f79e861d0f7f589))
38+
* **custom_pages:** fix identifier types ([d86239b](https://github.com/cloudflare/cloudflare-go/commit/d86239be194fcd596007f96719d5ea5dd51eac55))
39+
40+
### Chores
41+
42+
* **radar**: deprecate to_markdown resources ([1dcc5a6](https://github.com/cloudflare/cloudflare-go/commit/1dcc5a68edc8244010ebc1496963181673548972))
43+
* **cloudforce_one:** deprecate threat event read support in favor of datasets ([8b1203b](https://github.com/cloudflare/cloudflare-go/commit/8b1203b5d8e5a37d8edc4c93b7ef4142f0b07ba1))
44+
* **rulesets:** deprecate mirage support ([8b1203b](https://github.com/cloudflare/cloudflare-go/commit/8b1203b5d8e5a37d8edc4c93b7ef4142f0b07ba1))
45+
* **r2:** bucket notification rules are required ([3f6d26f](https://github.com/cloudflare/cloudflare-go/commit/3f6d26f82d99f2a7f62b36d0a2de3f46d176f50f))
46+
* **rulesets:** deprecate Cloudflare app support ([3f6d26f](https://github.com/cloudflare/cloudflare-go/commit/3f6d26f82d99f2a7f62b36d0a2de3f46d176f50f))
47+
* **radar:** deprecate AI bot summary UA support ([fdb4538](https://github.com/cloudflare/cloudflare-go/commit/fdb453898c98dc87df97d56c7f79e861d0f7f589))
48+
* **workers:** drop tail consumer binding type ([d86239b](https://github.com/cloudflare/cloudflare-go/commit/d86239be194fcd596007f96719d5ea5dd51eac55))
49+
* **workers_for_platforms:** drop tail consumer binding type ([d86239b](https://github.com/cloudflare/cloudflare-go/commit/d86239be194fcd596007f96719d5ea5dd51eac55))
50+
* **zero_trust:** dlp profile ID is not required ([d86239b](https://github.com/cloudflare/cloudflare-go/commit/d86239be194fcd596007f96719d5ea5dd51eac55))
51+
* **pages:** update project types ([500840e](https://github.com/cloudflare/cloudflare-go/commit/500840e18c7c7cdbfd255ddc6b7968938a3ed4f0))
52+
* **pipelines:** deprecate several operations in favor of Streams API ([4fa18b7](https://github.com/cloudflare/cloudflare-go/commit/4fa18b71ebac684140ce7a7d79a4c711b72f9de0))
53+
354
## 6.1.0 (2025-09-30)
455

556
Full Changelog: [v6.0.1...v6.1.0](https://github.com/cloudflare/cloudflare-go/compare/v6.0.1...v6.1.0)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Or to pin the version:
2424
<!-- x-release-please-start-version -->
2525

2626
```sh
27-
go get -u 'github.com/cloudflare/cloudflare-go/v4@v6.1.0'
27+
go get -u 'github.com/cloudflare/cloudflare-go/v4@v6.2.0'
2828
```
2929

3030
<!-- x-release-please-end -->

abuse_reports/abusereport.go

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -35,18 +35,18 @@ func NewAbuseReportService(opts ...option.RequestOption) (r *AbuseReportService)
3535
}
3636

3737
// Submit the Abuse Report of a particular type
38-
func (r *AbuseReportService) New(ctx context.Context, reportType string, params AbuseReportNewParams, opts ...option.RequestOption) (res *string, err error) {
38+
func (r *AbuseReportService) New(ctx context.Context, reportParam string, params AbuseReportNewParams, opts ...option.RequestOption) (res *string, err error) {
3939
var env AbuseReportNewResponseEnvelope
4040
opts = slices.Concat(r.Options, opts)
4141
if params.AccountID.Value == "" {
4242
err = errors.New("missing required account_id parameter")
4343
return
4444
}
45-
if reportType == "" {
46-
err = errors.New("missing required report_type parameter")
45+
if reportParam == "" {
46+
err = errors.New("missing required report_param parameter")
4747
return
4848
}
49-
path := fmt.Sprintf("accounts/%s/abuse-reports/%s", params.AccountID, reportType)
49+
path := fmt.Sprintf("accounts/%s/abuse-reports/%s", params.AccountID, reportParam)
5050
err = requestconfig.ExecuteNewRequest(ctx, http.MethodPost, path, params, &env, opts...)
5151
if err != nil {
5252
return
@@ -65,7 +65,7 @@ func (r AbuseReportNewParams) MarshalJSON() (data []byte, err error) {
6565
}
6666

6767
type AbuseReportNewParamsBody struct {
68-
// The abuse report type.
68+
// The report type for submitted reports.
6969
Act param.Field[AbuseReportNewParamsBodyAct] `json:"act,required"`
7070
// A valid email of the abuse reporter. This field may be released by Cloudflare to
7171
// third parties such as the Lumen Database (https://lumendatabase.org/).
@@ -175,7 +175,7 @@ type AbuseReportNewParamsBodyUnion interface {
175175
}
176176

177177
type AbuseReportNewParamsBodyAbuseReportsDmcaReport struct {
178-
// The abuse report type.
178+
// The report type for submitted reports.
179179
Act param.Field[AbuseReportNewParamsBodyAbuseReportsDmcaReportAct] `json:"act,required"`
180180
// Text not exceeding 100 characters. This field may be released by Cloudflare to
181181
// third parties such as the Lumen Database (https://lumendatabase.org/).
@@ -243,7 +243,7 @@ func (r AbuseReportNewParamsBodyAbuseReportsDmcaReport) MarshalJSON() (data []by
243243

244244
func (r AbuseReportNewParamsBodyAbuseReportsDmcaReport) implementsAbuseReportNewParamsBodyUnion() {}
245245

246-
// The abuse report type.
246+
// The report type for submitted reports.
247247
type AbuseReportNewParamsBodyAbuseReportsDmcaReportAct string
248248

249249
const (
@@ -306,7 +306,7 @@ func (r AbuseReportNewParamsBodyAbuseReportsDmcaReportOwnerNotification) IsKnown
306306
}
307307

308308
type AbuseReportNewParamsBodyAbuseReportsTrademarkReport struct {
309-
// The abuse report type.
309+
// The report type for submitted reports.
310310
Act param.Field[AbuseReportNewParamsBodyAbuseReportsTrademarkReportAct] `json:"act,required"`
311311
// A valid email of the abuse reporter. This field may be released by Cloudflare to
312312
// third parties such as the Lumen Database (https://lumendatabase.org/).
@@ -360,7 +360,7 @@ func (r AbuseReportNewParamsBodyAbuseReportsTrademarkReport) MarshalJSON() (data
360360
func (r AbuseReportNewParamsBodyAbuseReportsTrademarkReport) implementsAbuseReportNewParamsBodyUnion() {
361361
}
362362

363-
// The abuse report type.
363+
// The report type for submitted reports.
364364
type AbuseReportNewParamsBodyAbuseReportsTrademarkReportAct string
365365

366366
const (
@@ -408,7 +408,7 @@ func (r AbuseReportNewParamsBodyAbuseReportsTrademarkReportOwnerNotification) Is
408408
}
409409

410410
type AbuseReportNewParamsBodyAbuseReportsGeneralReport struct {
411-
// The abuse report type.
411+
// The report type for submitted reports.
412412
Act param.Field[AbuseReportNewParamsBodyAbuseReportsGeneralReportAct] `json:"act,required"`
413413
// A valid email of the abuse reporter. This field may be released by Cloudflare to
414414
// third parties such as the Lumen Database (https://lumendatabase.org/).
@@ -469,7 +469,7 @@ func (r AbuseReportNewParamsBodyAbuseReportsGeneralReport) MarshalJSON() (data [
469469
func (r AbuseReportNewParamsBodyAbuseReportsGeneralReport) implementsAbuseReportNewParamsBodyUnion() {
470470
}
471471

472-
// The abuse report type.
472+
// The report type for submitted reports.
473473
type AbuseReportNewParamsBodyAbuseReportsGeneralReportAct string
474474

475475
const (
@@ -520,7 +520,7 @@ func (r AbuseReportNewParamsBodyAbuseReportsGeneralReportOwnerNotification) IsKn
520520
}
521521

522522
type AbuseReportNewParamsBodyAbuseReportsPhishingReport struct {
523-
// The abuse report type.
523+
// The report type for submitted reports.
524524
Act param.Field[AbuseReportNewParamsBodyAbuseReportsPhishingReportAct] `json:"act,required"`
525525
// A valid email of the abuse reporter. This field may be released by Cloudflare to
526526
// third parties such as the Lumen Database (https://lumendatabase.org/).
@@ -571,7 +571,7 @@ func (r AbuseReportNewParamsBodyAbuseReportsPhishingReport) MarshalJSON() (data
571571
func (r AbuseReportNewParamsBodyAbuseReportsPhishingReport) implementsAbuseReportNewParamsBodyUnion() {
572572
}
573573

574-
// The abuse report type.
574+
// The report type for submitted reports.
575575
type AbuseReportNewParamsBodyAbuseReportsPhishingReportAct string
576576

577577
const (
@@ -621,7 +621,7 @@ func (r AbuseReportNewParamsBodyAbuseReportsPhishingReportOwnerNotification) IsK
621621
}
622622

623623
type AbuseReportNewParamsBodyAbuseReportsCsamReport struct {
624-
// The abuse report type.
624+
// The report type for submitted reports.
625625
Act param.Field[AbuseReportNewParamsBodyAbuseReportsCsamReportAct] `json:"act,required"`
626626
// A valid email of the abuse reporter. This field may be released by Cloudflare to
627627
// third parties such as the Lumen Database (https://lumendatabase.org/).
@@ -674,7 +674,7 @@ func (r AbuseReportNewParamsBodyAbuseReportsCsamReport) MarshalJSON() (data []by
674674

675675
func (r AbuseReportNewParamsBodyAbuseReportsCsamReport) implementsAbuseReportNewParamsBodyUnion() {}
676676

677-
// The abuse report type.
677+
// The report type for submitted reports.
678678
type AbuseReportNewParamsBodyAbuseReportsCsamReportAct string
679679

680680
const (
@@ -742,7 +742,7 @@ func (r AbuseReportNewParamsBodyAbuseReportsCsamReportOwnerNotification) IsKnown
742742
}
743743

744744
type AbuseReportNewParamsBodyAbuseReportsThreatReport struct {
745-
// The abuse report type.
745+
// The report type for submitted reports.
746746
Act param.Field[AbuseReportNewParamsBodyAbuseReportsThreatReportAct] `json:"act,required"`
747747
// A valid email of the abuse reporter. This field may be released by Cloudflare to
748748
// third parties such as the Lumen Database (https://lumendatabase.org/).
@@ -789,7 +789,7 @@ func (r AbuseReportNewParamsBodyAbuseReportsThreatReport) MarshalJSON() (data []
789789

790790
func (r AbuseReportNewParamsBodyAbuseReportsThreatReport) implementsAbuseReportNewParamsBodyUnion() {}
791791

792-
// The abuse report type.
792+
// The report type for submitted reports.
793793
type AbuseReportNewParamsBodyAbuseReportsThreatReportAct string
794794

795795
const (
@@ -839,7 +839,7 @@ func (r AbuseReportNewParamsBodyAbuseReportsThreatReportOwnerNotification) IsKno
839839
}
840840

841841
type AbuseReportNewParamsBodyAbuseReportsRegistrarWhoisReport struct {
842-
// The abuse report type.
842+
// The report type for submitted reports.
843843
Act param.Field[AbuseReportNewParamsBodyAbuseReportsRegistrarWhoisReportAct] `json:"act,required"`
844844
// A valid email of the abuse reporter. This field may be released by Cloudflare to
845845
// third parties such as the Lumen Database (https://lumendatabase.org/).
@@ -880,7 +880,7 @@ func (r AbuseReportNewParamsBodyAbuseReportsRegistrarWhoisReport) MarshalJSON()
880880
func (r AbuseReportNewParamsBodyAbuseReportsRegistrarWhoisReport) implementsAbuseReportNewParamsBodyUnion() {
881881
}
882882

883-
// The abuse report type.
883+
// The report type for submitted reports.
884884
type AbuseReportNewParamsBodyAbuseReportsRegistrarWhoisReportAct string
885885

886886
const (
@@ -914,7 +914,7 @@ func (r AbuseReportNewParamsBodyAbuseReportsRegistrarWhoisReportOwnerNotificatio
914914
}
915915

916916
type AbuseReportNewParamsBodyAbuseReportsNcseiReport struct {
917-
// The abuse report type.
917+
// The report type for submitted reports.
918918
Act param.Field[AbuseReportNewParamsBodyAbuseReportsNcseiReportAct] `json:"act,required"`
919919
// A valid email of the abuse reporter. This field may be released by Cloudflare to
920920
// third parties such as the Lumen Database (https://lumendatabase.org/).
@@ -962,7 +962,7 @@ func (r AbuseReportNewParamsBodyAbuseReportsNcseiReport) MarshalJSON() (data []b
962962

963963
func (r AbuseReportNewParamsBodyAbuseReportsNcseiReport) implementsAbuseReportNewParamsBodyUnion() {}
964964

965-
// The abuse report type.
965+
// The report type for submitted reports.
966966
type AbuseReportNewParamsBodyAbuseReportsNcseiReportAct string
967967

968968
const (
@@ -1012,7 +1012,7 @@ func (r AbuseReportNewParamsBodyAbuseReportsNcseiReportOwnerNotification) IsKnow
10121012
return false
10131013
}
10141014

1015-
// The abuse report type.
1015+
// The report type for submitted reports.
10161016
type AbuseReportNewParamsBodyAct string
10171017

10181018
const (
@@ -1129,7 +1129,7 @@ func (r abuseReportNewResponseEnvelopeJSON) RawJSON() string {
11291129
}
11301130

11311131
type AbuseReportNewResponseEnvelopeRequest struct {
1132-
// The abuse report type.
1132+
// The report type for submitted reports.
11331133
Act string `json:"act,required"`
11341134
JSON abuseReportNewResponseEnvelopeRequestJSON `json:"-"`
11351135
}

abuse_reports/abusereport_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func TestAbuseReportNewWithOptionalParams(t *testing.T) {
3030
)
3131
_, err := client.AbuseReports.New(
3232
context.TODO(),
33-
"report_type",
33+
"report_param",
3434
abuse_reports.AbuseReportNewParams{
3535
AccountID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"),
3636
Body: abuse_reports.AbuseReportNewParamsBodyAbuseReportsDmcaReport{

accounts/account.go

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,8 @@ type Account struct {
149149
Type AccountType `json:"type,required"`
150150
// Timestamp for the creation of the account
151151
CreatedOn time.Time `json:"created_on" format:"date-time"`
152+
// Parent container details
153+
ManagedBy AccountManagedBy `json:"managed_by"`
152154
// Account settings
153155
Settings AccountSettings `json:"settings"`
154156
JSON accountJSON `json:"-"`
@@ -160,6 +162,7 @@ type accountJSON struct {
160162
Name apijson.Field
161163
Type apijson.Field
162164
CreatedOn apijson.Field
165+
ManagedBy apijson.Field
163166
Settings apijson.Field
164167
raw string
165168
ExtraFields map[string]apijson.Field
@@ -188,6 +191,32 @@ func (r AccountType) IsKnown() bool {
188191
return false
189192
}
190193

194+
// Parent container details
195+
type AccountManagedBy struct {
196+
// ID of the parent Organization, if one exists
197+
ParentOrgID string `json:"parent_org_id"`
198+
// Name of the parent Organization, if one exists
199+
ParentOrgName string `json:"parent_org_name"`
200+
JSON accountManagedByJSON `json:"-"`
201+
}
202+
203+
// accountManagedByJSON contains the JSON metadata for the struct
204+
// [AccountManagedBy]
205+
type accountManagedByJSON struct {
206+
ParentOrgID apijson.Field
207+
ParentOrgName apijson.Field
208+
raw string
209+
ExtraFields map[string]apijson.Field
210+
}
211+
212+
func (r *AccountManagedBy) UnmarshalJSON(data []byte) (err error) {
213+
return apijson.UnmarshalRoot(data, r)
214+
}
215+
216+
func (r accountManagedByJSON) RawJSON() string {
217+
return r.raw
218+
}
219+
191220
// Account settings
192221
type AccountSettings struct {
193222
// Sets an abuse contact email to notify for abuse reports.
@@ -220,6 +249,8 @@ type AccountParam struct {
220249
// Account name
221250
Name param.Field[string] `json:"name,required"`
222251
Type param.Field[AccountType] `json:"type,required"`
252+
// Parent container details
253+
ManagedBy param.Field[AccountManagedByParam] `json:"managed_by"`
223254
// Account settings
224255
Settings param.Field[AccountSettingsParam] `json:"settings"`
225256
}
@@ -228,6 +259,14 @@ func (r AccountParam) MarshalJSON() (data []byte, err error) {
228259
return apijson.MarshalRoot(r)
229260
}
230261

262+
// Parent container details
263+
type AccountManagedByParam struct {
264+
}
265+
266+
func (r AccountManagedByParam) MarshalJSON() (data []byte, err error) {
267+
return apijson.MarshalRoot(r)
268+
}
269+
231270
// Account settings
232271
type AccountSettingsParam struct {
233272
// Sets an abuse contact email to notify for abuse reports.

accounts/account_test.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,10 @@ func TestAccountUpdateWithOptionalParams(t *testing.T) {
5959
_, err := client.Accounts.Update(context.TODO(), accounts.AccountUpdateParams{
6060
AccountID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"),
6161
Account: accounts.AccountParam{
62-
ID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"),
63-
Name: cloudflare.F("Demo Account"),
64-
Type: cloudflare.F(accounts.AccountTypeStandard),
62+
ID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"),
63+
Name: cloudflare.F("Demo Account"),
64+
Type: cloudflare.F(accounts.AccountTypeStandard),
65+
ManagedBy: cloudflare.F(accounts.AccountManagedByParam{}),
6566
Settings: cloudflare.F(accounts.AccountSettingsParam{
6667
AbuseContactEmail: cloudflare.F("abuse_contact_email"),
6768
EnforceTwofactor: cloudflare.F(true),

0 commit comments

Comments
 (0)