Skip to content

Commit 18c6976

Browse files
committed
update doc
1 parent 277ba73 commit 18c6976

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

docs/resources/project_access_token.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,10 @@ The `gitlab_project_access_token` resource allows to manage the lifecycle of a p
1717

1818
```terraform
1919
resource "gitlab_project_access_token" "example" {
20-
project = "25"
21-
name = "Example project access token"
22-
expires_at = "2020-03-14"
20+
project = "25"
21+
name = "Example project access token"
22+
expires_at = "2020-03-14"
23+
access_level = "reporter"
2324
2425
scopes = ["api"]
2526
}
@@ -42,6 +43,7 @@ resource "gitlab_project_variable" "example" {
4243

4344
### Optional
4445

46+
- `access_level` (String) The access level of the associated user_id project membership (cf resource_gitlab_project_membership). Valid values are: `no one`, `minimal`, `guest`, `reporter`, `developer`, `maintainer`, `master`. Default is `maintainer`
4547
- `expires_at` (String) Time the token will expire it, YYYY-MM-DD format. Will not expire per default.
4648
- `id` (String) The ID of this resource.
4749

internal/provider/resource_gitlab_project_access_token.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ var _ = registerResource("gitlab_project_access_token", func() *schema.Resource
9191
Computed: true,
9292
},
9393
"access_level": {
94-
Description: fmt.Sprintf("The access level of the associated user_id membership (cf resource_gitlab_project_membership). Valid values are: %s", renderValueListForDocs(validProjectAccessLevelNames)),
94+
Description: fmt.Sprintf("The access level of the associated user_id project membership (cf resource_gitlab_project_membership). Valid values are: %s. Default is `%s`", renderValueListForDocs(validProjectAccessLevelNames), accessLevelValueToName[gitlab.MaintainerPermissions]),
9595
Type: schema.TypeString,
9696
ValidateDiagFunc: validation.ToDiagFunc(validation.StringInSlice(validProjectAccessLevelNames, false)),
9797
Optional: true,

0 commit comments

Comments
 (0)