Skip to content

Commit

Permalink
feat(api): manual updates (#3083)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Sep 11, 2024
1 parent 486f372 commit 7c5368d
Show file tree
Hide file tree
Showing 1,136 changed files with 7,893 additions and 7,893 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 @@
{
".": "0.0.1-alpha.0"
".": "2.4.0"
}
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ To use a local version of this library from source in another project, edit the
directive. This can be done through the CLI with the following:

```bash
go mod edit -replace github.com/cloudflare/cloudflare-go=/path/to/cloudflare-go
go mod edit -replace github.com/cloudflare/cloudflare-go/v2=/path/to/cloudflare-go
```

## Running tests
Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Cloudflare Go API Library

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

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

```go
import (
"github.com/cloudflare/cloudflare-go" // imported as cloudflare
"github.com/cloudflare/cloudflare-go/v2" // imported as cloudflare
)
```

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

```sh
go get -u 'github.com/cloudflare/cloudflare-go@v0.0.1-alpha.0'
go get -u 'github.com/cloudflare/cloudflare-go/v2@v2.4.0'
```

<!-- x-release-please-end -->
Expand All @@ -42,9 +42,9 @@ import (
"context"
"fmt"

"github.com/cloudflare/cloudflare-go"
"github.com/cloudflare/cloudflare-go/option"
"github.com/cloudflare/cloudflare-go/zones"
"github.com/cloudflare/cloudflare-go/v2"
"github.com/cloudflare/cloudflare-go/v2/option"
"github.com/cloudflare/cloudflare-go/v2/zones"
)

func main() {
Expand Down Expand Up @@ -159,7 +159,7 @@ client.Zones.New(context.TODO(), ...,
)
```

See the [full list of request options](https://pkg.go.dev/github.com/cloudflare/cloudflare-go/option).
See the [full list of request options](https://pkg.go.dev/github.com/cloudflare/cloudflare-go/v2/option).

### Pagination

Expand Down
14 changes: 7 additions & 7 deletions accounts/account.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/internal/apijson"
"github.com/cloudflare/cloudflare-go/internal/apiquery"
"github.com/cloudflare/cloudflare-go/internal/pagination"
"github.com/cloudflare/cloudflare-go/internal/param"
"github.com/cloudflare/cloudflare-go/internal/requestconfig"
"github.com/cloudflare/cloudflare-go/option"
"github.com/cloudflare/cloudflare-go/shared"
"github.com/cloudflare/cloudflare-go/v2/internal/apijson"
"github.com/cloudflare/cloudflare-go/v2/internal/apiquery"
"github.com/cloudflare/cloudflare-go/v2/internal/pagination"
"github.com/cloudflare/cloudflare-go/v2/internal/param"
"github.com/cloudflare/cloudflare-go/v2/internal/requestconfig"
"github.com/cloudflare/cloudflare-go/v2/option"
"github.com/cloudflare/cloudflare-go/v2/shared"
)

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

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

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

type Error = apierror.Error
Expand Down
14 changes: 7 additions & 7 deletions accounts/member.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/internal/apijson"
"github.com/cloudflare/cloudflare-go/internal/apiquery"
"github.com/cloudflare/cloudflare-go/internal/pagination"
"github.com/cloudflare/cloudflare-go/internal/param"
"github.com/cloudflare/cloudflare-go/internal/requestconfig"
"github.com/cloudflare/cloudflare-go/option"
"github.com/cloudflare/cloudflare-go/shared"
"github.com/cloudflare/cloudflare-go/v2/internal/apijson"
"github.com/cloudflare/cloudflare-go/v2/internal/apiquery"
"github.com/cloudflare/cloudflare-go/v2/internal/pagination"
"github.com/cloudflare/cloudflare-go/v2/internal/param"
"github.com/cloudflare/cloudflare-go/v2/internal/requestconfig"
"github.com/cloudflare/cloudflare-go/v2/option"
"github.com/cloudflare/cloudflare-go/v2/shared"
)

// MemberService contains methods and other services that help with interacting
Expand Down
10 changes: 5 additions & 5 deletions accounts/member_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"
"github.com/cloudflare/cloudflare-go/accounts"
"github.com/cloudflare/cloudflare-go/internal/testutil"
"github.com/cloudflare/cloudflare-go/option"
"github.com/cloudflare/cloudflare-go/shared"
"github.com/cloudflare/cloudflare-go/v2"
"github.com/cloudflare/cloudflare-go/v2/accounts"
"github.com/cloudflare/cloudflare-go/v2/internal/testutil"
"github.com/cloudflare/cloudflare-go/v2/option"
"github.com/cloudflare/cloudflare-go/v2/shared"
)

func TestMemberNewWithOptionalParams(t *testing.T) {
Expand Down
12 changes: 6 additions & 6 deletions accounts/role.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ import (
"fmt"
"net/http"

"github.com/cloudflare/cloudflare-go/internal/apijson"
"github.com/cloudflare/cloudflare-go/internal/pagination"
"github.com/cloudflare/cloudflare-go/internal/param"
"github.com/cloudflare/cloudflare-go/internal/requestconfig"
"github.com/cloudflare/cloudflare-go/option"
"github.com/cloudflare/cloudflare-go/shared"
"github.com/cloudflare/cloudflare-go/v2/internal/apijson"
"github.com/cloudflare/cloudflare-go/v2/internal/pagination"
"github.com/cloudflare/cloudflare-go/v2/internal/param"
"github.com/cloudflare/cloudflare-go/v2/internal/requestconfig"
"github.com/cloudflare/cloudflare-go/v2/option"
"github.com/cloudflare/cloudflare-go/v2/shared"
)

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

func TestRoleList(t *testing.T) {
Expand Down
10 changes: 5 additions & 5 deletions accounts/subscription.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/internal/apijson"
"github.com/cloudflare/cloudflare-go/internal/param"
"github.com/cloudflare/cloudflare-go/internal/requestconfig"
"github.com/cloudflare/cloudflare-go/option"
"github.com/cloudflare/cloudflare-go/shared"
"github.com/cloudflare/cloudflare-go/v2/internal/apijson"
"github.com/cloudflare/cloudflare-go/v2/internal/param"
"github.com/cloudflare/cloudflare-go/v2/internal/requestconfig"
"github.com/cloudflare/cloudflare-go/v2/option"
"github.com/cloudflare/cloudflare-go/v2/shared"
)

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

func TestSubscriptionNewWithOptionalParams(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion acm/acm.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
package acm

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

// ACMService contains methods and other services that help with interacting with
Expand Down
4 changes: 2 additions & 2 deletions acm/aliases.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
package acm

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

type Error = apierror.Error
Expand Down
10 changes: 5 additions & 5 deletions acm/totaltls.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/internal/apijson"
"github.com/cloudflare/cloudflare-go/internal/param"
"github.com/cloudflare/cloudflare-go/internal/requestconfig"
"github.com/cloudflare/cloudflare-go/option"
"github.com/cloudflare/cloudflare-go/shared"
"github.com/cloudflare/cloudflare-go/v2/internal/apijson"
"github.com/cloudflare/cloudflare-go/v2/internal/param"
"github.com/cloudflare/cloudflare-go/v2/internal/requestconfig"
"github.com/cloudflare/cloudflare-go/v2/option"
"github.com/cloudflare/cloudflare-go/v2/shared"
)

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

func TestTotalTLSNewWithOptionalParams(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion addressing/addressing.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
package addressing

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

// AddressingService contains methods and other services that help with interacting
Expand Down
12 changes: 6 additions & 6 deletions addressing/addressmap.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ import (
"net/http"
"time"

"github.com/cloudflare/cloudflare-go/internal/apijson"
"github.com/cloudflare/cloudflare-go/internal/pagination"
"github.com/cloudflare/cloudflare-go/internal/param"
"github.com/cloudflare/cloudflare-go/internal/requestconfig"
"github.com/cloudflare/cloudflare-go/option"
"github.com/cloudflare/cloudflare-go/shared"
"github.com/cloudflare/cloudflare-go/v2/internal/apijson"
"github.com/cloudflare/cloudflare-go/v2/internal/pagination"
"github.com/cloudflare/cloudflare-go/v2/internal/param"
"github.com/cloudflare/cloudflare-go/v2/internal/requestconfig"
"github.com/cloudflare/cloudflare-go/v2/option"
"github.com/cloudflare/cloudflare-go/v2/shared"
)

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

func TestAddressMapNewWithOptionalParams(t *testing.T) {
Expand Down
10 changes: 5 additions & 5 deletions addressing/addressmapaccount.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/internal/apijson"
"github.com/cloudflare/cloudflare-go/internal/param"
"github.com/cloudflare/cloudflare-go/internal/requestconfig"
"github.com/cloudflare/cloudflare-go/option"
"github.com/cloudflare/cloudflare-go/shared"
"github.com/cloudflare/cloudflare-go/v2/internal/apijson"
"github.com/cloudflare/cloudflare-go/v2/internal/param"
"github.com/cloudflare/cloudflare-go/v2/internal/requestconfig"
"github.com/cloudflare/cloudflare-go/v2/option"
"github.com/cloudflare/cloudflare-go/v2/shared"
)

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

func TestAddressMapAccountUpdate(t *testing.T) {
Expand Down
10 changes: 5 additions & 5 deletions addressing/addressmapip.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/internal/apijson"
"github.com/cloudflare/cloudflare-go/internal/param"
"github.com/cloudflare/cloudflare-go/internal/requestconfig"
"github.com/cloudflare/cloudflare-go/option"
"github.com/cloudflare/cloudflare-go/shared"
"github.com/cloudflare/cloudflare-go/v2/internal/apijson"
"github.com/cloudflare/cloudflare-go/v2/internal/param"
"github.com/cloudflare/cloudflare-go/v2/internal/requestconfig"
"github.com/cloudflare/cloudflare-go/v2/option"
"github.com/cloudflare/cloudflare-go/v2/shared"
)

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

func TestAddressMapIPUpdate(t *testing.T) {
Expand Down
10 changes: 5 additions & 5 deletions addressing/addressmapzone.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/internal/apijson"
"github.com/cloudflare/cloudflare-go/internal/param"
"github.com/cloudflare/cloudflare-go/internal/requestconfig"
"github.com/cloudflare/cloudflare-go/option"
"github.com/cloudflare/cloudflare-go/shared"
"github.com/cloudflare/cloudflare-go/v2/internal/apijson"
"github.com/cloudflare/cloudflare-go/v2/internal/param"
"github.com/cloudflare/cloudflare-go/v2/internal/requestconfig"
"github.com/cloudflare/cloudflare-go/v2/option"
"github.com/cloudflare/cloudflare-go/v2/shared"
)

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

0 comments on commit 7c5368d

Please sign in to comment.