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",
});
}
}
Inherited Members
Namespace: Pulumi.GitLab
Assembly: Pulumi.GitLab.dll
Syntax
public class ProjectHook : CustomResource
Constructors
View SourceProjectHook(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 SourceEnableSslVerification
Enable ssl verification when invoking the hook.
Declaration
public Output<bool?> EnableSslVerification { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
IssuesEvents
Invoke the hook for issues events.
Declaration
public Output<bool?> IssuesEvents { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
JobEvents
Invoke the hook for job events.
Declaration
public Output<bool?> JobEvents { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
MergeRequestsEvents
Invoke the hook for merge requests.
Declaration
public Output<bool?> MergeRequestsEvents { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
NoteEvents
Invoke the hook for notes events.
Declaration
public Output<bool?> NoteEvents { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
PipelineEvents
Invoke the hook for pipeline events.
Declaration
public Output<bool?> PipelineEvents { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
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> |
PushEvents
Invoke the hook for push events.
Declaration
public Output<bool?> PushEvents { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
TagPushEvents
Invoke the hook for tag push events.
Declaration
public Output<bool?> TagPushEvents { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
Token
A token to present when invoking the hook.
Declaration
public Output<string> Token { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Url
The url of the hook to invoke.
Declaration
public Output<string> Url { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
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 SourceGet(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 |