Skip to content

Commit 68e32e2

Browse files
committed
bump sdk go
1 parent 286290d commit 68e32e2

File tree

8 files changed

+400
-426
lines changed

8 files changed

+400
-426
lines changed

docs/data-sources/webhosting_offer.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Gets information about a webhosting offer.
1313
# Get info by offer name
1414
data "scaleway_webhosting_offer" "by_name" {
1515
name = "performance"
16+
control_panel = "plesk"
1617
}
1718
1819
# Get info by offer id
@@ -25,6 +26,8 @@ data "scaleway_webhosting_offer" "by_id" {
2526

2627
- `name` - (Optional) The offer name. Only one of `name` and `offer_id` should be specified.
2728

29+
- `control_panel` - (Optional) Name of the control panel (Cpanel or Plesk). This argument is only used when `offer_id` is not specified.
30+
2831
- `offer_id` - (Optional) The offer id. Only one of `name` and `offer_id` should be specified.
2932

3033
- `region` - (Defaults to [provider](../index.md#zone) `region`) The [region](../guides/regions_and_zones.md#zones) in which offer exists.
@@ -34,7 +37,7 @@ data "scaleway_webhosting_offer" "by_id" {
3437
In addition to all arguments above, the following attributes are exported:
3538

3639
- `billing_operation_path` - The unique identifier used for billing.
37-
- `product` - The offer product.
40+
- `product` - (deprecated) The offer product.
3841
- `option` - The product option.
3942
- `email_accounts_quota` - The quota of email accounts.
4043
- `email_storage_quota` - The quota of email storage.
@@ -43,5 +46,23 @@ In addition to all arguments above, the following attributes are exported:
4346
- `support_included` - If support is included.
4447
- `v_cpu` - The number of cores.
4548
- `ram` - The capacity of the memory in GB.
49+
- `offer` - The detailed offer of the hosting.
50+
- `id` - The unique identifier of the offer.
51+
- `name` - The name of the offer.
52+
- `billing_operation_path` - The billing operation identifier for the offer.
53+
- `available` - Indicates if the offer is available.
54+
- `control_panel_name` - The name of the control panel (e.g., Cpanel or Plesk).
55+
- `end_of_life` - Indicates if the offer is deprecated or no longer supported.
56+
- `quota_warning` - Warning information regarding quota limitations.
57+
- `price` - The price of the offer.
58+
- `options` - A list of available options for the offer:
59+
- `id` - The unique identifier of the option.
60+
- `name` - The name of the option.
61+
- `billing_operation_path` - The billing operation identifier for the option.
62+
- `min_value` - The minimum value for the option.
63+
- `current_value` - The current value set for the option.
64+
- `max_value` - The maximum allowed value for the option.
65+
- `quota_warning` - Warning information regarding quota limitations for the option.
66+
- `price` - The price of the option.
4667
- `price` - The offer price.
4768

docs/resources/webhosting.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ For more information, see the [API documentation](https://www.scaleway.com/en/de
1313
```terraform
1414
data "scaleway_webhosting_offer" "by_name" {
1515
name = "lite"
16+
control_panel = "Cpanel"
1617
}
1718
1819
resource "scaleway_webhosting" "main" {
@@ -57,7 +58,7 @@ In addition to all arguments above, the following attributes are exported:
5758
- `dashboard` - The URL of the Dashboard.
5859
- `webmail` - The URL of the Webmail interface.
5960
- `username` - The main hosting cPanel username.
60-
- `organization_id` - The organization ID the hosting is associated with.
61+
- `organization_id` - (Deprecated) The organization ID the hosting is associated with.
6162

6263
## Import
6364

go.mod

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,12 @@ require (
2828
github.com/nats-io/jwt/v2 v2.7.3
2929
github.com/nats-io/nats.go v1.38.0
3030
github.com/robfig/cron/v3 v3.0.1
31-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.32.0.20250206152403-1eed2f2ce9d3
31+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.32.0.20250226134545-32bb2d9f1eee
3232
github.com/stretchr/testify v1.10.0
3333
golang.org/x/crypto v0.32.0
3434
gopkg.in/dnaeon/go-vcr.v3 v3.2.0
3535
)
3636

37-
replace github.com/scaleway/scaleway-sdk-go => /Users/jonathanremy/Desktop/scaleway-sdk-go
38-
3937
require (
4038
github.com/Masterminds/goutils v1.1.1 // indirect
4139
github.com/Masterminds/semver/v3 v3.2.0 // indirect

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,8 @@ github.com/posener/complete v1.2.3 h1:NP0eAhjcjImqslEwo/1hq7gpajME0fTLTezBKDqfXq
280280
github.com/posener/complete v1.2.3/go.mod h1:WZIdtGGp+qx0sLrYKtIRAruyNpv6hFCicSgv7Sy7s/s=
281281
github.com/robfig/cron/v3 v3.0.1 h1:WdRxkvbJztn8LMz/QEvLN5sBU+xKpSqwwUO1Pjr4qDs=
282282
github.com/robfig/cron/v3 v3.0.1/go.mod h1:eQICP3HwyT7UooqI/z+Ov+PtYAWygg1TEWWzGIFLtro=
283+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.32.0.20250226134545-32bb2d9f1eee h1:MMM+KEDnKZ14GVt4de0hslFGYUualLHKYsvf1dCIxM4=
284+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.32.0.20250226134545-32bb2d9f1eee/go.mod h1:792k1RTU+5JeMXm35/e2Wgp71qPH/DmDoZrRc+EFZDk=
283285
github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3 h1:n661drycOFuPLCN3Uc8sB6B/s6Z4t2xvBgU1htSHuq8=
284286
github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3/go.mod h1:A0bzQcvG0E7Rwjx0REVgAGH58e96+X0MeOfepqsbeW4=
285287
github.com/shopspring/decimal v1.2.0 h1:abSATXmQEYyShuxI4/vyW3tV1MrKAJzCZ/0zLUXYbsQ=

internal/services/webhosting/testdata/data-source-offer-basic.cassette.yaml

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

internal/services/webhosting/testdata/data-source-webhosting-basic.cassette.yaml

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

internal/services/webhosting/testdata/webhosting-basic.cassette.yaml

Lines changed: 131 additions & 180 deletions
Large diffs are not rendered by default.

internal/services/webhosting/webhosting_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ func TestAccWebhosting_Basic(t *testing.T) {
2525
Config: `
2626
data "scaleway_webhosting_offer" "by_name" {
2727
name = "lite"
28+
control_panel = "Cpanel"
2829
}
2930
3031
resource "scaleway_webhosting" "main" {

0 commit comments

Comments
 (0)