| | | 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 | | /// <summary> |
| | | 13 | | /// Defines a contractual rule for license attribution. |
| | | 14 | | /// </summary> |
| | | 15 | | [Newtonsoft.Json.JsonObject("ContractualRules/LicenseAttribution")] |
| | | 16 | | public partial class ContractualRulesLicenseAttribution : ContractualRulesAttribution |
| | | 17 | | { |
| | | 18 | | /// <summary> |
| | | 19 | | /// Initializes a new instance of the |
| | | 20 | | /// ContractualRulesLicenseAttribution class. |
| | | 21 | | /// </summary> |
| | 2 | 22 | | public ContractualRulesLicenseAttribution() |
| | | 23 | | { |
| | | 24 | | CustomInit(); |
| | 2 | 25 | | } |
| | | 26 | | |
| | | 27 | | /// <summary> |
| | | 28 | | /// Initializes a new instance of the |
| | | 29 | | /// ContractualRulesLicenseAttribution class. |
| | | 30 | | /// </summary> |
| | | 31 | | /// <param name="targetPropertyName">The name of the field that the |
| | | 32 | | /// rule applies to.</param> |
| | | 33 | | /// <param name="mustBeCloseToContent">A Boolean value that determines |
| | | 34 | | /// whether the contents of the rule must be placed in close proximity |
| | | 35 | | /// to the field that the rule applies to. If true, the contents must |
| | | 36 | | /// be placed in close proximity. If false, or this field does not |
| | | 37 | | /// exist, the contents may be placed at the caller's |
| | | 38 | | /// discretion.</param> |
| | | 39 | | /// <param name="license">The license under which the content may be |
| | | 40 | | /// used.</param> |
| | | 41 | | /// <param name="licenseNotice">The license to display next to the |
| | | 42 | | /// targeted field.</param> |
| | | 43 | | public ContractualRulesLicenseAttribution(string targetPropertyName = default(string), bool? mustBeCloseToConten |
| | 0 | 44 | | : base(targetPropertyName, mustBeCloseToContent) |
| | | 45 | | { |
| | 0 | 46 | | License = license; |
| | 0 | 47 | | LicenseNotice = licenseNotice; |
| | | 48 | | CustomInit(); |
| | 0 | 49 | | } |
| | | 50 | | |
| | | 51 | | /// <summary> |
| | | 52 | | /// An initialization method that performs custom operations like setting defaults |
| | | 53 | | /// </summary> |
| | | 54 | | partial void CustomInit(); |
| | | 55 | | |
| | | 56 | | /// <summary> |
| | | 57 | | /// Gets the license under which the content may be used. |
| | | 58 | | /// </summary> |
| | | 59 | | [JsonProperty(PropertyName = "license")] |
| | 0 | 60 | | public License License { get; private set; } |
| | | 61 | | |
| | | 62 | | /// <summary> |
| | | 63 | | /// Gets the license to display next to the targeted field. |
| | | 64 | | /// </summary> |
| | | 65 | | [JsonProperty(PropertyName = "licenseNotice")] |
| | 0 | 66 | | public string LicenseNotice { get; private set; } |
| | | 67 | | |
| | | 68 | | } |
| | | 69 | | } |