PatchInstruction¶
-
class
oci.distributed_database.models.PatchInstruction(**kwargs)¶ Bases:
objectA single instruction to be included as part of Patch request content.
Attributes
OPERATION_INSERTA constant which can be used with the operation property of a PatchInstruction. OPERATION_MERGEA constant which can be used with the operation property of a PatchInstruction. OPERATION_REMOVEA constant which can be used with the operation property of a PatchInstruction. operation[Required] Gets the operation of this PatchInstruction. selection[Required] Gets the selection of this PatchInstruction. Methods
__init__(**kwargs)Initializes a new PatchInstruction 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'¶ A constant which can be used with the operation property of a PatchInstruction. This constant has a value of “INSERT”
-
OPERATION_MERGE= 'MERGE'¶ A constant which can be used with the operation property of a PatchInstruction. This constant has a value of “MERGE”
-
OPERATION_REMOVE= 'REMOVE'¶ A constant which can be used with the operation property of a PatchInstruction. This constant has a value of “REMOVE”
-
__init__(**kwargs)¶ Initializes a new PatchInstruction object with values from keyword arguments. This class has the following subclasses and if you are using this class as input to a service operations then you should favor using a subclass over the base class:
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 PatchInstruction. Allowed values for this property are: “INSERT”, “REMOVE”, “MERGE”
- selection (str) – The value to assign to the selection property of this PatchInstruction.
-
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. The operation that need to be performed on an element inside list.
Allowed values for this property are: “INSERT”, “REMOVE”, “MERGE”
Returns: The operation of this PatchInstruction. 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
-