Magic modules is a strange beast. It relies on manually writing YAML, containing serialized Ruby objects. You then invoke rake tasks to generate Go code.
And even then, magic modules only covers some of the resources in the GCP provider. The remainder are completely written by hand. Presumably because the Ruby objects are not sufficiently expressive to cover all the edge cases.
https://github.com/GoogleCloudPlatform/magic-modules