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
Copy file name to clipboardExpand all lines: docs/data-sources/project.md
+41Lines changed: 41 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,33 +32,74 @@ data "gitlab_project" "example" {
32
32
33
33
-**id** (String) The integer or path with namespace that uniquely identifies the project within the gitlab install.
34
34
-**path_with_namespace** (String) The path of the repository with namespace.
35
+
-**public_builds** (Boolean) If true, jobs can be viewed by non-project members.
35
36
36
37
### Read-Only
37
38
39
+
-**analytics_access_level** (String) Set the analytics access level. Valid values are `disabled`, `private`, `enabled`.
38
40
-**archived** (Boolean) Whether the project is in read-only mode (archived).
41
+
-**auto_cancel_pending_pipelines** (String) Auto-cancel pending pipelines. This isn’t a boolean, but enabled/disabled.
42
+
-**auto_devops_deploy_strategy** (String) Auto Deploy strategy. Valid values are `continuous`, `manual`, `timed_incremental`.
43
+
-**auto_devops_enabled** (Boolean) Enable Auto DevOps for this project.
44
+
-**autoclose_referenced_issues** (Boolean) Set whether auto-closing referenced issues on default branch.
45
+
-**build_git_strategy** (String) The Git strategy. Defaults to fetch.
46
+
-**build_timeout** (Number) The maximum amount of time, in seconds, that a job can run.
47
+
-**builds_access_level** (String) Set the builds access level. Valid values are `disabled`, `private`, `enabled`.
48
+
-**container_expiration_policy** (List of Object) Set the image cleanup policy for this project. **Note**: this field is sometimes named `container_expiration_policy_attributes` in the GitLab Upstream API. (see [below for nested schema](#nestedatt--container_expiration_policy))
49
+
-**container_registry_access_level** (String) Set visibility of container registry, for this project. Valid values are `disabled`, `private`, `enabled`.
39
50
-**default_branch** (String) The default branch for the project.
40
51
-**description** (String) A description of the project.
Description: "Automatically resolve merge request diffs discussions on lines changed with a push.",
156
+
Type: schema.TypeBool,
157
+
Computed: true,
158
+
},
159
+
"analytics_access_level": {
160
+
Description: fmt.Sprintf("Set the analytics access level. Valid values are %s.", renderValueListForDocs(validProjectAccessLevels)),
161
+
Type: schema.TypeString,
162
+
Computed: true,
163
+
},
164
+
"auto_cancel_pending_pipelines": {
165
+
Description: "Auto-cancel pending pipelines. This isn’t a boolean, but enabled/disabled.",
166
+
Type: schema.TypeString,
167
+
Computed: true,
168
+
},
169
+
"auto_devops_deploy_strategy": {
170
+
Description: fmt.Sprintf("Auto Deploy strategy. Valid values are %s.", renderValueListForDocs(validProjectAutoDevOpsDeployStrategyValues)),
171
+
Type: schema.TypeString,
172
+
Computed: true,
173
+
},
174
+
"auto_devops_enabled": {
175
+
Description: "Enable Auto DevOps for this project.",
176
+
Type: schema.TypeBool,
177
+
Computed: true,
178
+
},
179
+
"autoclose_referenced_issues": {
180
+
Description: "Set whether auto-closing referenced issues on default branch.",
181
+
Type: schema.TypeBool,
182
+
Computed: true,
183
+
},
184
+
"build_git_strategy": {
185
+
Description: "The Git strategy. Defaults to fetch.",
186
+
Type: schema.TypeString,
187
+
Computed: true,
188
+
},
189
+
"build_timeout": {
190
+
Description: "The maximum amount of time, in seconds, that a job can run.",
191
+
Type: schema.TypeInt,
192
+
Computed: true,
193
+
},
194
+
"builds_access_level": {
195
+
Description: fmt.Sprintf("Set the builds access level. Valid values are %s.", renderValueListForDocs(validProjectAccessLevels)),
196
+
Type: schema.TypeString,
197
+
Computed: true,
198
+
},
199
+
"container_expiration_policy": {
200
+
Description: "Set the image cleanup policy for this project. **Note**: this field is sometimes named `container_expiration_policy_attributes` in the GitLab Upstream API.",
201
+
Type: schema.TypeList,
202
+
Elem: containerExpirationPolicyAttributesSchema,
203
+
Computed: true,
204
+
},
205
+
"container_registry_access_level": {
206
+
Description: fmt.Sprintf("Set visibility of container registry, for this project. Valid values are %s.", renderValueListForDocs(validProjectAccessLevels)),
207
+
Type: schema.TypeString,
208
+
Computed: true,
209
+
},
210
+
"emails_disabled": {
211
+
Description: "Disable email notifications.",
212
+
Type: schema.TypeBool,
213
+
Computed: true,
214
+
},
215
+
"external_authorization_classification_label": {
216
+
Description: "The classification label for the project.",
217
+
Type: schema.TypeString,
218
+
Computed: true,
219
+
},
220
+
"forking_access_level": {
221
+
Description: fmt.Sprintf("Set the forking access level. Valid values are %s.", renderValueListForDocs(validProjectAccessLevels)),
222
+
Type: schema.TypeString,
223
+
Computed: true,
224
+
},
225
+
"issues_access_level": {
226
+
Description: fmt.Sprintf("Set the issues access level. Valid values are %s.", renderValueListForDocs(validProjectAccessLevels)),
227
+
Type: schema.TypeString,
228
+
Computed: true,
229
+
},
230
+
"merge_requests_access_level": {
231
+
Description: fmt.Sprintf("Set the merge requests access level. Valid values are %s.", renderValueListForDocs(validProjectAccessLevels)),
232
+
Type: schema.TypeString,
233
+
Computed: true,
234
+
},
235
+
"operations_access_level": {
236
+
Description: fmt.Sprintf("Set the operations access level. Valid values are %s.", renderValueListForDocs(validProjectAccessLevels)),
237
+
Type: schema.TypeString,
238
+
Computed: true,
239
+
},
240
+
"public_builds": {
241
+
Description: "If true, jobs can be viewed by non-project members.",
242
+
Type: schema.TypeBool,
243
+
Optional: true,
244
+
},
245
+
"repository_access_level": {
246
+
Description: fmt.Sprintf("Set the repository access level. Valid values are %s.", renderValueListForDocs(validProjectAccessLevels)),
247
+
Type: schema.TypeString,
248
+
Computed: true,
249
+
},
250
+
"repository_storage": {
251
+
Description: " Which storage shard the repository is on. (administrator only)",
252
+
Type: schema.TypeString,
253
+
Computed: true,
254
+
},
255
+
"requirements_access_level": {
256
+
Description: fmt.Sprintf("Set the requirements access level. Valid values are %s.", renderValueListForDocs(validProjectAccessLevels)),
257
+
Type: schema.TypeString,
258
+
Computed: true,
259
+
},
260
+
"security_and_compliance_access_level": {
261
+
Description: fmt.Sprintf("Set the security and compliance access level. Valid values are %s.", renderValueListForDocs(validProjectAccessLevels)),
262
+
Type: schema.TypeString,
263
+
Computed: true,
264
+
},
265
+
"snippets_access_level": {
266
+
Description: fmt.Sprintf("Set the snippets access level. Valid values are %s.", renderValueListForDocs(validProjectAccessLevels)),
267
+
Type: schema.TypeString,
268
+
Computed: true,
269
+
},
270
+
"topics": {
271
+
Description: "The list of topics for the project.",
272
+
Type: schema.TypeSet,
273
+
Set: schema.HashString,
274
+
Elem: &schema.Schema{Type: schema.TypeString},
275
+
Computed: true,
276
+
},
277
+
"wiki_access_level": {
278
+
Description: fmt.Sprintf("Set the wiki access level. Valid values are %s.", renderValueListForDocs(validProjectAccessLevels)),
279
+
Type: schema.TypeString,
280
+
Computed: true,
281
+
},
282
+
"squash_commit_template": {
283
+
Description: "Template used to create squash commit message in merge requests. (Introduced in GitLab 14.6.)",
284
+
Type: schema.TypeString,
285
+
Computed: true,
286
+
},
287
+
"merge_commit_template": {
288
+
Description: "Template used to create merge commit message in merge requests. (Introduced in GitLab 14.5.)",
289
+
Type: schema.TypeString,
290
+
Computed: true,
291
+
},
154
292
// lintignore: S031 // TODO: Resolve this tfproviderlint issue
155
293
"push_rules": {
156
294
Description: "Push rules for the project.",
@@ -261,6 +399,37 @@ func dataSourceGitlabProjectRead(ctx context.Context, d *schema.ResourceData, me
0 commit comments