public MutateInSpecBuilder Decrement(string path, long delta, bool createPath = default(bool), bool isXattr = default(bool)) { // delta must be negative if (delta > 0) { delta = -delta; } Specs.Add(MutateInSpec.Decrement(path, delta, createPath, isXattr)); return(this); }
public MutateInSpecBuilder Insert <T>(string path, T value, bool createPath = default(bool), bool isXattr = default(bool)) { Specs.Add(MutateInSpec.Insert(path, value, createPath, isXattr)); return(this); }
public MutateInSpecBuilder ArrayAddUnique <T>(string path, T value, bool createPath = default(bool), bool isXattr = default(bool)) { Specs.Add(MutateInSpec.ArrayAddUnique(path, value, createPath, isXattr)); return(this); }
public MutateInSpecBuilder Increment(string path, long delta, bool createPath = default(bool), bool isXattr = default(bool)) { Specs.Add(MutateInSpec.Increment(path, delta, createPath, isXattr)); return(this); }
public MutateInSpecBuilder ArrayInsert <T>(string path, T[] values, bool createParents = default(bool), bool isXattr = default(bool)) { Specs.Add(MutateInSpec.ArrayInsert(path, values, createParents, isXattr)); return(this); }
public MutateInSpecBuilder ArrayAppend <T>(string path, T[] values, bool createPath = default(bool), bool isXattr = default(bool)) { Specs.Add(MutateInSpec.ArrayAppend(path, values, createPath, isXattr)); return(this); }
public MutateInSpecBuilder Remove(string path, bool isXattr = default(bool)) { Specs.Add(MutateInSpec.Remove(path, isXattr)); return(this); }
public MutateInSpecBuilder Replace <T>(string path, T value, bool isXattr = default(bool)) { Specs.Add(MutateInSpec.Replace(path, value, isXattr)); return(this); }
public MutateInSpecBuilder ArrayPrepend <T>(string path, T[] values, bool createParents = default(bool), bool xAttr = default(bool)) { Specs.Add(MutateInSpec.ArrayPrepend(path, values, createParents, xAttr)); return(this); }