PatchMoveInstruction¶
-
class
oci.capacity_management.models.
PatchMoveInstruction
(**kwargs)¶ Bases:
oci.capacity_management.models.patch_instruction.PatchInstruction
An operation that “puts” values from elsewhere in the target, functionally equivalent to a single add and then a remove. The first item of the selection is replaced, or created if the selection is empty. NOT_FOUND exceptions in the selection are handled by creating the implied containing structure. This operation fails if the from selection yields any exceptions, or if an item is moved to any of its descendants.
Attributes
OPERATION_INSERT
str(object=’’) -> str OPERATION_MERGE
str(object=’’) -> str OPERATION_MOVE
str(object=’’) -> str OPERATION_PROHIBIT
str(object=’’) -> str OPERATION_REMOVE
str(object=’’) -> str OPERATION_REPLACE
str(object=’’) -> str OPERATION_REQUIRE
str(object=’’) -> str POSITION_AFTER
A constant which can be used with the position property of a PatchMoveInstruction. POSITION_AT
A constant which can be used with the position property of a PatchMoveInstruction. POSITION_BEFORE
A constant which can be used with the position property of a PatchMoveInstruction. operation
[Required] Gets the operation of this PatchInstruction. position
Gets the position of this PatchMoveInstruction. selection
[Required] Gets the selection of this PatchInstruction. Methods
__init__
(**kwargs)Initializes a new PatchMoveInstruction object with values from keyword arguments. get_subtype
(object_dictionary)Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype. -
OPERATION_INSERT
= 'INSERT'¶
-
OPERATION_MERGE
= 'MERGE'¶
-
OPERATION_MOVE
= 'MOVE'¶
-
OPERATION_PROHIBIT
= 'PROHIBIT'¶
-
OPERATION_REMOVE
= 'REMOVE'¶
-
OPERATION_REPLACE
= 'REPLACE'¶
-
OPERATION_REQUIRE
= 'REQUIRE'¶
-
POSITION_AFTER
= 'AFTER'¶ A constant which can be used with the position property of a PatchMoveInstruction. This constant has a value of “AFTER”
-
POSITION_AT
= 'AT'¶ A constant which can be used with the position property of a PatchMoveInstruction. This constant has a value of “AT”
-
POSITION_BEFORE
= 'BEFORE'¶ A constant which can be used with the position property of a PatchMoveInstruction. This constant has a value of “BEFORE”
-
__init__
(**kwargs)¶ Initializes a new PatchMoveInstruction object with values from keyword arguments. The default value of the
operation
attribute of this class isMOVE
and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):Parameters: - operation (str) – The value to assign to the operation property of this PatchMoveInstruction. Allowed values for this property are: “REQUIRE”, “PROHIBIT”, “REPLACE”, “INSERT”, “REMOVE”, “MOVE”, “MERGE”
- selection (str) – The value to assign to the selection property of this PatchMoveInstruction.
- _from (str) – The value to assign to the _from property of this PatchMoveInstruction.
- position (str) – The value to assign to the position property of this PatchMoveInstruction. Allowed values for this property are: “AT”, “BEFORE”, “AFTER”
-
static
get_subtype
(object_dictionary)¶ Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
-
operation
¶ [Required] Gets the operation of this PatchInstruction. Allowed values for this property are: “REQUIRE”, “PROHIBIT”, “REPLACE”, “INSERT”, “REMOVE”, “MOVE”, “MERGE”
Returns: The operation of this PatchInstruction. Return type: str
-
position
¶ Gets the position of this PatchMoveInstruction. Where to insert the value in an array, relative to the first item in the selection. If there is no such item, then “BEFORE” specifies insertion at the first position in an array and “AFTER” specifies insertion at the last position. If the first item in the selection is not the child of an array, then this field has no effect.
Allowed values for this property are: “AT”, “BEFORE”, “AFTER”
Returns: The position of this PatchMoveInstruction. Return type: str
-
selection
¶ [Required] Gets the selection of this PatchInstruction. The set of values to which the operation applies as a JMESPath expression for evaluation against the context resource. An operation fails if the selection yields an exception, except as otherwise specified. Note that comparisons involving non-primitive values (objects or arrays) are not supported and will always evaluate to false.
Returns: The selection of this PatchInstruction. Return type: str
-