| | 1 | | // <auto-generated> |
| | 2 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 3 | | // Licensed under the MIT License. See License.txt in the project root for |
| | 4 | | // license information. |
| | 5 | | // |
| | 6 | | // Code generated by Microsoft (R) AutoRest Code Generator. |
| | 7 | | // Changes may cause incorrect behavior and will be lost if the code is |
| | 8 | | // regenerated. |
| | 9 | | // </auto-generated> |
| | 10 | |
|
| | 11 | | namespace Microsoft.Azure.Search.Models |
| | 12 | | { |
| | 13 | | using Newtonsoft.Json; |
| | 14 | | using System.Linq; |
| | 15 | |
|
| | 16 | | /// <summary> |
| | 17 | | /// Defines a data deletion detection policy that implements a |
| | 18 | | /// soft-deletion strategy. It determines whether an item should be deleted |
| | 19 | | /// based on the value of a designated 'soft delete' column. |
| | 20 | | /// </summary> |
| | 21 | | [Newtonsoft.Json.JsonObject("#Microsoft.Azure.Search.SoftDeleteColumnDeletionDetectionPolicy")] |
| | 22 | | public partial class SoftDeleteColumnDeletionDetectionPolicy : DataDeletionDetectionPolicy |
| | 23 | | { |
| | 24 | | /// <summary> |
| | 25 | | /// Initializes a new instance of the |
| | 26 | | /// SoftDeleteColumnDeletionDetectionPolicy class. |
| | 27 | | /// </summary> |
| 50 | 28 | | public SoftDeleteColumnDeletionDetectionPolicy() |
| | 29 | | { |
| | 30 | | CustomInit(); |
| 50 | 31 | | } |
| | 32 | |
|
| | 33 | | /// <summary> |
| | 34 | | /// Initializes a new instance of the |
| | 35 | | /// SoftDeleteColumnDeletionDetectionPolicy class. |
| | 36 | | /// </summary> |
| | 37 | | /// <param name="softDeleteColumnName">The name of the column to use |
| | 38 | | /// for soft-deletion detection.</param> |
| | 39 | | /// <param name="softDeleteMarkerValue">The marker value that |
| | 40 | | /// identifies an item as deleted.</param> |
| 6 | 41 | | public SoftDeleteColumnDeletionDetectionPolicy(string softDeleteColumnName = default(string), string softDeleteM |
| | 42 | | { |
| 6 | 43 | | SoftDeleteColumnName = softDeleteColumnName; |
| 6 | 44 | | SoftDeleteMarkerValue = softDeleteMarkerValue; |
| | 45 | | CustomInit(); |
| 6 | 46 | | } |
| | 47 | |
|
| | 48 | | /// <summary> |
| | 49 | | /// An initialization method that performs custom operations like setting defaults |
| | 50 | | /// </summary> |
| | 51 | | partial void CustomInit(); |
| | 52 | |
|
| | 53 | | /// <summary> |
| | 54 | | /// Gets or sets the name of the column to use for soft-deletion |
| | 55 | | /// detection. |
| | 56 | | /// </summary> |
| | 57 | | [JsonProperty(PropertyName = "softDeleteColumnName")] |
| 158 | 58 | | public string SoftDeleteColumnName { get; set; } |
| | 59 | |
|
| | 60 | | /// <summary> |
| | 61 | | /// Gets or sets the marker value that identifies an item as deleted. |
| | 62 | | /// </summary> |
| | 63 | | [JsonProperty(PropertyName = "softDeleteMarkerValue")] |
| 158 | 64 | | public string SoftDeleteMarkerValue { get; set; } |
| | 65 | |
|
| | 66 | | } |
| | 67 | | } |