-
Notifications
You must be signed in to change notification settings - Fork 545
Expand file tree
/
Copy pathAppConfigOptionDefinitions.cs
More file actions
72 lines (61 loc) · 3.03 KB
/
Copy pathAppConfigOptionDefinitions.cs
File metadata and controls
72 lines (61 loc) · 3.03 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
namespace Azure.Mcp.Tools.AppConfig.Options;
public static class AppConfigOptionDefinitions
{
public const string AccountName = "account";
public const string KeyName = "key";
public const string ValueName = "value";
public const string LabelName = "label";
public const string ContentTypeName = "content-type";
public const string TagsName = "tags";
public const string LockName = "lock";
public const string KeyFilterName = "key-filter";
public const string LabelFilterName = "label-filter";
public static readonly Option<string> Account = new($"--{AccountName}")
{
Description = "The name of the App Configuration store (e.g., my-appconfig).",
Required = true
};
public static readonly Option<string> Key = new($"--{KeyName}")
{
Description = "The name of the key to access within the App Configuration store.",
Required = true
};
public static readonly Option<string> Value = new($"--{ValueName}")
{
Description = "The value to set for the key.",
Required = true
};
public static readonly Option<string> Label = new($"--{LabelName}")
{
Description = "The label to apply to the key. Labels are used to group and organize settings.",
Required = false
};
public static readonly Option<string> ContentType = new($"--{ContentTypeName}")
{
Description = "The content type of the value. This is used to indicate how the value should be interpreted or parsed.",
Required = false
};
public static readonly Option<string[]> Tags = new($"--{TagsName}")
{
Description = "The tags to associate with the key. Tags should be in the format 'key=value'. Multiple tags can be specified.",
Required = false,
AllowMultipleArgumentsPerToken = true
};
public static readonly Option<bool> Lock = new($"--{LockName}")
{
Description = "Whether a key-value will be locked (set to read-only) or unlocked (read-only removed).",
Required = false
};
public static readonly Option<string> KeyFilter = new($"--{KeyFilterName}")
{
Description = "Specifies the key filter used when retrieving key-values. The filter can be an exact match, for example a filter of 'foo' would get all key-values with a key of 'foo', or the filter can include a '*' character at the end of the string for wildcard searches (e.g., 'App*'). If omitted all keys will be retrieved.",
Required = false
};
public static readonly Option<string> LabelFilter = new($"--{LabelFilterName}")
{
Description = "Specifies the label filter used when retrieving key-values. The filter can be an exact match, for example a filter of 'foo' would get all key-values with a label of 'foo', or the filter can include a '*' character at the end of the string for wildcard searches (e.g., 'Prod*'). This filter is case-sensitive. If omitted, all labels will be retrieved.",
Required = false
};
}