Skip to content

Commit

Permalink
fix: regenerate with location required and lake parameter
Browse files Browse the repository at this point in the history
Signed-off-by: Chloe CARAYON <[email protected]>
  • Loading branch information
Chloe-Carayon committed Jan 17, 2025
1 parent fc84424 commit 0da584e
Show file tree
Hide file tree
Showing 8 changed files with 49 additions and 161 deletions.
15 changes: 0 additions & 15 deletions apis/dataplex/v1beta1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 4 additions & 23 deletions apis/dataplex/v1beta1/zz_generated.resolvers.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 8 additions & 22 deletions apis/dataplex/v1beta1/zz_lakeiampolicy_types.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions config/dataplex/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,11 @@ func Configure(p *config.Provider) {
}
r.MarkAsRequired("location")
})

p.AddResourceConfigurator("google_dataplex_lake_iam_policy", func(r *config.Resource) {
r.References["project"] = config.Reference{
TerraformName: "google_project",
}
r.MarkAsRequired("location")
})
}
2 changes: 1 addition & 1 deletion config/externalname.go
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ var terraformPluginSDKExternalNameConfigs = map[string]config.ExternalName{
// Imported by using the following format: projects/{{project}}/locations/{{location}}/lakes/{{name}}
"google_dataplex_lake": config.TemplatedStringAsIdentifier("name", "projects/{{ .setup.configuration.project }}/locations/{{ .parameters.location }}/lakes/{{ .external_name }}"),
// Imported by using the following format: projects/{{project}}/locations/{{location}}/lakes/{{lake}}
"google_dataplex_lake_iam_policy": config.TemplatedStringAsIdentifier("", "projects/{{ .setup.configuration.project }}/locations/{{ .parameters.location }}/lakes/{{ .external_name }}"),
"google_dataplex_lake_iam_policy": config.TemplatedStringAsIdentifier("", "projects/{{ .setup.configuration.project }}/locations/{{ .parameters.location }}/lakes/{{ .parameters.lake }}"),
// Imported by using the following projects/{{project}}/locations/{{location}}/lakes/{{lake}}/zones/{{dataplex_zone}}/assets/{{name}}
"google_dataplex_asset": config.TemplatedStringAsIdentifier("name", "projects/{{ .setup.configuration.project }}/locations/{{ .parameters.location }}/lakes/{{ .parameters.lake }}/zones/{{ .parameters.dataplex_zone }}/assets/{{ .external_name }}"),
// Imported by using the following projects/{{project}}/locations/{{location}}/lakes/{{lake}}/zones/{{name}}
Expand Down
Loading

0 comments on commit 0da584e

Please sign in to comment.