Skip to content

Commit

Permalink
Remove some unnecessary overrides, add google.erb.
Browse files Browse the repository at this point in the history
  • Loading branch information
nat-henderson committed Feb 10, 2020
1 parent 6ad0a84 commit 03ee74d
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
2 changes: 2 additions & 0 deletions api/resource.rb
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,8 @@ def self_link_uri
if @self_link.nil?
[@base_url, '{{name}}'].join('/')
else
# If the terms in this are not snake-cased, this will require
# an override in Terraform.
@self_link
end
end
Expand Down
2 changes: 1 addition & 1 deletion products/datastore/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ async: !ruby/object:Api::OpAsync
- false
error: !ruby/object:Api::OpAsync::Error
path: 'error'
message: 'message'
message: 'message'
objects:
- !ruby/object:Api::Resource
name: 'Index'
Expand Down
1 change: 0 additions & 1 deletion products/datastore/terraform.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ overrides: !ruby/object:Overrides::ResourceOverrides
Index: !ruby/object:Overrides::Terraform::ResourceOverride
id_format: "projects/{{project}}/indexes/{{index_id}}"
self_link: "projects/{{project}}/indexes/{{index_id}}"
import_format: ["projects/{{project}}/indexes/{{index_id}}"]
autogen_async: true
# TODO(ndmckinley): This resource doesn't have a name, so the current
# sweeper won't ever sweep it - might as well not have one for now,
Expand Down
9 changes: 9 additions & 0 deletions third_party/terraform/website-compiled/google.erb
Original file line number Diff line number Diff line change
Expand Up @@ -894,6 +894,15 @@
</ul>
</li>

<li<%%= sidebar_current("docs-google-datastore") %>>
<a href="#">Google Datastore Resources</a>
<ul class="nav nav-visible">
<li<%%= sidebar_current("docs-google-datastore-index") %>>
<a href="/docs/providers/google/r/datastore_index.html">google_datastore_index</a>
</li>
</ul>
</li>

<li<%%= sidebar_current("docs-google-dataproc") %>>
<a href="#">Google Dataproc Resources</a>
<ul class="nav nav-visible">
Expand Down

0 comments on commit 03ee74d

Please sign in to comment.