Enum Operation
- java.lang.Object
-
- java.lang.Enum<Operation>
-
- me.snowdrop.istio.api.networking.v1alpha3.Operation
-
- All Implemented Interfaces:
Serializable,Comparable<Operation>
public enum Operation extends Enum<Operation>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ADDAdd the provided config to an existing list (of listeners, clusters, virtual hosts, network filters, or http filters).INSERT_AFTERInsert operation on an array of named objects.INSERT_BEFOREInsert operation on an array of named objects.INSERT_FIRSTInsert operation on an array of named objects.INVALIDMERGEMerge the provided config with the generated config using json merge semantics.REMOVERemove the selected object from the list (of listeners, clusters, virtual hosts, network filters, or http filters).
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intvalue()static OperationvalueOf(String name)Returns the enum constant of this type with the specified name.static Operation[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INVALID
public static final Operation INVALID
-
MERGE
public static final Operation MERGE
Merge the provided config with the generated config using json merge semantics.
-
ADD
public static final Operation ADD
Add the provided config to an existing list (of listeners, clusters, virtual hosts, network filters, or http filters). This operation will be ignored when applyTo is set to ROUTE_CONFIGURATION, or HTTP_ROUTE.
-
REMOVE
public static final Operation REMOVE
Remove the selected object from the list (of listeners, clusters, virtual hosts, network filters, or http filters). Does not require a value to be specified. This operation will be ignored when applyTo is set to ROUTE_CONFIGURATION, or HTTP_ROUTE.
-
INSERT_BEFORE
public static final Operation INSERT_BEFORE
Insert operation on an array of named objects. This operation is typically useful only in the context of filters, where the order of filters matter. For clusters and virtual hosts, order of the element in the array does not matter. Insert before the selected filter or sub filter. If no filter is selected, the specified filter will be inserted at the front of the list.
-
INSERT_AFTER
public static final Operation INSERT_AFTER
Insert operation on an array of named objects. This operation is typically useful only in the context of filters, where the order of filters matter. For clusters and virtual hosts, order of the element in the array does not matter. Insert after the selected filter or sub filter. If no filter is selected, the specified filter will be inserted at the end of the list.
-
INSERT_FIRST
public static final Operation INSERT_FIRST
Insert operation on an array of named objects. This operation is typically useful only in the context of filters, where the order of filters matter. For clusters and virtual hosts, order of the element in the array does not matter. Insert first in the list based on the presence of selected filter or not. This is specifically useful when you want your filter first in the list based on a match condition specified in Match clause.
-
-
Method Detail
-
values
public static Operation[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Operation c : Operation.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Operation valueOf(String name)
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
-
value
public int value()
-
-