-
Notifications
You must be signed in to change notification settings - Fork 488
/
PatchOperationType.cs
57 lines (49 loc) · 1.77 KB
/
PatchOperationType.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
//------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//------------------------------------------------------------
namespace Microsoft.Azure.Cosmos
{
using System.Runtime.Serialization;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
/// <summary>
/// Describes the list of Patch supported operation types.
/// </summary>
/// <remarks>
/// For more information, see <see href="https://docs.microsoft.com/azure/cosmos-db/partial-document-update#supported-operations">Partial document update in Azure Cosmos DB: Supported operations</see>
/// </remarks>
[JsonConverter(typeof(StringEnumConverter))]
public enum PatchOperationType
{
/// <summary>
/// Operation to add a value.
/// </summary>
[EnumMember(Value = PatchConstants.OperationTypeNames.Add)]
Add,
/// <summary>
/// Operation to remove a value.
/// </summary>
[EnumMember(Value = PatchConstants.OperationTypeNames.Remove)]
Remove,
/// <summary>
/// Operation to replace a value.
/// </summary>
[EnumMember(Value = PatchConstants.OperationTypeNames.Replace)]
Replace,
/// <summary>
/// Operation to set a value.
/// </summary>
[EnumMember(Value = PatchConstants.OperationTypeNames.Set)]
Set,
/// <summary>
/// Operation to increment a value.
/// </summary>
[EnumMember(Value = PatchConstants.OperationTypeNames.Increment)]
Increment,
/// <summary>
/// Operation to move a object/value.
/// </summary>
[EnumMember(Value = PatchConstants.OperationTypeNames.Move)]
Move,
}
}