-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #280 from lornest/master
Terraform Provider Documentation Alignment
- Loading branch information
Showing
167 changed files
with
3,157 additions
and
1,838 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: tfplugindocs check | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
tfplugindocs_check: | ||
name: tfplugindocs check | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 | ||
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 | ||
with: | ||
go-version-file: tools/go.mod | ||
- name: GOCACHE | ||
run: | | ||
echo "GOCACHE=$(go env GOCACHE)" >> $GITHUB_ENV | ||
- uses: actions/cache@3624ceb22c1c5a301c8db4169662070a689d9ea8 # v4.1.1 | ||
continue-on-error: true | ||
timeout-minutes: 2 | ||
with: | ||
path: ${{ env.GOCACHE }} | ||
key: ${{ runner.os }}-GOCACHE-${{ hashFiles('go.sum') }}-${{ hashFiles('internal/**') }} | ||
- uses: actions/cache@3624ceb22c1c5a301c8db4169662070a689d9ea8 # v4.1.1 | ||
continue-on-error: true | ||
timeout-minutes: 2 | ||
with: | ||
path: ~/go/pkg/mod | ||
key: ${{ runner.os }}-go-pkg-mod-${{ hashFiles('go.sum') }} | ||
- run: | | ||
make tools | ||
make docs | ||
git add -N docs/ | ||
git diff --exit-code |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: tfplugindocs generate | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- .github/workflows/tfplugindocs-check.yml | ||
- Makefile | ||
- docs/** | ||
- examples/** | ||
- templates/** | ||
- sonarqube/** | ||
|
||
jobs: | ||
tfplugindocs_generate: | ||
name: tfplugindocs generate | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 | ||
with: | ||
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal token | ||
fetch-depth: 0 # otherwise, you will fail to push refs to dest repo | ||
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 | ||
with: | ||
go-version-file: tools/go.mod | ||
- name: GOCACHE | ||
run: | | ||
echo "GOCACHE=$(go env GOCACHE)" >> $GITHUB_ENV | ||
- uses: actions/cache@3624ceb22c1c5a301c8db4169662070a689d9ea8 # v4.1.1 | ||
continue-on-error: true | ||
timeout-minutes: 2 | ||
with: | ||
path: ${{ env.GOCACHE }} | ||
key: ${{ runner.os }}-GOCACHE-${{ hashFiles('go.sum') }}-${{ hashFiles('internal/**') }} | ||
- uses: actions/cache@3624ceb22c1c5a301c8db4169662070a689d9ea8 # v4.1.1 | ||
continue-on-error: true | ||
timeout-minutes: 2 | ||
with: | ||
path: ~/go/pkg/mod | ||
key: ${{ runner.os }}-go-pkg-mod-${{ hashFiles('go.sum') }} | ||
- run: | | ||
make tools | ||
make docs | ||
- uses: actions-js/push@5a7cbd780d82c0c937b5977586e641b2fd94acc5 #v1.5 | ||
name: Github commit and push | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
branch: ${{ github.head_ref }} | ||
message: "[bot] docs: tfplugindocs generate" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,3 +27,6 @@ coverage.txt | |
# dist directory for local testingg | ||
dist/ | ||
.vscode/settings.json | ||
|
||
.DS_Store | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "sonarqube_group Data Source - terraform-provider-sonarqube" | ||
subcategory: "" | ||
description: |- | ||
Use this data source to get a Sonarqube Group resource | ||
--- | ||
|
||
# sonarqube_group (Data Source) | ||
|
||
Use this data source to get a Sonarqube Group resource | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
data "sonarqube_group" "group" { | ||
name = "terraform-test" | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `name` (String) The name of the group. | ||
|
||
### Read-Only | ||
|
||
- `description` (String) The group description. | ||
- `id` (String) The ID of this resource. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "sonarqube_portfolio Data Source - terraform-provider-sonarqube" | ||
subcategory: "" | ||
description: |- | ||
Use this data source to get a Sonarqube portfolio resource | ||
--- | ||
|
||
# sonarqube_portfolio (Data Source) | ||
|
||
Use this data source to get a Sonarqube portfolio resource | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
data "sonarqube_portfolio" "portfolio" { | ||
key = "portfolio-key" | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `key` (String) The key of the portfolio | ||
|
||
### Read-Only | ||
|
||
- `branch` (String) Which branch is analyzed | ||
- `description` (String) Description of the portfolio | ||
- `id` (String) The ID of this resource. | ||
- `name` (String) Name of the portfolio | ||
- `qualifier` (String) `VW` (portfolios always have this qualifier) | ||
- `regexp` (String) The regular expression used to populate the portfolio. Only active when `selection_mode` is `REGEXP` | ||
- `selection_mode` (String) How the Portfolio is populated. Possible values are `NONE`, `MANUAL`, `TAGS`, `REGEXP` or `REST`. [See docs](https://docs.sonarqube.org/9.8/project-administration/managing-portfolios/#populating-portfolios) for how Portfolio population works | ||
- `tags` (List of String) The list of tags used to populate the Portfolio. Only active when `selection_mode` is `TAGS` | ||
- `visibility` (String) Portfolio visibility |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "sonarqube_project Data Source - terraform-provider-sonarqube" | ||
subcategory: "" | ||
description: |- | ||
Use this data source to get a Sonarqube project resource | ||
--- | ||
|
||
# sonarqube_project (Data Source) | ||
|
||
Use this data source to get a Sonarqube project resource | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
data "sonarqube_project" "project" { | ||
project = "projet-key-id" | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `project` (String) The project key of the project | ||
|
||
### Read-Only | ||
|
||
- `id` (String) The ID of this resource. | ||
- `name` (String) Name of the project | ||
- `visibility` (String) Project visibility |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "sonarqube_qualitygate Data Source - terraform-provider-sonarqube" | ||
subcategory: "" | ||
description: |- | ||
Use this data source to get a Sonarqube qualitygate resource | ||
--- | ||
|
||
# sonarqube_qualitygate (Data Source) | ||
|
||
Use this data source to get a Sonarqube qualitygate resource | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
data "sonarqube_qualitygate" "main" { | ||
name = "example" | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `name` (String) The name of the Quality Gate. | ||
|
||
### Read-Only | ||
|
||
- `condition` (List of Object) List of Quality Gate conditions. (see [below for nested schema](#nestedatt--condition)) | ||
- `copy_from` (String) Origin of the Quality Gate | ||
- `id` (String) The ID of this resource. | ||
- `is_default` (Boolean) Quality Gate default. | ||
|
||
<a id="nestedatt--condition"></a> | ||
### Nested Schema for `condition` | ||
|
||
Read-Only: | ||
|
||
- `id` (String) | ||
- `metric` (String) | ||
- `op` (String) | ||
- `threshold` (String) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "sonarqube_qualityprofile Data Source - terraform-provider-sonarqube" | ||
subcategory: "" | ||
description: |- | ||
Use this data source to get a Sonarqube qualityprofile resource | ||
--- | ||
|
||
# sonarqube_qualityprofile (Data Source) | ||
|
||
Use this data source to get a Sonarqube qualityprofile resource | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
data "sonarqube_qualityprofile" "main" { | ||
name = "example" | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `name` (String) The name of the Quality Profile | ||
|
||
### Read-Only | ||
|
||
- `id` (String) The ID of this resource. | ||
- `is_default` (Boolean) Quality Profile default | ||
- `key` (String) The key of the Quality Profile | ||
- `language` (String) Quality Profile language |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "sonarqube_rule Data Source - terraform-provider-sonarqube" | ||
subcategory: "" | ||
description: |- | ||
Use this data source to get a Sonarqube rule resource | ||
--- | ||
|
||
# sonarqube_rule (Data Source) | ||
|
||
Use this data source to get a Sonarqube rule resource | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
data "sonarqube_rule" "rule" { | ||
key = "squid:forbidSonar" | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `key` (String) The key of the sonarqube rule. Should be <repo>:<name>. https://next.sonarqube.com/sonarqube/web_api/api/rules?query=api%2Frules%2Fcreate | ||
|
||
### Read-Only | ||
|
||
- `id` (String) The ID of this resource. | ||
- `markdown_description` (String) Rule description | ||
- `name` (String) Rule name | ||
- `severity` (String) Rule severity | ||
- `status` (String) Rule status | ||
- `template_key` (String) Key of the template rule | ||
- `type` (String) Rule type |
Oops, something went wrong.