/
FarmBeatsClientOptions.cs
37 lines (30 loc) · 1.08 KB
/
FarmBeatsClientOptions.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.Verticals.AgriFood.Farming
{
/// <summary> Client options for FarmBeatsClient. </summary>
public partial class FarmBeatsClientOptions : ClientOptions
{
private const ServiceVersion LatestVersion = ServiceVersion.V2022_11_01_Preview;
/// <summary> The version of the service to use. </summary>
public enum ServiceVersion
{
/// <summary> Service version "2022-11-01-preview". </summary>
V2022_11_01_Preview = 1,
}
internal string Version { get; }
/// <summary> Initializes new instance of FarmBeatsClientOptions. </summary>
public FarmBeatsClientOptions(ServiceVersion version = LatestVersion)
{
Version = version switch
{
ServiceVersion.V2022_11_01_Preview => "2022-11-01-preview",
_ => throw new NotSupportedException()
};
}
}
}