Skip to content

Commit 93105bc

Browse files
committed
resource/gitlab_tag_protection: Improve documentation and reference upstream docs
1 parent f83b2c6 commit 93105bc

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

docs/resources/tag_protection.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,15 @@
33
page_title: "gitlab_tag_protection Resource - terraform-provider-gitlab"
44
subcategory: ""
55
description: |-
6-
This resource allows you to protect a specific tag or wildcard by an access level so that the user with less access level cannot Create the tags.
6+
The gitlab_tag_protection resource allows to manage the lifecycle of a tag protection.
7+
Upstream API: GitLab REST API docs https://docs.gitlab.com/ee/api/protected_tags.html
78
---
89

910
# gitlab_tag_protection (Resource)
1011

11-
This resource allows you to protect a specific tag or wildcard by an access level so that the user with less access level cannot Create the tags.
12+
The `gitlab_tag_protection` resource allows to manage the lifecycle of a tag protection.
13+
14+
**Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/protected_tags.html)
1215

1316
## Example Usage
1417

internal/provider/resource_gitlab_tag_protection.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ import (
1313

1414
var _ = registerResource("gitlab_tag_protection", func() *schema.Resource {
1515
return &schema.Resource{
16-
Description: "This resource allows you to protect a specific tag or wildcard by an access level so that the user with less access level cannot Create the tags.",
16+
Description: `The ` + "`" + `gitlab_tag_protection` + "`" + ` resource allows to manage the lifecycle of a tag protection.
17+
18+
**Upstream API**: [GitLab REST API docs](https://docs.gitlab.com/ee/api/protected_tags.html)`,
1719

1820
CreateContext: resourceGitlabTagProtectionCreate,
1921
ReadContext: resourceGitlabTagProtectionRead,

0 commit comments

Comments
 (0)