GlobalLevelNotificationsArgs

data class GlobalLevelNotificationsArgs(val closeIssue: Output<Boolean>? = null, val closeMergeRequest: Output<Boolean>? = null, val failedPipeline: Output<Boolean>? = null, val fixedPipeline: Output<Boolean>? = null, val issueDue: Output<Boolean>? = null, val level: Output<String>? = null, val mergeMergeRequest: Output<Boolean>? = null, val mergeWhenPipelineSucceeds: Output<Boolean>? = null, val movedProject: Output<Boolean>? = null, val newIssue: Output<Boolean>? = null, val newMergeRequest: Output<Boolean>? = null, val newNote: Output<Boolean>? = null, val pushToMergeRequest: Output<Boolean>? = null, val reassignIssue: Output<Boolean>? = null, val reassignMergeRequest: Output<Boolean>? = null, val reopenIssue: Output<Boolean>? = null, val reopenMergeRequest: Output<Boolean>? = null, val successPipeline: Output<Boolean>? = null) : ConvertibleToJava<GlobalLevelNotificationsArgs>

The gitlab.GlobalLevelNotifications resource allows to manage global notifications. Upstream API: GitLab REST API docs

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as gitlab from "@pulumi/gitlab";
// Create Custom global level notification
const foo = new gitlab.GlobalLevelNotifications("foo", {
level: "custom",
newMergeRequest: true,
});
import pulumi
import pulumi_gitlab as gitlab
# Create Custom global level notification
foo = gitlab.GlobalLevelNotifications("foo",
level="custom",
new_merge_request=True)
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using GitLab = Pulumi.GitLab;
return await Deployment.RunAsync(() =>
{
// Create Custom global level notification
var foo = new GitLab.GlobalLevelNotifications("foo", new()
{
Level = "custom",
NewMergeRequest = true,
});
});
package main
import (
"github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// Create Custom global level notification
_, err := gitlab.NewGlobalLevelNotifications(ctx, "foo", &gitlab.GlobalLevelNotificationsArgs{
Level: pulumi.String("custom"),
NewMergeRequest: pulumi.Bool(true),
})
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.GlobalLevelNotifications;
import com.pulumi.gitlab.GlobalLevelNotificationsArgs;
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 Custom global level notification
var foo = new GlobalLevelNotifications("foo", GlobalLevelNotificationsArgs.builder()
.level("custom")
.newMergeRequest(true)
.build());
}
}
resources:
# Create Custom global level notification
foo:
type: gitlab:GlobalLevelNotifications
properties:
level: custom
newMergeRequest: true

Import

Note: You can import a global notification state using "gitlab" as the ID. The ID will always be gitlab, because the global notificatio only exists once per user

$ pulumi import gitlab:index/globalLevelNotifications:GlobalLevelNotifications example gitlab

Constructors

Link copied to clipboard
constructor(closeIssue: Output<Boolean>? = null, closeMergeRequest: Output<Boolean>? = null, failedPipeline: Output<Boolean>? = null, fixedPipeline: Output<Boolean>? = null, issueDue: Output<Boolean>? = null, level: Output<String>? = null, mergeMergeRequest: Output<Boolean>? = null, mergeWhenPipelineSucceeds: Output<Boolean>? = null, movedProject: Output<Boolean>? = null, newIssue: Output<Boolean>? = null, newMergeRequest: Output<Boolean>? = null, newNote: Output<Boolean>? = null, pushToMergeRequest: Output<Boolean>? = null, reassignIssue: Output<Boolean>? = null, reassignMergeRequest: Output<Boolean>? = null, reopenIssue: Output<Boolean>? = null, reopenMergeRequest: Output<Boolean>? = null, successPipeline: Output<Boolean>? = null)

Properties

Link copied to clipboard
val closeIssue: Output<Boolean>? = null

Enable notifications for closed issues. Can only be used when level is custom.

Link copied to clipboard
val closeMergeRequest: Output<Boolean>? = null

Enable notifications for closed merge requests. Can only be used when level is custom.

Link copied to clipboard
val failedPipeline: Output<Boolean>? = null

Enable notifications for failed pipelines. Can only be used when level is custom.

Link copied to clipboard
val fixedPipeline: Output<Boolean>? = null

Enable notifications for fixed pipelines. Can only be used when level is custom.

Link copied to clipboard
val issueDue: Output<Boolean>? = null

Enable notifications for due issues. Can only be used when level is custom.

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

The level of the notification. Valid values are: disabled, participating, watch, global, mention, custom.

Link copied to clipboard
val mergeMergeRequest: Output<Boolean>? = null

Enable notifications for merged merge requests. Can only be used when level is custom.

Link copied to clipboard
val mergeWhenPipelineSucceeds: Output<Boolean>? = null

Enable notifications for merged merge requests when the pipeline succeeds. Can only be used when level is custom.

Link copied to clipboard
val movedProject: Output<Boolean>? = null

Enable notifications for moved projects. Can only be used when level is custom.

Link copied to clipboard
val newIssue: Output<Boolean>? = null

Enable notifications for new issues. Can only be used when level is custom.

Link copied to clipboard
val newMergeRequest: Output<Boolean>? = null

Enable notifications for new merge requests. Can only be used when level is custom.

Link copied to clipboard
val newNote: Output<Boolean>? = null

Enable notifications for new notes on merge requests. Can only be used when level is custom.

Link copied to clipboard
val pushToMergeRequest: Output<Boolean>? = null

Enable notifications for push to merge request branches. Can only be used when level is custom.

Link copied to clipboard
val reassignIssue: Output<Boolean>? = null

Enable notifications for issue reassignments. Can only be used when level is custom.

Link copied to clipboard
val reassignMergeRequest: Output<Boolean>? = null

Enable notifications for merge request reassignments. Can only be used when level is custom.

Link copied to clipboard
val reopenIssue: Output<Boolean>? = null

Enable notifications for reopened issues. Can only be used when level is custom.

Link copied to clipboard
val reopenMergeRequest: Output<Boolean>? = null

Enable notifications for reopened merge requests. Can only be used when level is custom.

Link copied to clipboard
val successPipeline: Output<Boolean>? = null

Enable notifications for successful pipelines. Can only be used when level is custom.

Functions

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