Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion internal/services/baremetal/offer_data_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@
zonedID := datasource.NewZonedID(offer.ID, zone)
d.SetId(zonedID)
_ = d.Set("offer_id", zonedID)
_ = d.Set("zone", zone)
_ = d.Set("zone", offer.zone)

Check failure on line 207 in internal/services/baremetal/offer_data_source.go

View workflow job for this annotation

GitHub Actions / tests (k8s)

offer.zone undefined (type *"github.com/scaleway/scaleway-sdk-go/api/baremetal/v1".Offer has no field or method zone)

Check failure on line 207 in internal/services/baremetal/offer_data_source.go

View workflow job for this annotation

GitHub Actions / tests (function)

offer.zone undefined (type *"github.com/scaleway/scaleway-sdk-go/api/baremetal/v1".Offer has no field or method zone)

Check failure on line 207 in internal/services/baremetal/offer_data_source.go

View workflow job for this annotation

GitHub Actions / tests (sdb)

offer.zone undefined (type *"github.com/scaleway/scaleway-sdk-go/api/baremetal/v1".Offer has no field or method zone)

Check failure on line 207 in internal/services/baremetal/offer_data_source.go

View workflow job for this annotation

GitHub Actions / tests (cockpit)

offer.zone undefined (type *"github.com/scaleway/scaleway-sdk-go/api/baremetal/v1".Offer has no field or method zone)

Check failure on line 207 in internal/services/baremetal/offer_data_source.go

View workflow job for this annotation

GitHub Actions / test-scwconfig

offer.zone undefined (type *"github.com/scaleway/scaleway-sdk-go/api/baremetal/v1".Offer has no field or method zone)

Check failure on line 207 in internal/services/baremetal/offer_data_source.go

View workflow job for this annotation

GitHub Actions / tests (lb)

offer.zone undefined (type *"github.com/scaleway/scaleway-sdk-go/api/baremetal/v1".Offer has no field or method zone)

Check failure on line 207 in internal/services/baremetal/offer_data_source.go

View workflow job for this annotation

GitHub Actions / tests (container)

offer.zone undefined (type *"github.com/scaleway/scaleway-sdk-go/api/baremetal/v1".Offer has no field or method zone)

Check failure on line 207 in internal/services/baremetal/offer_data_source.go

View workflow job for this annotation

GitHub Actions / tests (instance)

offer.zone undefined (type *"github.com/scaleway/scaleway-sdk-go/api/baremetal/v1".Offer has no field or method zone)

Check failure on line 207 in internal/services/baremetal/offer_data_source.go

View workflow job for this annotation

GitHub Actions / tests (az)

offer.zone undefined (type *"github.com/scaleway/scaleway-sdk-go/api/baremetal/v1".Offer has no field or method zone)

Check failure on line 207 in internal/services/baremetal/offer_data_source.go

View workflow job for this annotation

GitHub Actions / tests (applesilicon)

offer.zone undefined (type *"github.com/scaleway/scaleway-sdk-go/api/baremetal/v1".Offer has no field or method zone)

Check failure on line 207 in internal/services/baremetal/offer_data_source.go

View workflow job for this annotation

GitHub Actions / tests (iot)

offer.zone undefined (type *"github.com/scaleway/scaleway-sdk-go/api/baremetal/v1".Offer has no field or method zone)

Check failure on line 207 in internal/services/baremetal/offer_data_source.go

View workflow job for this annotation

GitHub Actions / tests (baremetal)

offer.zone undefined (type *"github.com/scaleway/scaleway-sdk-go/api/baremetal/v1".Offer has no field or method zone)

Check failure on line 207 in internal/services/baremetal/offer_data_source.go

View workflow job for this annotation

GitHub Actions / tests (rdb)

offer.zone undefined (type *"github.com/scaleway/scaleway-sdk-go/api/baremetal/v1".Offer has no field or method zone)

Check failure on line 207 in internal/services/baremetal/offer_data_source.go

View workflow job for this annotation

GitHub Actions / tests (iam)

offer.zone undefined (type *"github.com/scaleway/scaleway-sdk-go/api/baremetal/v1".Offer has no field or method zone)

Check failure on line 207 in internal/services/baremetal/offer_data_source.go

View workflow job for this annotation

GitHub Actions / tests (marketplace)

offer.zone undefined (type *"github.com/scaleway/scaleway-sdk-go/api/baremetal/v1".Offer has no field or method zone)

Check failure on line 207 in internal/services/baremetal/offer_data_source.go

View workflow job for this annotation

GitHub Actions / tests (vpc)

offer.zone undefined (type *"github.com/scaleway/scaleway-sdk-go/api/baremetal/v1".Offer has no field or method zone)

Check failure on line 207 in internal/services/baremetal/offer_data_source.go

View workflow job for this annotation

GitHub Actions / tests (block)

offer.zone undefined (type *"github.com/scaleway/scaleway-sdk-go/api/baremetal/v1".Offer has no field or method zone)

Check failure on line 207 in internal/services/baremetal/offer_data_source.go

View workflow job for this annotation

GitHub Actions / tests (billing)

offer.zone undefined (type *"github.com/scaleway/scaleway-sdk-go/api/baremetal/v1".Offer has no field or method zone)

Check failure on line 207 in internal/services/baremetal/offer_data_source.go

View workflow job for this annotation

GitHub Actions / tests (ipam)

offer.zone undefined (type *"github.com/scaleway/scaleway-sdk-go/api/baremetal/v1".Offer has no field or method zone)

Check failure on line 207 in internal/services/baremetal/offer_data_source.go

View workflow job for this annotation

GitHub Actions / tests (account)

offer.zone undefined (type *"github.com/scaleway/scaleway-sdk-go/api/baremetal/v1".Offer has no field or method zone)

Check failure on line 207 in internal/services/baremetal/offer_data_source.go

View workflow job for this annotation

GitHub Actions / tests (object)

offer.zone undefined (type *"github.com/scaleway/scaleway-sdk-go/api/baremetal/v1".Offer has no field or method zone)

Check failure on line 207 in internal/services/baremetal/offer_data_source.go

View workflow job for this annotation

GitHub Actions / tests (vpcgw)

offer.zone undefined (type *"github.com/scaleway/scaleway-sdk-go/api/baremetal/v1".Offer has no field or method zone)

Check failure on line 207 in internal/services/baremetal/offer_data_source.go

View workflow job for this annotation

GitHub Actions / tests (file)

offer.zone undefined (type *"github.com/scaleway/scaleway-sdk-go/api/baremetal/v1".Offer has no field or method zone)

Check failure on line 207 in internal/services/baremetal/offer_data_source.go

View workflow job for this annotation

GitHub Actions / tests (mnq)

offer.zone undefined (type *"github.com/scaleway/scaleway-sdk-go/api/baremetal/v1".Offer has no field or method zone)

Check failure on line 207 in internal/services/baremetal/offer_data_source.go

View workflow job for this annotation

GitHub Actions / tests (webhosting)

offer.zone undefined (type *"github.com/scaleway/scaleway-sdk-go/api/baremetal/v1".Offer has no field or method zone)

Check failure on line 207 in internal/services/baremetal/offer_data_source.go

View workflow job for this annotation

GitHub Actions / tests (jobs)

offer.zone undefined (type *"github.com/scaleway/scaleway-sdk-go/api/baremetal/v1".Offer has no field or method zone)

Check failure on line 207 in internal/services/baremetal/offer_data_source.go

View workflow job for this annotation

GitHub Actions / tests (mongodb)

offer.zone undefined (type *"github.com/scaleway/scaleway-sdk-go/api/baremetal/v1".Offer has no field or method zone)

Check failure on line 207 in internal/services/baremetal/offer_data_source.go

View workflow job for this annotation

GitHub Actions / tests (domain)

offer.zone undefined (type *"github.com/scaleway/scaleway-sdk-go/api/baremetal/v1".Offer has no field or method zone)

Check failure on line 207 in internal/services/baremetal/offer_data_source.go

View workflow job for this annotation

GitHub Actions / tests (redis)

offer.zone undefined (type *"github.com/scaleway/scaleway-sdk-go/api/baremetal/v1".Offer has no field or method zone)

Check failure on line 207 in internal/services/baremetal/offer_data_source.go

View workflow job for this annotation

GitHub Actions / tests (registry)

offer.zone undefined (type *"github.com/scaleway/scaleway-sdk-go/api/baremetal/v1".Offer has no field or method zone)

Check failure on line 207 in internal/services/baremetal/offer_data_source.go

View workflow job for this annotation

GitHub Actions / tests (inference)

offer.zone undefined (type *"github.com/scaleway/scaleway-sdk-go/api/baremetal/v1".Offer has no field or method zone)

Check failure on line 207 in internal/services/baremetal/offer_data_source.go

View workflow job for this annotation

GitHub Actions / tests (tem)

offer.zone undefined (type *"github.com/scaleway/scaleway-sdk-go/api/baremetal/v1".Offer has no field or method zone)

Check failure on line 207 in internal/services/baremetal/offer_data_source.go

View workflow job for this annotation

GitHub Actions / tests (secret)

offer.zone undefined (type *"github.com/scaleway/scaleway-sdk-go/api/baremetal/v1".Offer has no field or method zone)

Check failure on line 207 in internal/services/baremetal/offer_data_source.go

View workflow job for this annotation

GitHub Actions / tests (flexibleip)

offer.zone undefined (type *"github.com/scaleway/scaleway-sdk-go/api/baremetal/v1".Offer has no field or method zone)
_ = d.Set("name", offer.Name)
_ = d.Set("subscription_period", offer.SubscriptionPeriod)
_ = d.Set("include_disabled", !offer.Enable)
Expand Down
1 change: 1 addition & 0 deletions internal/services/inference/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ func ResourceModelRead(ctx context.Context, d *schema.ResourceData, m any) diag.
_ = d.Set("updated_at", types.FlattenTime(model.UpdatedAt))
_ = d.Set("has_eula", model.HasEula)
_ = d.Set("nodes_support", flattenNodeSupport(model.NodesSupport))
_ = d.Set("region", model.Region.String())

return nil
}
Expand Down
2 changes: 1 addition & 1 deletion internal/services/instance/ip.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ func ResourceInstanceIPRead(ctx context.Context, d *schema.ResourceData, m any)

_ = d.Set("address", address)
_ = d.Set("prefix", prefix)
_ = d.Set("zone", zone)
_ = d.Set("zone", res.IP.Zone.String())
_ = d.Set("organization_id", res.IP.Organization)
_ = d.Set("project_id", res.IP.Project)
_ = d.Set("reverse", res.IP.Reverse)
Expand Down
2 changes: 1 addition & 1 deletion internal/services/instance/placement_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ func ResourceInstancePlacementGroupRead(ctx context.Context, d *schema.ResourceD
}

_ = d.Set("name", res.PlacementGroup.Name)
_ = d.Set("zone", string(zone))
_ = d.Set("zone", res.PlacementGroup.Zone.String())
_ = d.Set("organization_id", res.PlacementGroup.Organization)
_ = d.Set("project_id", res.PlacementGroup.Project)
_ = d.Set("policy_mode", res.PlacementGroup.PolicyMode.String())
Expand Down
2 changes: 1 addition & 1 deletion internal/services/instance/private_nic.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,25 +178,25 @@
return diag.FromErr(err)
}

_ = d.Set("zone", zone)
_ = d.Set("zone", privateNIC.)

Check failure on line 181 in internal/services/instance/private_nic.go

View workflow job for this annotation

GitHub Actions / tests (k8s)

syntax error: unexpected ), expected name or (

Check failure on line 181 in internal/services/instance/private_nic.go

View workflow job for this annotation

GitHub Actions / tests (function)

syntax error: unexpected ), expected name or (

Check failure on line 181 in internal/services/instance/private_nic.go

View workflow job for this annotation

GitHub Actions / tests (sdb)

syntax error: unexpected ), expected name or (

Check failure on line 181 in internal/services/instance/private_nic.go

View workflow job for this annotation

GitHub Actions / tests (cockpit)

syntax error: unexpected ), expected name or (

Check failure on line 181 in internal/services/instance/private_nic.go

View workflow job for this annotation

GitHub Actions / test-scwconfig

syntax error: unexpected ), expected name or (

Check failure on line 181 in internal/services/instance/private_nic.go

View workflow job for this annotation

GitHub Actions / tests (lb)

syntax error: unexpected ), expected name or (

Check failure on line 181 in internal/services/instance/private_nic.go

View workflow job for this annotation

GitHub Actions / tests (container)

syntax error: unexpected ), expected name or (

Check failure on line 181 in internal/services/instance/private_nic.go

View workflow job for this annotation

GitHub Actions / tests (instance)

syntax error: unexpected ), expected name or (

Check failure on line 181 in internal/services/instance/private_nic.go

View workflow job for this annotation

GitHub Actions / tests (az)

syntax error: unexpected ), expected name or (

Check failure on line 181 in internal/services/instance/private_nic.go

View workflow job for this annotation

GitHub Actions / tests (applesilicon)

syntax error: unexpected ), expected name or (

Check failure on line 181 in internal/services/instance/private_nic.go

View workflow job for this annotation

GitHub Actions / tests (iot)

syntax error: unexpected ), expected name or (

Check failure on line 181 in internal/services/instance/private_nic.go

View workflow job for this annotation

GitHub Actions / tests (baremetal)

syntax error: unexpected ), expected name or (

Check failure on line 181 in internal/services/instance/private_nic.go

View workflow job for this annotation

GitHub Actions / tests (rdb)

syntax error: unexpected ), expected name or (

Check failure on line 181 in internal/services/instance/private_nic.go

View workflow job for this annotation

GitHub Actions / tests

expected selector or type assertion, found ')'

Check failure on line 181 in internal/services/instance/private_nic.go

View workflow job for this annotation

GitHub Actions / tests (iam)

syntax error: unexpected ), expected name or (

Check failure on line 181 in internal/services/instance/private_nic.go

View workflow job for this annotation

GitHub Actions / tfproviderlint

missing ',' before newline in argument list

Check failure on line 181 in internal/services/instance/private_nic.go

View workflow job for this annotation

GitHub Actions / tfproviderlint

expected selector or type assertion, found ')'

Check failure on line 181 in internal/services/instance/private_nic.go

View workflow job for this annotation

GitHub Actions / tfproviderlint

syntax error: unexpected ), expected name or (

Check failure on line 181 in internal/services/instance/private_nic.go

View workflow job for this annotation

GitHub Actions / tests (marketplace)

syntax error: unexpected ), expected name or (

Check failure on line 181 in internal/services/instance/private_nic.go

View workflow job for this annotation

GitHub Actions / tests (vpc)

syntax error: unexpected ), expected name or (

Check failure on line 181 in internal/services/instance/private_nic.go

View workflow job for this annotation

GitHub Actions / tests (block)

syntax error: unexpected ), expected name or (

Check failure on line 181 in internal/services/instance/private_nic.go

View workflow job for this annotation

GitHub Actions / tests (billing)

syntax error: unexpected ), expected name or (

Check failure on line 181 in internal/services/instance/private_nic.go

View workflow job for this annotation

GitHub Actions / tests (ipam)

syntax error: unexpected ), expected name or (

Check failure on line 181 in internal/services/instance/private_nic.go

View workflow job for this annotation

GitHub Actions / tests (account)

syntax error: unexpected ), expected name or (

Check failure on line 181 in internal/services/instance/private_nic.go

View workflow job for this annotation

GitHub Actions / tests (object)

syntax error: unexpected ), expected name or (

Check failure on line 181 in internal/services/instance/private_nic.go

View workflow job for this annotation

GitHub Actions / tests (vpcgw)

syntax error: unexpected ), expected name or (

Check failure on line 181 in internal/services/instance/private_nic.go

View workflow job for this annotation

GitHub Actions / tests (file)

syntax error: unexpected ), expected name or (

Check failure on line 181 in internal/services/instance/private_nic.go

View workflow job for this annotation

GitHub Actions / tests (mnq)

syntax error: unexpected ), expected name or (

Check failure on line 181 in internal/services/instance/private_nic.go

View workflow job for this annotation

GitHub Actions / tests (webhosting)

syntax error: unexpected ), expected name or (

Check failure on line 181 in internal/services/instance/private_nic.go

View workflow job for this annotation

GitHub Actions / tests (jobs)

syntax error: unexpected ), expected name or (

Check failure on line 181 in internal/services/instance/private_nic.go

View workflow job for this annotation

GitHub Actions / tests (mongodb)

syntax error: unexpected ), expected name or (

Check failure on line 181 in internal/services/instance/private_nic.go

View workflow job for this annotation

GitHub Actions / tests (domain)

syntax error: unexpected ), expected name or (

Check failure on line 181 in internal/services/instance/private_nic.go

View workflow job for this annotation

GitHub Actions / tests (redis)

syntax error: unexpected ), expected name or (

Check failure on line 181 in internal/services/instance/private_nic.go

View workflow job for this annotation

GitHub Actions / tests (registry)

syntax error: unexpected ), expected name or (

Check failure on line 181 in internal/services/instance/private_nic.go

View workflow job for this annotation

GitHub Actions / tests (inference)

syntax error: unexpected ), expected name or (

Check failure on line 181 in internal/services/instance/private_nic.go

View workflow job for this annotation

GitHub Actions / tests (tem)

syntax error: unexpected ), expected name or (

Check failure on line 181 in internal/services/instance/private_nic.go

View workflow job for this annotation

GitHub Actions / tests (secret)

syntax error: unexpected ), expected name or (

Check failure on line 181 in internal/services/instance/private_nic.go

View workflow job for this annotation

GitHub Actions / tests (flexibleip)

syntax error: unexpected ), expected name or (
_ = d.Set("server_id", zonal.NewID(zone, privateNIC.ServerID).String())

Check failure on line 182 in internal/services/instance/private_nic.go

View workflow job for this annotation

GitHub Actions / tests

expected '==', found '='

Check failure on line 182 in internal/services/instance/private_nic.go

View workflow job for this annotation

GitHub Actions / tfproviderlint

missing ',' before newline in argument list

Check failure on line 182 in internal/services/instance/private_nic.go

View workflow job for this annotation

GitHub Actions / tfproviderlint

expected '==', found '='
_ = d.Set("private_network_id", regional.NewIDString(fetchRegion, privateNIC.PrivateNetworkID))

Check failure on line 183 in internal/services/instance/private_nic.go

View workflow job for this annotation

GitHub Actions / tests

expected '==', found '='

Check failure on line 183 in internal/services/instance/private_nic.go

View workflow job for this annotation

GitHub Actions / tfproviderlint

missing ',' before newline in argument list

Check failure on line 183 in internal/services/instance/private_nic.go

View workflow job for this annotation

GitHub Actions / tfproviderlint

expected '==', found '='
_ = d.Set("mac_address", privateNIC.MacAddress)

Check failure on line 184 in internal/services/instance/private_nic.go

View workflow job for this annotation

GitHub Actions / tests

expected '==', found '='

Check failure on line 184 in internal/services/instance/private_nic.go

View workflow job for this annotation

GitHub Actions / tfproviderlint

missing ',' before newline in argument list

Check failure on line 184 in internal/services/instance/private_nic.go

View workflow job for this annotation

GitHub Actions / tfproviderlint

expected '==', found '='

if len(privateNIC.Tags) > 0 {

Check failure on line 186 in internal/services/instance/private_nic.go

View workflow job for this annotation

GitHub Actions / tests

expected operand, found 'if'

Check failure on line 186 in internal/services/instance/private_nic.go

View workflow job for this annotation

GitHub Actions / tfproviderlint

expected operand, found 'if'
_ = d.Set("tags", privateNIC.Tags)

Check failure on line 187 in internal/services/instance/private_nic.go

View workflow job for this annotation

GitHub Actions / tests

expected '==', found '='
}

Check failure on line 188 in internal/services/instance/private_nic.go

View workflow job for this annotation

GitHub Actions / tests

expected operand, found '}'

// Get private NIC's private IPs if possible
diags := diag.Diagnostics{}

region, err := zone.Region()
if err != nil {

Check failure on line 194 in internal/services/instance/private_nic.go

View workflow job for this annotation

GitHub Actions / tests

missing ',' in argument list
return append(diags, diag.Diagnostic{

Check failure on line 195 in internal/services/instance/private_nic.go

View workflow job for this annotation

GitHub Actions / tests

expected operand, found 'return'
Severity: diag.Warning,
Summary: "Unable to get private NIC's private IPs",
Detail: err.Error(),
})

Check failure on line 199 in internal/services/instance/private_nic.go

View workflow job for this annotation

GitHub Actions / tests

missing ',' before newline in composite literal
}

projectID, err := getServerProjectID(ctx, instanceAPI, zone, privateNIC.ServerID)
Expand Down
2 changes: 1 addition & 1 deletion internal/services/instance/security_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ func ResourceInstanceSecurityGroupRead(ctx context.Context, d *schema.ResourceDa
return diag.FromErr(err)
}

_ = d.Set("zone", zone)
_ = d.Set("zone", res.SecurityGroup.Zone.String())
_ = d.Set("organization_id", res.SecurityGroup.Organization)
_ = d.Set("project_id", res.SecurityGroup.Project)
_ = d.Set("name", res.SecurityGroup.Name)
Expand Down
2 changes: 1 addition & 1 deletion internal/services/instance/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,7 @@ func ResourceInstanceServerRead(ctx context.Context, d *schema.ResourceData, m a
}

_ = d.Set("state", state)
_ = d.Set("zone", string(zone))
_ = d.Set("zone", server.Zone.String())
_ = d.Set("name", server.Name)
_ = d.Set("boot_type", server.BootType)

Expand Down
1 change: 1 addition & 0 deletions internal/services/instance/snapshot.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ func ResourceInstanceSnapshotRead(ctx context.Context, d *schema.ResourceData, m
_ = d.Set("created_at", snapshot.Snapshot.CreationDate.Format(time.RFC3339))
_ = d.Set("type", snapshot.Snapshot.VolumeType.String())
_ = d.Set("tags", snapshot.Snapshot.Tags)
_ = d.Set("zone", snapshot.Snapshot.Zone.String())

return nil
}
Expand Down
2 changes: 1 addition & 1 deletion internal/services/instance/volume.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ func ResourceInstanceVolumeRead(ctx context.Context, d *schema.ResourceData, m a
_ = d.Set("name", res.Volume.Name)
_ = d.Set("organization_id", res.Volume.Organization)
_ = d.Set("project_id", res.Volume.Project)
_ = d.Set("zone", string(zone))
_ = d.Set("zone", res.Volume.Zone.String())
_ = d.Set("type", res.Volume.VolumeType.String())
_ = d.Set("tags", res.Volume.Tags)

Expand Down
2 changes: 1 addition & 1 deletion internal/services/iot/device.go
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ func ResourceIotDeviceRead(ctx context.Context, d *schema.ResourceData, m any) d
return diag.FromErr(err)
}

_ = d.Set("name", device.Name)
_ = d.Set("name", device.regName)
_ = d.Set("status", device.Status)
_ = d.Set("hub_id", regional.NewID(region, device.HubID).String())
_ = d.Set("created_at", device.CreatedAt.Format(time.RFC3339))
Expand Down
2 changes: 1 addition & 1 deletion internal/services/iot/hub.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ func ResourceIotHubRead(ctx context.Context, d *schema.ResourceData, m any) diag
return diag.FromErr(err)
}

_ = d.Set("region", string(region))
_ = d.Set("region", response.Region.String())
_ = d.Set("organization_id", response.OrganizationID)
_ = d.Set("project_id", response.ProjectID)
_ = d.Set("name", response.Name)
Expand Down
2 changes: 1 addition & 1 deletion internal/services/iot/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ func ResourceIotNetworkRead(ctx context.Context, d *schema.ResourceData, m any)
_ = d.Set("hub_id", regional.NewID(region, network.HubID).String())
_ = d.Set("created_at", network.CreatedAt.Format(time.RFC3339))
_ = d.Set("topic_prefix", network.TopicPrefix)
_ = d.Set("region", string(region))
_ = d.Set("region", network.string(region))

return nil
}
Expand Down
2 changes: 1 addition & 1 deletion internal/services/iot/routes.go
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@
return diag.FromErr(err)
}

_ = d.Set("region", string(region))
_ = d.Set("region", response.reg string(region))

Check failure on line 275 in internal/services/iot/routes.go

View workflow job for this annotation

GitHub Actions / tests (k8s)

syntax error: unexpected name string in argument list; possibly missing comma or )

Check failure on line 275 in internal/services/iot/routes.go

View workflow job for this annotation

GitHub Actions / tests (function)

syntax error: unexpected name string in argument list; possibly missing comma or )

Check failure on line 275 in internal/services/iot/routes.go

View workflow job for this annotation

GitHub Actions / tests (sdb)

syntax error: unexpected name string in argument list; possibly missing comma or )

Check failure on line 275 in internal/services/iot/routes.go

View workflow job for this annotation

GitHub Actions / tests (cockpit)

syntax error: unexpected name string in argument list; possibly missing comma or )

Check failure on line 275 in internal/services/iot/routes.go

View workflow job for this annotation

GitHub Actions / test-scwconfig

syntax error: unexpected name string in argument list; possibly missing comma or )

Check failure on line 275 in internal/services/iot/routes.go

View workflow job for this annotation

GitHub Actions / tests (lb)

syntax error: unexpected name string in argument list; possibly missing comma or )

Check failure on line 275 in internal/services/iot/routes.go

View workflow job for this annotation

GitHub Actions / tests (container)

syntax error: unexpected name string in argument list; possibly missing comma or )

Check failure on line 275 in internal/services/iot/routes.go

View workflow job for this annotation

GitHub Actions / tests (instance)

syntax error: unexpected name string in argument list; possibly missing comma or )

Check failure on line 275 in internal/services/iot/routes.go

View workflow job for this annotation

GitHub Actions / tests (az)

syntax error: unexpected name string in argument list; possibly missing comma or )

Check failure on line 275 in internal/services/iot/routes.go

View workflow job for this annotation

GitHub Actions / tests (applesilicon)

syntax error: unexpected name string in argument list; possibly missing comma or )

Check failure on line 275 in internal/services/iot/routes.go

View workflow job for this annotation

GitHub Actions / tests (iot)

syntax error: unexpected name string in argument list; possibly missing comma or )

Check failure on line 275 in internal/services/iot/routes.go

View workflow job for this annotation

GitHub Actions / tests (baremetal)

syntax error: unexpected name string in argument list; possibly missing comma or )

Check failure on line 275 in internal/services/iot/routes.go

View workflow job for this annotation

GitHub Actions / tests (rdb)

syntax error: unexpected name string in argument list; possibly missing comma or )

Check failure on line 275 in internal/services/iot/routes.go

View workflow job for this annotation

GitHub Actions / tests (iam)

syntax error: unexpected name string in argument list; possibly missing comma or )

Check failure on line 275 in internal/services/iot/routes.go

View workflow job for this annotation

GitHub Actions / tests (marketplace)

syntax error: unexpected name string in argument list; possibly missing comma or )

Check failure on line 275 in internal/services/iot/routes.go

View workflow job for this annotation

GitHub Actions / tests (vpc)

syntax error: unexpected name string in argument list; possibly missing comma or )

Check failure on line 275 in internal/services/iot/routes.go

View workflow job for this annotation

GitHub Actions / tests (block)

syntax error: unexpected name string in argument list; possibly missing comma or )

Check failure on line 275 in internal/services/iot/routes.go

View workflow job for this annotation

GitHub Actions / tests (billing)

syntax error: unexpected name string in argument list; possibly missing comma or )

Check failure on line 275 in internal/services/iot/routes.go

View workflow job for this annotation

GitHub Actions / tests (ipam)

syntax error: unexpected name string in argument list; possibly missing comma or )

Check failure on line 275 in internal/services/iot/routes.go

View workflow job for this annotation

GitHub Actions / tests (account)

syntax error: unexpected name string in argument list; possibly missing comma or )

Check failure on line 275 in internal/services/iot/routes.go

View workflow job for this annotation

GitHub Actions / tests (object)

syntax error: unexpected name string in argument list; possibly missing comma or )

Check failure on line 275 in internal/services/iot/routes.go

View workflow job for this annotation

GitHub Actions / tests (vpcgw)

syntax error: unexpected name string in argument list; possibly missing comma or )

Check failure on line 275 in internal/services/iot/routes.go

View workflow job for this annotation

GitHub Actions / tests (file)

syntax error: unexpected name string in argument list; possibly missing comma or )

Check failure on line 275 in internal/services/iot/routes.go

View workflow job for this annotation

GitHub Actions / tests (mnq)

syntax error: unexpected name string in argument list; possibly missing comma or )

Check failure on line 275 in internal/services/iot/routes.go

View workflow job for this annotation

GitHub Actions / tests (webhosting)

syntax error: unexpected name string in argument list; possibly missing comma or )

Check failure on line 275 in internal/services/iot/routes.go

View workflow job for this annotation

GitHub Actions / tests (jobs)

syntax error: unexpected name string in argument list; possibly missing comma or )

Check failure on line 275 in internal/services/iot/routes.go

View workflow job for this annotation

GitHub Actions / tests (mongodb)

syntax error: unexpected name string in argument list; possibly missing comma or )

Check failure on line 275 in internal/services/iot/routes.go

View workflow job for this annotation

GitHub Actions / tests (domain)

syntax error: unexpected name string in argument list; possibly missing comma or )

Check failure on line 275 in internal/services/iot/routes.go

View workflow job for this annotation

GitHub Actions / tests (redis)

syntax error: unexpected name string in argument list; possibly missing comma or )

Check failure on line 275 in internal/services/iot/routes.go

View workflow job for this annotation

GitHub Actions / tests (registry)

syntax error: unexpected name string in argument list; possibly missing comma or )

Check failure on line 275 in internal/services/iot/routes.go

View workflow job for this annotation

GitHub Actions / tests (inference)

syntax error: unexpected name string in argument list; possibly missing comma or )

Check failure on line 275 in internal/services/iot/routes.go

View workflow job for this annotation

GitHub Actions / tests (tem)

syntax error: unexpected name string in argument list; possibly missing comma or )

Check failure on line 275 in internal/services/iot/routes.go

View workflow job for this annotation

GitHub Actions / tests (secret)

syntax error: unexpected name string in argument list; possibly missing comma or )

Check failure on line 275 in internal/services/iot/routes.go

View workflow job for this annotation

GitHub Actions / tests (flexibleip)

syntax error: unexpected name string in argument list; possibly missing comma or )
_ = d.Set("name", response.Name)
_ = d.Set("hub_id", response.HubID)
_ = d.Set("topic", response.Topic)
Expand Down
2 changes: 1 addition & 1 deletion internal/services/ipam/ip.go
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ func ResourceIPAMIPRead(ctx context.Context, d *schema.ResourceData, m any) diag
_ = d.Set("created_at", types.FlattenTime(res.CreatedAt))
_ = d.Set("updated_at", types.FlattenTime(res.UpdatedAt))
_ = d.Set("is_ipv6", res.IsIPv6)
_ = d.Set("region", region)
_ = d.Set("region", res.Region.String())

if res.Zone != nil {
_ = d.Set("zone", res.Zone.String())
Expand Down
2 changes: 1 addition & 1 deletion internal/services/ipam/ip_reverse_dns.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ func ResourceIPAMIPReverseDNSRead(ctx context.Context, d *schema.ResourceData, m
}
}

_ = d.Set("region", region)
_ = d.Set("region", res.Region.String())

return nil
}
Expand Down
2 changes: 1 addition & 1 deletion internal/services/k8s/acl.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@
}

_ = d.Set("cluster_id", regional.NewIDString(region, clusterID))
_ = d.Set("region", region)
_ = d.Set("region", acls.)

Check failure on line 155 in internal/services/k8s/acl.go

View workflow job for this annotation

GitHub Actions / tests (function)

syntax error: unexpected ), expected name or (

Check failure on line 155 in internal/services/k8s/acl.go

View workflow job for this annotation

GitHub Actions / tests (k8s)

syntax error: unexpected ), expected name or (

Check failure on line 155 in internal/services/k8s/acl.go

View workflow job for this annotation

GitHub Actions / tests (sdb)

syntax error: unexpected ), expected name or (

Check failure on line 155 in internal/services/k8s/acl.go

View workflow job for this annotation

GitHub Actions / tests (cockpit)

syntax error: unexpected ), expected name or (

Check failure on line 155 in internal/services/k8s/acl.go

View workflow job for this annotation

GitHub Actions / test-scwconfig

syntax error: unexpected ), expected name or (

Check failure on line 155 in internal/services/k8s/acl.go

View workflow job for this annotation

GitHub Actions / tests (lb)

syntax error: unexpected ), expected name or (

Check failure on line 155 in internal/services/k8s/acl.go

View workflow job for this annotation

GitHub Actions / tests (container)

syntax error: unexpected ), expected name or (

Check failure on line 155 in internal/services/k8s/acl.go

View workflow job for this annotation

GitHub Actions / tests (instance)

syntax error: unexpected ), expected name or (

Check failure on line 155 in internal/services/k8s/acl.go

View workflow job for this annotation

GitHub Actions / tests (az)

syntax error: unexpected ), expected name or (

Check failure on line 155 in internal/services/k8s/acl.go

View workflow job for this annotation

GitHub Actions / tests (applesilicon)

syntax error: unexpected ), expected name or (

Check failure on line 155 in internal/services/k8s/acl.go

View workflow job for this annotation

GitHub Actions / tests (iot)

syntax error: unexpected ), expected name or (

Check failure on line 155 in internal/services/k8s/acl.go

View workflow job for this annotation

GitHub Actions / tests (baremetal)

syntax error: unexpected ), expected name or (

Check failure on line 155 in internal/services/k8s/acl.go

View workflow job for this annotation

GitHub Actions / tests (rdb)

syntax error: unexpected ), expected name or (

Check failure on line 155 in internal/services/k8s/acl.go

View workflow job for this annotation

GitHub Actions / tests (iam)

syntax error: unexpected ), expected name or (

Check failure on line 155 in internal/services/k8s/acl.go

View workflow job for this annotation

GitHub Actions / tests (marketplace)

syntax error: unexpected ), expected name or (

Check failure on line 155 in internal/services/k8s/acl.go

View workflow job for this annotation

GitHub Actions / tests (vpc)

syntax error: unexpected ), expected name or (

Check failure on line 155 in internal/services/k8s/acl.go

View workflow job for this annotation

GitHub Actions / tests (block)

syntax error: unexpected ), expected name or (

Check failure on line 155 in internal/services/k8s/acl.go

View workflow job for this annotation

GitHub Actions / tests (billing)

syntax error: unexpected ), expected name or (

Check failure on line 155 in internal/services/k8s/acl.go

View workflow job for this annotation

GitHub Actions / tests (ipam)

syntax error: unexpected ), expected name or (

Check failure on line 155 in internal/services/k8s/acl.go

View workflow job for this annotation

GitHub Actions / tests (account)

syntax error: unexpected ), expected name or (

Check failure on line 155 in internal/services/k8s/acl.go

View workflow job for this annotation

GitHub Actions / tests (object)

syntax error: unexpected ), expected name or (

Check failure on line 155 in internal/services/k8s/acl.go

View workflow job for this annotation

GitHub Actions / tests (vpcgw)

syntax error: unexpected ), expected name or (

Check failure on line 155 in internal/services/k8s/acl.go

View workflow job for this annotation

GitHub Actions / tests (file)

syntax error: unexpected ), expected name or (

Check failure on line 155 in internal/services/k8s/acl.go

View workflow job for this annotation

GitHub Actions / tests (mnq)

syntax error: unexpected ), expected name or (

Check failure on line 155 in internal/services/k8s/acl.go

View workflow job for this annotation

GitHub Actions / tests (webhosting)

syntax error: unexpected ), expected name or (

Check failure on line 155 in internal/services/k8s/acl.go

View workflow job for this annotation

GitHub Actions / tests (jobs)

syntax error: unexpected ), expected name or (

Check failure on line 155 in internal/services/k8s/acl.go

View workflow job for this annotation

GitHub Actions / tests (mongodb)

syntax error: unexpected ), expected name or (

Check failure on line 155 in internal/services/k8s/acl.go

View workflow job for this annotation

GitHub Actions / tests (domain)

syntax error: unexpected ), expected name or (

Check failure on line 155 in internal/services/k8s/acl.go

View workflow job for this annotation

GitHub Actions / tests (redis)

syntax error: unexpected ), expected name or (

Check failure on line 155 in internal/services/k8s/acl.go

View workflow job for this annotation

GitHub Actions / tests (registry)

syntax error: unexpected ), expected name or (

Check failure on line 155 in internal/services/k8s/acl.go

View workflow job for this annotation

GitHub Actions / tests (inference)

syntax error: unexpected ), expected name or (

Check failure on line 155 in internal/services/k8s/acl.go

View workflow job for this annotation

GitHub Actions / tests (tem)

syntax error: unexpected ), expected name or (

Check failure on line 155 in internal/services/k8s/acl.go

View workflow job for this annotation

GitHub Actions / tests (secret)

syntax error: unexpected ), expected name or (

Check failure on line 155 in internal/services/k8s/acl.go

View workflow job for this annotation

GitHub Actions / tests (flexibleip)

syntax error: unexpected ), expected name or (
_ = d.Set("acl_rules", flattenACL(acls.Rules))

return nil
Expand Down
2 changes: 1 addition & 1 deletion internal/services/k8s/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@ func ResourceK8SClusterRead(ctx context.Context, d *schema.ResourceData, m any)
return diag.FromErr(err)
}

_ = d.Set("region", string(region))
_ = d.Set("region", cluster.Region.String())
_ = d.Set("name", cluster.Name)
_ = d.Set("type", cluster.Type)
_ = d.Set("organization_id", cluster.OrganizationID)
Expand Down
4 changes: 2 additions & 2 deletions internal/services/k8s/pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -431,8 +431,8 @@ func ResourceK8SPoolRead(ctx context.Context, d *schema.ResourceData, m any) dia
_ = d.Set("updated_at", pool.UpdatedAt.Format(time.RFC3339))
_ = d.Set("status", pool.Status)
_ = d.Set("kubelet_args", flattenKubeletArgs(pool.KubeletArgs))
_ = d.Set("region", region)
_ = d.Set("zone", pool.Zone)
_ = d.Set("region", pool.Region.String())
_ = d.Set("zone", pool.Zone.String())
_ = d.Set("upgrade_policy", poolUpgradePolicyFlatten(pool))
_ = d.Set("public_ip_disabled", pool.PublicIPDisabled)
_ = d.Set("security_group_id", pool.SecurityGroupID)
Expand Down
2 changes: 1 addition & 1 deletion internal/services/marketplace/image_data_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func DataSourceMarketplaceImageRead(ctx context.Context, d *schema.ResourceData,

zonedID := datasource.NewZonedID(image.ID, zone)
d.SetId(zonedID)
_ = d.Set("zone", zone)
_ = d.Set("zone", image.Zone.String())
_ = d.Set("label", image.Label)
_ = d.Set("instance_type", d.Get("instance_type").(string))
_ = d.Set("image_type", image.Type)
Expand Down
2 changes: 1 addition & 1 deletion internal/services/mnq/nats_credentials.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func ResourceMNQNatsCredentialsRead(ctx context.Context, d *schema.ResourceData,

_ = d.Set("account_id", credentials.NatsAccountID)
_ = d.Set("name", credentials.Name)
_ = d.Set("region", region)
_ = d.Set("region", credentials)

return nil
}
Expand Down
2 changes: 1 addition & 1 deletion internal/services/rdb/instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,7 @@ func ResourceRdbInstanceRead(ctx context.Context, d *schema.ResourceData, m any)
}

_ = d.Set("read_replicas", []string{})
_ = d.Set("region", string(region))
_ = d.Set("region", res.Region.String())
_ = d.Set("organization_id", res.OrganizationID)
_ = d.Set("project_id", res.ProjectID)

Expand Down
3 changes: 1 addition & 2 deletions internal/services/rdb/read_replica.go
Original file line number Diff line number Diff line change
Expand Up @@ -225,9 +225,8 @@ func ResourceRdbReadReplicaRead(ctx context.Context, d *schema.ResourceData, m a
_ = d.Set("direct_access", directAccess)
_ = d.Set("private_network", privateNetwork)

regionStr := region.String()
_ = d.Set("same_zone", rr.SameZone)
_ = d.Set("region", regionStr)
_ = d.Set("region", rr.Region.String())
_ = d.Set("instance_id", regional.NewIDString(region, rr.InstanceID))

return nil
Expand Down
2 changes: 1 addition & 1 deletion internal/services/rdb/snapshots.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ func ResourceRdbSnapshotRead(ctx context.Context, d *schema.ResourceData, meta a
_ = d.Set("size", int(*res.Size))
}

_ = d.Set("region", region)
_ = d.Set("region", res.Region.String())

return nil
}
Expand Down
2 changes: 1 addition & 1 deletion internal/services/secret/secret.go
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ func ResourceSecretRead(ctx context.Context, d *schema.ResourceData, m any) diag
_ = d.Set("updated_at", types.FlattenTime(secretResponse.UpdatedAt))
_ = d.Set("status", secretResponse.Status.String())
_ = d.Set("version_count", int(versions.TotalCount))
_ = d.Set("region", string(region))
_ = d.Set("region", secretResponse.Region.String())
_ = d.Set("project_id", secretResponse.ProjectID)
_ = d.Set("path", secretResponse.Path)
_ = d.Set("protected", secretResponse.Protected)
Expand Down
2 changes: 1 addition & 1 deletion internal/services/secret/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@
_ = d.Set("created_at", types.FlattenTime(secretResponse.CreatedAt))
_ = d.Set("updated_at", types.FlattenTime(secretResponse.UpdatedAt))
_ = d.Set("status", secretResponse.Status.String())
_ = d.Set("region", string(region))
_ = d.Set("region", secretResponse.)

Check failure on line 134 in internal/services/secret/version.go

View workflow job for this annotation

GitHub Actions / tests (function)

syntax error: unexpected ), expected name or (

Check failure on line 134 in internal/services/secret/version.go

View workflow job for this annotation

GitHub Actions / tests (k8s)

syntax error: unexpected ), expected name or (

Check failure on line 134 in internal/services/secret/version.go

View workflow job for this annotation

GitHub Actions / tests (sdb)

syntax error: unexpected ), expected name or (

Check failure on line 134 in internal/services/secret/version.go

View workflow job for this annotation

GitHub Actions / tests (cockpit)

syntax error: unexpected ), expected name or (

Check failure on line 134 in internal/services/secret/version.go

View workflow job for this annotation

GitHub Actions / test-scwconfig

syntax error: unexpected ), expected name or (

Check failure on line 134 in internal/services/secret/version.go

View workflow job for this annotation

GitHub Actions / tests (lb)

syntax error: unexpected ), expected name or (

Check failure on line 134 in internal/services/secret/version.go

View workflow job for this annotation

GitHub Actions / tests (container)

syntax error: unexpected ), expected name or (

Check failure on line 134 in internal/services/secret/version.go

View workflow job for this annotation

GitHub Actions / tests (instance)

syntax error: unexpected ), expected name or (

Check failure on line 134 in internal/services/secret/version.go

View workflow job for this annotation

GitHub Actions / tests (az)

syntax error: unexpected ), expected name or (

Check failure on line 134 in internal/services/secret/version.go

View workflow job for this annotation

GitHub Actions / tests (applesilicon)

syntax error: unexpected ), expected name or (

Check failure on line 134 in internal/services/secret/version.go

View workflow job for this annotation

GitHub Actions / tests (iot)

syntax error: unexpected ), expected name or (

Check failure on line 134 in internal/services/secret/version.go

View workflow job for this annotation

GitHub Actions / tests (baremetal)

syntax error: unexpected ), expected name or (

Check failure on line 134 in internal/services/secret/version.go

View workflow job for this annotation

GitHub Actions / tests (rdb)

syntax error: unexpected ), expected name or (

Check failure on line 134 in internal/services/secret/version.go

View workflow job for this annotation

GitHub Actions / tests (iam)

syntax error: unexpected ), expected name or (

Check failure on line 134 in internal/services/secret/version.go

View workflow job for this annotation

GitHub Actions / tests (marketplace)

syntax error: unexpected ), expected name or (

Check failure on line 134 in internal/services/secret/version.go

View workflow job for this annotation

GitHub Actions / tests (vpc)

syntax error: unexpected ), expected name or (

Check failure on line 134 in internal/services/secret/version.go

View workflow job for this annotation

GitHub Actions / tests (block)

syntax error: unexpected ), expected name or (

Check failure on line 134 in internal/services/secret/version.go

View workflow job for this annotation

GitHub Actions / tests (billing)

syntax error: unexpected ), expected name or (

Check failure on line 134 in internal/services/secret/version.go

View workflow job for this annotation

GitHub Actions / tests (ipam)

syntax error: unexpected ), expected name or (

Check failure on line 134 in internal/services/secret/version.go

View workflow job for this annotation

GitHub Actions / tests (account)

syntax error: unexpected ), expected name or (

Check failure on line 134 in internal/services/secret/version.go

View workflow job for this annotation

GitHub Actions / tests (object)

syntax error: unexpected ), expected name or (

Check failure on line 134 in internal/services/secret/version.go

View workflow job for this annotation

GitHub Actions / tests (vpcgw)

syntax error: unexpected ), expected name or (

Check failure on line 134 in internal/services/secret/version.go

View workflow job for this annotation

GitHub Actions / tests (file)

syntax error: unexpected ), expected name or (

Check failure on line 134 in internal/services/secret/version.go

View workflow job for this annotation

GitHub Actions / tests (mnq)

syntax error: unexpected ), expected name or (

Check failure on line 134 in internal/services/secret/version.go

View workflow job for this annotation

GitHub Actions / tests (webhosting)

syntax error: unexpected ), expected name or (

Check failure on line 134 in internal/services/secret/version.go

View workflow job for this annotation

GitHub Actions / tests (jobs)

syntax error: unexpected ), expected name or (

Check failure on line 134 in internal/services/secret/version.go

View workflow job for this annotation

GitHub Actions / tests (mongodb)

syntax error: unexpected ), expected name or (

Check failure on line 134 in internal/services/secret/version.go

View workflow job for this annotation

GitHub Actions / tests (domain)

syntax error: unexpected ), expected name or (

Check failure on line 134 in internal/services/secret/version.go

View workflow job for this annotation

GitHub Actions / tests (redis)

syntax error: unexpected ), expected name or (

Check failure on line 134 in internal/services/secret/version.go

View workflow job for this annotation

GitHub Actions / tests (registry)

syntax error: unexpected ), expected name or (

Check failure on line 134 in internal/services/secret/version.go

View workflow job for this annotation

GitHub Actions / tests (inference)

syntax error: unexpected ), expected name or (

Check failure on line 134 in internal/services/secret/version.go

View workflow job for this annotation

GitHub Actions / tests (tem)

syntax error: unexpected ), expected name or (

Check failure on line 134 in internal/services/secret/version.go

View workflow job for this annotation

GitHub Actions / tests (secret)

syntax error: unexpected ), expected name or (

Check failure on line 134 in internal/services/secret/version.go

View workflow job for this annotation

GitHub Actions / tests (flexibleip)

syntax error: unexpected ), expected name or (

return nil
}
Expand Down
2 changes: 1 addition & 1 deletion internal/services/tem/domain.go
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ func ResourceDomainRead(ctx context.Context, d *schema.ResourceData, m any) diag
_ = d.Set("smtps_port_alternative", tem.SMTPSPortAlternative)
_ = d.Set("mx_blackhole", tem.MXBlackhole)
_ = d.Set("reputation", flattenDomainReputation(domain.Reputation))
_ = d.Set("region", string(region))
_ = d.Set("region", domain.Region.String())
_ = d.Set("project_id", domain.ProjectID)
_ = d.Set("smtps_auth_user", domain.ProjectID)

Expand Down
2 changes: 1 addition & 1 deletion internal/services/vpc/vpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ func ResourceVPCRead(ctx context.Context, d *schema.ResourceData, m any) diag.Di
_ = d.Set("is_default", res.IsDefault)
_ = d.Set("enable_routing", res.RoutingEnabled)
_ = d.Set("enable_custom_routes_propagation", res.CustomRoutesPropagationEnabled)
_ = d.Set("region", region)
_ = d.Set("region", res.Region.String())

if len(res.Tags) > 0 {
_ = d.Set("tags", res.Tags)
Expand Down
2 changes: 1 addition & 1 deletion internal/services/vpcgw/dhcp_reservation.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ func ResourceVPCPublicGatewayDHCPReservationRead(ctx context.Context, d *schema.
_ = d.Set("gateway_network_id", zonal.NewIDString(zone, entry.GatewayNetworkID))
_ = d.Set("created_at", entry.CreatedAt.Format(time.RFC3339))
_ = d.Set("updated_at", entry.UpdatedAt.Format(time.RFC3339))
_ = d.Set("zone", zone)
_ = d.Set("zone", entry.Zone.String())

return nil
}
Expand Down
2 changes: 1 addition & 1 deletion internal/services/vpcgw/ip.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ func ResourceIPRead(ctx context.Context, d *schema.ResourceData, m any) diag.Dia
_ = d.Set("project_id", ip.ProjectID)
_ = d.Set("created_at", ip.CreatedAt.Format(time.RFC3339))
_ = d.Set("updated_at", ip.UpdatedAt.Format(time.RFC3339))
_ = d.Set("zone", zone)
_ = d.Set("zone", ip.Zone.String())
_ = d.Set("tags", ip.Tags)
_ = d.Set("reverse", ip.Reverse)

Expand Down
2 changes: 1 addition & 1 deletion internal/services/vpcgw/ip_reverse.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ func ResourceVPCPublicGatewayIPReverseDNSRead(ctx context.Context, d *schema.Res
return diag.FromErr(err)
}

_ = d.Set("zone", string(zone))
_ = d.Set("zone", res.Zonestring(zone))
_ = d.Set("reverse", res.Reverse)

return nil
Expand Down
2 changes: 1 addition & 1 deletion internal/services/vpcgw/pat_rule.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ func ResourceVPCPublicGatewayPATRuleRead(ctx context.Context, d *schema.Resource
_ = d.Set("private_port", int(patRule.PrivatePort))
_ = d.Set("public_port", int(patRule.PublicPort))
_ = d.Set("protocol", patRule.Protocol.String())
_ = d.Set("zone", zone)
_ = d.Set("zone", patRule.Zone.String())

return nil
}
Expand Down
2 changes: 1 addition & 1 deletion internal/services/webhosting/webhosting.go
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@
_ = d.Set("dns_status", webhostingResponse.DNSStatus.String()) //nolint:staticcheck
_ = d.Set("cpanel_urls", flattenHostingCpanelUrls(webhostingResponse.Platform.ControlPanel.URLs))
_ = d.Set("username", webhostingResponse.User.Username)
_ = d.Set("region", string(region))
_ = d.Set("region", webhostingResponse.Regionstring(region))

Check failure on line 328 in internal/services/webhosting/webhosting.go

View workflow job for this annotation

GitHub Actions / tests (function)

webhostingResponse.Regionstring undefined (type *"github.com/scaleway/scaleway-sdk-go/api/webhosting/v1".Hosting has no field or method Regionstring)

Check failure on line 328 in internal/services/webhosting/webhosting.go

View workflow job for this annotation

GitHub Actions / tests (k8s)

webhostingResponse.Regionstring undefined (type *"github.com/scaleway/scaleway-sdk-go/api/webhosting/v1".Hosting has no field or method Regionstring)

Check failure on line 328 in internal/services/webhosting/webhosting.go

View workflow job for this annotation

GitHub Actions / tests (sdb)

webhostingResponse.Regionstring undefined (type *"github.com/scaleway/scaleway-sdk-go/api/webhosting/v1".Hosting has no field or method Regionstring)

Check failure on line 328 in internal/services/webhosting/webhosting.go

View workflow job for this annotation

GitHub Actions / tests (cockpit)

webhostingResponse.Regionstring undefined (type *"github.com/scaleway/scaleway-sdk-go/api/webhosting/v1".Hosting has no field or method Regionstring)

Check failure on line 328 in internal/services/webhosting/webhosting.go

View workflow job for this annotation

GitHub Actions / test-scwconfig

webhostingResponse.Regionstring undefined (type *"github.com/scaleway/scaleway-sdk-go/api/webhosting/v1".Hosting has no field or method Regionstring)

Check failure on line 328 in internal/services/webhosting/webhosting.go

View workflow job for this annotation

GitHub Actions / tests (lb)

webhostingResponse.Regionstring undefined (type *"github.com/scaleway/scaleway-sdk-go/api/webhosting/v1".Hosting has no field or method Regionstring)

Check failure on line 328 in internal/services/webhosting/webhosting.go

View workflow job for this annotation

GitHub Actions / tests (container)

webhostingResponse.Regionstring undefined (type *"github.com/scaleway/scaleway-sdk-go/api/webhosting/v1".Hosting has no field or method Regionstring)

Check failure on line 328 in internal/services/webhosting/webhosting.go

View workflow job for this annotation

GitHub Actions / tests (instance)

webhostingResponse.Regionstring undefined (type *"github.com/scaleway/scaleway-sdk-go/api/webhosting/v1".Hosting has no field or method Regionstring)

Check failure on line 328 in internal/services/webhosting/webhosting.go

View workflow job for this annotation

GitHub Actions / tests (az)

webhostingResponse.Regionstring undefined (type *"github.com/scaleway/scaleway-sdk-go/api/webhosting/v1".Hosting has no field or method Regionstring)

Check failure on line 328 in internal/services/webhosting/webhosting.go

View workflow job for this annotation

GitHub Actions / tests (applesilicon)

webhostingResponse.Regionstring undefined (type *"github.com/scaleway/scaleway-sdk-go/api/webhosting/v1".Hosting has no field or method Regionstring)

Check failure on line 328 in internal/services/webhosting/webhosting.go

View workflow job for this annotation

GitHub Actions / tests (iot)

webhostingResponse.Regionstring undefined (type *"github.com/scaleway/scaleway-sdk-go/api/webhosting/v1".Hosting has no field or method Regionstring)

Check failure on line 328 in internal/services/webhosting/webhosting.go

View workflow job for this annotation

GitHub Actions / tests (baremetal)

webhostingResponse.Regionstring undefined (type *"github.com/scaleway/scaleway-sdk-go/api/webhosting/v1".Hosting has no field or method Regionstring)

Check failure on line 328 in internal/services/webhosting/webhosting.go

View workflow job for this annotation

GitHub Actions / tests (rdb)

webhostingResponse.Regionstring undefined (type *"github.com/scaleway/scaleway-sdk-go/api/webhosting/v1".Hosting has no field or method Regionstring)

Check failure on line 328 in internal/services/webhosting/webhosting.go

View workflow job for this annotation

GitHub Actions / tests (iam)

webhostingResponse.Regionstring undefined (type *"github.com/scaleway/scaleway-sdk-go/api/webhosting/v1".Hosting has no field or method Regionstring)

Check failure on line 328 in internal/services/webhosting/webhosting.go

View workflow job for this annotation

GitHub Actions / tests (marketplace)

webhostingResponse.Regionstring undefined (type *"github.com/scaleway/scaleway-sdk-go/api/webhosting/v1".Hosting has no field or method Regionstring)

Check failure on line 328 in internal/services/webhosting/webhosting.go

View workflow job for this annotation

GitHub Actions / tests (vpc)

webhostingResponse.Regionstring undefined (type *"github.com/scaleway/scaleway-sdk-go/api/webhosting/v1".Hosting has no field or method Regionstring)

Check failure on line 328 in internal/services/webhosting/webhosting.go

View workflow job for this annotation

GitHub Actions / tests (block)

webhostingResponse.Regionstring undefined (type *"github.com/scaleway/scaleway-sdk-go/api/webhosting/v1".Hosting has no field or method Regionstring)

Check failure on line 328 in internal/services/webhosting/webhosting.go

View workflow job for this annotation

GitHub Actions / tests (billing)

webhostingResponse.Regionstring undefined (type *"github.com/scaleway/scaleway-sdk-go/api/webhosting/v1".Hosting has no field or method Regionstring)

Check failure on line 328 in internal/services/webhosting/webhosting.go

View workflow job for this annotation

GitHub Actions / tests (ipam)

webhostingResponse.Regionstring undefined (type *"github.com/scaleway/scaleway-sdk-go/api/webhosting/v1".Hosting has no field or method Regionstring)

Check failure on line 328 in internal/services/webhosting/webhosting.go

View workflow job for this annotation

GitHub Actions / tests (account)

webhostingResponse.Regionstring undefined (type *"github.com/scaleway/scaleway-sdk-go/api/webhosting/v1".Hosting has no field or method Regionstring)

Check failure on line 328 in internal/services/webhosting/webhosting.go

View workflow job for this annotation

GitHub Actions / tests (object)

webhostingResponse.Regionstring undefined (type *"github.com/scaleway/scaleway-sdk-go/api/webhosting/v1".Hosting has no field or method Regionstring)

Check failure on line 328 in internal/services/webhosting/webhosting.go

View workflow job for this annotation

GitHub Actions / tests (vpcgw)

webhostingResponse.Regionstring undefined (type *"github.com/scaleway/scaleway-sdk-go/api/webhosting/v1".Hosting has no field or method Regionstring)

Check failure on line 328 in internal/services/webhosting/webhosting.go

View workflow job for this annotation

GitHub Actions / tests (file)

webhostingResponse.Regionstring undefined (type *"github.com/scaleway/scaleway-sdk-go/api/webhosting/v1".Hosting has no field or method Regionstring)

Check failure on line 328 in internal/services/webhosting/webhosting.go

View workflow job for this annotation

GitHub Actions / tests (mnq)

webhostingResponse.Regionstring undefined (type *"github.com/scaleway/scaleway-sdk-go/api/webhosting/v1".Hosting has no field or method Regionstring)

Check failure on line 328 in internal/services/webhosting/webhosting.go

View workflow job for this annotation

GitHub Actions / tests (webhosting)

webhostingResponse.Regionstring undefined (type *"github.com/scaleway/scaleway-sdk-go/api/webhosting/v1".Hosting has no field or method Regionstring)

Check failure on line 328 in internal/services/webhosting/webhosting.go

View workflow job for this annotation

GitHub Actions / tests (jobs)

webhostingResponse.Regionstring undefined (type *"github.com/scaleway/scaleway-sdk-go/api/webhosting/v1".Hosting has no field or method Regionstring)

Check failure on line 328 in internal/services/webhosting/webhosting.go

View workflow job for this annotation

GitHub Actions / tests (mongodb)

webhostingResponse.Regionstring undefined (type *"github.com/scaleway/scaleway-sdk-go/api/webhosting/v1".Hosting has no field or method Regionstring)

Check failure on line 328 in internal/services/webhosting/webhosting.go

View workflow job for this annotation

GitHub Actions / tests (domain)

webhostingResponse.Regionstring undefined (type *"github.com/scaleway/scaleway-sdk-go/api/webhosting/v1".Hosting has no field or method Regionstring)

Check failure on line 328 in internal/services/webhosting/webhosting.go

View workflow job for this annotation

GitHub Actions / tests (redis)

webhostingResponse.Regionstring undefined (type *"github.com/scaleway/scaleway-sdk-go/api/webhosting/v1".Hosting has no field or method Regionstring)

Check failure on line 328 in internal/services/webhosting/webhosting.go

View workflow job for this annotation

GitHub Actions / tests (registry)

webhostingResponse.Regionstring undefined (type *"github.com/scaleway/scaleway-sdk-go/api/webhosting/v1".Hosting has no field or method Regionstring)

Check failure on line 328 in internal/services/webhosting/webhosting.go

View workflow job for this annotation

GitHub Actions / tests (inference)

webhostingResponse.Regionstring undefined (type *"github.com/scaleway/scaleway-sdk-go/api/webhosting/v1".Hosting has no field or method Regionstring)

Check failure on line 328 in internal/services/webhosting/webhosting.go

View workflow job for this annotation

GitHub Actions / tests (tem)

webhostingResponse.Regionstring undefined (type *"github.com/scaleway/scaleway-sdk-go/api/webhosting/v1".Hosting has no field or method Regionstring)

Check failure on line 328 in internal/services/webhosting/webhosting.go

View workflow job for this annotation

GitHub Actions / tests (secret)

webhostingResponse.Regionstring undefined (type *"github.com/scaleway/scaleway-sdk-go/api/webhosting/v1".Hosting has no field or method Regionstring)

Check failure on line 328 in internal/services/webhosting/webhosting.go

View workflow job for this annotation

GitHub Actions / tests (flexibleip)

webhostingResponse.Regionstring undefined (type *"github.com/scaleway/scaleway-sdk-go/api/webhosting/v1".Hosting has no field or method Regionstring)
_ = d.Set("organization_id", "")
_ = d.Set("project_id", webhostingResponse.ProjectID)

Expand Down
Loading