Skip to content

Commit d7eab2b

Browse files
authored
New version 2023-10-01-preview release for DBForMySQL (#26184)
* copy base folder * update version * add new features * update readme * fix go error
1 parent b36917f commit d7eab2b

27 files changed

+3306
-6
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,326 @@
1+
{
2+
"swagger": "2.0",
3+
"info": {
4+
"version": "2023-10-01-preview",
5+
"title": "MySQLManagementClient",
6+
"description": "The Microsoft Azure management API provides create, read, update, and delete functionality for Azure MySQL resources including servers, databases, firewall rules and configurations."
7+
},
8+
"host": "management.azure.com",
9+
"schemes": [
10+
"https"
11+
],
12+
"consumes": [
13+
"application/json"
14+
],
15+
"produces": [
16+
"application/json"
17+
],
18+
"security": [
19+
{
20+
"azure_auth": [
21+
"user_impersonation"
22+
]
23+
}
24+
],
25+
"securityDefinitions": {
26+
"azure_auth": {
27+
"type": "oauth2",
28+
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
29+
"flow": "implicit",
30+
"description": "Azure Active Directory OAuth2 Flow",
31+
"scopes": {
32+
"user_impersonation": "impersonate your user account"
33+
}
34+
}
35+
},
36+
"paths": {
37+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/advancedThreatProtectionSettings/{advancedThreatProtectionName}": {
38+
"get": {
39+
"tags": [
40+
"AdvancedThreatProtectionSettings"
41+
],
42+
"description": "Get a server's Advanced Threat Protection state",
43+
"operationId": "AdvancedThreatProtectionSettings_Get",
44+
"parameters": [
45+
{
46+
"$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter"
47+
},
48+
{
49+
"$ref": "../../../common-types/v1/common-types.json#/parameters/ServerNameParameter"
50+
},
51+
{
52+
"$ref": "#/parameters/AdvancedThreatProtectionNameParameter"
53+
},
54+
{
55+
"$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter"
56+
},
57+
{
58+
"$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter"
59+
}
60+
],
61+
"responses": {
62+
"200": {
63+
"description": "Successfully retrieved the server's Advanced Threat Protection state.",
64+
"schema": {
65+
"$ref": "#/definitions/AdvancedThreatProtection"
66+
}
67+
},
68+
"default": {
69+
"description": "Error response describing why the operation failed.",
70+
"schema": {
71+
"$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse"
72+
}
73+
}
74+
},
75+
"x-ms-examples": {
76+
"Get a server's Advanced Threat Protection settings.": {
77+
"$ref": "./examples/AdvancedThreatProtectionSettingsGet.json"
78+
}
79+
}
80+
},
81+
"patch": {
82+
"tags": [
83+
"AdvancedThreatProtectionSettings"
84+
],
85+
"description": "Updates a server's Advanced Threat Protection state.",
86+
"operationId": "AdvancedThreatProtectionSettings_Update",
87+
"parameters": [
88+
{
89+
"$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter"
90+
},
91+
{
92+
"$ref": "../../../common-types/v1/common-types.json#/parameters/ServerNameParameter"
93+
},
94+
{
95+
"$ref": "#/parameters/AdvancedThreatProtectionNameParameter"
96+
},
97+
{
98+
"name": "parameters",
99+
"in": "body",
100+
"description": "The server's Advanced Threat Protection body to update.",
101+
"required": true,
102+
"schema": {
103+
"$ref": "#/definitions/AdvancedThreatProtectionForUpdate"
104+
}
105+
},
106+
{
107+
"$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter"
108+
},
109+
{
110+
"$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter"
111+
}
112+
],
113+
"responses": {
114+
"200": {
115+
"description": "Successfully updated the server's Advanced Threat Protection state.",
116+
"schema": {
117+
"$ref": "#/definitions/AdvancedThreatProtection"
118+
}
119+
},
120+
"202": {
121+
"description": "Accepted",
122+
"headers": {
123+
"Location": {
124+
"description": "URL to retrieve the final result after operation completes.",
125+
"type": "string"
126+
},
127+
"Azure-AsyncOperation": {
128+
"description": "URL to query for status of the operation.",
129+
"type": "string"
130+
}
131+
}
132+
},
133+
"default": {
134+
"description": "Error response describing why the operation failed.",
135+
"schema": {
136+
"$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse"
137+
}
138+
}
139+
},
140+
"x-ms-long-running-operation": true,
141+
"x-ms-long-running-operation-options": {
142+
"final-state-via": "location"
143+
},
144+
"x-ms-examples": {
145+
"Enable a server's Advanced Threat Protection settings": {
146+
"$ref": "./examples/AdvancedThreatProtectionSettingsPatchEnabled.json"
147+
},
148+
"Disable a server's Advanced Threat Protection settings with all parameters": {
149+
"$ref": "./examples/AdvancedThreatProtectionSettingsPatchDisabled.json"
150+
}
151+
}
152+
}
153+
},
154+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/advancedThreatProtectionSettings": {
155+
"get": {
156+
"tags": [
157+
"AdvancedThreatProtectionSettings"
158+
],
159+
"description": "Gets a list of server's Advanced Threat Protection states.",
160+
"operationId": "AdvancedThreatProtectionSettings_List",
161+
"parameters": [
162+
{
163+
"$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter"
164+
},
165+
{
166+
"$ref": "../../../common-types/v1/common-types.json#/parameters/ServerNameParameter"
167+
},
168+
{
169+
"$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter"
170+
},
171+
{
172+
"$ref": "../../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter"
173+
}
174+
],
175+
"responses": {
176+
"200": {
177+
"description": "Successfully retrieved the server's Advanced Threat Protection states.",
178+
"schema": {
179+
"$ref": "#/definitions/AdvancedThreatProtectionListResult"
180+
}
181+
},
182+
"default": {
183+
"description": "Error response describing why the operation failed.",
184+
"schema": {
185+
"$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse"
186+
}
187+
}
188+
},
189+
"x-ms-examples": {
190+
"Get list of server's Advanced Threat Protection settings": {
191+
"$ref": "./examples/AdvancedThreatProtectionSettingsList.json"
192+
}
193+
},
194+
"x-ms-pageable": {
195+
"nextLinkName": "nextLink"
196+
}
197+
}
198+
}
199+
},
200+
"definitions": {
201+
"AdvancedThreatProtectionState": {
202+
"description": "Specifies the state of the Advanced Threat Protection, whether it is enabled or disabled on the server.",
203+
"enum": [
204+
"Enabled",
205+
"Disabled"
206+
],
207+
"type": "string",
208+
"x-ms-enum": {
209+
"name": "AdvancedThreatProtectionState",
210+
"modelAsString": true
211+
}
212+
},
213+
"AdvancedThreatProtectionProperties": {
214+
"description": "Properties of an Advanced Threat Protection setting.",
215+
"type": "object",
216+
"properties": {
217+
"creationTime": {
218+
"description": "Specifies the UTC creation time of the policy.",
219+
"type": "string",
220+
"format": "date-time",
221+
"readOnly": true
222+
},
223+
"state": {
224+
"description": "Specifies the state of the Advanced Threat Protection, whether it is enabled or disabled or a state has not been applied yet on the specific database or server.",
225+
"$ref": "#/definitions/AdvancedThreatProtectionState"
226+
},
227+
"provisioningState": {
228+
"$ref": "#/definitions/AdvancedThreatProtectionProvisioningState",
229+
"description": "Provisioning state of the Threat Protection."
230+
}
231+
}
232+
},
233+
"AdvancedThreatProtection": {
234+
"description": "A server's Advanced Threat Protection.",
235+
"type": "object",
236+
"allOf": [
237+
{
238+
"$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ProxyResource"
239+
}
240+
],
241+
"properties": {
242+
"properties": {
243+
"$ref": "#/definitions/AdvancedThreatProtectionProperties",
244+
"description": "Resource properties.",
245+
"x-ms-client-flatten": true
246+
}
247+
}
248+
},
249+
"AdvancedThreatProtectionUpdateProperties": {
250+
"type": "object",
251+
"properties": {
252+
"state": {
253+
"description": "Specifies the state of the Advanced Threat Protection, whether it is enabled or disabled or a state has not been applied yet on the specific database or server.",
254+
"$ref": "#/definitions/AdvancedThreatProtectionState"
255+
}
256+
},
257+
"required": [
258+
"state"
259+
],
260+
"description": "Properties of Advanced Threat Protection that can be updated."
261+
},
262+
"AdvancedThreatProtectionForUpdate": {
263+
"type": "object",
264+
"properties": {
265+
"properties": {
266+
"$ref": "#/definitions/AdvancedThreatProtectionUpdateProperties",
267+
"description": "Resource update properties.",
268+
"x-ms-client-flatten": true
269+
}
270+
},
271+
"description": "Parameters allowed to update advanced threat protection for a server."
272+
},
273+
"AdvancedThreatProtectionListResult": {
274+
"description": "A list of the server's Advanced Threat Protection configurations.",
275+
"type": "object",
276+
"properties": {
277+
"value": {
278+
"description": "Array of results.",
279+
"type": "array",
280+
"items": {
281+
"$ref": "#/definitions/AdvancedThreatProtection"
282+
},
283+
"readOnly": true
284+
},
285+
"nextLink": {
286+
"description": "Link to retrieve next page of results.",
287+
"type": "string",
288+
"readOnly": true
289+
}
290+
}
291+
},
292+
"AdvancedThreatProtectionProvisioningState": {
293+
"type": "string",
294+
"readOnly": true,
295+
"description": "The current provisioning state.",
296+
"enum": [
297+
"Succeeded",
298+
"Updating",
299+
"Canceled",
300+
"Failed"
301+
],
302+
"x-ms-enum": {
303+
"name": "AdvancedThreatProtectionProvisioningState",
304+
"modelAsString": true
305+
}
306+
}
307+
},
308+
"parameters": {
309+
"AdvancedThreatProtectionNameParameter": {
310+
"name": "advancedThreatProtectionName",
311+
"in": "path",
312+
"description": "The name of the Advanced Threat Protection state.",
313+
"required": true,
314+
"enum": [
315+
"Default"
316+
],
317+
"type": "string",
318+
"x-ms-enum": {
319+
"name": "AdvancedThreatProtectionName",
320+
"modelAsString": true
321+
},
322+
"pattern": "^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*",
323+
"x-ms-parameter-location": "method"
324+
}
325+
}
326+
}

0 commit comments

Comments
 (0)