Merge branch 'v0.16'

main
Elie 2021-10-26 17:18:53 +02:00
commit 4e626101bc
No known key found for this signature in database
GPG Key ID: 399AF69092C727B6
2 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@ func (e *GoogleBigqueryDatasetEnumerator) Enumerate() ([]*resource.Resource, err
string(e.SupportedType()), string(e.SupportedType()),
trimResourceName(res.GetName()), trimResourceName(res.GetName()),
map[string]interface{}{ map[string]interface{}{
"name": res.DisplayName, "friendly_name": res.DisplayName,
}, },
), ),
) )

View File

@ -7,7 +7,7 @@ const GoogleBigqueryDatasetResourceType = "google_bigquery_dataset"
func initGoogleBigqueryDatasetMetadata(resourceSchemaRepository resource.SchemaRepositoryInterface) { func initGoogleBigqueryDatasetMetadata(resourceSchemaRepository resource.SchemaRepositoryInterface) {
resourceSchemaRepository.SetHumanReadableAttributesFunc(GoogleBigqueryDatasetResourceType, func(res *resource.Resource) map[string]string { resourceSchemaRepository.SetHumanReadableAttributesFunc(GoogleBigqueryDatasetResourceType, func(res *resource.Resource) map[string]string {
return map[string]string{ return map[string]string{
"name": *res.Attrs.GetString("name"), "name": *res.Attrs.GetString("friendly_name"),
} }
}) })
} }