diff --git a/pkg/remote/google/google_compute_instance_group_enumerator.go b/pkg/remote/google/google_compute_instance_group_enumerator.go index 11beb6fb..5a4d80d2 100644 --- a/pkg/remote/google/google_compute_instance_group_enumerator.go +++ b/pkg/remote/google/google_compute_instance_group_enumerator.go @@ -46,9 +46,9 @@ func (e *GoogleComputeInstanceGroupEnumerator) Enumerate() ([]*resource.Resource string(e.SupportedType()), trimResourceName(res.GetName()), map[string]interface{}{ - "display_name": res.GetDisplayName(), - "project": project, - "location": res.GetLocation(), + "name": res.GetDisplayName(), + "project": project, + "location": res.GetLocation(), }, ), ) diff --git a/pkg/remote/google/google_compute_subnetwork_enumerator.go b/pkg/remote/google/google_compute_subnetwork_enumerator.go index bc2d6725..62088bed 100644 --- a/pkg/remote/google/google_compute_subnetwork_enumerator.go +++ b/pkg/remote/google/google_compute_subnetwork_enumerator.go @@ -38,8 +38,8 @@ func (e *GoogleComputeSubnetworkEnumerator) Enumerate() ([]*resource.Resource, e string(e.SupportedType()), trimResourceName(res.GetName()), map[string]interface{}{ - "display_name": res.GetDisplayName(), - "location": res.GetLocation(), + "name": res.GetDisplayName(), + "location": res.GetLocation(), }, ), ) diff --git a/pkg/resource/google/google_compute_instance_group.go b/pkg/resource/google/google_compute_instance_group.go index f4331f5f..019ce138 100644 --- a/pkg/resource/google/google_compute_instance_group.go +++ b/pkg/resource/google/google_compute_instance_group.go @@ -10,14 +10,14 @@ func initGoogleComputeInstanceGroupMetadata(resourceSchemaRepository resource.Sc }) resourceSchemaRepository.SetResolveReadAttributesFunc(GoogleComputeInstanceGroupResourceType, func(res *resource.Resource) map[string]string { return map[string]string{ - "name": *res.Attributes().GetString("display_name"), + "name": *res.Attributes().GetString("name"), "project": *res.Attributes().GetString("project"), "zone": *res.Attributes().GetString("location"), } }) resourceSchemaRepository.SetHumanReadableAttributesFunc(GoogleComputeInstanceGroupResourceType, func(res *resource.Resource) map[string]string { attrs := make(map[string]string) - if v := res.Attributes().GetString("display_name"); v != nil && *v != "" { + if v := res.Attributes().GetString("name"); v != nil && *v != "" { attrs["Name"] = *v } return attrs diff --git a/pkg/resource/google/google_compute_subnetwork.go b/pkg/resource/google/google_compute_subnetwork.go index f991e008..bd002899 100644 --- a/pkg/resource/google/google_compute_subnetwork.go +++ b/pkg/resource/google/google_compute_subnetwork.go @@ -7,7 +7,7 @@ const GoogleComputeSubnetworkResourceType = "google_compute_subnetwork" func initGoogleComputeSubnetworkMetadata(resourceSchemaRepository resource.SchemaRepositoryInterface) { resourceSchemaRepository.SetResolveReadAttributesFunc(GoogleComputeSubnetworkResourceType, func(res *resource.Resource) map[string]string { return map[string]string{ - "name": *res.Attributes().GetString("display_name"), + "name": *res.Attributes().GetString("name"), "region": *res.Attributes().GetString("location"), } }) @@ -18,7 +18,7 @@ func initGoogleComputeSubnetworkMetadata(resourceSchemaRepository resource.Schem resourceSchemaRepository.SetHumanReadableAttributesFunc(GoogleComputeSubnetworkResourceType, func(res *resource.Resource) map[string]string { attrs := make(map[string]string) - if v := res.Attributes().GetString("display_name"); v != nil && *v != "" { + if v := res.Attributes().GetString("name"); v != nil && *v != "" { attrs["Name"] = *v } return attrs