ProjectMilestone

class ProjectMilestone : KotlinCustomResource

The gitlab.ProjectMilestone resource allows to manage the lifecycle of a project milestone. Upstream API: GitLab REST API docs

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as gitlab from "@pulumi/gitlab";
// Create a project for the milestone to use
const example = new gitlab.Project("example", {
name: "example",
description: "An example project",
namespaceId: exampleGitlabGroup.id,
});
const exampleProjectMilestone = new gitlab.ProjectMilestone("example", {
project: example.id,
title: "example",
});
import pulumi
import pulumi_gitlab as gitlab
# Create a project for the milestone to use
example = gitlab.Project("example",
name="example",
description="An example project",
namespace_id=example_gitlab_group["id"])
example_project_milestone = gitlab.ProjectMilestone("example",
project=example.id,
title="example")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using GitLab = Pulumi.GitLab;
return await Deployment.RunAsync(() =>
{
// Create a project for the milestone to use
var example = new GitLab.Project("example", new()
{
Name = "example",
Description = "An example project",
NamespaceId = exampleGitlabGroup.Id,
});
var exampleProjectMilestone = new GitLab.ProjectMilestone("example", new()
{
Project = example.Id,
Title = "example",
});
});
package main
import (
"github.com/pulumi/pulumi-gitlab/sdk/v8/go/gitlab"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// Create a project for the milestone to use
example, err := gitlab.NewProject(ctx, "example", &gitlab.ProjectArgs{
Name: pulumi.String("example"),
Description: pulumi.String("An example project"),
NamespaceId: pulumi.Any(exampleGitlabGroup.Id),
})
if err != nil {
return err
}
_, err = gitlab.NewProjectMilestone(ctx, "example", &gitlab.ProjectMilestoneArgs{
Project: example.ID(),
Title: pulumi.String("example"),
})
if err != nil {
return err
}
return nil
})
}
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) {
// Create a project for the milestone to use
var example = new Project("example", ProjectArgs.builder()
.name("example")
.description("An example project")
.namespaceId(exampleGitlabGroup.id())
.build());
var exampleProjectMilestone = new ProjectMilestone("exampleProjectMilestone", ProjectMilestoneArgs.builder()
.project(example.id())
.title("example")
.build());
}
}
resources:
# Create a project for the milestone to use
example:
type: gitlab:Project
properties:
name: example
description: An example project
namespaceId: ${exampleGitlabGroup.id}
exampleProjectMilestone:
type: gitlab:ProjectMilestone
name: example
properties:
project: ${example.id}
title: example

Import

Starting in Terraform v1.5.0 you can use an import block to import gitlab_project_milestone. For example: terraform import { to = gitlab_project_milestone.example id = "see CLI command below for ID" } Import using the CLI is supported using the following syntax: 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"

Properties

Link copied to clipboard
val createdAt: Output<String>

The time of creation of the milestone. Date time string, ISO 8601 formatted, for example 2016-03-11T03:45:40Z.

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

The description of the milestone.

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

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 expired: Output<Boolean>

Bool, true if milestone expired.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val iid: Output<Int>

The ID of the project's milestone.

Link copied to clipboard
val milestoneId: Output<Int>

The instance-wide ID of the project’s milestone.

Link copied to clipboard
val project: Output<String>

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

Link copied to clipboard
val projectId: Output<Int>

The project ID of milestone.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val startDate: Output<String>?

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>?

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

Link copied to clipboard
val title: Output<String>

The title of a milestone.

Link copied to clipboard
val updatedAt: Output<String>

The last update time of the milestone. Date time string, ISO 8601 formatted, for example 2016-03-11T03:45:40Z.

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val webUrl: Output<String>

The web URL of the milestone.