Skip to content

Commit

Permalink
Mark other resources as preview
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-jmichalak committed Nov 26, 2024
1 parent 96891d5 commit 4c29c8c
Show file tree
Hide file tree
Showing 54 changed files with 279 additions and 241 deletions.
3 changes: 2 additions & 1 deletion pkg/datasources/alerts.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"log"

"github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/provider/datasources"
"github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/provider/previewfeatures"
"github.com/hashicorp/terraform-plugin-sdk/v2/diag"

"github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/internal/provider"
Expand Down Expand Up @@ -79,7 +80,7 @@ var alertsSchema = map[string]*schema.Schema{
// Alerts Snowflake Roles resource.
func Alerts() *schema.Resource {
return &schema.Resource{
ReadContext: TrackingReadWrapper(datasources.Alerts, ReadAlerts),
ReadContext: PreviewFeatureReadWrapper(string(previewfeatures.AlertsDatasource), TrackingReadWrapper(datasources.Alerts, ReadAlerts)),
Schema: alertsSchema,
}
}
Expand Down
16 changes: 8 additions & 8 deletions pkg/datasources/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,14 @@ func handleExtendedIn(d *schema.ResourceData, setField **sdk.ExtendedIn) error {
return nil
}

func PreviewFeatureReadWrapper(featureRaw string, readFunc schema.ReadContextFunc) schema.ReadContextFunc { //nolint
func TrackingReadWrapper(datasourceName datasources.Datasource, readImplementation schema.ReadContextFunc) schema.ReadContextFunc {
return func(ctx context.Context, d *schema.ResourceData, meta any) diag.Diagnostics {
ctx = tracking.NewContext(ctx, tracking.NewVersionedDatasourceMetadata(datasourceName))
return readImplementation(ctx, d, meta)
}
}

func PreviewFeatureReadWrapper(featureRaw string, readFunc schema.ReadContextFunc) schema.ReadContextFunc {
return func(ctx context.Context, d *schema.ResourceData, meta any) diag.Diagnostics {
enabled := meta.(*provider.Context).EnabledFeatures
feature, err := previewfeatures.StringToFeature(featureRaw)
Expand All @@ -226,10 +233,3 @@ func PreviewFeatureReadWrapper(featureRaw string, readFunc schema.ReadContextFun
return readFunc(ctx, d, meta)
}
}

func TrackingReadWrapper(datasourceName datasources.Datasource, readImplementation schema.ReadContextFunc) schema.ReadContextFunc {
return func(ctx context.Context, d *schema.ResourceData, meta any) diag.Diagnostics {
ctx = tracking.NewContext(ctx, tracking.NewVersionedDatasourceMetadata(datasourceName))
return readImplementation(ctx, d, meta)
}
}
3 changes: 2 additions & 1 deletion pkg/datasources/cortex_search_services.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"log"

"github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/provider/datasources"
"github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/provider/previewfeatures"
"github.com/hashicorp/terraform-plugin-sdk/v2/diag"

"github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/internal/provider"
Expand Down Expand Up @@ -111,7 +112,7 @@ var cortexSearchServicesSchema = map[string]*schema.Schema{
// CortexSearchServices Snowflake Cortex search services resource.
func CortexSearchServices() *schema.Resource {
return &schema.Resource{
ReadContext: TrackingReadWrapper(datasources.CortexSearchServices, ReadCortexSearchServices),
ReadContext: PreviewFeatureReadWrapper(string(previewfeatures.CortexSearchServicesDatasource), TrackingReadWrapper(datasources.CortexSearchServices, ReadCortexSearchServices)),
Schema: cortexSearchServicesSchema,
}
}
Expand Down
3 changes: 2 additions & 1 deletion pkg/datasources/current_role.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"log"

"github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/provider/datasources"
"github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/provider/previewfeatures"
"github.com/hashicorp/terraform-plugin-sdk/v2/diag"

"github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/helpers"
Expand All @@ -22,7 +23,7 @@ var currentRoleSchema = map[string]*schema.Schema{

func CurrentRole() *schema.Resource {
return &schema.Resource{
ReadContext: TrackingReadWrapper(datasources.CurrentRole, ReadCurrentRole),
ReadContext: PreviewFeatureReadWrapper(string(previewfeatures.CurrentRoleDatasource), TrackingReadWrapper(datasources.CurrentRole, ReadCurrentRole)),
Schema: currentRoleSchema,
}
}
Expand Down
3 changes: 2 additions & 1 deletion pkg/datasources/database_role.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"log"

"github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/provider/datasources"
"github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/provider/previewfeatures"
"github.com/hashicorp/terraform-plugin-sdk/v2/diag"

"github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/internal/provider"
Expand Down Expand Up @@ -39,7 +40,7 @@ var databaseRoleSchema = map[string]*schema.Schema{
// DatabaseRole Snowflake Database Role resource.
func DatabaseRole() *schema.Resource {
return &schema.Resource{
ReadContext: TrackingReadWrapper(datasources.DatabaseRole, ReadDatabaseRole),
ReadContext: PreviewFeatureReadWrapper(string(previewfeatures.DatabaseDatasource), TrackingReadWrapper(datasources.DatabaseRole, ReadDatabaseRole)),
Schema: databaseRoleSchema,
}
}
Expand Down
3 changes: 2 additions & 1 deletion pkg/datasources/database_roles.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"context"

"github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/provider/datasources"
"github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/provider/previewfeatures"

"github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/internal/provider"
"github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/resources"
Expand Down Expand Up @@ -66,7 +67,7 @@ var databaseRolesSchema = map[string]*schema.Schema{

func DatabaseRoles() *schema.Resource {
return &schema.Resource{
ReadContext: TrackingReadWrapper(datasources.DatabaseRoles, ReadDatabaseRoles),
ReadContext: PreviewFeatureReadWrapper(string(previewfeatures.DatabaseRoleDatasource), TrackingReadWrapper(datasources.DatabaseRoles, ReadDatabaseRoles)),
Schema: databaseRolesSchema,
Description: "Datasource used to get details of filtered database roles. Filtering is aligned with the current possibilities for [SHOW DATABASE ROLES](https://docs.snowflake.com/en/sql-reference/sql/show-database-roles) query (`like` and `limit` are supported). The results of SHOW is encapsulated in show_output collection.",
}
Expand Down
3 changes: 2 additions & 1 deletion pkg/datasources/dynamic_tables.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"log"

"github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/provider/datasources"
"github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/provider/previewfeatures"
"github.com/hashicorp/terraform-plugin-sdk/v2/diag"

"github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/internal/provider"
Expand Down Expand Up @@ -197,7 +198,7 @@ var dynamicTablesSchema = map[string]*schema.Schema{
// DynamicTables Snowflake Dynamic Tables resource.
func DynamicTables() *schema.Resource {
return &schema.Resource{
ReadContext: TrackingReadWrapper(datasources.DynamicTables, ReadDynamicTables),
ReadContext: PreviewFeatureReadWrapper(string(previewfeatures.DynamicTablesDatasource), TrackingReadWrapper(datasources.DynamicTables, ReadDynamicTables)),
Schema: dynamicTablesSchema,
}
}
Expand Down
3 changes: 2 additions & 1 deletion pkg/datasources/external_functions.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"strings"

"github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/provider/datasources"
"github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/provider/previewfeatures"

"github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/internal/provider"

Expand Down Expand Up @@ -61,7 +62,7 @@ var externalFunctionsSchema = map[string]*schema.Schema{

func ExternalFunctions() *schema.Resource {
return &schema.Resource{
ReadContext: TrackingReadWrapper(datasources.ExternalFunctions, ReadContextExternalFunctions),
ReadContext: PreviewFeatureReadWrapper(string(previewfeatures.ExternalFunctionsDatasource), TrackingReadWrapper(datasources.ExternalFunctions, ReadContextExternalFunctions)),
Schema: externalFunctionsSchema,
}
}
Expand Down
3 changes: 2 additions & 1 deletion pkg/datasources/external_tables.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"log"

"github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/provider/datasources"
"github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/provider/previewfeatures"
"github.com/hashicorp/terraform-plugin-sdk/v2/diag"

"github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/internal/provider"
Expand Down Expand Up @@ -57,7 +58,7 @@ var externalTablesSchema = map[string]*schema.Schema{

func ExternalTables() *schema.Resource {
return &schema.Resource{
ReadContext: TrackingReadWrapper(datasources.ExternalTables, ReadExternalTables),
ReadContext: PreviewFeatureReadWrapper(string(previewfeatures.ExternalTablesDatasource), TrackingReadWrapper(datasources.ExternalTables, ReadExternalTables)),
Schema: externalTablesSchema,
}
}
Expand Down
3 changes: 2 additions & 1 deletion pkg/datasources/failover_groups.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"context"

"github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/provider/datasources"
"github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/provider/previewfeatures"
"github.com/hashicorp/terraform-plugin-sdk/v2/diag"

"github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/internal/provider"
Expand Down Expand Up @@ -120,7 +121,7 @@ var failoverGroupsSchema = map[string]*schema.Schema{
// FailoverGroups Snowflake FailoverGroups resource.
func FailoverGroups() *schema.Resource {
return &schema.Resource{
ReadContext: TrackingReadWrapper(datasources.FailoverGroups, ReadFailoverGroups),
ReadContext: PreviewFeatureReadWrapper(string(previewfeatures.FailoverGroupsDatasource), TrackingReadWrapper(datasources.FailoverGroups, ReadFailoverGroups)),
Schema: failoverGroupsSchema,
}
}
Expand Down
3 changes: 2 additions & 1 deletion pkg/datasources/file_formats.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"fmt"

"github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/provider/datasources"
"github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/provider/previewfeatures"
"github.com/hashicorp/terraform-plugin-sdk/v2/diag"

"github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/internal/provider"
Expand Down Expand Up @@ -59,7 +60,7 @@ var fileFormatsSchema = map[string]*schema.Schema{

func FileFormats() *schema.Resource {
return &schema.Resource{
ReadContext: TrackingReadWrapper(datasources.FileFormats, ReadFileFormats),
ReadContext: PreviewFeatureReadWrapper(string(previewfeatures.FileFormatsDatasource), TrackingReadWrapper(datasources.FileFormats, ReadFileFormats)),
Schema: fileFormatsSchema,
}
}
Expand Down
3 changes: 2 additions & 1 deletion pkg/datasources/materialized_views.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"log"

"github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/provider/datasources"
"github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/provider/previewfeatures"
"github.com/hashicorp/terraform-plugin-sdk/v2/diag"

"github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/internal/provider"
Expand Down Expand Up @@ -55,7 +56,7 @@ var materializedViewsSchema = map[string]*schema.Schema{

func MaterializedViews() *schema.Resource {
return &schema.Resource{
ReadContext: TrackingReadWrapper(datasources.MaterializedViews, ReadMaterializedViews),
ReadContext: PreviewFeatureReadWrapper(string(previewfeatures.MaterializedViewsDatasource), TrackingReadWrapper(datasources.MaterializedViews, ReadMaterializedViews)),
Schema: materializedViewsSchema,
}
}
Expand Down
3 changes: 2 additions & 1 deletion pkg/datasources/parameters.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"strings"

"github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/provider/datasources"
"github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/provider/previewfeatures"
"github.com/hashicorp/terraform-plugin-sdk/v2/diag"

"github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/internal/provider"
Expand Down Expand Up @@ -82,7 +83,7 @@ var parametersSchema = map[string]*schema.Schema{

func Parameters() *schema.Resource {
return &schema.Resource{
ReadContext: TrackingReadWrapper(datasources.Parameters, ReadParameters),
ReadContext: PreviewFeatureReadWrapper(string(previewfeatures.ParametersDatasource), TrackingReadWrapper(datasources.Parameters, ReadParameters)),
Schema: parametersSchema,
}
}
Expand Down
3 changes: 2 additions & 1 deletion pkg/datasources/pipes.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"log"

"github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/provider/datasources"
"github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/provider/previewfeatures"
"github.com/hashicorp/terraform-plugin-sdk/v2/diag"

"github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/internal/provider"
Expand Down Expand Up @@ -60,7 +61,7 @@ var pipesSchema = map[string]*schema.Schema{

func Pipes() *schema.Resource {
return &schema.Resource{
ReadContext: TrackingReadWrapper(datasources.Pipes, ReadPipes),
ReadContext: PreviewFeatureReadWrapper(string(previewfeatures.PipesDatasource), TrackingReadWrapper(datasources.Pipes, ReadPipes)),
Schema: pipesSchema,
}
}
Expand Down
3 changes: 2 additions & 1 deletion pkg/datasources/sequences.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"fmt"

"github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/provider/datasources"
"github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/provider/previewfeatures"
"github.com/hashicorp/terraform-plugin-sdk/v2/diag"

"github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/internal/provider"
Expand Down Expand Up @@ -54,7 +55,7 @@ var sequencesSchema = map[string]*schema.Schema{

func Sequences() *schema.Resource {
return &schema.Resource{
ReadContext: TrackingReadWrapper(datasources.Sequences, ReadSequences),
ReadContext: PreviewFeatureReadWrapper(string(previewfeatures.SequencesDatasource), TrackingReadWrapper(datasources.Sequences, ReadSequences)),
Schema: sequencesSchema,
}
}
Expand Down
3 changes: 2 additions & 1 deletion pkg/datasources/shares.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"context"

"github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/provider/datasources"
"github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/provider/previewfeatures"
"github.com/hashicorp/terraform-plugin-sdk/v2/diag"

"github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/internal/provider"
Expand Down Expand Up @@ -58,7 +59,7 @@ var sharesSchema = map[string]*schema.Schema{
// Shares Snowflake Shares resource.
func Shares() *schema.Resource {
return &schema.Resource{
ReadContext: TrackingReadWrapper(datasources.Shares, ReadShares),
ReadContext: PreviewFeatureReadWrapper(string(previewfeatures.SharesDatasource), TrackingReadWrapper(datasources.Shares, ReadShares)),
Schema: sharesSchema,
}
}
Expand Down
3 changes: 2 additions & 1 deletion pkg/datasources/stages.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"fmt"

"github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/provider/datasources"
"github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/provider/previewfeatures"

"github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/internal/provider"

Expand Down Expand Up @@ -60,7 +61,7 @@ var stagesSchema = map[string]*schema.Schema{

func Stages() *schema.Resource {
return &schema.Resource{
ReadContext: TrackingReadWrapper(datasources.Stages, ReadStages),
ReadContext: PreviewFeatureReadWrapper(string(previewfeatures.StagesDatasource), TrackingReadWrapper(datasources.Stages, ReadStages)),
Schema: stagesSchema,
}
}
Expand Down
3 changes: 2 additions & 1 deletion pkg/datasources/storage_integrations.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"fmt"

"github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/provider/datasources"
"github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/provider/previewfeatures"
"github.com/hashicorp/terraform-plugin-sdk/v2/diag"

"github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/internal/provider"
Expand Down Expand Up @@ -45,7 +46,7 @@ var storageIntegrationsSchema = map[string]*schema.Schema{

func StorageIntegrations() *schema.Resource {
return &schema.Resource{
ReadContext: TrackingReadWrapper(datasources.StorageIntegrations, ReadStorageIntegrations),
ReadContext: PreviewFeatureReadWrapper(string(previewfeatures.StorageIntegrationsDatasource), TrackingReadWrapper(datasources.StorageIntegrations, ReadStorageIntegrations)),
Schema: storageIntegrationsSchema,
}
}
Expand Down
3 changes: 2 additions & 1 deletion pkg/datasources/system_generate_scim_access_token.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"log"

"github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/provider/datasources"
"github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/provider/previewfeatures"
"github.com/hashicorp/terraform-plugin-sdk/v2/diag"

"github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/sdk"
Expand All @@ -32,7 +33,7 @@ var systemGenerateSCIMAccesstokenSchema = map[string]*schema.Schema{

func SystemGenerateSCIMAccessToken() *schema.Resource {
return &schema.Resource{
ReadContext: TrackingReadWrapper(datasources.SystemGenerateScimAccessToken, ReadSystemGenerateSCIMAccessToken),
ReadContext: PreviewFeatureReadWrapper(string(previewfeatures.SystemGenerateSCIMAccessTokenDatasource), TrackingReadWrapper(datasources.SystemGenerateScimAccessToken, ReadSystemGenerateSCIMAccessToken)),
Schema: systemGenerateSCIMAccesstokenSchema,
}
}
Expand Down
3 changes: 2 additions & 1 deletion pkg/datasources/system_get_aws_sns_iam_policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"log"

"github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/provider/datasources"
"github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/provider/previewfeatures"
"github.com/hashicorp/terraform-plugin-sdk/v2/diag"

"github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/internal/provider"
Expand All @@ -30,7 +31,7 @@ var systemGetAWSSNSIAMPolicySchema = map[string]*schema.Schema{

func SystemGetAWSSNSIAMPolicy() *schema.Resource {
return &schema.Resource{
ReadContext: TrackingReadWrapper(datasources.SystemGetAwsSnsIamPolicy, ReadSystemGetAWSSNSIAMPolicy),
ReadContext: PreviewFeatureReadWrapper(string(previewfeatures.SystemGetAWSSNSIAMPolicyDatasource), TrackingReadWrapper(datasources.SystemGetAwsSnsIamPolicy, ReadSystemGetAWSSNSIAMPolicy)),
Schema: systemGetAWSSNSIAMPolicySchema,
}
}
Expand Down
3 changes: 2 additions & 1 deletion pkg/datasources/system_get_privatelink_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"log"

"github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/provider/datasources"
"github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/provider/previewfeatures"
"github.com/hashicorp/terraform-plugin-sdk/v2/diag"

"github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/internal/provider"
Expand Down Expand Up @@ -73,7 +74,7 @@ var systemGetPrivateLinkConfigSchema = map[string]*schema.Schema{

func SystemGetPrivateLinkConfig() *schema.Resource {
return &schema.Resource{
ReadContext: TrackingReadWrapper(datasources.SystemGetPrivateLinkConfig, ReadSystemGetPrivateLinkConfig),
ReadContext: PreviewFeatureReadWrapper(string(previewfeatures.SystemGetPrivateLinkConfigDatasource), TrackingReadWrapper(datasources.SystemGetPrivateLinkConfig, ReadSystemGetPrivateLinkConfig)),
Schema: systemGetPrivateLinkConfigSchema,
}
}
Expand Down
3 changes: 2 additions & 1 deletion pkg/datasources/system_get_snowflake_platform_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"log"

"github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/provider/datasources"
"github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/provider/previewfeatures"
"github.com/hashicorp/terraform-plugin-sdk/v2/diag"

"github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/internal/provider"
Expand All @@ -33,7 +34,7 @@ var systemGetSnowflakePlatformInfoSchema = map[string]*schema.Schema{

func SystemGetSnowflakePlatformInfo() *schema.Resource {
return &schema.Resource{
ReadContext: TrackingReadWrapper(datasources.SystemGetSnowflakePlatformInfo, ReadSystemGetSnowflakePlatformInfo),
ReadContext: PreviewFeatureReadWrapper(string(previewfeatures.SystemGetSnowflakePlatformInfoDatasource), TrackingReadWrapper(datasources.SystemGetSnowflakePlatformInfo, ReadSystemGetSnowflakePlatformInfo)),
Schema: systemGetSnowflakePlatformInfoSchema,
}
}
Expand Down
Loading

0 comments on commit 4c29c8c

Please sign in to comment.