title | platform |
---|---|
About the google_sql_operations resource |
gcp |
A google_sql_operations
is used to test a Google Operation resource
describe google_sql_operations(project: 'chef-gcp-inspec', instance: 'my-database') do
it { should exist }
its('names') { should include 'e5c522f1-8391-4830-a8ff-ff1cc4a7b2a5' }
its('statuses') { should include 'DONE' }
its('operation_types') { should include 'CREATE' }
end
Properties that can be accessed from the google_sql_operations
resource:
See google_sql_operation.md for more detailed information
users
: an array ofgoogle_sql_operation
usernames
: an array ofgoogle_sql_operation
namestatuses
: an array ofgoogle_sql_operation
statusoperation_types
: an array ofgoogle_sql_operation
operation_typeinstances
: an array ofgoogle_sql_operation
instance
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 Cloud SQL Admin API is enabled for the current project.