ProjectMilestoneArgs

data class ProjectMilestoneArgs(val description: Output<String>? = null, val dueDate: Output<String>? = null, val project: Output<String>? = null, val startDate: Output<String>? = null, val state: Output<String>? = null, val title: Output<String>? = null) : ConvertibleToJava<ProjectMilestoneArgs>

The gitlab.ProjectMilestone resource allows to manage the lifecycle of a project milestone. 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.Project;
import com.pulumi.gitlab.ProjectArgs;
import com.pulumi.gitlab.ProjectMilestone;
import com.pulumi.gitlab.ProjectMilestoneArgs;
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 exampleProject = new Project("exampleProject", ProjectArgs.builder()
.description("An example project")
.namespaceId(gitlab_group.example().id())
.build());
var exampleProjectMilestone = new ProjectMilestone("exampleProjectMilestone", ProjectMilestoneArgs.builder()
.project(exampleProject.id())
.title("example")
.build());
}
}

Import

Gitlab project milestone can be imported with a key composed of <project>:<milestone_id>, e.g.

$ pulumi import gitlab:index/projectMilestone:ProjectMilestone example "12345:11"

Constructors

Link copied to clipboard
constructor(description: Output<String>? = null, dueDate: Output<String>? = null, project: Output<String>? = null, startDate: Output<String>? = null, state: Output<String>? = null, title: Output<String>? = null)

Properties

Link copied to clipboard
val description: Output<String>? = null

The description of the milestone.

Link copied to clipboard
val dueDate: Output<String>? = null

The due date of the milestone. Date time string in the format YYYY-MM-DD, for example 2016-03-11.

Link copied to clipboard
val project: Output<String>? = null

The ID or URL-encoded path of the project owned by the authenticated user.

Link copied to clipboard
val startDate: Output<String>? = null

The start date of the milestone. Date time string in the format YYYY-MM-DD, for example 2016-03-11.

Link copied to clipboard
val state: Output<String>? = null

The state of the milestone. Valid values are: active, closed.

Link copied to clipboard
val title: Output<String>? = null

The title of a milestone.

Functions

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