1515<% autogen_exception -%>
1616<% resource_underscored_name = plural ? resource_name(object, product).pluralize : resource_name(object, product) -%>
1717+++
18-
19- title = "<%= resource_underscored_name -%> Resource"
18+ title = "<%= resource_underscored_name -%> resource"
2019platform = "gcp"
2120draft = false
2221gh_repo = "inspec-gcp"
2322
24-
25- [menu.inspec]
26-
23+ [menu.gcp]
2724title = "<%= resource_underscored_name -%> "
28- identifier = "inspec/resources/gcp/<%= resource_underscored_name -%> Resource "
25+ identifier = "inspec/resources/gcp/<%= resource_underscored_name -%> resource "
2926parent = "inspec/resources/gcp"
3027+++
3128
32- Use the `<%= resource_underscored_name -%> ` InSpec audit resource to test the properties of a test a Google <%= object.name -%> .
33-
34- ## Installation
35- {{% inspec_gcp_install %}}
36-
37- ## Syntax
38- A `<%= resource_underscored_name -%> ` is used to test a Google <%= object.name -%> resource
29+ Use the `<%= resource_underscored_name -%> ` InSpec audit resource to test the properties of a Google Cloud <%= object.name -%> resource.
3930
4031<% if beta?(object) -%>
41-
42-
4332## Beta Resource
44- This resource has beta fields available. To retrieve these fields, include `beta: true` in the constructor for the resource
33+
34+ This resource has beta fields available. To retrieve these fields, include `beta: true` in the constructor for the resource.
4535
4636<% end -%>
4737## Examples
48- ```
49- <%= compile(pwd + "/templates/inspec/examples/#{resource_name(object, product)}/#{resource_underscored_name}.erb") -%>
5038
39+ ```ruby
40+ <%= compile(pwd + "/templates/inspec/examples/#{resource_name(object, product)}/#{resource_underscored_name}.erb") -%>
5141```
5242<% if object.singular_extra_examples && !plural -%>
5343
@@ -60,27 +50,31 @@ This resource has beta fields available. To retrieve these fields, include `beta
6050
6151<% end -%>
6252
53+ <% if plural -%>
6354## Parameters
64- Properties that can be accessed from the `<%= resource_underscored_name -%> ` resource:
6555
66- <% if plural -%>
67- See <%= "[#{resource_name(object, product)}.md](#{resource_name(object, product)}.md)" -%> for more detailed information
56+ Parameters that can be accessed from the ` <%= resource_underscored_name -%> ` resource:
57+
6858<% object.all_user_properties.reject(&:exclude_plural).each do |prop| -%>
6959* `<%= "#{(prop.override_name || prop.out_name).pluralize}" -%> `: <% if prop.min_version.name == 'beta' -%> <%= '(Beta only) ' -%> <% end -%> an array of `<%= resource_name(object, product) -%> ` <%= "#{prop.out_name}" -%>
70-
7160<% end -%>
61+
62+ See the <%= "[#{resource_name(object, product)}](#{resource_name(object, product)})" -%> resource for more detailed information.
7263<% end -%>
64+
7365## Properties
66+
7467Properties that can be accessed from the `<%= resource_underscored_name -%> ` resource:
7568
7669<% if plural -%>
77- See <%= "[#{resource_name(object, product)}.md](#{resource_name(object, product)}.md)" -%> for more detailed information
7870<% object.all_user_properties.reject(&:exclude_plural).each do |prop| -%>
7971* `<%= "#{(prop.override_name || prop.out_name).pluralize}" -%> `: <% if prop.min_version.name == 'beta' -%> <%= '(Beta only) ' -%> <% end -%> an array of `<%= resource_name(object, product) -%> ` <%= "#{prop.out_name}" -%>
80-
8172<% end -%>
8273
83- ## Filter Criteria
74+ See the <%= "[#{resource_name(object, product)}](#{resource_name(object, product)})" -%> resource for more detailed information.
75+
76+ ## Filter criteria
77+
8478This resource supports all of the above properties as filter criteria, which can be used
8579with `where` as a block or a method.
8680<% else # if plural -%>
@@ -93,7 +87,7 @@ with `where` as a block or a method.
9387<% end # if plural -%>
9488<% unless @api.apis_required&.empty? -%>
9589
96- ## GCP Permissions
90+ ## GCP permissions
9791
9892<% @api.apis_required&.each do |api| -%>
9993Ensure the [<%= api.name -%> ](<%= api.url -%> ) is enabled for the current project.
0 commit comments