| | | 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.Management.Search.Models |
| | | 12 | | { |
| | | 13 | | using Newtonsoft.Json; |
| | | 14 | | using System.Linq; |
| | | 15 | | |
| | | 16 | | /// <summary> |
| | | 17 | | /// Describes an API key for a given Azure Cognitive Search service that |
| | | 18 | | /// has permissions for query operations only. |
| | | 19 | | /// </summary> |
| | | 20 | | public partial class QueryKey |
| | | 21 | | { |
| | | 22 | | /// <summary> |
| | | 23 | | /// Initializes a new instance of the QueryKey class. |
| | | 24 | | /// </summary> |
| | 602 | 25 | | public QueryKey() |
| | | 26 | | { |
| | | 27 | | CustomInit(); |
| | 602 | 28 | | } |
| | | 29 | | |
| | | 30 | | /// <summary> |
| | | 31 | | /// Initializes a new instance of the QueryKey class. |
| | | 32 | | /// </summary> |
| | | 33 | | /// <param name="name">The name of the query API key; may be |
| | | 34 | | /// empty.</param> |
| | | 35 | | /// <param name="key">The value of the query API key.</param> |
| | 0 | 36 | | public QueryKey(string name = default(string), string key = default(string)) |
| | | 37 | | { |
| | 0 | 38 | | Name = name; |
| | 0 | 39 | | Key = key; |
| | | 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 the name of the query API key; may be empty. |
| | | 50 | | /// </summary> |
| | | 51 | | [JsonProperty(PropertyName = "name")] |
| | 0 | 52 | | public string Name { get; private set; } |
| | | 53 | | |
| | | 54 | | /// <summary> |
| | | 55 | | /// Gets the value of the query API key. |
| | | 56 | | /// </summary> |
| | | 57 | | [JsonProperty(PropertyName = "key")] |
| | 1204 | 58 | | public string Key { get; private set; } |
| | | 59 | | |
| | | 60 | | } |
| | | 61 | | } |