public static enum AccessTokenUtils.Scope extends Enum<AccessTokenUtils.Scope>
Enum Constant and Description |
---|
API
Grants complete access to the API and Container Registry (read/write) (introduced in GitLab 8.15).
|
READ_REGISTRY
Allows to read (pull) container registry images if a project is private and
authorization is required (introduced in GitLab 9.3).
|
READ_REPOSITORY
Allows read-only access (pull) to the repository through git clone.
|
READ_USER
Allows access to the read-only endpoints under /users.
|
SUDO
Allows performing API actions as any user in the system,
if the authenticated user is an admin (introduced in GitLab 10.2).
|
WRITE_REPOSITORY
Grants read-write access to repositories on private projects using Git-over-HTTP (not using the API).
|
Modifier and Type | Method and Description |
---|---|
static AccessTokenUtils.Scope |
forValue(String value) |
String |
toString() |
String |
toValue() |
static AccessTokenUtils.Scope |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AccessTokenUtils.Scope[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AccessTokenUtils.Scope API
public static final AccessTokenUtils.Scope READ_REGISTRY
public static final AccessTokenUtils.Scope READ_REPOSITORY
public static final AccessTokenUtils.Scope READ_USER
public static final AccessTokenUtils.Scope SUDO
public static final AccessTokenUtils.Scope WRITE_REPOSITORY
public static AccessTokenUtils.Scope[] values()
for (AccessTokenUtils.Scope c : AccessTokenUtils.Scope.values()) System.out.println(c);
public static AccessTokenUtils.Scope valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static AccessTokenUtils.Scope forValue(String value)
public String toValue()
public String toString()
toString
in class Enum<AccessTokenUtils.Scope>
Copyright © 2019. All rights reserved.