Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add descriptions to Terraform schema #2643

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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