ServiceEmailsOnPushArgs

data class ServiceEmailsOnPushArgs(val branchesToBeNotified: Output<String>? = null, val disableDiffs: Output<Boolean>? = null, val project: Output<String>? = null, val pushEvents: Output<Boolean>? = null, val recipients: Output<String>? = null, val sendFromCommitterEmail: Output<Boolean>? = null, val tagPushEvents: Output<Boolean>? = null) : ConvertibleToJava<ServiceEmailsOnPushArgs>

The gitlab.ServiceEmailsOnPush resource allows to manage the lifecycle of a project integration with Emails on Push Service. 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.ServiceEmailsOnPush;
import com.pulumi.gitlab.ServiceEmailsOnPushArgs;
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 awesomeProject = new Project("awesomeProject", ProjectArgs.builder()
.description("My awesome project.")
.visibilityLevel("public")
.build());
var emails = new ServiceEmailsOnPush("emails", ServiceEmailsOnPushArgs.builder()
.project(awesomeProject.id())
.recipients("myrecipient@example.com myotherrecipient@example.com")
.build());
}
}

Import

You can import a gitlab_service_emails_on_push state using the project ID, e.g.

$ pulumi import gitlab:index/serviceEmailsOnPush:ServiceEmailsOnPush emails 1

Constructors

Link copied to clipboard
constructor(branchesToBeNotified: Output<String>? = null, disableDiffs: Output<Boolean>? = null, project: Output<String>? = null, pushEvents: Output<Boolean>? = null, recipients: Output<String>? = null, sendFromCommitterEmail: Output<Boolean>? = null, tagPushEvents: Output<Boolean>? = null)

Properties

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

Branches to send notifications for. Valid options are all, default, protected, default_and_protected. Notifications are always fired for tag pushes.

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

Disable code diffs.

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

ID or full-path of the project you want to activate integration on.

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

Enable notifications for push events.

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

Emails separated by whitespace.

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

Send from committer.

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

Enable notifications for tag push events.

Functions

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