Show / Hide Table of Contents

Class ProjectPushRules

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

Inheritance
System.Object
Resource
CustomResource
ProjectPushRules
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 ProjectPushRules : CustomResource

Constructors

View Source

ProjectPushRules(String, ProjectPushRulesArgs, CustomResourceOptions)

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

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

The unique name of the resource

ProjectPushRulesArgs 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

AuthorEmailRegex

All commit author emails must match this regex, e.g. "@my-company.com$"

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

BranchNameRegex

All branch names must match this regex, e.g. "(feature|hotfix)/*"

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

CommitMessageRegex

All commit messages must match this regex, e.g. "Fixed \d+..*"

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

DenyDeleteTag

Deny deleting a tag

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

FileNameRegex

All commited filenames must not match this regex, e.g. "(jar|exe)$"

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

MaxFileSize

Maximum file size (MB)

Declaration
public Output<int?> MaxFileSize { get; }
Property Value
Type Description
Output<System.Nullable<System.Int32>>
View Source

MemberCheck

Restrict commits by author (email) to existing GitLab users

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

PreventSecrets

GitLab will reject any files that are likely to contain secrets

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

Project

The name or id of the project to add the push rules to.

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

Methods

View Source

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

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

Declaration
public static ProjectPushRules Get(string name, Input<string> id, ProjectPushRulesState 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.

ProjectPushRulesState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

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