Show / Hide Table of Contents

Class ProjectHook

This resource allows you to create and manage hooks for your GitLab projects. For further information on hooks, consult the gitlab documentation.

Example Usage

using Pulumi;
using GitLab = Pulumi.GitLab;

class MyStack : Stack
{
public MyStack()
{
    var example = new GitLab.ProjectHook("example", new GitLab.ProjectHookArgs
    {
        MergeRequestsEvents = true,
        Project = "example/hooked",
        Url = "https://example.com/hook/example",
    });
}

}
Inheritance
System.Object
Resource
CustomResource
ProjectHook
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.GitLab
Assembly: Pulumi.GitLab.dll
Syntax
public class ProjectHook : CustomResource

Constructors

View Source

ProjectHook(String, ProjectHookArgs, CustomResourceOptions)

Create a ProjectHook resource with the given unique name, arguments, and options.

Declaration
public ProjectHook(string name, ProjectHookArgs args, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

ProjectHookArgs args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

EnableSslVerification

Enable ssl verification when invoking the hook.

Declaration
public Output<bool?> EnableSslVerification { get; }
Property Value
Type Description
Output<System.Nullable<System.Boolean>>
View Source

IssuesEvents

Invoke the hook for issues events.

Declaration
public Output<bool?> IssuesEvents { get; }
Property Value
Type Description
Output<System.Nullable<System.Boolean>>
View Source

JobEvents

Invoke the hook for job events.

Declaration
public Output<bool?> JobEvents { get; }
Property Value
Type Description
Output<System.Nullable<System.Boolean>>
View Source

MergeRequestsEvents

Invoke the hook for merge requests.

Declaration
public Output<bool?> MergeRequestsEvents { get; }
Property Value
Type Description
Output<System.Nullable<System.Boolean>>
View Source

NoteEvents

Invoke the hook for notes events.

Declaration
public Output<bool?> NoteEvents { get; }
Property Value
Type Description
Output<System.Nullable<System.Boolean>>
View Source

PipelineEvents

Invoke the hook for pipeline events.

Declaration
public Output<bool?> PipelineEvents { get; }
Property Value
Type Description
Output<System.Nullable<System.Boolean>>
View Source

Project

The name or id of the project to add the hook to.

Declaration
public Output<string> Project { get; }
Property Value
Type Description
Output<System.String>
View Source

PushEvents

Invoke the hook for push events.

Declaration
public Output<bool?> PushEvents { get; }
Property Value
Type Description
Output<System.Nullable<System.Boolean>>
View Source

TagPushEvents

Invoke the hook for tag push events.

Declaration
public Output<bool?> TagPushEvents { get; }
Property Value
Type Description
Output<System.Nullable<System.Boolean>>
View Source

Token

A token to present when invoking the hook.

Declaration
public Output<string> Token { get; }
Property Value
Type Description
Output<System.String>
View Source

Url

The url of the hook to invoke.

Declaration
public Output<string> Url { get; }
Property Value
Type Description
Output<System.String>
View Source

WikiPageEvents

Invoke the hook for wiki page events.

Declaration
public Output<bool?> WikiPageEvents { get; }
Property Value
Type Description
Output<System.Nullable<System.Boolean>>

Methods

View Source

Get(String, Input<String>, ProjectHookState, CustomResourceOptions)

Get an existing ProjectHook resource's state with the given name, ID, and optional extra properties used to qualify the lookup.

Declaration
public static ProjectHook Get(string name, Input<string> id, ProjectHookState state = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resulting resource.

Input<System.String> id

The unique provider ID of the resource to lookup.

ProjectHookState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
ProjectHook
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.