Package com.buildless.authz
Enum Class PrivilegeLevel
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<PrivilegeLevel>,Constable
public enum PrivilegeLevel
extends Enum<PrivilegeLevel>
implements com.google.protobuf.ProtocolMessageEnum
## Privilege Levels Specifies API-oriented privilege levels which map to generic permission levels, and which are mapped to users based on roles and rendered policies.Protobuf enum
buildless.authz.PrivilegeLevel-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDescribes an API key which is fully privileged and should be kept secure and private.Describes an API key which is privileged to access billing records and settings, and to make payments on behalf of a customer or tenant account.Unspecified or unrecognized privilege level; this sentinel value is used when decoding an unrecognized enumeration case, such as a backwards-incompatible value.Describes an API key which is safe to publish publicly on the internet, for example, on a public web-page, or in the README of a public source repository.Describes an API key which is considered private and should be kept secure, but only grants read-only access to non-sensitive data within a given tenant or user account scope.Describes an API key which is considered private and should be kept secure, and additionally allows non-sensitive write access (data, not settings).Describes an API key which is considered private and should be kept secure, and allows all privileges associated with `READ_WRITE`, plus destructive actions.Describes an API key which is privileged to access tech or IT management functions, such as SCIM, SSO, and other sensitive settings. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intDescribes an API key which is fully privileged and should be kept secure and private.static final intDescribes an API key which is privileged to access billing records and settings, and to make payments on behalf of a customer or tenant account.static final intUnspecified or unrecognized privilege level; this sentinel value is used when decoding an unrecognized enumeration case, such as a backwards-incompatible value.static final intDescribes an API key which is safe to publish publicly on the internet, for example, on a public web-page, or in the README of a public source repository.static final intDescribes an API key which is considered private and should be kept secure, but only grants read-only access to non-sensitive data within a given tenant or user account scope.static final intDescribes an API key which is considered private and should be kept secure, and allows all privileges associated with `READ_WRITE`, plus destructive actions.static final intDescribes an API key which is considered private and should be kept secure, and additionally allows non-sensitive write access (data, not settings).static final intDescribes an API key which is privileged to access tech or IT management functions, such as SCIM, SSO, and other sensitive settings. -
Method Summary
Modifier and TypeMethodDescriptionstatic PrivilegeLevelforNumber(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<PrivilegeLevel>static PrivilegeLevelvalueOf(int value) Deprecated.static PrivilegeLevelvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this class with the specified name.static PrivilegeLevelReturns the enum constant of this class with the specified name.static PrivilegeLevel[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PRIVILEGE_LEVEL_UNSPECIFIED
Unspecified or unrecognized privilege level; this sentinel value is used when decoding an unrecognized enumeration case, such as a backwards-incompatible value. Regular application code should not use this.
PRIVILEGE_LEVEL_UNSPECIFIED = 0; -
PUBLISHABLE
Describes an API key which is safe to publish publicly on the internet, for example, on a public web-page, or in the README of a public source repository.
PUBLISHABLE = 1; -
READ_ONLY
Describes an API key which is considered private and should be kept secure, but only grants read-only access to non-sensitive data within a given tenant or user account scope.
READ_ONLY = 20; -
READ_WRITE
Describes an API key which is considered private and should be kept secure, and additionally allows non-sensitive write access (data, not settings).
READ_WRITE = 30; -
READ_WRITE_DELETE
Describes an API key which is considered private and should be kept secure, and allows all privileges associated with `READ_WRITE`, plus destructive actions.
READ_WRITE_DELETE = 40; -
BILLING
Describes an API key which is privileged to access billing records and settings, and to make payments on behalf of a customer or tenant account.
BILLING = 75; -
TECH
Describes an API key which is privileged to access tech or IT management functions, such as SCIM, SSO, and other sensitive settings.
TECH = 80; -
ADMIN
Describes an API key which is fully privileged and should be kept secure and private. This key can perform any action via the API on behalf of a given user or tenant account.
ADMIN = 99; -
UNRECOGNIZED
-
-
Field Details
-
PRIVILEGE_LEVEL_UNSPECIFIED_VALUE
public static final int PRIVILEGE_LEVEL_UNSPECIFIED_VALUEUnspecified or unrecognized privilege level; this sentinel value is used when decoding an unrecognized enumeration case, such as a backwards-incompatible value. Regular application code should not use this.
PRIVILEGE_LEVEL_UNSPECIFIED = 0;- See Also:
-
PUBLISHABLE_VALUE
public static final int PUBLISHABLE_VALUEDescribes an API key which is safe to publish publicly on the internet, for example, on a public web-page, or in the README of a public source repository.
PUBLISHABLE = 1;- See Also:
-
READ_ONLY_VALUE
public static final int READ_ONLY_VALUEDescribes an API key which is considered private and should be kept secure, but only grants read-only access to non-sensitive data within a given tenant or user account scope.
READ_ONLY = 20;- See Also:
-
READ_WRITE_VALUE
public static final int READ_WRITE_VALUEDescribes an API key which is considered private and should be kept secure, and additionally allows non-sensitive write access (data, not settings).
READ_WRITE = 30;- See Also:
-
READ_WRITE_DELETE_VALUE
public static final int READ_WRITE_DELETE_VALUEDescribes an API key which is considered private and should be kept secure, and allows all privileges associated with `READ_WRITE`, plus destructive actions.
READ_WRITE_DELETE = 40;- See Also:
-
BILLING_VALUE
public static final int BILLING_VALUEDescribes an API key which is privileged to access billing records and settings, and to make payments on behalf of a customer or tenant account.
BILLING = 75;- See Also:
-
TECH_VALUE
public static final int TECH_VALUEDescribes an API key which is privileged to access tech or IT management functions, such as SCIM, SSO, and other sensitive settings.
TECH = 80;- See Also:
-
ADMIN_VALUE
public static final int ADMIN_VALUEDescribes an API key which is fully privileged and should be kept secure and private. This key can perform any action via the API on behalf of a given user or tenant account.
ADMIN = 99;- 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
-