Skip to content

Commit

Permalink
Remove unused LocationDescriber interface from google_provider_config…
Browse files Browse the repository at this point in the history
…_plugin_framework (#12400)
  • Loading branch information
SarahFrench authored Nov 26, 2024
1 parent df8eb1b commit 545ef44
Showing 1 changed file with 0 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,13 @@ import (
"github.com/hashicorp/terraform-plugin-framework/diag"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-provider-google/google/fwmodels"
"github.com/hashicorp/terraform-provider-google/google/fwresource"
transport_tpg "github.com/hashicorp/terraform-provider-google/google/transport"
)

// Ensure the data source satisfies the expected interfaces.
var (
_ datasource.DataSource = &GoogleProviderConfigPluginFrameworkDataSource{}
_ datasource.DataSourceWithConfigure = &GoogleProviderConfigPluginFrameworkDataSource{}
_ fwresource.LocationDescriber = &GoogleProviderConfigPluginFrameworkModel{}
)

func NewGoogleProviderConfigPluginFrameworkDataSource() datasource.DataSource {
Expand Down Expand Up @@ -56,15 +54,6 @@ type GoogleProviderConfigPluginFrameworkModel struct {
TerraformAttributionLabelAdditionStrategy types.String `tfsdk:"terraform_attribution_label_addition_strategy"`
}

func (m *GoogleProviderConfigPluginFrameworkModel) GetLocationDescription(providerConfig *transport_tpg.Config) fwresource.LocationDescription {
return fwresource.LocationDescription{
RegionSchemaField: types.StringValue("region"),
ZoneSchemaField: types.StringValue("zone"),
ProviderRegion: types.StringValue(providerConfig.Region),
ProviderZone: types.StringValue(providerConfig.Zone),
}
}

func (d *GoogleProviderConfigPluginFrameworkDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) {
resp.TypeName = req.ProviderTypeName + "_provider_config_plugin_framework"
}
Expand Down

0 comments on commit 545ef44

Please sign in to comment.