Class Project
Inherited Members
Namespace: Pulumi.GitLab
Assembly: Pulumi.GitLab.dll
Syntax
public class Project : CustomResource
Constructors
View SourceProject(String, ProjectArgs, CustomResourceOptions)
Create a Project resource with the given unique name, arguments, and options.
Declaration
public Project(string name, ProjectArgs args = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| ProjectArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceApprovalsBeforeMerge
Number of merge request approvals required for merging. Default is 0.
Declaration
public Output<int?> ApprovalsBeforeMerge { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Int32>> |
Archived
Whether the project is in read-only mode (archived). Repositories can be archived/unarchived by toggling this parameter.
Declaration
public Output<bool?> Archived { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
ContainerRegistryEnabled
Enable container registry for the project.
Declaration
public Output<bool?> ContainerRegistryEnabled { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
DefaultBranch
The default branch for the project.
Declaration
public Output<string> DefaultBranch { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Description
A description of the project.
Declaration
public Output<string> Description { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
HttpUrlToRepo
URL that can be provided to git clone to clone the
repository via HTTP.
Declaration
public Output<string> HttpUrlToRepo { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
InitializeWithReadme
Create master branch with first commit containing a README.md file.
Declaration
public Output<bool?> InitializeWithReadme { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
IssuesEnabled
Enable issue tracking for the project.
Declaration
public Output<bool?> IssuesEnabled { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
LfsEnabled
Enable LFS for the project.
Declaration
public Output<bool?> LfsEnabled { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
MergeMethod
Set to ff to create fast-forward merges
Valid values are merge, rebase_merge, ff
Repositories are created with merge by default
Declaration
public Output<string> MergeMethod { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
MergeRequestsEnabled
Enable merge requests for the project.
Declaration
public Output<bool?> MergeRequestsEnabled { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
Name
The name of the project.
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
NamespaceId
The namespace (group or user) of the project. Defaults to your user.
See gitlab..Group for an example.
Declaration
public Output<int> NamespaceId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Int32> |
OnlyAllowMergeIfAllDiscussionsAreResolved
Set to true if you want allow merges only if all discussions are resolved.
Declaration
public Output<bool?> OnlyAllowMergeIfAllDiscussionsAreResolved { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
OnlyAllowMergeIfPipelineSucceeds
Set to true if you want allow merges only if a pipeline succeeds.
Declaration
public Output<bool?> OnlyAllowMergeIfPipelineSucceeds { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
Path
The path of the repository.
Declaration
public Output<string> Path { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
PipelinesEnabled
Enable pipelines for the project.
Declaration
public Output<bool?> PipelinesEnabled { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
RequestAccessEnabled
Allow users to request member access.
Declaration
public Output<bool?> RequestAccessEnabled { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
RunnersToken
Registration token to use during runner setup.
Declaration
public Output<string> RunnersToken { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
SharedRunnersEnabled
Enable shared runners for this project.
Declaration
public Output<bool> SharedRunnersEnabled { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Boolean> |
SharedWithGroups
Enable sharing the project with a list of groups (maps).
Declaration
public Output<ImmutableArray<ProjectSharedWithGroup>> SharedWithGroups { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<ProjectSharedWithGroup>> |
SnippetsEnabled
Enable snippets for the project.
Declaration
public Output<bool?> SnippetsEnabled { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
SshUrlToRepo
URL that can be provided to git clone to clone the
repository via SSH.
Declaration
public Output<string> SshUrlToRepo { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Tags
Tags (topics) of the project.
Declaration
public Output<ImmutableArray<string>> Tags { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<System.String>> |
VisibilityLevel
Set to public to create a public project.
Valid values are private, internal, public.
Repositories are created as private by default.
Declaration
public Output<string> VisibilityLevel { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
WebUrl
URL that can be used to find the project in a browser.
Declaration
public Output<string> WebUrl { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
WikiEnabled
Enable wiki for the project.
Declaration
public Output<bool?> WikiEnabled { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
Methods
View SourceGet(String, Input<String>, ProjectState, CustomResourceOptions)
Get an existing Project resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static Project Get(string name, Input<string> id, ProjectState 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. |
| ProjectState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| Project |