Skip to content

Commit

Permalink
Add descriptions to Terraform schema (GoogleCloudPlatform#2643)
Browse files Browse the repository at this point in the history
  • Loading branch information
rileykarson authored and modular-magician committed Nov 12, 2019
1 parent bf5e882 commit 03fc72c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion build/terraform
2 changes: 1 addition & 1 deletion build/terraform-beta
14 changes: 7 additions & 7 deletions products/compute/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -805,7 +805,7 @@ objects:
- !ruby/object:Api::Type::NestedObject
name: 'ttl'
description: |
Liftime of the cookie.
Lifetime of the cookie.
properties:
- !ruby/object:Api::Type::Integer
name: 'seconds'
Expand Down Expand Up @@ -1471,7 +1471,7 @@ objects:
- !ruby/object:Api::Type::NestedObject
name: 'ttl'
description: |
Liftime of the cookie.
Lifetime of the cookie.
properties:
- !ruby/object:Api::Type::Integer
name: 'seconds'
Expand Down Expand Up @@ -9167,11 +9167,11 @@ objects:
- :ACTIVE
- :BACKUP
description: |
The role of subnetwork. Currenly, this field is only used
when purpose = INTERNAL_HTTPS_LOAD_BALANCER. The value can be set
to ACTIVE or BACKUP. An ACTIVE subnetwork is one that is currently
being used for Internal HTTP(S) Load Balancing. A BACKUP subnetwork
is one that is ready to be promoted to ACTIVE or is currently draining.
The role of subnetwork. Currently, this field is only used when
purpose = INTERNAL_HTTPS_LOAD_BALANCER. The value can be set to ACTIVE
or BACKUP. An ACTIVE subnetwork is one that is currently being used
for Internal HTTP(S) Load Balancing. A BACKUP subnetwork is one that
is ready to be promoted to ACTIVE or is currently draining.
- !ruby/object:Api::Type::Array
name: 'secondaryIpRanges'
description: |
Expand Down
1 change: 1 addition & 0 deletions templates/terraform/schema_property.erb
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
<% unless property.state_func.nil? -%>
StateFunc: <%= property.state_func %>,
<% end -%>
Description: `<%= property.description.strip.gsub("`", "'") -%>`,
<% if property.is_a?(Api::Type::NestedObject) -%>
MaxItems: 1,
Elem: &schema.Resource{
Expand Down

0 comments on commit 03fc72c

Please sign in to comment.