Skip to content

Commit

Permalink
Update to cloudscale-go-sdk v4.0.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
alakae committed Oct 24, 2023
1 parent b66ca6f commit b68b391
Show file tree
Hide file tree
Showing 232 changed files with 18,856 additions and 3,998 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@ go mod vendor

Use the following commands to switch to a local version of the go-sdk and back:
```sh
go mod edit -replace "github.com/cloudscale-ch/cloudscale-go-sdk/v3=../cloudscale-go-sdk/"
go mod edit -replace "github.com/cloudscale-ch/cloudscale-go-sdk/v4=../cloudscale-go-sdk/"
go mod vendor
git commit -m "drop: Use local version of cloudscale-go-sdk"
```
```sh
go mod edit -dropreplace "github.com/cloudscale-ch/cloudscale-go-sdk/v3"
go mod edit -dropreplace "github.com/cloudscale-ch/cloudscale-go-sdk/v4"
go mod vendor
```

Expand Down
2 changes: 1 addition & 1 deletion cloudscale/config.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package cloudscale

import (
"github.com/cloudscale-ch/cloudscale-go-sdk/v3"
"github.com/cloudscale-ch/cloudscale-go-sdk/v4"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/logging"
"golang.org/x/oauth2"
)
Expand Down
2 changes: 1 addition & 1 deletion cloudscale/datasource_cloudscale_custom_image.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package cloudscale
import (
"context"

"github.com/cloudscale-ch/cloudscale-go-sdk/v3"
"github.com/cloudscale-ch/cloudscale-go-sdk/v4"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
)

Expand Down
2 changes: 1 addition & 1 deletion cloudscale/datasource_cloudscale_custom_image_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"regexp"
"testing"

"github.com/cloudscale-ch/cloudscale-go-sdk/v3"
"github.com/cloudscale-ch/cloudscale-go-sdk/v4"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/acctest"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
)
Expand Down
2 changes: 1 addition & 1 deletion cloudscale/datasource_cloudscale_floating_ip.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package cloudscale
import (
"context"

"github.com/cloudscale-ch/cloudscale-go-sdk/v3"
"github.com/cloudscale-ch/cloudscale-go-sdk/v4"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
)

Expand Down
2 changes: 1 addition & 1 deletion cloudscale/datasource_cloudscale_floating_ip_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"regexp"
"testing"

"github.com/cloudscale-ch/cloudscale-go-sdk/v3"
"github.com/cloudscale-ch/cloudscale-go-sdk/v4"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/acctest"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
)
Expand Down
2 changes: 1 addition & 1 deletion cloudscale/datasource_cloudscale_load_balancer.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package cloudscale

import (
"context"
"github.com/cloudscale-ch/cloudscale-go-sdk/v3"
"github.com/cloudscale-ch/cloudscale-go-sdk/v4"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package cloudscale

import (
"context"
"github.com/cloudscale-ch/cloudscale-go-sdk/v3"
"github.com/cloudscale-ch/cloudscale-go-sdk/v4"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package cloudscale

import (
"fmt"
"github.com/cloudscale-ch/cloudscale-go-sdk/v3"
"github.com/cloudscale-ch/cloudscale-go-sdk/v4"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/acctest"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
"regexp"
Expand Down
2 changes: 1 addition & 1 deletion cloudscale/datasource_cloudscale_load_balancer_listener.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package cloudscale

import (
"context"
"github.com/cloudscale-ch/cloudscale-go-sdk/v3"
"github.com/cloudscale-ch/cloudscale-go-sdk/v4"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package cloudscale

import (
"fmt"
"github.com/cloudscale-ch/cloudscale-go-sdk/v3"
"github.com/cloudscale-ch/cloudscale-go-sdk/v4"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/acctest"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
"regexp"
Expand Down
2 changes: 1 addition & 1 deletion cloudscale/datasource_cloudscale_load_balancer_pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package cloudscale

import (
"context"
"github.com/cloudscale-ch/cloudscale-go-sdk/v3"
"github.com/cloudscale-ch/cloudscale-go-sdk/v4"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package cloudscale

import (
"context"
"github.com/cloudscale-ch/cloudscale-go-sdk/v3"
"github.com/cloudscale-ch/cloudscale-go-sdk/v4"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package cloudscale

import (
"fmt"
"github.com/cloudscale-ch/cloudscale-go-sdk/v3"
"github.com/cloudscale-ch/cloudscale-go-sdk/v4"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/acctest"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
"regexp"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package cloudscale

import (
"fmt"
"github.com/cloudscale-ch/cloudscale-go-sdk/v3"
"github.com/cloudscale-ch/cloudscale-go-sdk/v4"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/acctest"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
"regexp"
Expand Down
2 changes: 1 addition & 1 deletion cloudscale/datasource_cloudscale_load_balancer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package cloudscale

import (
"fmt"
"github.com/cloudscale-ch/cloudscale-go-sdk/v3"
"github.com/cloudscale-ch/cloudscale-go-sdk/v4"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/acctest"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
"regexp"
Expand Down
2 changes: 1 addition & 1 deletion cloudscale/datasource_cloudscale_network.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package cloudscale
import (
"context"

"github.com/cloudscale-ch/cloudscale-go-sdk/v3"
"github.com/cloudscale-ch/cloudscale-go-sdk/v4"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
)

Expand Down
2 changes: 1 addition & 1 deletion cloudscale/datasource_cloudscale_network_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"regexp"
"testing"

"github.com/cloudscale-ch/cloudscale-go-sdk/v3"
"github.com/cloudscale-ch/cloudscale-go-sdk/v4"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/acctest"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
)
Expand Down
2 changes: 1 addition & 1 deletion cloudscale/datasource_cloudscale_objects_user.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package cloudscale
import (
"context"

"github.com/cloudscale-ch/cloudscale-go-sdk/v3"
"github.com/cloudscale-ch/cloudscale-go-sdk/v4"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
)

Expand Down
2 changes: 1 addition & 1 deletion cloudscale/datasource_cloudscale_objects_user_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"regexp"
"testing"

"github.com/cloudscale-ch/cloudscale-go-sdk/v3"
"github.com/cloudscale-ch/cloudscale-go-sdk/v4"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/acctest"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
)
Expand Down
2 changes: 1 addition & 1 deletion cloudscale/datasource_cloudscale_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package cloudscale
import (
"context"

"github.com/cloudscale-ch/cloudscale-go-sdk/v3"
"github.com/cloudscale-ch/cloudscale-go-sdk/v4"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
)

Expand Down
2 changes: 1 addition & 1 deletion cloudscale/datasource_cloudscale_server_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package cloudscale
import (
"context"

"github.com/cloudscale-ch/cloudscale-go-sdk/v3"
"github.com/cloudscale-ch/cloudscale-go-sdk/v4"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
)

Expand Down
2 changes: 1 addition & 1 deletion cloudscale/datasource_cloudscale_server_group_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"regexp"
"testing"

"github.com/cloudscale-ch/cloudscale-go-sdk/v3"
"github.com/cloudscale-ch/cloudscale-go-sdk/v4"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/acctest"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
)
Expand Down
2 changes: 1 addition & 1 deletion cloudscale/datasource_cloudscale_server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"regexp"
"testing"

"github.com/cloudscale-ch/cloudscale-go-sdk/v3"
"github.com/cloudscale-ch/cloudscale-go-sdk/v4"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/acctest"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
)
Expand Down
2 changes: 1 addition & 1 deletion cloudscale/datasource_cloudscale_subnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package cloudscale
import (
"context"

"github.com/cloudscale-ch/cloudscale-go-sdk/v3"
"github.com/cloudscale-ch/cloudscale-go-sdk/v4"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
)

Expand Down
2 changes: 1 addition & 1 deletion cloudscale/datasource_cloudscale_subnet_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"regexp"
"testing"

"github.com/cloudscale-ch/cloudscale-go-sdk/v3"
"github.com/cloudscale-ch/cloudscale-go-sdk/v4"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/acctest"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
)
Expand Down
2 changes: 1 addition & 1 deletion cloudscale/datasource_cloudscale_volume.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package cloudscale
import (
"context"

"github.com/cloudscale-ch/cloudscale-go-sdk/v3"
"github.com/cloudscale-ch/cloudscale-go-sdk/v4"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
)

Expand Down
2 changes: 1 addition & 1 deletion cloudscale/datasource_cloudscale_volume_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"regexp"
"testing"

"github.com/cloudscale-ch/cloudscale-go-sdk/v3"
"github.com/cloudscale-ch/cloudscale-go-sdk/v4"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/acctest"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
)
Expand Down
2 changes: 1 addition & 1 deletion cloudscale/provider_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"context"
"strconv"

"github.com/cloudscale-ch/cloudscale-go-sdk/v3"
"github.com/cloudscale-ch/cloudscale-go-sdk/v4"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/v2/terraform"
Expand Down
2 changes: 1 addition & 1 deletion cloudscale/resource_cloudscale_custom_image.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"math"
"time"

"github.com/cloudscale-ch/cloudscale-go-sdk/v3"
"github.com/cloudscale-ch/cloudscale-go-sdk/v4"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
)

Expand Down
2 changes: 1 addition & 1 deletion cloudscale/resource_cloudscale_custom_image_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"strings"
"testing"

"github.com/cloudscale-ch/cloudscale-go-sdk/v3"
"github.com/cloudscale-ch/cloudscale-go-sdk/v4"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/acctest"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/v2/terraform"
Expand Down
2 changes: 1 addition & 1 deletion cloudscale/resource_cloudscale_floating_ip.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"log"

"github.com/cloudscale-ch/cloudscale-go-sdk/v3"
"github.com/cloudscale-ch/cloudscale-go-sdk/v4"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
)

Expand Down
2 changes: 1 addition & 1 deletion cloudscale/resource_cloudscale_floating_ip_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"regexp"
"testing"

"github.com/cloudscale-ch/cloudscale-go-sdk/v3"
"github.com/cloudscale-ch/cloudscale-go-sdk/v4"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/acctest"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/v2/terraform"
Expand Down
2 changes: 1 addition & 1 deletion cloudscale/resource_cloudscale_load_balancer.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package cloudscale
import (
"context"
"fmt"
"github.com/cloudscale-ch/cloudscale-go-sdk/v3"
"github.com/cloudscale-ch/cloudscale-go-sdk/v4"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
"log"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package cloudscale
import (
"context"
"fmt"
"github.com/cloudscale-ch/cloudscale-go-sdk/v3"
"github.com/cloudscale-ch/cloudscale-go-sdk/v4"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
"log"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package cloudscale
import (
"context"
"fmt"
"github.com/cloudscale-ch/cloudscale-go-sdk/v3"
"github.com/cloudscale-ch/cloudscale-go-sdk/v4"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/acctest"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/v2/terraform"
Expand Down
2 changes: 1 addition & 1 deletion cloudscale/resource_cloudscale_load_balancer_listener.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package cloudscale
import (
"context"
"fmt"
"github.com/cloudscale-ch/cloudscale-go-sdk/v3"
"github.com/cloudscale-ch/cloudscale-go-sdk/v4"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
"log"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package cloudscale

import (
"fmt"
"github.com/cloudscale-ch/cloudscale-go-sdk/v3"
"github.com/cloudscale-ch/cloudscale-go-sdk/v4"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/acctest"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/v2/terraform"
Expand Down
2 changes: 1 addition & 1 deletion cloudscale/resource_cloudscale_load_balancer_pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package cloudscale
import (
"context"
"fmt"
"github.com/cloudscale-ch/cloudscale-go-sdk/v3"
"github.com/cloudscale-ch/cloudscale-go-sdk/v4"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
"log"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package cloudscale
import (
"context"
"fmt"
"github.com/cloudscale-ch/cloudscale-go-sdk/v3"
"github.com/cloudscale-ch/cloudscale-go-sdk/v4"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
"log"
"strings"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package cloudscale

import (
"fmt"
"github.com/cloudscale-ch/cloudscale-go-sdk/v3"
"github.com/cloudscale-ch/cloudscale-go-sdk/v4"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/acctest"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/v2/terraform"
Expand Down
2 changes: 1 addition & 1 deletion cloudscale/resource_cloudscale_load_balancer_pool_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"regexp"
"testing"

"github.com/cloudscale-ch/cloudscale-go-sdk/v3"
"github.com/cloudscale-ch/cloudscale-go-sdk/v4"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/acctest"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
)
Expand Down
2 changes: 1 addition & 1 deletion cloudscale/resource_cloudscale_load_balancer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"strings"
"testing"

"github.com/cloudscale-ch/cloudscale-go-sdk/v3"
"github.com/cloudscale-ch/cloudscale-go-sdk/v4"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
)

Expand Down
Loading

0 comments on commit b68b391

Please sign in to comment.