GroupProjectFileTemplateArgs

data class GroupProjectFileTemplateArgs(val fileTemplateProjectId: Output<Int>? = null, val groupId: Output<Int>? = null) : ConvertibleToJava<GroupProjectFileTemplateArgs>

The gitlab.GroupProjectFileTemplate resource allows setting a project from which custom file templates will be loaded. In order to use this resource, the project selected must be a direct child of the group selected. After the resource has run, gitlab_project_template.template_project_id is available for use. For more information about which file types are available as templates, view GitLab's documentation

This resource requires a GitLab Enterprise instance with a Premium license. Upstream API: GitLab REST API docs

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gitlab.Group;
import com.pulumi.gitlab.GroupArgs;
import com.pulumi.gitlab.Project;
import com.pulumi.gitlab.ProjectArgs;
import com.pulumi.gitlab.GroupProjectFileTemplate;
import com.pulumi.gitlab.GroupProjectFileTemplateArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var foo = new Group("foo", GroupArgs.builder()
.path("group")
.description("An example group")
.build());
var bar = new Project("bar", ProjectArgs.builder()
.description("contains file templates")
.visibilityLevel("public")
.namespaceId(foo.id())
.build());
var templateLink = new GroupProjectFileTemplate("templateLink", GroupProjectFileTemplateArgs.builder()
.groupId(foo.id())
.project(bar.id())
.build());
}
}

Constructors

Link copied to clipboard
constructor(fileTemplateProjectId: Output<Int>? = null, groupId: Output<Int>? = null)

Properties

Link copied to clipboard
val fileTemplateProjectId: Output<Int>? = null

The ID of the project that will be used for file templates. This project must be the direct child of the project defined by the group_id

Link copied to clipboard
val groupId: Output<Int>? = null

The ID of the group that will use the file template project. This group must be the direct parent of the project defined by project_id

Functions

Link copied to clipboard
open override fun toJava(): GroupProjectFileTemplateArgs