ServiceMicrosoftTeamsArgs

data class ServiceMicrosoftTeamsArgs(val branchesToBeNotified: Output<String>? = null, val confidentialIssuesEvents: Output<Boolean>? = null, val confidentialNoteEvents: Output<Boolean>? = null, val issuesEvents: Output<Boolean>? = null, val mergeRequestsEvents: Output<Boolean>? = null, val noteEvents: Output<Boolean>? = null, val notifyOnlyBrokenPipelines: Output<Boolean>? = null, val pipelineEvents: Output<Boolean>? = null, val project: Output<String>? = null, val pushEvents: Output<Boolean>? = null, val tagPushEvents: Output<Boolean>? = null, val webhook: Output<String>? = null, val wikiPageEvents: Output<Boolean>? = null) : ConvertibleToJava<ServiceMicrosoftTeamsArgs>

The gitlab.ServiceMicrosoftTeams resource allows to manage the lifecycle of a project integration with Microsoft Teams. 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.ServiceMicrosoftTeams;
import com.pulumi.gitlab.ServiceMicrosoftTeamsArgs;
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 teams = new ServiceMicrosoftTeams("teams", ServiceMicrosoftTeamsArgs.builder()
.project(awesomeProject.id())
.webhook("https://testurl.com/?token=XYZ")
.pushEvents(true)
.build());
}
}

Import

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

$ pulumi import gitlab:index/serviceMicrosoftTeams:ServiceMicrosoftTeams teams 1

Constructors

Link copied to clipboard
constructor(branchesToBeNotified: Output<String>? = null, confidentialIssuesEvents: Output<Boolean>? = null, confidentialNoteEvents: Output<Boolean>? = null, issuesEvents: Output<Boolean>? = null, mergeRequestsEvents: Output<Boolean>? = null, noteEvents: Output<Boolean>? = null, notifyOnlyBrokenPipelines: Output<Boolean>? = null, pipelineEvents: Output<Boolean>? = null, project: Output<String>? = null, pushEvents: Output<Boolean>? = null, tagPushEvents: Output<Boolean>? = null, webhook: Output<String>? = null, wikiPageEvents: Output<Boolean>? = null)

Properties

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

Branches to send notifications for. Valid options are “all”, “default”, “protected”, and “defaultandprotected”. The default value is “default”

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

Enable notifications for confidential issue events

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

Enable notifications for confidential note events

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

Enable notifications for issue events

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

Enable notifications for merge request events

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

Enable notifications for note events

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

Send notifications for broken pipelines

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

Enable notifications for pipeline events

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

ID 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 tagPushEvents: Output<Boolean>? = null

Enable notifications for tag push events

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

The Microsoft Teams webhook. For example, https://outlook.office.com/webhook/...

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

Enable notifications for wiki page events

Functions

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