Skip to content

Commit 5bcf0a7

Browse files
authored
Convert 2021-12-01-preview into stable version 2022-01-01 (no new API) (#23426)
* add 2021-12-01 base * update api version * update readme * fix pattern for linter * fix 202 for linter * fix linter lro * update pattern for backup * fix swagger kpi issue * use 2022-01-01 as version * fix errorResponse * remove pattern for prettier check
1 parent 42ebfe8 commit 5bcf0a7

File tree

55 files changed

+7575
-4
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+7575
-4
lines changed
Lines changed: 350 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,350 @@
1+
{
2+
"swagger": "2.0",
3+
"info": {
4+
"title": "MySQLManagementClient",
5+
"description": "The Microsoft Azure management API provides create, read, update, and delete functionality for Azure MySQL resources including servers, databases, firewall rules and configurations.",
6+
"version": "2022-01-01"
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}/administrators/{administratorName}": {
38+
"put": {
39+
"tags": [
40+
"AzureADAdministrators"
41+
],
42+
"operationId": "AzureADAdministrators_CreateOrUpdate",
43+
"x-ms-examples": {
44+
"Create an azure ad administrator": {
45+
"$ref": "./examples/AzureADAdministratorCreate.json"
46+
}
47+
},
48+
"description": "Creates or updates an existing Azure Active Directory administrator.",
49+
"parameters": [
50+
{
51+
"$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
52+
},
53+
{
54+
"$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
55+
},
56+
{
57+
"$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
58+
},
59+
{
60+
"$ref": "#/parameters/ServerNameParameter"
61+
},
62+
{
63+
"$ref": "#/parameters/AdministratorNameParameter"
64+
},
65+
{
66+
"name": "parameters",
67+
"in": "body",
68+
"required": true,
69+
"schema": {
70+
"$ref": "#/definitions/AzureADAdministrator"
71+
},
72+
"description": "The required parameters for creating or updating an aad administrator."
73+
}
74+
],
75+
"responses": {
76+
"200": {
77+
"description": "OK",
78+
"schema": {
79+
"$ref": "#/definitions/AzureADAdministrator"
80+
}
81+
},
82+
"201": {
83+
"description": "Created",
84+
"schema": {
85+
"$ref": "#/definitions/AzureADAdministrator"
86+
}
87+
},
88+
"202": {
89+
"description": "Accepted",
90+
"headers": {
91+
"Location": {
92+
"type": "string"
93+
}
94+
}
95+
},
96+
"default": {
97+
"description": "Error response describing why the operation failed.",
98+
"schema": {
99+
"$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
100+
}
101+
}
102+
},
103+
"x-ms-long-running-operation": true
104+
},
105+
"delete": {
106+
"tags": [
107+
"AzureADAdministrators"
108+
],
109+
"operationId": "AzureADAdministrators_Delete",
110+
"x-ms-examples": {
111+
"Delete an azure ad administrator": {
112+
"$ref": "./examples/AzureADAdministratorDelete.json"
113+
}
114+
},
115+
"description": "Deletes an Azure AD Administrator.",
116+
"parameters": [
117+
{
118+
"$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
119+
},
120+
{
121+
"$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
122+
},
123+
{
124+
"$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
125+
},
126+
{
127+
"$ref": "#/parameters/ServerNameParameter"
128+
},
129+
{
130+
"$ref": "#/parameters/AdministratorNameParameter"
131+
}
132+
],
133+
"responses": {
134+
"200": {
135+
"description": "OK"
136+
},
137+
"202": {
138+
"description": "Accepted",
139+
"headers": {
140+
"Location": {
141+
"type": "string"
142+
}
143+
}
144+
},
145+
"204": {
146+
"description": "NoContent"
147+
},
148+
"default": {
149+
"description": "Error response describing why the operation failed.",
150+
"schema": {
151+
"$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
152+
}
153+
}
154+
},
155+
"x-ms-long-running-operation": true,
156+
"x-ms-long-running-operation-options": {
157+
"final-state-via": "location"
158+
}
159+
},
160+
"get": {
161+
"tags": [
162+
"AzureADAdministrators"
163+
],
164+
"operationId": "AzureADAdministrators_Get",
165+
"x-ms-examples": {
166+
"Get an azure ad administrator": {
167+
"$ref": "./examples/AzureADAdministratorGet.json"
168+
}
169+
},
170+
"description": "Gets information about an azure ad administrator.",
171+
"parameters": [
172+
{
173+
"$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
174+
},
175+
{
176+
"$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
177+
},
178+
{
179+
"$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
180+
},
181+
{
182+
"$ref": "#/parameters/ServerNameParameter"
183+
},
184+
{
185+
"$ref": "#/parameters/AdministratorNameParameter"
186+
}
187+
],
188+
"responses": {
189+
"200": {
190+
"description": "OK",
191+
"schema": {
192+
"$ref": "#/definitions/AzureADAdministrator"
193+
}
194+
},
195+
"default": {
196+
"description": "Error response describing why the operation failed.",
197+
"schema": {
198+
"$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
199+
}
200+
}
201+
}
202+
}
203+
},
204+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/administrators": {
205+
"get": {
206+
"tags": [
207+
"AzureADAdministrators"
208+
],
209+
"operationId": "AzureADAdministrators_ListByServer",
210+
"x-ms-examples": {
211+
"List Azure AD administrators in a server": {
212+
"$ref": "./examples/AzureADAdministratorsListByServer.json"
213+
}
214+
},
215+
"description": "List all the AAD administrators in a given server.",
216+
"parameters": [
217+
{
218+
"$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
219+
},
220+
{
221+
"$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
222+
},
223+
{
224+
"$ref": "../../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
225+
},
226+
{
227+
"$ref": "#/parameters/ServerNameParameter"
228+
}
229+
],
230+
"responses": {
231+
"200": {
232+
"description": "OK",
233+
"schema": {
234+
"$ref": "#/definitions/AdministratorListResult"
235+
}
236+
},
237+
"default": {
238+
"description": "Error response describing why the operation failed.",
239+
"schema": {
240+
"$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
241+
}
242+
}
243+
},
244+
"x-ms-pageable": {
245+
"nextLinkName": "nextLink"
246+
}
247+
}
248+
}
249+
},
250+
"definitions": {
251+
"AdministratorProperties": {
252+
"type": "object",
253+
"properties": {
254+
"administratorType": {
255+
"type": "string",
256+
"description": "Type of the sever administrator.",
257+
"enum": [
258+
"ActiveDirectory"
259+
],
260+
"x-ms-enum": {
261+
"name": "AdministratorType",
262+
"modelAsString": true
263+
}
264+
},
265+
"login": {
266+
"type": "string",
267+
"description": "Login name of the server administrator."
268+
},
269+
"sid": {
270+
"type": "string",
271+
"description": "SID (object ID) of the server administrator."
272+
},
273+
"tenantId": {
274+
"type": "string",
275+
"description": "Tenant ID of the administrator."
276+
},
277+
"identityResourceId": {
278+
"type": "string",
279+
"description": "The resource id of the identity used for AAD Authentication."
280+
}
281+
},
282+
"description": "The properties of an administrator."
283+
},
284+
"AzureADAdministrator": {
285+
"type": "object",
286+
"properties": {
287+
"properties": {
288+
"$ref": "#/definitions/AdministratorProperties",
289+
"x-ms-client-flatten": true,
290+
"description": "The properties of an administrator."
291+
},
292+
"systemData": {
293+
"$ref": "../../../../../../common-types/resource-management/v2/types.json#/definitions/systemData",
294+
"readOnly": true,
295+
"description": "The system metadata relating to this resource."
296+
}
297+
},
298+
"allOf": [
299+
{
300+
"$ref": "../../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource"
301+
}
302+
],
303+
"description": "Represents a Administrator."
304+
},
305+
"AdministratorListResult": {
306+
"type": "object",
307+
"properties": {
308+
"value": {
309+
"type": "array",
310+
"items": {
311+
"$ref": "#/definitions/AzureADAdministrator"
312+
},
313+
"description": "The list of azure ad administrator of a server"
314+
},
315+
"nextLink": {
316+
"description": "The link used to get the next page of operations.",
317+
"type": "string"
318+
}
319+
},
320+
"description": "A List of azure ad administrators."
321+
}
322+
},
323+
"parameters": {
324+
"ServerNameParameter": {
325+
"name": "serverName",
326+
"in": "path",
327+
"required": true,
328+
"type": "string",
329+
"description": "The name of the server.",
330+
"x-ms-parameter-location": "method",
331+
"pattern": "^[a-z0-9][-a-z0-9]*(?<!-)$"
332+
},
333+
"AdministratorNameParameter": {
334+
"name": "administratorName",
335+
"in": "path",
336+
"required": true,
337+
"type": "string",
338+
"enum": [
339+
"ActiveDirectory"
340+
],
341+
"x-ms-enum": {
342+
"name": "AdministratorName",
343+
"modelAsString": true
344+
},
345+
"description": "The name of the Azure AD Administrator.",
346+
"x-ms-parameter-location": "method",
347+
"pattern": "^[-\\w\\._]+$"
348+
}
349+
}
350+
}

0 commit comments

Comments
 (0)