Skip to content

Commit

Permalink
release: 4.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored Jan 10, 2025
1 parent a9284eb commit 66eb545
Show file tree
Hide file tree
Showing 100 changed files with 444 additions and 444 deletions.
14 changes: 7 additions & 7 deletions email_security/settingblocksender.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ import (
"net/url"
"time"

"github.com/cloudflare/cloudflare-go/v3/internal/apijson"
"github.com/cloudflare/cloudflare-go/v3/internal/apiquery"
"github.com/cloudflare/cloudflare-go/v3/internal/param"
"github.com/cloudflare/cloudflare-go/v3/internal/requestconfig"
"github.com/cloudflare/cloudflare-go/v3/option"
"github.com/cloudflare/cloudflare-go/v3/packages/pagination"
"github.com/cloudflare/cloudflare-go/v3/shared"
"github.com/cloudflare/cloudflare-go/v4/internal/apijson"
"github.com/cloudflare/cloudflare-go/v4/internal/apiquery"
"github.com/cloudflare/cloudflare-go/v4/internal/param"
"github.com/cloudflare/cloudflare-go/v4/internal/requestconfig"
"github.com/cloudflare/cloudflare-go/v4/option"
"github.com/cloudflare/cloudflare-go/v4/packages/pagination"
"github.com/cloudflare/cloudflare-go/v4/shared"
)

// SettingBlockSenderService contains methods and other services that help with
Expand Down
8 changes: 4 additions & 4 deletions email_security/settingblocksender_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import (
"os"
"testing"

"github.com/cloudflare/cloudflare-go/v3"
"github.com/cloudflare/cloudflare-go/v3/email_security"
"github.com/cloudflare/cloudflare-go/v3/internal/testutil"
"github.com/cloudflare/cloudflare-go/v3/option"
"github.com/cloudflare/cloudflare-go/v4"
"github.com/cloudflare/cloudflare-go/v4/email_security"
"github.com/cloudflare/cloudflare-go/v4/internal/testutil"
"github.com/cloudflare/cloudflare-go/v4/option"
)

func TestSettingBlockSenderNewWithOptionalParams(t *testing.T) {
Expand Down
14 changes: 7 additions & 7 deletions email_security/settingdomain.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ import (
"net/url"
"time"

"github.com/cloudflare/cloudflare-go/v3/internal/apijson"
"github.com/cloudflare/cloudflare-go/v3/internal/apiquery"
"github.com/cloudflare/cloudflare-go/v3/internal/param"
"github.com/cloudflare/cloudflare-go/v3/internal/requestconfig"
"github.com/cloudflare/cloudflare-go/v3/option"
"github.com/cloudflare/cloudflare-go/v3/packages/pagination"
"github.com/cloudflare/cloudflare-go/v3/shared"
"github.com/cloudflare/cloudflare-go/v4/internal/apijson"
"github.com/cloudflare/cloudflare-go/v4/internal/apiquery"
"github.com/cloudflare/cloudflare-go/v4/internal/param"
"github.com/cloudflare/cloudflare-go/v4/internal/requestconfig"
"github.com/cloudflare/cloudflare-go/v4/option"
"github.com/cloudflare/cloudflare-go/v4/packages/pagination"
"github.com/cloudflare/cloudflare-go/v4/shared"
)

// SettingDomainService contains methods and other services that help with
Expand Down
8 changes: 4 additions & 4 deletions email_security/settingdomain_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import (
"os"
"testing"

"github.com/cloudflare/cloudflare-go/v3"
"github.com/cloudflare/cloudflare-go/v3/email_security"
"github.com/cloudflare/cloudflare-go/v3/internal/testutil"
"github.com/cloudflare/cloudflare-go/v3/option"
"github.com/cloudflare/cloudflare-go/v4"
"github.com/cloudflare/cloudflare-go/v4/email_security"
"github.com/cloudflare/cloudflare-go/v4/internal/testutil"
"github.com/cloudflare/cloudflare-go/v4/option"
)

func TestSettingDomainListWithOptionalParams(t *testing.T) {
Expand Down
14 changes: 7 additions & 7 deletions email_security/settingimpersonationregistry.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ import (
"net/url"
"time"

"github.com/cloudflare/cloudflare-go/v3/internal/apijson"
"github.com/cloudflare/cloudflare-go/v3/internal/apiquery"
"github.com/cloudflare/cloudflare-go/v3/internal/param"
"github.com/cloudflare/cloudflare-go/v3/internal/requestconfig"
"github.com/cloudflare/cloudflare-go/v3/option"
"github.com/cloudflare/cloudflare-go/v3/packages/pagination"
"github.com/cloudflare/cloudflare-go/v3/shared"
"github.com/cloudflare/cloudflare-go/v4/internal/apijson"
"github.com/cloudflare/cloudflare-go/v4/internal/apiquery"
"github.com/cloudflare/cloudflare-go/v4/internal/param"
"github.com/cloudflare/cloudflare-go/v4/internal/requestconfig"
"github.com/cloudflare/cloudflare-go/v4/option"
"github.com/cloudflare/cloudflare-go/v4/packages/pagination"
"github.com/cloudflare/cloudflare-go/v4/shared"
)

// SettingImpersonationRegistryService contains methods and other services that
Expand Down
8 changes: 4 additions & 4 deletions email_security/settingimpersonationregistry_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import (
"os"
"testing"

"github.com/cloudflare/cloudflare-go/v3"
"github.com/cloudflare/cloudflare-go/v3/email_security"
"github.com/cloudflare/cloudflare-go/v3/internal/testutil"
"github.com/cloudflare/cloudflare-go/v3/option"
"github.com/cloudflare/cloudflare-go/v4"
"github.com/cloudflare/cloudflare-go/v4/email_security"
"github.com/cloudflare/cloudflare-go/v4/internal/testutil"
"github.com/cloudflare/cloudflare-go/v4/option"
)

func TestSettingImpersonationRegistryNew(t *testing.T) {
Expand Down
14 changes: 7 additions & 7 deletions email_security/settingtrusteddomain.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ import (
"reflect"
"time"

"github.com/cloudflare/cloudflare-go/v3/internal/apijson"
"github.com/cloudflare/cloudflare-go/v3/internal/apiquery"
"github.com/cloudflare/cloudflare-go/v3/internal/param"
"github.com/cloudflare/cloudflare-go/v3/internal/requestconfig"
"github.com/cloudflare/cloudflare-go/v3/option"
"github.com/cloudflare/cloudflare-go/v3/packages/pagination"
"github.com/cloudflare/cloudflare-go/v3/shared"
"github.com/cloudflare/cloudflare-go/v4/internal/apijson"
"github.com/cloudflare/cloudflare-go/v4/internal/apiquery"
"github.com/cloudflare/cloudflare-go/v4/internal/param"
"github.com/cloudflare/cloudflare-go/v4/internal/requestconfig"
"github.com/cloudflare/cloudflare-go/v4/option"
"github.com/cloudflare/cloudflare-go/v4/packages/pagination"
"github.com/cloudflare/cloudflare-go/v4/shared"
"github.com/tidwall/gjson"
)

Expand Down
8 changes: 4 additions & 4 deletions email_security/settingtrusteddomain_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import (
"os"
"testing"

"github.com/cloudflare/cloudflare-go/v3"
"github.com/cloudflare/cloudflare-go/v3/email_security"
"github.com/cloudflare/cloudflare-go/v3/internal/testutil"
"github.com/cloudflare/cloudflare-go/v3/option"
"github.com/cloudflare/cloudflare-go/v4"
"github.com/cloudflare/cloudflare-go/v4/email_security"
"github.com/cloudflare/cloudflare-go/v4/internal/testutil"
"github.com/cloudflare/cloudflare-go/v4/option"
)

func TestSettingTrustedDomainNewWithOptionalParams(t *testing.T) {
Expand Down
12 changes: 6 additions & 6 deletions email_security/submission.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ import (
"net/url"
"time"

"github.com/cloudflare/cloudflare-go/v3/internal/apijson"
"github.com/cloudflare/cloudflare-go/v3/internal/apiquery"
"github.com/cloudflare/cloudflare-go/v3/internal/param"
"github.com/cloudflare/cloudflare-go/v3/internal/requestconfig"
"github.com/cloudflare/cloudflare-go/v3/option"
"github.com/cloudflare/cloudflare-go/v3/packages/pagination"
"github.com/cloudflare/cloudflare-go/v4/internal/apijson"
"github.com/cloudflare/cloudflare-go/v4/internal/apiquery"
"github.com/cloudflare/cloudflare-go/v4/internal/param"
"github.com/cloudflare/cloudflare-go/v4/internal/requestconfig"
"github.com/cloudflare/cloudflare-go/v4/option"
"github.com/cloudflare/cloudflare-go/v4/packages/pagination"
)

// SubmissionService contains methods and other services that help with interacting
Expand Down
8 changes: 4 additions & 4 deletions email_security/submission_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ import (
"testing"
"time"

"github.com/cloudflare/cloudflare-go/v3"
"github.com/cloudflare/cloudflare-go/v3/email_security"
"github.com/cloudflare/cloudflare-go/v3/internal/testutil"
"github.com/cloudflare/cloudflare-go/v3/option"
"github.com/cloudflare/cloudflare-go/v4"
"github.com/cloudflare/cloudflare-go/v4/email_security"
"github.com/cloudflare/cloudflare-go/v4/internal/testutil"
"github.com/cloudflare/cloudflare-go/v4/option"
)

func TestSubmissionListWithOptionalParams(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion field.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package cloudflare

import (
"github.com/cloudflare/cloudflare-go/v3/internal/param"
"github.com/cloudflare/cloudflare-go/v4/internal/param"
"io"
)

Expand Down
4 changes: 2 additions & 2 deletions filters/aliases.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
package filters

import (
"github.com/cloudflare/cloudflare-go/v3/internal/apierror"
"github.com/cloudflare/cloudflare-go/v3/shared"
"github.com/cloudflare/cloudflare-go/v4/internal/apierror"
"github.com/cloudflare/cloudflare-go/v4/shared"
)

type Error = apierror.Error
Expand Down
14 changes: 7 additions & 7 deletions filters/filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ import (
"net/http"
"net/url"

"github.com/cloudflare/cloudflare-go/v3/internal/apijson"
"github.com/cloudflare/cloudflare-go/v3/internal/apiquery"
"github.com/cloudflare/cloudflare-go/v3/internal/param"
"github.com/cloudflare/cloudflare-go/v3/internal/requestconfig"
"github.com/cloudflare/cloudflare-go/v3/option"
"github.com/cloudflare/cloudflare-go/v3/packages/pagination"
"github.com/cloudflare/cloudflare-go/v3/shared"
"github.com/cloudflare/cloudflare-go/v4/internal/apijson"
"github.com/cloudflare/cloudflare-go/v4/internal/apiquery"
"github.com/cloudflare/cloudflare-go/v4/internal/param"
"github.com/cloudflare/cloudflare-go/v4/internal/requestconfig"
"github.com/cloudflare/cloudflare-go/v4/option"
"github.com/cloudflare/cloudflare-go/v4/packages/pagination"
"github.com/cloudflare/cloudflare-go/v4/shared"
)

// FilterService contains methods and other services that help with interacting
Expand Down
8 changes: 4 additions & 4 deletions filters/filter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import (
"os"
"testing"

"github.com/cloudflare/cloudflare-go/v3"
"github.com/cloudflare/cloudflare-go/v3/filters"
"github.com/cloudflare/cloudflare-go/v3/internal/testutil"
"github.com/cloudflare/cloudflare-go/v3/option"
"github.com/cloudflare/cloudflare-go/v4"
"github.com/cloudflare/cloudflare-go/v4/filters"
"github.com/cloudflare/cloudflare-go/v4/internal/testutil"
"github.com/cloudflare/cloudflare-go/v4/option"
)

func TestFilterNew(t *testing.T) {
Expand Down
14 changes: 7 additions & 7 deletions firewall/accessrule.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ import (
"reflect"
"time"

"github.com/cloudflare/cloudflare-go/v3/internal/apijson"
"github.com/cloudflare/cloudflare-go/v3/internal/apiquery"
"github.com/cloudflare/cloudflare-go/v3/internal/param"
"github.com/cloudflare/cloudflare-go/v3/internal/requestconfig"
"github.com/cloudflare/cloudflare-go/v3/option"
"github.com/cloudflare/cloudflare-go/v3/packages/pagination"
"github.com/cloudflare/cloudflare-go/v3/shared"
"github.com/cloudflare/cloudflare-go/v4/internal/apijson"
"github.com/cloudflare/cloudflare-go/v4/internal/apiquery"
"github.com/cloudflare/cloudflare-go/v4/internal/param"
"github.com/cloudflare/cloudflare-go/v4/internal/requestconfig"
"github.com/cloudflare/cloudflare-go/v4/option"
"github.com/cloudflare/cloudflare-go/v4/packages/pagination"
"github.com/cloudflare/cloudflare-go/v4/shared"
"github.com/tidwall/gjson"
)

Expand Down
8 changes: 4 additions & 4 deletions firewall/accessrule_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import (
"os"
"testing"

"github.com/cloudflare/cloudflare-go/v3"
"github.com/cloudflare/cloudflare-go/v3/firewall"
"github.com/cloudflare/cloudflare-go/v3/internal/testutil"
"github.com/cloudflare/cloudflare-go/v3/option"
"github.com/cloudflare/cloudflare-go/v4"
"github.com/cloudflare/cloudflare-go/v4/firewall"
"github.com/cloudflare/cloudflare-go/v4/internal/testutil"
"github.com/cloudflare/cloudflare-go/v4/option"
)

func TestAccessRuleNewWithOptionalParams(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions firewall/aliases.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
package firewall

import (
"github.com/cloudflare/cloudflare-go/v3/internal/apierror"
"github.com/cloudflare/cloudflare-go/v3/shared"
"github.com/cloudflare/cloudflare-go/v4/internal/apierror"
"github.com/cloudflare/cloudflare-go/v4/shared"
)

type Error = apierror.Error
Expand Down
2 changes: 1 addition & 1 deletion firewall/firewall.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
package firewall

import (
"github.com/cloudflare/cloudflare-go/v3/option"
"github.com/cloudflare/cloudflare-go/v4/option"
)

// FirewallService contains methods and other services that help with interacting
Expand Down
14 changes: 7 additions & 7 deletions firewall/lockdown.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ import (
"reflect"
"time"

"github.com/cloudflare/cloudflare-go/v3/internal/apijson"
"github.com/cloudflare/cloudflare-go/v3/internal/apiquery"
"github.com/cloudflare/cloudflare-go/v3/internal/param"
"github.com/cloudflare/cloudflare-go/v3/internal/requestconfig"
"github.com/cloudflare/cloudflare-go/v3/option"
"github.com/cloudflare/cloudflare-go/v3/packages/pagination"
"github.com/cloudflare/cloudflare-go/v3/shared"
"github.com/cloudflare/cloudflare-go/v4/internal/apijson"
"github.com/cloudflare/cloudflare-go/v4/internal/apiquery"
"github.com/cloudflare/cloudflare-go/v4/internal/param"
"github.com/cloudflare/cloudflare-go/v4/internal/requestconfig"
"github.com/cloudflare/cloudflare-go/v4/option"
"github.com/cloudflare/cloudflare-go/v4/packages/pagination"
"github.com/cloudflare/cloudflare-go/v4/shared"
"github.com/tidwall/gjson"
)

Expand Down
8 changes: 4 additions & 4 deletions firewall/lockdown_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ import (
"testing"
"time"

"github.com/cloudflare/cloudflare-go/v3"
"github.com/cloudflare/cloudflare-go/v3/firewall"
"github.com/cloudflare/cloudflare-go/v3/internal/testutil"
"github.com/cloudflare/cloudflare-go/v3/option"
"github.com/cloudflare/cloudflare-go/v4"
"github.com/cloudflare/cloudflare-go/v4/firewall"
"github.com/cloudflare/cloudflare-go/v4/internal/testutil"
"github.com/cloudflare/cloudflare-go/v4/option"
)

func TestLockdownNew(t *testing.T) {
Expand Down
18 changes: 9 additions & 9 deletions firewall/rule.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ import (
"net/url"
"reflect"

"github.com/cloudflare/cloudflare-go/v3/filters"
"github.com/cloudflare/cloudflare-go/v3/internal/apijson"
"github.com/cloudflare/cloudflare-go/v3/internal/apiquery"
"github.com/cloudflare/cloudflare-go/v3/internal/param"
"github.com/cloudflare/cloudflare-go/v3/internal/requestconfig"
"github.com/cloudflare/cloudflare-go/v3/option"
"github.com/cloudflare/cloudflare-go/v3/packages/pagination"
"github.com/cloudflare/cloudflare-go/v3/rate_limits"
"github.com/cloudflare/cloudflare-go/v3/shared"
"github.com/cloudflare/cloudflare-go/v4/filters"
"github.com/cloudflare/cloudflare-go/v4/internal/apijson"
"github.com/cloudflare/cloudflare-go/v4/internal/apiquery"
"github.com/cloudflare/cloudflare-go/v4/internal/param"
"github.com/cloudflare/cloudflare-go/v4/internal/requestconfig"
"github.com/cloudflare/cloudflare-go/v4/option"
"github.com/cloudflare/cloudflare-go/v4/packages/pagination"
"github.com/cloudflare/cloudflare-go/v4/rate_limits"
"github.com/cloudflare/cloudflare-go/v4/shared"
"github.com/tidwall/gjson"
)

Expand Down
10 changes: 5 additions & 5 deletions firewall/rule_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ import (
"os"
"testing"

"github.com/cloudflare/cloudflare-go/v3"
"github.com/cloudflare/cloudflare-go/v3/filters"
"github.com/cloudflare/cloudflare-go/v3/firewall"
"github.com/cloudflare/cloudflare-go/v3/internal/testutil"
"github.com/cloudflare/cloudflare-go/v3/option"
"github.com/cloudflare/cloudflare-go/v4"
"github.com/cloudflare/cloudflare-go/v4/filters"
"github.com/cloudflare/cloudflare-go/v4/firewall"
"github.com/cloudflare/cloudflare-go/v4/internal/testutil"
"github.com/cloudflare/cloudflare-go/v4/option"
)

func TestRuleNewWithOptionalParams(t *testing.T) {
Expand Down
14 changes: 7 additions & 7 deletions firewall/uarule.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ import (
"net/http"
"net/url"

"github.com/cloudflare/cloudflare-go/v3/internal/apijson"
"github.com/cloudflare/cloudflare-go/v3/internal/apiquery"
"github.com/cloudflare/cloudflare-go/v3/internal/param"
"github.com/cloudflare/cloudflare-go/v3/internal/requestconfig"
"github.com/cloudflare/cloudflare-go/v3/option"
"github.com/cloudflare/cloudflare-go/v3/packages/pagination"
"github.com/cloudflare/cloudflare-go/v3/shared"
"github.com/cloudflare/cloudflare-go/v4/internal/apijson"
"github.com/cloudflare/cloudflare-go/v4/internal/apiquery"
"github.com/cloudflare/cloudflare-go/v4/internal/param"
"github.com/cloudflare/cloudflare-go/v4/internal/requestconfig"
"github.com/cloudflare/cloudflare-go/v4/option"
"github.com/cloudflare/cloudflare-go/v4/packages/pagination"
"github.com/cloudflare/cloudflare-go/v4/shared"
)

// UARuleService contains methods and other services that help with interacting
Expand Down
Loading

0 comments on commit 66eb545

Please sign in to comment.