google_ml_engine_models resource
Use the google_ml_engine_models
InSpec audit resource to to test a Google Cloud Model resource.
Examples
describe google_ml_engine_models(project: 'chef-gcp-inspec') do
its('descriptions') { should include 'My awesome ML model' }
its('online_prediction_loggings') { should include 'true' }
its('online_prediction_console_loggings') { should include 'true' }
end
Properties
Properties that can be accessed from the google_ml_engine_models
resource:
See google_ml_engine_model for more detailed information.
names
: an array ofgoogle_ml_engine_model
namedescriptions
: an array ofgoogle_ml_engine_model
descriptiondefault_versions
: an array ofgoogle_ml_engine_model
default_versionregions
: an array ofgoogle_ml_engine_model
regionsonline_prediction_loggings
: an array ofgoogle_ml_engine_model
online_prediction_loggingonline_prediction_console_loggings
: an array ofgoogle_ml_engine_model
online_prediction_console_logginglabels
: an array ofgoogle_ml_engine_model
labels
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 Cloud ML is enabled for the current project.