title | platform |
---|---|
About the google_compute_zone_operations resource |
gcp |
A google_compute_zone_operations
is used to test a Google ZoneOperation resource
describe google_compute_zone_operations(project: 'chef-gcp-inspec', zone: 'us-central1-a') do
it { should exist }
its('names') { should include 'operation-1641188179305-5d4a6e66fe2bd-8fd1812d-d97f3b69' }
its('progresses') { should include '100' }
end
Properties that can be accessed from the google_compute_zone_operations
resource:
See google_compute_zone_operation.md for more detailed information
creation_timestamps
: an array ofgoogle_compute_zone_operation
creation_timestampdescriptions
: an array ofgoogle_compute_zone_operation
descriptionids
: an array ofgoogle_compute_zone_operation
idnames
: an array ofgoogle_compute_zone_operation
namestatus_messages
: an array ofgoogle_compute_zone_operation
status_messagetarget_ids
: an array ofgoogle_compute_zone_operation
target_idstatuses
: an array ofgoogle_compute_zone_operation
statususers
: an array ofgoogle_compute_zone_operation
userinsert_times
: an array ofgoogle_compute_zone_operation
insert_timestart_times
: an array ofgoogle_compute_zone_operation
start_timeend_times
: an array ofgoogle_compute_zone_operation
end_timeprogresses
: an array ofgoogle_compute_zone_operation
progressregions
: an array ofgoogle_compute_zone_operation
region
This resource supports all of the above properties as filter criteria, which can be used
with where
as a block or a method.
Ensure the Compute Engine API is enabled for the current project.