Skip to content

Latest commit

 

History

History
39 lines (31 loc) · 1.32 KB

google_sql_flags.md

File metadata and controls

39 lines (31 loc) · 1.32 KB
title platform
About the google_sql_flags resource
gcp

Syntax

A google_sql_flags is used to test a Google Flag resource

Examples


describe google_sql_flags do
its('names') { should include , 'audit_log' }
its('types') { should include , 'STRING' }
its('applies_tos.first') { should include , 'MYSQL_5_6' }
its('allowed_string_values.first') { should include , 'true' }
its('requires_restarts') { should include , 'true' }
end

Properties

Properties that can be accessed from the google_sql_flags resource:

See google_sql_flag.md for more detailed information

  • allowed_string_values: an array of google_sql_flag allowed_string_values
  • applies_tos: an array of google_sql_flag applies_to
  • max_values: an array of google_sql_flag max_value
  • min_values: an array of google_sql_flag min_value
  • names: an array of google_sql_flag name
  • requires_restarts: an array of google_sql_flag requires_restart
  • types: an array of google_sql_flag type

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 SQL Admin API is enabled for the current project.