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 organization robot and organization team data sources #9

Merged
merged 3 commits into from
Aug 28, 2024
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
80 changes: 80 additions & 0 deletions code_generator/provider_code_spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,86 @@
]
}
},
{
"name": "organization_robot",
"schema": {
"attributes": [
{
"name": "description",
"string": {
"computed_optional_required": "computed",
"description": "Text description"
}
},
{
"name": "fullname",
"string": {
"computed_optional_required": "computed",
"description": "Robot full name"
}
},
{
"name": "name",
"string": {
"computed_optional_required": "required",
"description": "Robot short name"
}
},
{
"name": "orgname",
"string": {
"computed_optional_required": "required",
"description": "Organization name"
}
}
]
}
},
{
"name": "organization_team",
"schema": {
"attributes": [
{
"name": "description",
"string": {
"computed_optional_required": "computed",
"description": "Markdown description"
}
},
{
"name": "members",
"list": {
"computed_optional_required": "computed",
"description": "List of team members",
"element_type": {
"string": {}
}
}
},
{
"name": "name",
"string": {
"computed_optional_required": "required",
"description": "Team name"
}
},
{
"name": "orgname",
"string": {
"computed_optional_required": "required",
"description": "Organization name"
}
},
{
"name": "role",
"string": {
"computed_optional_required": "computed",
"description": "Team role"
}
}
]
}
},
{
"name": "organization_team_permission",
"schema": {
Expand Down
38 changes: 38 additions & 0 deletions docs/data-sources/organization_robot.md
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
49 changes: 49 additions & 0 deletions docs/data-sources/organization_team.md
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
9 changes: 9 additions & 0 deletions examples/data-sources/quay_organization_robot/data-source.tf
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 examples/data-sources/quay_organization_team/data-source.tf
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
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading