google_compute_region_operations resource
Use the google_compute_region_operations InSpec audit resource to to test a Google Cloud RegionOperation resource.
Examples
describe google_compute_region_operations(project: 'chef-gcp-inspec', region: '') do
it { should exist }
its('names') { should include 'operation-1641188435323-5d4a6f5b26934-9281422c-dce238f5' }
its('progress') { should include '100' }
end
Properties
Properties that can be accessed from the google_compute_region_operations resource:
See google_compute_region_operation for more detailed information.
creation_timestamps: an array ofgoogle_compute_region_operationcreation_timestampdescriptions: an array ofgoogle_compute_region_operationdescriptionids: an array ofgoogle_compute_region_operationidnames: an array ofgoogle_compute_region_operationnametarget_ids: an array ofgoogle_compute_region_operationtarget_idstatuses: an array ofgoogle_compute_region_operationstatususers: an array ofgoogle_compute_region_operationuserinsert_times: an array ofgoogle_compute_region_operationinsert_timestart_times: an array ofgoogle_compute_region_operationstart_timeend_times: an array ofgoogle_compute_region_operationend_timeprogresses: an array ofgoogle_compute_region_operationprogresszones: an array ofgoogle_compute_region_operationzone
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.
GCP permissions
Ensure the Compute Engine API is enabled for the current project.