public static enum CustomConstraint.MethodType extends Enum<CustomConstraint.MethodType> implements com.google.protobuf.ProtocolMessageEnum
The operation for which this constraint will be applied. To apply this constraint only when creating new VMs, the `method_types` should be `CREATE` only. To apply this constraint when creating or deleting VMs, the `method_types` should be `CREATE` and `DELETE`. `UPDATE` only custom constraints are not supported. Use `CREATE` or `CREATE, UPDATE`.Protobuf enum
google.cloud.orgpolicy.v2.CustomConstraint.MethodType| Enum Constant and Description |
|---|
CREATE
Constraint applied when creating the resource.
|
DELETE
Constraint applied when deleting the resource.
|
METHOD_TYPE_UNSPECIFIED
Unspecified.
|
UNRECOGNIZED |
UPDATE
Constraint applied when updating the resource.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
CREATE_VALUE
Constraint applied when creating the resource.
|
static int |
DELETE_VALUE
Constraint applied when deleting the resource.
|
static int |
METHOD_TYPE_UNSPECIFIED_VALUE
Unspecified.
|
static int |
UPDATE_VALUE
Constraint applied when updating the resource.
|
| Modifier and Type | Method and Description |
|---|---|
static CustomConstraint.MethodType |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<CustomConstraint.MethodType> |
internalGetValueMap() |
static CustomConstraint.MethodType |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static CustomConstraint.MethodType |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static CustomConstraint.MethodType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CustomConstraint.MethodType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CustomConstraint.MethodType METHOD_TYPE_UNSPECIFIED
Unspecified. Results in an error.
METHOD_TYPE_UNSPECIFIED = 0;public static final CustomConstraint.MethodType CREATE
Constraint applied when creating the resource.
CREATE = 1;public static final CustomConstraint.MethodType UPDATE
Constraint applied when updating the resource.
UPDATE = 2;public static final CustomConstraint.MethodType DELETE
Constraint applied when deleting the resource. Not supported yet.
DELETE = 3;public static final CustomConstraint.MethodType UNRECOGNIZED
public static final int METHOD_TYPE_UNSPECIFIED_VALUE
Unspecified. Results in an error.
METHOD_TYPE_UNSPECIFIED = 0;public static final int CREATE_VALUE
Constraint applied when creating the resource.
CREATE = 1;public static final int UPDATE_VALUE
Constraint applied when updating the resource.
UPDATE = 2;public static final int DELETE_VALUE
Constraint applied when deleting the resource. Not supported yet.
DELETE = 3;public static CustomConstraint.MethodType[] values()
for (CustomConstraint.MethodType c : CustomConstraint.MethodType.values()) System.out.println(c);
public static CustomConstraint.MethodType 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 final int getNumber()
getNumber in interface com.google.protobuf.Internal.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static CustomConstraint.MethodType valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static CustomConstraint.MethodType forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<CustomConstraint.MethodType> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static CustomConstraint.MethodType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2024 Google LLC. All rights reserved.