-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
SparkClientOptions.cs
37 lines (30 loc) · 1.02 KB
/
SparkClientOptions.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using Azure.Core;
namespace Azure.Analytics.Synapse.Spark
{
/// <summary> Client options for SparkClient. </summary>
public partial class SparkClientOptions : ClientOptions
{
private const ServiceVersion LatestVersion = ServiceVersion.V2020_12_01;
/// <summary> The version of the service to use. </summary>
public enum ServiceVersion
{
/// <summary> Service version "2020-12-01". </summary>
V2020_12_01 = 1,
}
internal string Version { get; }
/// <summary> Initializes new instance of SparkClientOptions. </summary>
public SparkClientOptions(ServiceVersion version = LatestVersion)
{
Version = version switch
{
ServiceVersion.V2020_12_01 => "2020-12-01",
_ => throw new NotSupportedException()
};
}
}
}