Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
zhengbo committed Aug 6, 2024
1 parent 160c0fb commit 9e72eeb
Show file tree
Hide file tree
Showing 114 changed files with 1,706 additions and 11,439 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ name: Release
on:
push:
tags:
- 'v*'
- "v*"

# Releases need permissions to read and write the repository contents.
# GitHub considers creating releases and uploading assets as writing contents.
Expand All @@ -23,7 +23,7 @@ jobs:
fetch-depth: 0
- uses: actions/setup-go@v3
with:
go-version-file: 'go.mod'
go-version-file: "go.mod"
cache: true
- name: Import GPG key
uses: crazy-max/ghaction-import-gpg@v5
Expand All @@ -34,7 +34,7 @@ jobs:
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v3
with:
args: release --rm-dist
args: release --clean
env:
# GitHub sets the GITHUB_TOKEN secret automatically.
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,5 @@ dist/
.idea/
.vscode/

# Environment
.env*
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,6 @@ that return all the details about which versions are currently available for a p

## Development

### Testing

Guance Cloud Code Generation Pipeline generates this repository. So don't need to test. Please create issues for free.

### Generating documentation

This provider uses [terraform-plugin-docs](https://github.com/hashicorp/terraform-plugin-docs/)
Expand Down
33 changes: 16 additions & 17 deletions docs/data-sources/members.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,34 +31,33 @@ graph LR

### Optional

- `filters` (Attributes List) The list of the resource (see [below for nested schema](#nestedatt--filters))
- `max_results` (Number) The max results count of the resource will be returned.
- `search` (String) Search the member by email or name.

### Read-Only

- `id` (String) The hasd id of the resource.
- `items` (Attributes List) The list of the resource (see [below for nested schema](#nestedatt--items))
- `members` (Attributes List) The list of the members. (see [below for nested schema](#nestedatt--members))

<a id="nestedatt--filters"></a>
### Nested Schema for `filters`

Required:

- `name` (String) The filter path, represent as json path.
- `values` (List of String) The filter values


<a id="nestedatt--items"></a>
### Nested Schema for `items`
<a id="nestedatt--members"></a>
### Nested Schema for `members`

Optional:

- `email` (String) Email
- `role` (String) Role, value must be one of: *owner*, *wsAdmin*, *general*, *readOnly*, other value will be ignored.
- `name` (String) User name
- `roles` (Attributes List) Role, value must be one of: *owner*, *wsAdmin*, *general*, *readOnly*, other value will be ignored. (see [below for nested schema](#nestedatt--members--roles))

Read-Only:

- `created_at` (String) The RFC3339/ISO8601 time string of resource created at.
- `create_at` (String) The unix timestamp in seconds of the member creation.
- `id` (String) The Guance Resource Name (GRN) of cloud resource.
- `uuid` (String) The uuid of the member.

<a id="nestedatt--members--roles"></a>
### Nested Schema for `members.roles`

Optional:

- `name` (String) The name of the role.
- `uuid` (String) The UUID of the role.


60 changes: 60 additions & 0 deletions docs/data-sources/permissions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "guance_permissions Data Source - guance"
subcategory: ""
description: |-
A role permission is defined to grant a user permission to perform a specific action on a specific resource.
Guance Cloud supports a number of different role permissions, and you can create new roles for users and assign permission scopes to roles to meet the permission needs of your organization.
---

# guance_permissions (Data Source)

A role permission is defined to grant a user permission to perform a specific action on a specific resource.

Guance Cloud supports a number of different role permissions, and you can create new roles for users and assign permission scopes to roles to meet the permission needs of your organization.



<!-- schema generated by tfplugindocs -->
## Schema

### Optional

- `is_support_custom_role` (Boolean) Filter the permission list that supports custom role.

### Read-Only

- `permissions` (Attributes List) The list of the permissions. (see [below for nested schema](#nestedatt--permissions))

<a id="nestedatt--permissions"></a>
### Nested Schema for `permissions`

Read-Only:

- `desc` (String) The description of the permission.
- `disabled` (Number) The disabled status of the permission.
- `is_support_custom_role` (Number) Whether support custom role.
- `is_support_general` (Number) Whether support general.
- `is_support_owner` (Number) Whether support owner.
- `is_support_read_only` (Number) Whether support readonly.
- `is_support_ws_admin` (Number) Whether support WsAdmin.
- `key` (String) The key of the permission.
- `name` (String) The name of the permission.
- `subs` (Attributes List) The list of the sub permissions. (see [below for nested schema](#nestedatt--permissions--subs))

<a id="nestedatt--permissions--subs"></a>
### Nested Schema for `permissions.subs`

Read-Only:

- `desc` (String) The description of the permission.
- `disabled` (Number) The disabled status of the permission.
- `is_support_custom_role` (Number) Whether support custom role.
- `is_support_general` (Number) Whether support general.
- `is_support_owner` (Number) Whether support owner.
- `is_support_read_only` (Number) Whether support readonly.
- `is_support_ws_admin` (Number) Whether support WsAdmin.
- `key` (String) The key of the permission.
- `name` (String) The name of the permission.


5 changes: 5 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ description: |-
}
```
More Examples
Example Source Code https://github.com/GuanceCloud/terraform-provider-guance/tree/main/examplesInteractive Guidelines https://github.com/GuanceCloud/guance-scenarios
---

# guance Provider
Expand Down Expand Up @@ -75,6 +76,9 @@ provider "guance" {

## More Examples

* [Example Source Code](https://github.com/GuanceCloud/terraform-provider-guance/tree/main/examples)
* [Interactive Guidelines](https://github.com/GuanceCloud/guance-scenarios)



<!-- schema generated by tfplugindocs -->
Expand All @@ -83,4 +87,5 @@ provider "guance" {
### Optional

- `access_token` (String, Sensitive) Access token for Guance Cloud API. May also be provided via GUANCE_ACCESS_TOKEN environment variable. Get an Key ID from [Guance Cloud](https://console.guance.com/workspace/apiManage) as access token.
- `end_point` (String) EndPoint for Guance Cloud API. May also be provided via GUANCE_END_POINT environment variable. See [GitHub](https://github.com/GuanceCloud/terraform-provider-guance) for a list of available regions.
- `region` (String) Region for Guance Cloud API. May also be provided via GUANCE_REGION environment variable. See [GitHub](https://github.com/GuanceCloud/terraform-provider-guance) for a list of available regions.
Loading

0 comments on commit 9e72eeb

Please sign in to comment.