You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`deploy_access_levels` (Block List, Min: 1, Max: 1) Array of access levels allowed to deploy, with each described by a hash. (see [below for nested schema](#nestedblock--deploy_access_levels))
79
+
-`deploy_access_levels` (Block List, Min: 1) Array of access levels allowed to deploy, with each described by a hash. (see [below for nested schema](#nestedblock--deploy_access_levels))
72
80
-`environment` (String) The name of the environment.
73
81
-`project` (String) The ID or full path of the project which the protected environment is created against.
Copy file name to clipboardExpand all lines: internal/provider/resource_gitlab_project_protected_environment.go
+36-18Lines changed: 36 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -40,16 +40,13 @@ var _ = registerResource("gitlab_project_protected_environment", func() *schema.
40
40
},
41
41
// Uncomment and validate after 14.9 is released, update acceptance tests
42
42
// "required_approval_count": {
43
-
// Description: "The number of approvals required to deploy to this environment. This is part of Deployment Approvals, which isn't yet available for use.",
44
-
// Type: schema.TypeString,
43
+
// Description: "The number of approvals required to deploy to this environment.",
44
+
// Type: schema.TypeInt,
45
45
// ForceNew: true,
46
-
// Required: false,
47
-
// ValidateFunc: validation.StringIsNotEmpty,
48
46
// },
49
47
"deploy_access_levels": {
50
48
Description: "Array of access levels allowed to deploy, with each described by a hash.",
51
49
Type: schema.TypeList,
52
-
MaxItems: 1,
53
50
ForceNew: true,
54
51
Required: true,
55
52
Elem: &schema.Resource{
@@ -59,7 +56,7 @@ var _ = registerResource("gitlab_project_protected_environment", func() *schema.
59
56
Type: schema.TypeString,
60
57
ForceNew: true,
61
58
Optional: true,
62
-
Computed: true,
59
+
Computed: true,// When user_id or group_id is specified, the GitLab API still returns an access_level in the response.
0 commit comments