| | 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 | | /// Response containing the primary and secondary admin API keys for a |
| | 18 | | /// given Azure Cognitive Search service. |
| | 19 | | /// </summary> |
| | 20 | | public partial class AdminKeyResult |
| | 21 | | { |
| | 22 | | /// <summary> |
| | 23 | | /// Initializes a new instance of the AdminKeyResult class. |
| | 24 | | /// </summary> |
| 602 | 25 | | public AdminKeyResult() |
| | 26 | | { |
| | 27 | | CustomInit(); |
| 602 | 28 | | } |
| | 29 | |
|
| | 30 | | /// <summary> |
| | 31 | | /// Initializes a new instance of the AdminKeyResult class. |
| | 32 | | /// </summary> |
| | 33 | | /// <param name="primaryKey">The primary admin API key of the Search |
| | 34 | | /// service.</param> |
| | 35 | | /// <param name="secondaryKey">The secondary admin API key of the |
| | 36 | | /// Search service.</param> |
| 0 | 37 | | public AdminKeyResult(string primaryKey = default(string), string secondaryKey = default(string)) |
| | 38 | | { |
| 0 | 39 | | PrimaryKey = primaryKey; |
| 0 | 40 | | SecondaryKey = secondaryKey; |
| | 41 | | CustomInit(); |
| 0 | 42 | | } |
| | 43 | |
|
| | 44 | | /// <summary> |
| | 45 | | /// An initialization method that performs custom operations like setting defaults |
| | 46 | | /// </summary> |
| | 47 | | partial void CustomInit(); |
| | 48 | |
|
| | 49 | | /// <summary> |
| | 50 | | /// Gets the primary admin API key of the Search service. |
| | 51 | | /// </summary> |
| | 52 | | [JsonProperty(PropertyName = "primaryKey")] |
| 1204 | 53 | | public string PrimaryKey { get; private set; } |
| | 54 | |
|
| | 55 | | /// <summary> |
| | 56 | | /// Gets the secondary admin API key of the Search service. |
| | 57 | | /// </summary> |
| | 58 | | [JsonProperty(PropertyName = "secondaryKey")] |
| 0 | 59 | | public string SecondaryKey { get; private set; } |
| | 60 | |
|
| | 61 | | } |
| | 62 | | } |