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) (#20487)

[upstream:545ef44a990269b60f50ecef1db15ff7d6856392]

Signed-off-by: Modular Magician <magic-modules@google.com>
  • Loading branch information
modular-magician authored Nov 26, 2024
1 parent 2915bde commit ba3af15
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
3 changes: 3 additions & 0 deletions .changelog/12400.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:none

```
11 changes: 0 additions & 11 deletions google/fwprovider/data_source_provider_config_plugin_framework.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,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 @@ -58,15 +56,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 ba3af15

Please sign in to comment.