Skip to content

Commit ba3af15

Browse files
Remove unused LocationDescriber interface from google_provider_config_plugin_framework (#12400) (#20487)
[upstream:545ef44a990269b60f50ecef1db15ff7d6856392] Signed-off-by: Modular Magician <magic-modules@google.com>
1 parent 2915bde commit ba3af15

File tree

2 files changed

+3
-11
lines changed

2 files changed

+3
-11
lines changed

.changelog/12400.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:none
2+
3+
```

google/fwprovider/data_source_provider_config_plugin_framework.go

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,13 @@ import (
1212
"github.com/hashicorp/terraform-plugin-framework/diag"
1313
"github.com/hashicorp/terraform-plugin-framework/types"
1414
"github.com/hashicorp/terraform-provider-google/google/fwmodels"
15-
"github.com/hashicorp/terraform-provider-google/google/fwresource"
1615
transport_tpg "github.com/hashicorp/terraform-provider-google/google/transport"
1716
)
1817

1918
// Ensure the data source satisfies the expected interfaces.
2019
var (
2120
_ datasource.DataSource = &GoogleProviderConfigPluginFrameworkDataSource{}
2221
_ datasource.DataSourceWithConfigure = &GoogleProviderConfigPluginFrameworkDataSource{}
23-
_ fwresource.LocationDescriber = &GoogleProviderConfigPluginFrameworkModel{}
2422
)
2523

2624
func NewGoogleProviderConfigPluginFrameworkDataSource() datasource.DataSource {
@@ -58,15 +56,6 @@ type GoogleProviderConfigPluginFrameworkModel struct {
5856
TerraformAttributionLabelAdditionStrategy types.String `tfsdk:"terraform_attribution_label_addition_strategy"`
5957
}
6058

61-
func (m *GoogleProviderConfigPluginFrameworkModel) GetLocationDescription(providerConfig *transport_tpg.Config) fwresource.LocationDescription {
62-
return fwresource.LocationDescription{
63-
RegionSchemaField: types.StringValue("region"),
64-
ZoneSchemaField: types.StringValue("zone"),
65-
ProviderRegion: types.StringValue(providerConfig.Region),
66-
ProviderZone: types.StringValue(providerConfig.Zone),
67-
}
68-
}
69-
7059
func (d *GoogleProviderConfigPluginFrameworkDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) {
7160
resp.TypeName = req.ProviderTypeName + "_provider_config_plugin_framework"
7261
}

0 commit comments

Comments
 (0)