Control: Ensure legacy networks do not exist for a project
Description
In order to prevent use of legacy networks, a project should not have a legacy network configured.
Usage
Run the control in your terminal:
powerpipe control run gcp_compliance.control.compute_network_contains_no_legacy_networkSnapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run gcp_compliance.control.compute_network_contains_no_legacy_network --shareSQL
This control uses a named query:
select  self_link resource,  case    when ipv4_range is not null then 'alarm'    else 'ok'  end as status,  case    when ipv4_range is not null      then title || ' is a legacy network.'    else title || ' not a legacy network.'  end as reason  , project as projectfrom  gcp_compute_network;