Package com.google.cloud.kms.v1
Enum AutokeyConfig.KeyProjectResolutionMode
java.lang.Object
java.lang.Enum<AutokeyConfig.KeyProjectResolutionMode>
com.google.cloud.kms.v1.AutokeyConfig.KeyProjectResolutionMode
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<AutokeyConfig.KeyProjectResolutionMode>
- Enclosing class:
- AutokeyConfig
public static enum AutokeyConfig.KeyProjectResolutionMode
extends Enum<AutokeyConfig.KeyProjectResolutionMode>
implements com.google.protobuf.ProtocolMessageEnum
Defines the resolution mode enum for the key project. The [KeyProjectResolutionMode][google.cloud.kms.v1.AutokeyConfig.KeyProjectResolutionMode] determines the mechanism by which [AutokeyConfig][google.cloud.kms.v1.AutokeyConfig] identifies a [key_project][google.cloud.kms.v1.AutokeyConfig.key_project] at its specific configuration node. This parameter also determines if Autokey can be used within this project or folder.Protobuf enum
google.cloud.kms.v1.AutokeyConfig.KeyProjectResolutionMode-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionKeys are created in a dedicated project specified by `key_project`.Disables the AutokeyConfig.Default value.Keys are created in the same project as the resource requesting the key. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intKeys are created in a dedicated project specified by `key_project`.static final intDisables the AutokeyConfig.static final intDefault value.static final intKeys are created in the same project as the resource requesting the key. -
Method Summary
Modifier and TypeMethodDescriptionforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<AutokeyConfig.KeyProjectResolutionMode>valueOf(int value) Deprecated.valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.Returns the enum constant of this type with the specified name.values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
KEY_PROJECT_RESOLUTION_MODE_UNSPECIFIED
Default value. KeyProjectResolutionMode when not specified will act as `DEDICATED_KEY_PROJECT`.
KEY_PROJECT_RESOLUTION_MODE_UNSPECIFIED = 0; -
DEDICATED_KEY_PROJECT
Keys are created in a dedicated project specified by `key_project`.
DEDICATED_KEY_PROJECT = 1; -
RESOURCE_PROJECT
Keys are created in the same project as the resource requesting the key. The `key_project` must not be set when this mode is used.
RESOURCE_PROJECT = 2; -
DISABLED
Disables the AutokeyConfig. When this mode is set, any AutokeyConfig from higher levels in the resource hierarchy are ignored for this resource and its descendants. This setting can be overridden by a more specific configuration at a lower level. For example, if Autokey is disabled on a folder, it can be re-enabled on a sub-folder or project within that folder by setting a different mode (e.g., DEDICATED_KEY_PROJECT or RESOURCE_PROJECT).
DISABLED = 3; -
UNRECOGNIZED
-
-
Field Details
-
KEY_PROJECT_RESOLUTION_MODE_UNSPECIFIED_VALUE
public static final int KEY_PROJECT_RESOLUTION_MODE_UNSPECIFIED_VALUEDefault value. KeyProjectResolutionMode when not specified will act as `DEDICATED_KEY_PROJECT`.
KEY_PROJECT_RESOLUTION_MODE_UNSPECIFIED = 0;- See Also:
-
DEDICATED_KEY_PROJECT_VALUE
public static final int DEDICATED_KEY_PROJECT_VALUEKeys are created in a dedicated project specified by `key_project`.
DEDICATED_KEY_PROJECT = 1;- See Also:
-
RESOURCE_PROJECT_VALUE
public static final int RESOURCE_PROJECT_VALUEKeys are created in the same project as the resource requesting the key. The `key_project` must not be set when this mode is used.
RESOURCE_PROJECT = 2;- See Also:
-
DISABLED_VALUE
public static final int DISABLED_VALUEDisables the AutokeyConfig. When this mode is set, any AutokeyConfig from higher levels in the resource hierarchy are ignored for this resource and its descendants. This setting can be overridden by a more specific configuration at a lower level. For example, if Autokey is disabled on a folder, it can be re-enabled on a sub-folder or project within that folder by setting a different mode (e.g., DEDICATED_KEY_PROJECT or RESOURCE_PROJECT).
DISABLED = 3;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type 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 type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type 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
public static com.google.protobuf.Internal.EnumLiteMap<AutokeyConfig.KeyProjectResolutionMode> 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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
public static AutokeyConfig.KeyProjectResolutionMode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-