Group Args
data class GroupArgs(val autoDevopsEnabled: Output<Boolean>? = null, val avatar: Output<String>? = null, val avatarHash: Output<String>? = null, val defaultBranchProtection: Output<Int>? = null, val description: Output<String>? = null, val emailsDisabled: Output<Boolean>? = null, val extraSharedRunnersMinutesLimit: Output<Int>? = null, val ipRestrictionRanges: Output<List<String>>? = null, val lfsEnabled: Output<Boolean>? = null, val membershipLock: Output<Boolean>? = null, val mentionsDisabled: Output<Boolean>? = null, val name: Output<String>? = null, val parentId: Output<Int>? = null, val path: Output<String>? = null, val preventForkingOutsideGroup: Output<Boolean>? = null, val projectCreationLevel: Output<String>? = null, val requestAccessEnabled: Output<Boolean>? = null, val requireTwoFactorAuthentication: Output<Boolean>? = null, val shareWithGroupLock: Output<Boolean>? = null, val sharedRunnersMinutesLimit: Output<Int>? = null, val subgroupCreationLevel: Output<String>? = null, val twoFactorGracePeriod: Output<Int>? = null, val visibilityLevel: Output<String>? = null) : ConvertibleToJava<GroupArgs>
The gitlab.Group
resource allows to manage the lifecycle of a group.
On GitLab SaaS, you must use the GitLab UI to create groups without a parent group. You cannot use this provider nor the API to do this. Upstream API: GitLab REST API docs
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gitlab.Group;
import com.pulumi.gitlab.GroupArgs;
import com.pulumi.gitlab.Project;
import com.pulumi.gitlab.ProjectArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var exampleGroup = new Group("exampleGroup", GroupArgs.builder()
.path("example")
.description("An example group")
.build());
var exampleProject = new Project("exampleProject", ProjectArgs.builder()
.description("An example project")
.namespaceId(exampleGroup.id())
.build());
}
}
Content copied to clipboard
Import
$ pulumi import gitlab:index/group:Group You can import a group state using `<resource> <id>`. The
Content copied to clipboard
id
can be whatever the details_of_a_group api takes for its :id
value, so for example
$ pulumi import gitlab:index/group:Group example example
Content copied to clipboard
Constructors
Link copied to clipboard
fun GroupArgs(autoDevopsEnabled: Output<Boolean>? = null, avatar: Output<String>? = null, avatarHash: Output<String>? = null, defaultBranchProtection: Output<Int>? = null, description: Output<String>? = null, emailsDisabled: Output<Boolean>? = null, extraSharedRunnersMinutesLimit: Output<Int>? = null, ipRestrictionRanges: Output<List<String>>? = null, lfsEnabled: Output<Boolean>? = null, membershipLock: Output<Boolean>? = null, mentionsDisabled: Output<Boolean>? = null, name: Output<String>? = null, parentId: Output<Int>? = null, path: Output<String>? = null, preventForkingOutsideGroup: Output<Boolean>? = null, projectCreationLevel: Output<String>? = null, requestAccessEnabled: Output<Boolean>? = null, requireTwoFactorAuthentication: Output<Boolean>? = null, shareWithGroupLock: Output<Boolean>? = null, sharedRunnersMinutesLimit: Output<Int>? = null, subgroupCreationLevel: Output<String>? = null, twoFactorGracePeriod: Output<Int>? = null, visibilityLevel: Output<String>? = null)
Functions
Properties
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard