PatchInsertInstruction¶
- class oci.limits_increase.models.PatchInsertInstruction(**kwargs)¶
Bases:
PatchInstructionAn operation in a single patch instruction for a new comment to be added to the limit increase request. The operation inserts a value into an array, shifting array items as necessary and handling NOT_FOUND exceptions by creating the implied containing structure.
Attributes:
A constant which can be used with the operation property of a PatchInstruction.
[Required] Gets the operation of this PatchInstruction.
[Required] Gets the selection of this PatchInstruction.
[Required] Gets the value of this PatchInsertInstruction.
Methods:
__init__(**kwargs)Initializes a new PatchInsertInstruction 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”
- __init__(**kwargs)¶
Initializes a new PatchInsertInstruction object with values from keyword arguments. The default value of the
operationattribute of this class isINSERTand 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 PatchInsertInstruction. Allowed values for this property are: “INSERT”
selection (str) – The value to assign to the selection property of this PatchInsertInstruction.
value (object) – The value to assign to the value property of this PatchInsertInstruction.
- 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.
- property operation¶
[Required] Gets the operation of this PatchInstruction. Operation to perform on an element in the list.
Allowed values for this property are: “INSERT”
- Returns
The operation of this PatchInstruction.
- Return type
str
- property 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
- property value¶
[Required] Gets the value of this PatchInsertInstruction. A value to be inserted into the target.
- Returns
The value of this PatchInsertInstruction.
- Return type
object