| | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 2 | | // Licensed under the MIT License. |
| | 3 | |
|
| | 4 | | // <auto-generated/> |
| | 5 | |
|
| | 6 | | #nullable disable |
| | 7 | |
|
| | 8 | | using System; |
| | 9 | |
|
| | 10 | | namespace Azure.ResourceManager.AppConfiguration.Models |
| | 11 | | { |
| | 12 | | /// <summary> An API key used for authenticating with a configuration store endpoint. </summary> |
| | 13 | | public partial class ApiKey |
| | 14 | | { |
| | 15 | | /// <summary> Initializes a new instance of ApiKey. </summary> |
| 0 | 16 | | internal ApiKey() |
| | 17 | | { |
| 0 | 18 | | } |
| | 19 | |
|
| | 20 | | /// <summary> Initializes a new instance of ApiKey. </summary> |
| | 21 | | /// <param name="id"> The key ID. </param> |
| | 22 | | /// <param name="name"> A name for the key describing its usage. </param> |
| | 23 | | /// <param name="value"> The value of the key that is used for authentication purposes. </param> |
| | 24 | | /// <param name="connectionString"> A connection string that can be used by supporting clients for authenticatio |
| | 25 | | /// <param name="lastModified"> The last time any of the key's properties were modified. </param> |
| | 26 | | /// <param name="readOnly"> Whether this key can only be used for read operations. </param> |
| 20 | 27 | | internal ApiKey(string id, string name, string value, string connectionString, DateTimeOffset? lastModified, boo |
| | 28 | | { |
| 20 | 29 | | Id = id; |
| 20 | 30 | | Name = name; |
| 20 | 31 | | Value = value; |
| 20 | 32 | | ConnectionString = connectionString; |
| 20 | 33 | | LastModified = lastModified; |
| 20 | 34 | | ReadOnly = readOnly; |
| 20 | 35 | | } |
| | 36 | |
|
| | 37 | | /// <summary> The key ID. </summary> |
| 4 | 38 | | public string Id { get; } |
| | 39 | | /// <summary> A name for the key describing its usage. </summary> |
| 0 | 40 | | public string Name { get; } |
| | 41 | | /// <summary> The value of the key that is used for authentication purposes. </summary> |
| 0 | 42 | | public string Value { get; } |
| | 43 | | /// <summary> A connection string that can be used by supporting clients for authentication. </summary> |
| 0 | 44 | | public string ConnectionString { get; } |
| | 45 | | /// <summary> The last time any of the key's properties were modified. </summary> |
| 0 | 46 | | public DateTimeOffset? LastModified { get; } |
| | 47 | | /// <summary> Whether this key can only be used for read operations. </summary> |
| 0 | 48 | | public bool? ReadOnly { get; } |
| | 49 | | } |
| | 50 | | } |