Class PatchMoveInstruction
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.
Inherited Members
Namespace: Oci.PsqlService.Models
Assembly: OCI.DotNetSDK.Psql.dll
Syntax
public class PatchMoveInstruction : PatchInstruction
Properties
From
Declaration
[Required(ErrorMessage = "From is required.")]
[JsonProperty(PropertyName = "from")]
public string From { get; set; }
Property Value
Type | Description |
---|---|
string | The selection that is to be moved, with the same format and semantics as |
Remarks
Required
Position
Declaration
[JsonProperty(PropertyName = "position")]
[JsonConverter(typeof(StringEnumConverter))]
public PatchMoveInstruction.PositionEnum? Position { get; set; }
Property Value
Type | Description |
---|---|
PatchMoveInstruction.PositionEnum? | 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. |