Skip to content

Commit 1219741

Browse files
release: 4.3.0 (#4157)
Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com> Co-authored-by: Jacob Bednarz <jacob.bednarz@gmail.com>
1 parent e581516 commit 1219741

File tree

690 files changed

+85366
-20082
lines changed

Some content is hidden

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

690 files changed

+85366
-20082
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
name: CI
22
on:
33
push:
4-
branches:
5-
- main
6-
pull_request:
7-
branches:
8-
- main
9-
- next
4+
branches-ignore:
5+
- 'generated'
6+
- 'codegen/**'
7+
- 'integrated/**'
8+
- 'stl-preview-head/**'
9+
- 'stl-preview-base/**'
1010

1111
concurrency:
1212
group: ${{ github.workflow }}-${{ github.ref }}
1313
cancel-in-progress: true
1414

1515
jobs:
1616
lint:
17+
timeout-minutes: 10
1718
name: lint
18-
runs-on: ubuntu-latest
19-
timeout-minutes: 5
19+
runs-on: ${{ github.repository == 'stainless-sdks/cloudflare-go' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
2020

2121
steps:
2222
- uses: actions/checkout@v4
@@ -29,9 +29,9 @@ jobs:
2929
- name: Run lints
3030
run: ./scripts/lint
3131
test:
32+
timeout-minutes: 10
3233
name: test
33-
runs-on: ubuntu-latest
34-
timeout-minutes: 15
34+
runs-on: ${{ github.repository == 'stainless-sdks/cloudflare-go' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
3535

3636
steps:
3737
- uses: actions/checkout@v4

.release-please-manifest.json

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

.stats.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1-
configured_endpoints: 1655
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-0ed9f898b31619623e50d660d04beca50e44987bfd3eb3a6ff98d3bca2a9c569.yml
1+
configured_endpoints: 1713
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-40991506ce58ce957e8a66e67a3ea0ce30eb6a573c30addc2a60a80ea6b378b8.yml
3+
openapi_spec_hash: 49aee83e2c8c51d02a2bf4c62d70b3c0
4+
config_hash: f3d6fe4927a7690f10f9599be1feaede

CHANGELOG.md

Lines changed: 312 additions & 0 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
<a href="https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v4"><img src="https://pkg.go.dev/badge/github.com/cloudflare/cloudflare-go/v4.svg" alt="Go Reference"></a>
44

5-
The Cloudflare Go library provides convenient access to [the Cloudflare REST
6-
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).
5+
The Cloudflare Go library provides convenient access to the [Cloudflare REST API](https://developers.cloudflare.com/api)
6+
from applications written in Go.
77

88
## Installation
99

@@ -22,7 +22,7 @@ Or to pin the version:
2222
<!-- x-release-please-start-version -->
2323

2424
```sh
25-
go get -u 'github.com/cloudflare/cloudflare-go/v4@v4.2.0'
25+
go get -u 'github.com/cloudflare/cloudflare-go/v4@v4.3.0'
2626
```
2727

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

abuse_reports/abusereport.go

Lines changed: 542 additions & 506 deletions
Large diffs are not rendered by default.

abuse_reports/abusereport_test.go

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -30,38 +30,40 @@ func TestAbuseReportNewWithOptionalParams(t *testing.T) {
3030
)
3131
_, err := client.AbuseReports.New(
3232
context.TODO(),
33-
abuse_reports.AbuseReportNewParamsReportTypeAbuseDmca,
33+
abuse_reports.AbuseReportNewParamsReportTypeAbuseGeneral,
3434
abuse_reports.AbuseReportNewParams{
3535
AccountID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"),
3636
Body: abuse_reports.AbuseReportNewParamsBodyAbuseReportsDmcaReport{
37+
Act: cloudflare.F(abuse_reports.AbuseReportNewParamsBodyAbuseReportsDmcaReportActAbuseGeneral),
38+
Email: cloudflare.F("email"),
39+
Email2: cloudflare.F("email2"),
40+
Name: cloudflare.F("x"),
41+
URLs: cloudflare.F("urls"),
3742
Address1: cloudflare.F("x"),
3843
AgentName: cloudflare.F("x"),
3944
Agree: cloudflare.F(abuse_reports.AbuseReportNewParamsBodyAbuseReportsDmcaReportAgree0),
4045
City: cloudflare.F("x"),
41-
Country: cloudflare.F("x"),
42-
HostNotification: cloudflare.F(abuse_reports.AbuseReportNewParamsBodyAbuseReportsDmcaReportHostNotificationSend),
43-
OriginalWork: cloudflare.F("x"),
44-
OwnerNotification: cloudflare.F(abuse_reports.AbuseReportNewParamsBodyAbuseReportsDmcaReportOwnerNotificationSend),
45-
Signature: cloudflare.F("signature"),
46-
State: cloudflare.F("x"),
47-
Act: cloudflare.F(abuse_reports.AbuseReportNewParamsBodyAbuseReportsDmcaReportActAbuseDmca),
4846
Comments: cloudflare.F("x"),
4947
Company: cloudflare.F("x"),
48+
Country: cloudflare.F("x"),
5049
DestinationIPs: cloudflare.F("destination_ips"),
51-
Email: cloudflare.F("email"),
52-
Email2: cloudflare.F("email2"),
50+
HostNotification: cloudflare.F(abuse_reports.AbuseReportNewParamsBodyAbuseReportsDmcaReportHostNotificationSend),
5351
Justification: cloudflare.F("x"),
54-
Name: cloudflare.F("x"),
5552
NcmecNotification: cloudflare.F(abuse_reports.AbuseReportNewParamsBodyAbuseReportsDmcaReportNcmecNotificationSend),
5653
NcseiSubjectRepresentation: cloudflare.F(true),
54+
OriginalWork: cloudflare.F("x"),
55+
OwnerNotification: cloudflare.F(abuse_reports.AbuseReportNewParamsBodyAbuseReportsDmcaReportOwnerNotificationSend),
5756
PortsProtocols: cloudflare.F("ports_protocols"),
57+
ReportedCountry: cloudflare.F("xx"),
58+
ReportedUserAgent: cloudflare.F("x"),
59+
Signature: cloudflare.F("signature"),
5860
SourceIPs: cloudflare.F("source_ips"),
61+
State: cloudflare.F("x"),
5962
Tele: cloudflare.F("x"),
6063
Title: cloudflare.F("x"),
6164
TrademarkNumber: cloudflare.F("x"),
6265
TrademarkOffice: cloudflare.F("x"),
6366
TrademarkSymbol: cloudflare.F("x"),
64-
URLs: cloudflare.F("urls"),
6567
},
6668
},
6769
)

abuse_reports/aliases.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,9 @@ type RatePlanParam = shared.RatePlanParam
258258
// This is an alias to an internal type.
259259
type ResponseInfo = shared.ResponseInfo
260260

261+
// This is an alias to an internal type.
262+
type ResponseInfoSource = shared.ResponseInfoSource
263+
261264
// This is an alias to an internal type.
262265
type Role = shared.Role
263266

0 commit comments

Comments
 (0)