Show / Hide Table of Contents

Class GroupMembership

This resource allows you to add a user to an existing group.

Example Usage

using Pulumi;
using GitLab = Pulumi.GitLab;

class MyStack : Stack
{
public MyStack()
{
    var test = new GitLab.GroupMembership("test", new GitLab.GroupMembershipArgs
    {
        AccessLevel = "guest",
        ExpiresAt = "2020-12-31",
        GroupId = "12345",
        UserId = 1337,
    });
}

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

Constructors

View Source

GroupMembership(String, GroupMembershipArgs, CustomResourceOptions)

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

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

The unique name of the resource

GroupMembershipArgs 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

Acceptable values are: guest, reporter, developer, maintainer, owner.

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

ExpiresAt

Expiration date for the group membership. Format: YYYY-MM-DD

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

GroupId

The id of the group.

Declaration
public Output<string> GroupId { 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>, GroupMembershipState, CustomResourceOptions)

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

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

GroupMembershipState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

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