Skip to content

Commit 82b81d6

Browse files
committed
Manually add descriptions to schemas that could not be auto-generated
Handcrafted changes to schema descriptions and examples
1 parent 358bfd3 commit 82b81d6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+477
-310
lines changed

examples/provider/provider.tf

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Configure the GitLab Provider
2+
provider "gitlab" {
3+
token = var.gitlab_token
4+
}
5+
6+
# Add a project owned by the user
7+
resource "gitlab_project" "sample_project" {
8+
name = "example"
9+
}
10+
11+
# Add a hook to the project
12+
resource "gitlab_project_hook" "sample_project_hook" {
13+
project = gitlab_project.sample_project.id
14+
url = "https://example.com/project_hook"
15+
}
16+
17+
# Add a variable to the project
18+
resource "gitlab_project_variable" "sample_project_variable" {
19+
project = gitlab_project.sample_project.id
20+
key = "project_variable_key"
21+
value = "project_variable_value"
22+
}
23+
24+
# Add a deploy key to the project
25+
resource "gitlab_deploy_key" "sample_deploy_key" {
26+
project = gitlab_project.sample_project.id
27+
title = "terraform example"
28+
key = "ssh-rsa AAAA..."
29+
}
30+
31+
# Add a group
32+
resource "gitlab_group" "sample_group" {
33+
name = "example"
34+
path = "example"
35+
description = "An example group"
36+
}
37+
38+
# Add a project to the group - example/example
39+
resource "gitlab_project" "sample_group_project" {
40+
name = "example"
41+
namespace_id = gitlab_group.sample_group.id
42+
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# GitLab group badges can be imported using an id made up of `{group_id}:{badge_id}`, e.g.
2+
terraform import gitlab_group_badge.foo 1:3
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
# You can import a group custom attribute using the following id pattern:
2-
terraform import gitlab_group_custom_attribute.attr <group-id>:<key>
1+
# You can import a group custom attribute using the an id made up of `{group-id}:{key}`, e.g.
2+
terraform import gitlab_group_custom_attribute.attr 42:location
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# GitLab instance clusters can be imported using a `clusterid`, e.g.
2+
terraform import gitlab_instance_cluster.bar 123
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# GitLab project badges can be imported using an id made up of `{project_id}:{badge_id}`, e.g.
2+
terraform import gitlab_project_badge.foo 1:3
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
# You can import a project custom attribute using the following id pattern:
2-
terraform import gitlab_project_custom_attribute.attr <project-id>:<key>
1+
# You can import a project custom attribute using an id made up of `{project-id}:{key}`, e.g.
2+
terraform import gitlab_project_custom_attribute.attr 42:location
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# GitLab project mirror can be imported using an id made up of `project_id:mirror_id`, e.g.
2+
terraform import gitlab_project_mirror.foo "12345:1337"
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
# A Repository File can be imported using the following id pattern, e.g.
2-
terraform import gitlab_repository_file.this <project-id>:<branch-name>:<file-path>
1+
# A Repository File can be imported using an id made up of `<project-id>:<branch-name>:<file-path>`, e.g.
2+
terraform import gitlab_repository_file.this 1:main:foo/bar.txt
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# You can import a service_jira state using the project ID, e.g.
2+
terraform import gitlab_service_jira.jira 1
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# You can import a service_microsoft_teams state using the project ID, e.g.
2+
terraform import gitlab_service_microsoft_teams.teams 1

0 commit comments

Comments
 (0)