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 5eb752b commit a9284eb
Show file tree
Hide file tree
Showing 100 changed files with 428 additions and 428 deletions.
10 changes: 5 additions & 5 deletions custom_certificates/customcertificate_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/custom_certificates"
"github.com/cloudflare/cloudflare-go/v3/custom_hostnames"
"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/custom_certificates"
"github.com/cloudflare/cloudflare-go/v4/custom_hostnames"
"github.com/cloudflare/cloudflare-go/v4/internal/testutil"
"github.com/cloudflare/cloudflare-go/v4/option"
)

func TestCustomCertificateNewWithOptionalParams(t *testing.T) {
Expand Down
10 changes: 5 additions & 5 deletions custom_certificates/prioritize.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ import (
"fmt"
"net/http"

"github.com/cloudflare/cloudflare-go/v3/internal/apijson"
"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/shared"
"github.com/cloudflare/cloudflare-go/v4/internal/apijson"
"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/shared"
)

// PrioritizeService contains methods and other services that help with interacting
Expand Down
8 changes: 4 additions & 4 deletions custom_certificates/prioritize_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/custom_certificates"
"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/custom_certificates"
"github.com/cloudflare/cloudflare-go/v4/internal/testutil"
"github.com/cloudflare/cloudflare-go/v4/option"
)

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

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 custom_hostnames/customhostname.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"
)

// CustomHostnameService contains methods and other services that help with
Expand Down
10 changes: 5 additions & 5 deletions custom_hostnames/customhostname_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/custom_hostnames"
"github.com/cloudflare/cloudflare-go/v3/internal/testutil"
"github.com/cloudflare/cloudflare-go/v3/option"
"github.com/cloudflare/cloudflare-go/v3/shared"
"github.com/cloudflare/cloudflare-go/v4"
"github.com/cloudflare/cloudflare-go/v4/custom_hostnames"
"github.com/cloudflare/cloudflare-go/v4/internal/testutil"
"github.com/cloudflare/cloudflare-go/v4/option"
"github.com/cloudflare/cloudflare-go/v4/shared"
)

func TestCustomHostnameNewWithOptionalParams(t *testing.T) {
Expand Down
10 changes: 5 additions & 5 deletions custom_hostnames/fallbackorigin.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ import (
"net/http"
"time"

"github.com/cloudflare/cloudflare-go/v3/internal/apijson"
"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/shared"
"github.com/cloudflare/cloudflare-go/v4/internal/apijson"
"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/shared"
)

// FallbackOriginService contains methods and other services that help with
Expand Down
8 changes: 4 additions & 4 deletions custom_hostnames/fallbackorigin_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/custom_hostnames"
"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/custom_hostnames"
"github.com/cloudflare/cloudflare-go/v4/internal/testutil"
"github.com/cloudflare/cloudflare-go/v4/option"
)

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

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
10 changes: 5 additions & 5 deletions custom_nameservers/customnameserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ import (
"fmt"
"net/http"

"github.com/cloudflare/cloudflare-go/v3/internal/apijson"
"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/shared"
"github.com/cloudflare/cloudflare-go/v4/internal/apijson"
"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/shared"
)

// CustomNameserverService contains methods and other services that help with
Expand Down
8 changes: 4 additions & 4 deletions custom_nameservers/customnameserver_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/custom_nameservers"
"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/custom_nameservers"
"github.com/cloudflare/cloudflare-go/v4/internal/testutil"
"github.com/cloudflare/cloudflare-go/v4/option"
)

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

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
4 changes: 2 additions & 2 deletions d1/d1.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ package d1
import (
"time"

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

// D1Service contains methods and other services that help with interacting with
Expand Down
14 changes: 7 additions & 7 deletions d1/database.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"
)

// DatabaseService contains methods and other services that help with interacting
Expand Down
8 changes: 4 additions & 4 deletions d1/database_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/d1"
"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/d1"
"github.com/cloudflare/cloudflare-go/v4/internal/testutil"
"github.com/cloudflare/cloudflare-go/v4/option"
)

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

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
10 changes: 5 additions & 5 deletions dcv_delegation/dcvdelegation.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ import (
"fmt"
"net/http"

"github.com/cloudflare/cloudflare-go/v3/internal/apijson"
"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/shared"
"github.com/cloudflare/cloudflare-go/v4/internal/apijson"
"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/shared"
)

// DCVDelegationService contains methods and other services that help with
Expand Down
8 changes: 4 additions & 4 deletions dcv_delegation/dcvdelegation_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/dcv_delegation"
"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/dcv_delegation"
"github.com/cloudflare/cloudflare-go/v4/internal/testutil"
"github.com/cloudflare/cloudflare-go/v4/option"
)

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

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 diagnostics/diagnostic.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
package diagnostics

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

// DiagnosticService contains methods and other services that help with interacting
Expand Down
10 changes: 5 additions & 5 deletions diagnostics/traceroute.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ import (
"fmt"
"net/http"

"github.com/cloudflare/cloudflare-go/v3/internal/apijson"
"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/shared"
"github.com/cloudflare/cloudflare-go/v4/internal/apijson"
"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/shared"
)

// TracerouteService contains methods and other services that help with interacting
Expand Down
8 changes: 4 additions & 4 deletions diagnostics/traceroute_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/diagnostics"
"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/diagnostics"
"github.com/cloudflare/cloudflare-go/v4/internal/testutil"
"github.com/cloudflare/cloudflare-go/v4/option"
)

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

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 dns/analytics.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
package dns

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

// AnalyticsService contains methods and other services that help with interacting
Expand Down
12 changes: 6 additions & 6 deletions dns/analyticsreport.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/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/shared"
)

// AnalyticsReportService contains methods and other services that help with
Expand Down
8 changes: 4 additions & 4 deletions dns/analyticsreport_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/dns"
"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/dns"
"github.com/cloudflare/cloudflare-go/v4/internal/testutil"
"github.com/cloudflare/cloudflare-go/v4/option"
)

func TestAnalyticsReportGetWithOptionalParams(t *testing.T) {
Expand Down
12 changes: 6 additions & 6 deletions dns/analyticsreportbytime.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/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/shared"
)

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

0 comments on commit a9284eb

Please sign in to comment.