A google_compute_disks is used to test a Google Disk resource


most_recent_image = google_compute_image(project: 'debian', name: 'debian-8-jessie-v20170523')
describe google_compute_disks(project: 'chef-gcp-inspec', zone: 'zone') do
  it { should exist }
  its('names') { should include 'my_disk' }
  its('source_images') { should include most_recent_image.self_link }


Properties that can be accessed from the google_compute_disks resource:

See for more detailed information * label_fingerprints: an array of google_compute_disk labelfingerprint * `creationtimestamps: an array ofgooglecomputediskcreation_timestamp *descriptions: an array ofgooglecomputediskdescription *ids: an array ofgooglecomputediskid *lastattachtimestamps: an array ofgooglecomputedisklast_attach_timestamp *lastdetachtimestamps: an array ofgooglecomputedisklast_detach_timestamp *labels: an array ofgooglecomputedisklabels *licenses: an array ofgooglecomputedisklicenses *names: an array ofgooglecomputediskname *sizegbs: an array ofgooglecomputedisk` sizegb * users: an array of google_compute_disk users * types: an array of google_compute_disk type * source_images: an array of google_compute_disk sourceimage * zones: an array of `googlecomputediskzone *sourceimageencryptionkeys: an array ofgooglecomputedisksource_image_encryption_key *sourceimageids: an array ofgooglecomputedisksource_image_id *diskencryptionkeys: an array ofgooglecomputediskdisk_encryption_key *sourcesnapshots: an array ofgooglecomputedisk` sourcesnapshot * source_snapshot_encryption_keys: an array of google_compute_disk sourcesnapshotencryptionkey * `sourcesnapshotids: an array ofgooglecomputedisk` sourcesnapshot_id

Filter Criteria

This resource supports all of the above properties as filter criteria, which can be used with where as a block or a method.