google_dns_managed_zones - zone type not returned
Detailed Description
Currently google_dns_managed_zones does not give you the ability to find out the zones Type, ie Public or Private.
Context
I would like to be able to iterate over the zones with some InSpec tests but only if the zone is Public.
Possible Implementation
Return an array that shows whether the zones are Public or Private.
I'm unable to find this info on the managed zone object that is returned by the API client. I'd guess that this client is out of date, similar to https://github.com/inspec/inspec-gcp/issues/202
Hi Sam, gcloud dns managed-zones list --format json returns the visibility of each zone.
I have created a Gemfile to use the latest google api with train (@skpaterson branch on train). The visibility information does appear be available through the resource with the latest API.
Hopefully that makes sense!
Hi @slevenick Is this to do with using v1 or beta versions of the google api? Cheers Adrian
This should be available in the v1 version of the api, as it appears in the v1 version of the object that comes back from the REST call: https://cloud.google.com/dns/docs/reference/v1/managedZones#resource
Are you able to reproduce the same issue in the 1.0 release of inspec-gcp? I believe this was an issue with versioning on the API clients, which are no longer being used