Skip to content

Commit cef2db7

Browse files
authored
Merge branch 'master' into fix_warning_golang
2 parents 6be856f + 1d18128 commit cef2db7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+1420
-1047
lines changed

.github/workflows/documentation.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,3 +65,4 @@ jobs:
6565
go-version: ${{ env.GO_VERSION }}
6666
- uses: hashicorp/setup-terraform@v3
6767
- run: go tool tfplugindocs validate
68+
- run: go tool tfplugindocs generate

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
# in `goreleaser` to indicate this is being used in a non-interactive mode.
1111
#
1212
name: release
13+
permissions:
14+
contents: write
1315
on:
1416
push:
1517
tags:

.github/workflows/tfproviderlint.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ jobs:
2121
run: go install github.com/bflad/tfproviderlint/cmd/tfproviderlint
2222
- name: Run tfproviderlint
2323
run: make tfproviderlint
24+
- name: Run tfproviderlintx
25+
run: make tfproviderlintx
2426
tfproviderdocs:
2527
runs-on: ubuntu-latest
2628
steps:

GNUmakefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,6 @@ tfproviderlint:
6060

6161
tfproviderdocs:
6262
go tool tfproviderdocs check -provider-name scaleway -enable-contents-check
63+
64+
tfproviderlintx:
65+
go tool tfproviderlintx -XR001=false -XS002=false ./...

docs/resources/instance_server.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,8 +295,13 @@ In addition to all arguments above, the following attributes are exported:
295295
- `private_ip` - The Scaleway internal IP address of the server (Deprecated use [ipam_ip datasource](../data-sources/ipam_ip.md#instance-private-network-ip) instead).
296296
- `public_ip` - The public IP address of the server (Deprecated use `public_ips` instead).
297297
- `public_ips` - The list of public IPs of the server.
298-
- `id` - The ID of the IP
299-
- `address` - The address of the IP
298+
- `id` - The ID of the IP.
299+
- `address` - The address of the IP.
300+
- `gateway` - The IP of the Gateway associated with the IP.
301+
- `netmask` - The CIDR netmask of the IP.
302+
- `family` - The IP address' family.
303+
- `dynamic` - Whether the IP is dynamic.
304+
- `provisioning_mode` - The provisioning mode of the IP
300305
- `ipv6_address` - The default ipv6 address routed to the server. ( Only set when enable_ipv6 is set to true )
301306
Deprecated: Please use a scaleway_instance_ip with a `routed_ipv6` type.
302307
- `ipv6_gateway` - The ipv6 gateway address. ( Only set when enable_ipv6 is set to true )

go.mod

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ require (
176176
tool (
177177
github.com/bflad/tfproviderdocs
178178
github.com/bflad/tfproviderlint/cmd/tfproviderlint
179+
github.com/bflad/tfproviderlint/cmd/tfproviderlintx
179180
github.com/hashicorp/terraform-plugin-docs/cmd/tfplugindocs
180181
github.com/katbyte/terrafmt
181182
)

internal/services/baremetal/server.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,9 @@ If this behaviour is wanted, please set 'reinstall_on_ssh_key_changes' argument
185185
Elem: ResourceServerIP(),
186186
},
187187
"domain": {
188-
Type: schema.TypeString,
189-
Computed: true,
188+
Type: schema.TypeString,
189+
Description: "Domain associated with the server",
190+
Computed: true,
190191
},
191192
"options": {
192193
Type: schema.TypeSet,

internal/services/billing/consumption_data_source.go

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,9 @@ func DataSourceConsumptions() *schema.Resource {
2020
"organization_id": account.OrganizationIDSchema(),
2121
"project_id": account.ProjectIDSchema(),
2222
"consumptions": {
23-
Type: schema.TypeList,
24-
Computed: true,
23+
Type: schema.TypeList,
24+
Description: "List of the consumptions.",
25+
Computed: true,
2526
Elem: &schema.Resource{
2627
Schema: map[string]*schema.Schema{
2728
"value": {
@@ -63,8 +64,9 @@ func DataSourceConsumptions() *schema.Resource {
6364
},
6465
},
6566
"updated_at": {
66-
Computed: true,
67-
Type: schema.TypeString,
67+
Computed: true,
68+
Description: "Date and time when the consumption was updated",
69+
Type: schema.TypeString,
6870
},
6971
},
7072
}

internal/services/billing/invoices_data_source.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,9 @@ func DataSourceInvoices() *schema.Resource {
3434
Description: "The invoice type. It can either be `periodic` or `purchase`",
3535
},
3636
"invoices": {
37-
Type: schema.TypeList,
38-
Computed: true,
37+
Type: schema.TypeList,
38+
Description: "List of invoices",
39+
Computed: true,
3940
Elem: &schema.Resource{
4041
Schema: map[string]*schema.Schema{
4142
"id": {

internal/services/container/domain.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ func ResourceDomain() *schema.Resource {
2626
Timeouts: &schema.ResourceTimeout{
2727
Create: schema.DefaultTimeout(defaultContainerDomainTimeout),
2828
Read: schema.DefaultTimeout(defaultContainerDomainTimeout),
29-
Update: schema.DefaultTimeout(defaultContainerDomainTimeout),
3029
Delete: schema.DefaultTimeout(defaultContainerDomainTimeout),
3130
Default: schema.DefaultTimeout(defaultContainerDomainTimeout),
3231
},

0 commit comments

Comments
 (0)