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_modelnamedescriptions: an array ofgoogle_ml_engine_modeldescriptiondefault_versions: an array ofgoogle_ml_engine_modeldefault_versionregions: an array ofgoogle_ml_engine_modelregionsonline_prediction_loggings: an array ofgoogle_ml_engine_modelonline_prediction_loggingonline_prediction_console_loggings: an array ofgoogle_ml_engine_modelonline_prediction_console_logginglabels: an array ofgoogle_ml_engine_modellabels
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.