Example #1
0
        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);
        }
Example #2
0
 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);
 }
Example #3
0
 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);
 }
Example #4
0
 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);
 }
Example #5
0
 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);
 }
Example #6
0
 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);
 }
Example #7
0
 public MutateInSpecBuilder Remove(string path, bool isXattr = default(bool))
 {
     Specs.Add(MutateInSpec.Remove(path, isXattr));
     return(this);
 }
Example #8
0
 public MutateInSpecBuilder Replace <T>(string path, T value, bool isXattr = default(bool))
 {
     Specs.Add(MutateInSpec.Replace(path, value, isXattr));
     return(this);
 }
Example #9
0
 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);
 }