Skip to content

Commit 633e2eb

Browse files
alex1xrosbo
authored andcommitted
Add Support for Google source repos (hashicorp#256)
1 parent aee2c1c commit 633e2eb

File tree

2 files changed

+51
-2
lines changed

2 files changed

+51
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
layout: "google"
3+
page_title: "Google: google_sourcerepo_repository"
4+
sidebar_current: "docs-google-sourcerepo_repository"
5+
description: |-
6+
Manages repositories within Google Cloud Source Repositories.
7+
---
8+
9+
# google\_sourcerepo\_repository
10+
11+
For more information, see [the official
12+
documentation](https://cloud.google.com/compute/docs/source-repositories) and
13+
[API](https://cloud.google.com/source-repositories/docs/reference/rest/v1/projects.repos)
14+
15+
## Example Usage
16+
17+
This example is the common case of creating a repository within Google Cloud Source Repositories:
18+
19+
```hcl
20+
resource "google_sourcerepo_repository" "frontend" {
21+
name = "frontend"
22+
}
23+
```
24+
25+
## Argument Reference
26+
27+
The following arguments are supported:
28+
29+
* `name` - (Required) The name of the repository that will be created.
30+
31+
- - -
32+
33+
* `project` - (Optional) The project in which the resource belongs. If it
34+
is not provided, the provider project is used.
35+
36+
## Attributes Reference
37+
38+
The following attribute is exported:
39+
40+
* `size` - The size of the repository.

google.erb

+11-2
Original file line numberDiff line numberDiff line change
@@ -185,11 +185,11 @@
185185
<li<%= sidebar_current("docs-google-compute-router-peer") %>>
186186
<a href="/docs/providers/google/r/compute_router_peer.html">google_compute_router_peer</a>
187187
</li>
188-
188+
189189
<li<%= sidebar_current("docs-google-compute-snapshot") %>>
190190
<a href="/docs/providers/google/r/compute_snapshot.html">google_compute_snapshot</a>
191191
</li>
192-
192+
193193
<li<%= sidebar_current("docs-google-compute-ssl-certificate") %>>
194194
<a href="/docs/providers/google/r/compute_ssl_certificate.html">google_compute_ssl_certificate</a>
195195
</li>
@@ -263,6 +263,15 @@
263263
</ul>
264264
</li>
265265

266+
<li<%= sidebar_current("docs-google-sourcerepo") %>>
267+
<a href="#">Google Source Repositories Resources</a>
268+
<ul class="nav nav-visible">
269+
<li<%= sidebar_current("docs-google-sourcerepo-repository") %>>
270+
<a href="/docs/providers/google/r/sourcerepo-repository.html">google_sourcerepo_repository</a>
271+
</li>
272+
</ul>
273+
</li>
274+
266275
<li<%= sidebar_current("docs-google-sql") %>>
267276
<a href="#">Google SQL Resources</a>
268277
<ul class="nav nav-visible">

0 commit comments

Comments
 (0)