| | | 1 | | // <auto-generated> |
| | | 2 | | // Code generated by Microsoft (R) AutoRest Code Generator. |
| | | 3 | | // Changes may cause incorrect behavior and will be lost if the code is |
| | | 4 | | // regenerated. |
| | | 5 | | // </auto-generated> |
| | | 6 | | |
| | | 7 | | namespace Microsoft.Azure.CognitiveServices.Search.EntitySearch.Models |
| | | 8 | | { |
| | | 9 | | using Newtonsoft.Json; |
| | | 10 | | using System.Linq; |
| | | 11 | | |
| | | 12 | | [Newtonsoft.Json.JsonObject("ContractualRules/Attribution")] |
| | | 13 | | public partial class ContractualRulesAttribution : ContractualRulesContractualRule |
| | | 14 | | { |
| | | 15 | | /// <summary> |
| | | 16 | | /// Initializes a new instance of the ContractualRulesAttribution |
| | | 17 | | /// class. |
| | | 18 | | /// </summary> |
| | 6 | 19 | | public ContractualRulesAttribution() |
| | | 20 | | { |
| | | 21 | | CustomInit(); |
| | 6 | 22 | | } |
| | | 23 | | |
| | | 24 | | /// <summary> |
| | | 25 | | /// Initializes a new instance of the ContractualRulesAttribution |
| | | 26 | | /// class. |
| | | 27 | | /// </summary> |
| | | 28 | | /// <param name="targetPropertyName">The name of the field that the |
| | | 29 | | /// rule applies to.</param> |
| | | 30 | | /// <param name="mustBeCloseToContent">A Boolean value that determines |
| | | 31 | | /// whether the contents of the rule must be placed in close proximity |
| | | 32 | | /// to the field that the rule applies to. If true, the contents must |
| | | 33 | | /// be placed in close proximity. If false, or this field does not |
| | | 34 | | /// exist, the contents may be placed at the caller's |
| | | 35 | | /// discretion.</param> |
| | | 36 | | public ContractualRulesAttribution(string targetPropertyName = default(string), bool? mustBeCloseToContent = def |
| | 0 | 37 | | : base(targetPropertyName) |
| | | 38 | | { |
| | 0 | 39 | | MustBeCloseToContent = mustBeCloseToContent; |
| | | 40 | | CustomInit(); |
| | 0 | 41 | | } |
| | | 42 | | |
| | | 43 | | /// <summary> |
| | | 44 | | /// An initialization method that performs custom operations like setting defaults |
| | | 45 | | /// </summary> |
| | | 46 | | partial void CustomInit(); |
| | | 47 | | |
| | | 48 | | /// <summary> |
| | | 49 | | /// Gets a Boolean value that determines whether the contents of the |
| | | 50 | | /// rule must be placed in close proximity to the field that the rule |
| | | 51 | | /// applies to. If true, the contents must be placed in close |
| | | 52 | | /// proximity. If false, or this field does not exist, the contents may |
| | | 53 | | /// be placed at the caller's discretion. |
| | | 54 | | /// </summary> |
| | | 55 | | [JsonProperty(PropertyName = "mustBeCloseToContent")] |
| | 0 | 56 | | public bool? MustBeCloseToContent { get; private set; } |
| | | 57 | | |
| | | 58 | | } |
| | | 59 | | } |