-
Notifications
You must be signed in to change notification settings - Fork 5.1k
/
settings.json
214 lines (214 loc) · 5.96 KB
/
settings.json
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
{
"swagger": "2.0",
"info": {
"title": "KeyVaultClient",
"description": "The key vault client performs cryptographic key operations and vault operations against the Key Vault service.",
"version": "7.4-preview.1"
},
"x-ms-parameterized-host": {
"hostTemplate": "{vaultBaseUrl}",
"useSchemePrefix": false,
"positionInOperation": "first",
"parameters": [
{
"name": "vaultBaseUrl",
"description": "The vault name, for example https://myvault.vault.azure.net.",
"required": true,
"type": "string",
"in": "path",
"x-ms-skip-url-encoding": true
}
]
},
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"paths": {
"/settings/{setting-name}": {
"patch": {
"tags": [
"Settings"
],
"operationId": "UpdateSetting",
"summary": "Updates key vault account setting, stores it, then returns the setting name and value to the client.",
"description": "Description of the pool setting to be updated",
"parameters": [
{
"$ref": "#/parameters/SettingNameParameter"
},
{
"name": "parameters",
"in": "body",
"required": true,
"x-ms-client-flatten": true,
"schema": {
"$ref": "#/definitions/UpdateSettingRequest"
},
"description": "The parameters to update an account setting."
},
{
"$ref": "common.json#/parameters/ApiVersionParameter"
}
],
"responses": {
"200": {
"description": "An account setting containing the name of the setting and the value it is set to. ",
"schema": {
"$ref": "#/definitions/Setting"
}
},
"default": {
"description": "Key Vault error response describing why the operation failed.",
"schema": {
"$ref": "common.json#/definitions/KeyVaultError"
}
}
},
"x-ms-examples": {
"Update Setting": {
"$ref": "./examples/UpdateSetting-example.json"
}
}
},
"get": {
"tags": [
"Settings"
],
"operationId": "GetSetting",
"summary": "Get specified account setting object.",
"description": "Retrieves the setting object of a specified setting name.",
"parameters": [
{
"$ref": "#/parameters/SettingNameParameter"
},
{
"$ref": "common.json#/parameters/ApiVersionParameter"
}
],
"responses": {
"200": {
"description": "An account setting containing the name of the setting and the value it is set to.",
"schema": {
"$ref": "#/definitions/Setting"
}
},
"default": {
"description": "Key Vault error response describing why the operation failed.",
"schema": {
"$ref": "common.json#/definitions/KeyVaultError"
}
}
},
"x-ms-examples": {
"GetSetting": {
"$ref": "./examples/UpdateSetting-example.json"
}
}
}
},
"/settings": {
"get": {
"tags": [
"Settings"
],
"operationId": "GetSettings",
"summary": "List account settings.",
"description": "Retrieves a list of all the available account settings that can be configured.",
"parameters": [
{
"$ref": "common.json#/parameters/ApiVersionParameter"
}
],
"responses": {
"200": {
"description": "A response message containing a list of account settings with their associated value.",
"schema": {
"$ref": "#/definitions/SettingsListResult"
}
},
"default": {
"description": "Key Vault error response describing why the operation failed.",
"schema": {
"$ref": "common.json#/definitions/KeyVaultError"
}
}
},
"x-ms-examples": {
"GetSettings": {
"$ref": "./examples/ListSettings-example.json"
}
}
}
}
},
"definitions": {
"UpdateSettingRequest": {
"properties": {
"value": {
"type": "string",
"description": "The value of the pool setting."
}
},
"description": "The update settings request object.",
"required": [
"value"
],
"type": "object"
},
"Setting": {
"properties": {
"name": {
"type": "string",
"description": "The account setting to be updated"
},
"value": {
"type": "string",
"description": "The value of the pool setting."
},
"type": {
"enum": [
"boolean"
],
"type": "string",
"x-ms-enum": {
"name": "SettingTypeEnum",
"modelAsString": true
},
"description": "The type specifier of the value."
}
},
"required": [
"name",
"value"
],
"type": "object"
},
"SettingsListResult": {
"properties": {
"settings": {
"type": "array",
"items": {
"$ref": "#/definitions/Setting"
},
"readOnly": true,
"description": "A response message containing a list of account settings with their associated value."
}
},
"description": "The settings list result.",
"type": "object"
}
},
"parameters": {
"SettingNameParameter": {
"name": "setting-name",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the account setting. Must be a valid settings option.",
"x-ms-parameter-location": "method"
}
}
}