Show / Hide Table of Contents

Class ProjectMembership

This resource allows you to add a current user to an existing project with a set access level.

Example Usage

using Pulumi;
using GitLab = Pulumi.GitLab;

class MyStack : Stack
{
public MyStack()
{
    var test = new GitLab.ProjectMembership("test", new GitLab.ProjectMembershipArgs
    {
        AccessLevel = "guest",
        ProjectId = "12345",
        UserId = 1337,
    });
}

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

Constructors

View Source

ProjectMembership(String, ProjectMembershipArgs, CustomResourceOptions)

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

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

The unique name of the resource

ProjectMembershipArgs 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

AccessLevel

One of five levels of access to the project.

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

ProjectId

The id of the project.

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

UserId

The id of the user.

Declaration
public Output<int> UserId { get; }
Property Value
Type Description
Output<System.Int32>

Methods

View Source

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

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

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

ProjectMembershipState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

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