-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
MapsSearchClientOptions.cs
42 lines (33 loc) · 1.16 KB
/
MapsSearchClientOptions.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
38
39
40
41
42
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using Azure.Core;
namespace Azure.Maps.Search
{
/// <summary> Client options for SearchClient. </summary>
public partial class MapsSearchClientOptions : ClientOptions
{
internal const ServiceVersion LatestVersion = ServiceVersion.V1_0;
/// <summary> The version of the service to use. </summary>
public enum ServiceVersion
{
/// <summary> Service version "1.0". </summary>
V1_0 = 1,
}
internal string Version { get; }
/// <summary> The Azure Maps endpoint for requests. </summary>
public Uri Endpoint { get; set; }
/// <summary> Initializes new instance of SearchClientOptions. </summary>
public MapsSearchClientOptions(ServiceVersion version = LatestVersion, Uri endpoint = null)
{
Version = version switch
{
ServiceVersion.V1_0 => "1.0",
_ => throw new NotSupportedException()
};
Endpoint = endpoint;
}
}
}