15 lines
548 B
Go
15 lines
548 B
Go
package google
|
|
|
|
import "github.com/snyk/driftctl/enumeration/resource"
|
|
|
|
const GoogleComputeGlobalAddressResourceType = "google_compute_global_address"
|
|
|
|
func initGoogleComputeGlobalAddressMetadata(resourceSchemaRepository resource.SchemaRepositoryInterface) {
|
|
resourceSchemaRepository.SetHumanReadableAttributesFunc(GoogleComputeGlobalAddressResourceType, func(res *resource.Resource) map[string]string {
|
|
return map[string]string{
|
|
"Name": *res.Attributes().GetString("name"),
|
|
"Address": *res.Attributes().GetString("address"),
|
|
}
|
|
})
|
|
}
|