Package com.buildless.api
Enum Class PermissionLevel
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<PermissionLevel>,Constable
public enum PermissionLevel
extends Enum<PermissionLevel>
implements com.google.protobuf.ProtocolMessageEnum
## Permission Level Describes generic permission levels which map to effective well-known roles. If a user has a role matching one of these levels for a given API execution, the request is allowed to proceed.Protobuf enum
buildless.api.PermissionLevel-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription**Administrative permission:** valid credentials are required, and the invoking principal `MUST` be authorized with at least admin-level permissions for the applicable account scope in which the operation is taking place.**Delete permission:** valid credentials are required, and the invoking principal `MUST` be authorized with at least delete/destruct permissions for the applicable account scope in which the operation is taking place.**Owner permission:** valid credentials are required, and the invoking principal `MUST` be authorized with at least owner-level permissions for the applicable account scope in which the operation is taking place.**Default permission level:** valid credentials are required, but no additional authorization checks are applied.**Read-only permission:** valid credentials are required, and the invoking principal `MUST` be authorized with at least read-only permissions for the applicable account scope in which the operation is taking place.**Read-write permission:** valid credentials are required, and the invoking principal `MUST` be authorized with at least write/edit permissions for the applicable account scope in which the operation is taking place. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int**Administrative permission:** valid credentials are required, and the invoking principal `MUST` be authorized with at least admin-level permissions for the applicable account scope in which the operation is taking place.static final int**Delete permission:** valid credentials are required, and the invoking principal `MUST` be authorized with at least delete/destruct permissions for the applicable account scope in which the operation is taking place.static final int**Owner permission:** valid credentials are required, and the invoking principal `MUST` be authorized with at least owner-level permissions for the applicable account scope in which the operation is taking place.static final int**Default permission level:** valid credentials are required, but no additional authorization checks are applied.static final int**Read-only permission:** valid credentials are required, and the invoking principal `MUST` be authorized with at least read-only permissions for the applicable account scope in which the operation is taking place.static final int**Read-write permission:** valid credentials are required, and the invoking principal `MUST` be authorized with at least write/edit permissions for the applicable account scope in which the operation is taking place. -
Method Summary
Modifier and TypeMethodDescriptionstatic PermissionLevelforNumber(int value) static final com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<PermissionLevel>static PermissionLevelvalueOf(int value) Deprecated.static PermissionLevelvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this class with the specified name.static PermissionLevelReturns the enum constant of this class with the specified name.static PermissionLevel[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PERMISSION_LEVEL_DEFAULT
**Default permission level:** valid credentials are required, but no additional authorization checks are applied.
PERMISSION_LEVEL_DEFAULT = 0; -
READ
**Read-only permission:** valid credentials are required, and the invoking principal `MUST` be authorized with at least read-only permissions for the applicable account scope in which the operation is taking place.
READ = 1; -
READ_WRITE
**Read-write permission:** valid credentials are required, and the invoking principal `MUST` be authorized with at least write/edit permissions for the applicable account scope in which the operation is taking place.
READ_WRITE = 2; -
DELETE
**Delete permission:** valid credentials are required, and the invoking principal `MUST` be authorized with at least delete/destruct permissions for the applicable account scope in which the operation is taking place.
DELETE = 3; -
ADMIN
**Administrative permission:** valid credentials are required, and the invoking principal `MUST` be authorized with at least admin-level permissions for the applicable account scope in which the operation is taking place. Some org roles enable specific administrative permissions, like IT or billing access.
ADMIN = 4; -
OWNER
**Owner permission:** valid credentials are required, and the invoking principal `MUST` be authorized with at least owner-level permissions for the applicable account scope in which the operation is taking place. This is the highest possible permission level.
OWNER = 5; -
UNRECOGNIZED
-
-
Field Details
-
PERMISSION_LEVEL_DEFAULT_VALUE
public static final int PERMISSION_LEVEL_DEFAULT_VALUE**Default permission level:** valid credentials are required, but no additional authorization checks are applied.
PERMISSION_LEVEL_DEFAULT = 0;- See Also:
-
READ_VALUE
public static final int READ_VALUE**Read-only permission:** valid credentials are required, and the invoking principal `MUST` be authorized with at least read-only permissions for the applicable account scope in which the operation is taking place.
READ = 1;- See Also:
-
READ_WRITE_VALUE
public static final int READ_WRITE_VALUE**Read-write permission:** valid credentials are required, and the invoking principal `MUST` be authorized with at least write/edit permissions for the applicable account scope in which the operation is taking place.
READ_WRITE = 2;- See Also:
-
DELETE_VALUE
public static final int DELETE_VALUE**Delete permission:** valid credentials are required, and the invoking principal `MUST` be authorized with at least delete/destruct permissions for the applicable account scope in which the operation is taking place.
DELETE = 3;- See Also:
-
ADMIN_VALUE
public static final int ADMIN_VALUE**Administrative permission:** valid credentials are required, and the invoking principal `MUST` be authorized with at least admin-level permissions for the applicable account scope in which the operation is taking place. Some org roles enable specific administrative permissions, like IT or billing access.
ADMIN = 4;- See Also:
-
OWNER_VALUE
public static final int OWNER_VALUE**Owner permission:** valid credentials are required, and the invoking principal `MUST` be authorized with at least owner-level permissions for the applicable account scope in which the operation is taking place. This is the highest possible permission level.
OWNER = 5;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
Deprecated.Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
value- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
forNumber
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
desc- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-