| | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 2 | | // Licensed under the MIT License. |
| | 3 | |
|
| | 4 | | using System; |
| | 5 | | using Azure.Core; |
| | 6 | |
|
| | 7 | | namespace Azure.Data.Tables |
| | 8 | | { |
| | 9 | | public class TableClientOptions : ClientOptions |
| | 10 | | { |
| | 11 | | private const ServiceVersion Latest = ServiceVersion.V2019_02_02; |
| 0 | 12 | | internal static TableClientOptions Default { get; } = new TableClientOptions(); |
| | 13 | |
|
| 496 | 14 | | public TableClientOptions(ServiceVersion serviceVersion = Latest) |
| | 15 | | { |
| 496 | 16 | | VersionString = serviceVersion switch |
| 496 | 17 | | { |
| 992 | 18 | | ServiceVersion.V2019_02_02 => "2019-02-02", |
| 0 | 19 | | _ => throw new ArgumentOutOfRangeException(nameof(serviceVersion)) |
| 496 | 20 | | }; |
| 496 | 21 | | } |
| | 22 | |
|
| 496 | 23 | | internal string VersionString { get; } |
| | 24 | |
|
| | 25 | | public enum ServiceVersion |
| | 26 | | { |
| | 27 | | #pragma warning disable CA1707 |
| | 28 | | V2019_02_02 = 1 |
| | 29 | | #pragma warning restore CA1707 |
| | 30 | | } |
| | 31 | | } |
| | 32 | | } |