Show / Hide Table of Contents

Class PatchInsertInstruction

An operation that inserts a value into an array, shifting array items as necessary and handling NOT_FOUND exceptions by creating the implied containing structure.

Inheritance
object
PatchInstruction
PatchInsertInstruction
Inherited Members
PatchInstruction.Selection
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Oci.DemandsignalService.Models
Assembly: OCI.DotNetSDK.Demandsignal.dll
Syntax
public class PatchInsertInstruction : PatchInstruction

Properties

Position

Declaration
[JsonProperty(PropertyName = "position")]
[JsonConverter(typeof(StringEnumConverter))]
public PatchInsertInstruction.PositionEnum? Position { get; set; }
Property Value
Type Description
PatchInsertInstruction.PositionEnum?

Where to insert the value, relative to the first item matched by selectedItem. If selectedItem is unspecified, then "BEFORE" specifies insertion at the first position in an array and "AFTER" specifies insertion at the last position. If selectedItem is specified but results in an empty selection, then both values specify insertion at the last position.

SelectedItem

Declaration
[JsonProperty(PropertyName = "selectedItem")]
public string SelectedItem { get; set; }
Property Value
Type Description
string

A selection to be evaluated against the array for identifying a particular reference item within it, with the same format and semantics as selection.

Value

Declaration
[Required(ErrorMessage = "Value is required.")]
[JsonProperty(PropertyName = "value")]
public object Value { get; set; }
Property Value
Type Description
object

A value to be inserted into the target.

Remarks

Required

In this article
Back to top