| | 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 media attribution. |
| | 14 | | /// </summary> |
| | 15 | | [Newtonsoft.Json.JsonObject("ContractualRules/MediaAttribution")] |
| | 16 | | public partial class ContractualRulesMediaAttribution : ContractualRulesAttribution |
| | 17 | | { |
| | 18 | | /// <summary> |
| | 19 | | /// Initializes a new instance of the ContractualRulesMediaAttribution |
| | 20 | | /// class. |
| | 21 | | /// </summary> |
| 2 | 22 | | public ContractualRulesMediaAttribution() |
| | 23 | | { |
| | 24 | | CustomInit(); |
| 2 | 25 | | } |
| | 26 | |
|
| | 27 | | /// <summary> |
| | 28 | | /// Initializes a new instance of the ContractualRulesMediaAttribution |
| | 29 | | /// 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="url">The URL that you use to create of hyperlink of |
| | 40 | | /// the media content. For example, if the target is an image, you |
| | 41 | | /// would use the URL to make the image clickable.</param> |
| | 42 | | public ContractualRulesMediaAttribution(string targetPropertyName = default(string), bool? mustBeCloseToContent |
| 0 | 43 | | : base(targetPropertyName, mustBeCloseToContent) |
| | 44 | | { |
| 0 | 45 | | Url = url; |
| | 46 | | CustomInit(); |
| 0 | 47 | | } |
| | 48 | |
|
| | 49 | | /// <summary> |
| | 50 | | /// An initialization method that performs custom operations like setting defaults |
| | 51 | | /// </summary> |
| | 52 | | partial void CustomInit(); |
| | 53 | |
|
| | 54 | | /// <summary> |
| | 55 | | /// Gets the URL that you use to create of hyperlink of the media |
| | 56 | | /// content. For example, if the target is an image, you would use the |
| | 57 | | /// URL to make the image clickable. |
| | 58 | | /// </summary> |
| | 59 | | [JsonProperty(PropertyName = "url")] |
| 0 | 60 | | public string Url { get; private set; } |
| | 61 | |
|
| | 62 | | } |
| | 63 | | } |