-
Notifications
You must be signed in to change notification settings - Fork 0
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 #9 from enthought/add-datasources
Add organization robot and organization team data sources
- Loading branch information
Showing
12 changed files
with
633 additions
and
0 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
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: "quay_organization_robot Data Source - quay" | ||
subcategory: "" | ||
description: |- | ||
--- | ||
|
||
# quay_organization_robot (Data Source) | ||
|
||
|
||
|
||
## Example Usage | ||
|
||
```terraform | ||
resource "quay_organization" "org" { | ||
name = "org" | ||
email = "[email protected]" | ||
} | ||
data "quay_organization_robot" "robot" { | ||
name = "robot" | ||
orgname = quay_organization.org.name | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `name` (String) Robot short name | ||
- `orgname` (String) Organization name | ||
|
||
### Read-Only | ||
|
||
- `description` (String) Text description | ||
- `fullname` (String) Robot full name |
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,49 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "quay_organization_team Data Source - quay" | ||
subcategory: "" | ||
description: |- | ||
--- | ||
|
||
# quay_organization_team (Data Source) | ||
|
||
|
||
|
||
## Example Usage | ||
|
||
```terraform | ||
resource "quay_organization" "org" { | ||
name = "org" | ||
email = "[email protected]" | ||
} | ||
resource "quay_repository" "repo" { | ||
name = "repo" | ||
namespace = quay_organization.org.name | ||
} | ||
resource "quay_organization_robot" "robot" { | ||
name = "robot" | ||
orgname = quay_organization.org.name | ||
} | ||
data "quay_organization_team" "team" { | ||
name = "team" | ||
orgname = quay_organization.org.name | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `name` (String) Team name | ||
- `orgname` (String) Organization name | ||
|
||
### Read-Only | ||
|
||
- `description` (String) Markdown description | ||
- `members` (List of String) List of team members | ||
- `role` (String) Team role |
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,9 @@ | ||
resource "quay_organization" "org" { | ||
name = "org" | ||
email = "[email protected]" | ||
} | ||
|
||
data "quay_organization_robot" "robot" { | ||
name = "robot" | ||
orgname = quay_organization.org.name | ||
} |
19 changes: 19 additions & 0 deletions
19
examples/data-sources/quay_organization_team/data-source.tf
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,19 @@ | ||
resource "quay_organization" "org" { | ||
name = "org" | ||
email = "[email protected]" | ||
} | ||
|
||
resource "quay_repository" "repo" { | ||
name = "repo" | ||
namespace = quay_organization.org.name | ||
} | ||
|
||
resource "quay_organization_robot" "robot" { | ||
name = "robot" | ||
orgname = quay_organization.org.name | ||
} | ||
|
||
data "quay_organization_team" "team" { | ||
name = "team" | ||
orgname = quay_organization.org.name | ||
} |
44 changes: 44 additions & 0 deletions
44
internal/datasource_organization_robot/organization_robot_data_source_gen.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
51 changes: 51 additions & 0 deletions
51
internal/datasource_organization_team/organization_team_data_source_gen.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.