Package com.buildless.api
Enum Class AuthorizationMode
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<AuthorizationMode>,Constable
public enum AuthorizationMode
extends Enum<AuthorizationMode>
implements com.google.protobuf.ProtocolMessageEnum
## Authorization Mode This enumeration describes each available mode for Buildless API authorization. API methods can be specialized for end-users or tenant accounts only, in which case they are annotated with the applicable mode. By default, `AUTHORIZATION_DEFAULT` is set on each method, which allows any valid authorization credentials, regardless of credential type.Protobuf enum
buildless.api.AuthorizationMode-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAllow all Buildless credentials, regardless of credential type.Allow tenant organizations only.Allow end-users only. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intAllow all Buildless credentials, regardless of credential type.static final intAllow tenant organizations only.static final intAllow end-users only. -
Method Summary
Modifier and TypeMethodDescriptionstatic AuthorizationModeforNumber(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<AuthorizationMode>static AuthorizationModevalueOf(int value) Deprecated.static AuthorizationModevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this class with the specified name.static AuthorizationModeReturns the enum constant of this class with the specified name.static AuthorizationMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
AUTHORIZATION_DEFAULT
Allow all Buildless credentials, regardless of credential type. This includes both org-level ("tenant") credentials as well as end-user credentials. If the operation is marked as "sensitive," additional credentials may be required.AUTHORIZATION_DEFAULT = 0; -
USERS_ONLY
Allow end-users only. In this mode, either an end-user's valid API key must be present, or a valid authorization token or session token must be present on the request. If the operation is marked as "sensitive," additional credentials may be required.
USERS_ONLY = 1; -
TENANTS_ONLY
Allow tenant organizations only. In this mode, an organization-level API key must be present on the request. If the method is marked as "sensitive," additional credentials may be required. In this mode, a tenant ID is always expected to be declared.
TENANTS_ONLY = 2; -
UNRECOGNIZED
-
-
Field Details
-
AUTHORIZATION_DEFAULT_VALUE
public static final int AUTHORIZATION_DEFAULT_VALUEAllow all Buildless credentials, regardless of credential type. This includes both org-level ("tenant") credentials as well as end-user credentials. If the operation is marked as "sensitive," additional credentials may be required.AUTHORIZATION_DEFAULT = 0;- See Also:
-
USERS_ONLY_VALUE
public static final int USERS_ONLY_VALUEAllow end-users only. In this mode, either an end-user's valid API key must be present, or a valid authorization token or session token must be present on the request. If the operation is marked as "sensitive," additional credentials may be required.
USERS_ONLY = 1;- See Also:
-
TENANTS_ONLY_VALUE
public static final int TENANTS_ONLY_VALUEAllow tenant organizations only. In this mode, an organization-level API key must be present on the request. If the method is marked as "sensitive," additional credentials may be required. In this mode, a tenant ID is always expected to be declared.
TENANTS_ONLY = 2;- 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
-