Skip to content

Commit ac0b1b1

Browse files
authored
[Hub Generated] Review request for Microsoft.DBforMySQL to add version preview/2021-12-01-preview (#19454)
* Adds base for updating Microsoft.DBforMySQL from version stable/2021-05-01 to version 2021-12-01-preview * Updates readme * Updates API version in new specs and examples * Add new version changes * split mysql.json to seperate files and modify readme * fix comments * change version to v2
1 parent cc87964 commit ac0b1b1

Some content is hidden

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

48 files changed

+6772
-18
lines changed
Lines changed: 259 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,259 @@
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": "2021-12-01-preview"
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}/backups/{backupName}": {
38+
"put": {
39+
"tags": [
40+
"Backups"
41+
],
42+
"operationId": "Backups_Put",
43+
"x-ms-examples": {
44+
"Create backup for a server": {
45+
"$ref": "./examples/BackupPut.json"
46+
}
47+
},
48+
"description": "Create backup for a given server with specified backup name.",
49+
"parameters": [
50+
{
51+
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
52+
},
53+
{
54+
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
55+
},
56+
{
57+
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
58+
},
59+
{
60+
"$ref": "#/parameters/ServerNameParameter"
61+
},
62+
{
63+
"$ref": "#/parameters/BackupNameParameter"
64+
}
65+
],
66+
"responses": {
67+
"200": {
68+
"description": "OK",
69+
"schema": {
70+
"$ref": "#/definitions/ServerBackup"
71+
}
72+
},
73+
"default": {
74+
"description": "Error response describing why the operation failed.",
75+
"schema": {
76+
"$ref": "#/definitions/CloudError"
77+
}
78+
}
79+
}
80+
},
81+
"get": {
82+
"tags": [
83+
"Backups"
84+
],
85+
"operationId": "Backups_Get",
86+
"x-ms-examples": {
87+
"Get a backup for a server": {
88+
"$ref": "./examples/BackupGet.json"
89+
}
90+
},
91+
"description": "List all the backups for a given server.",
92+
"parameters": [
93+
{
94+
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
95+
},
96+
{
97+
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
98+
},
99+
{
100+
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
101+
},
102+
{
103+
"$ref": "#/parameters/ServerNameParameter"
104+
},
105+
{
106+
"$ref": "#/parameters/BackupNameParameter"
107+
}
108+
],
109+
"responses": {
110+
"200": {
111+
"description": "OK",
112+
"schema": {
113+
"$ref": "#/definitions/ServerBackup"
114+
}
115+
},
116+
"default": {
117+
"description": "Error response describing why the operation failed.",
118+
"schema": {
119+
"$ref": "#/definitions/CloudError"
120+
}
121+
}
122+
}
123+
}
124+
},
125+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/backups": {
126+
"get": {
127+
"tags": [
128+
"Backups"
129+
],
130+
"operationId": "Backups_ListByServer",
131+
"x-ms-examples": {
132+
"List backups for a server": {
133+
"$ref": "./examples/BackupsListByServer.json"
134+
}
135+
},
136+
"description": "List all the backups for a given server.",
137+
"parameters": [
138+
{
139+
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
140+
},
141+
{
142+
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
143+
},
144+
{
145+
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
146+
},
147+
{
148+
"$ref": "#/parameters/ServerNameParameter"
149+
}
150+
],
151+
"responses": {
152+
"200": {
153+
"description": "OK",
154+
"schema": {
155+
"$ref": "#/definitions/ServerBackupListResult"
156+
}
157+
},
158+
"default": {
159+
"description": "Error response describing why the operation failed.",
160+
"schema": {
161+
"$ref": "#/definitions/CloudError"
162+
}
163+
}
164+
},
165+
"x-ms-pageable": {
166+
"nextLinkName": "nextLink"
167+
}
168+
}
169+
}
170+
},
171+
"definitions": {
172+
"ServerBackupProperties": {
173+
"type": "object",
174+
"properties": {
175+
"backupType": {
176+
"type": "string",
177+
"description": "Backup type."
178+
},
179+
"completedTime": {
180+
"type": "string",
181+
"format": "date-time",
182+
"description": "Backup completed time (ISO8601 format)."
183+
},
184+
"source": {
185+
"type": "string",
186+
"description": "Backup source"
187+
}
188+
},
189+
"description": "The properties of a server backup."
190+
},
191+
"ServerBackup": {
192+
"type": "object",
193+
"properties": {
194+
"properties": {
195+
"$ref": "#/definitions/ServerBackupProperties",
196+
"x-ms-client-flatten": true,
197+
"description": "The properties of a server backup."
198+
},
199+
"systemData": {
200+
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData",
201+
"readOnly": true,
202+
"description": "The system metadata relating to this resource."
203+
}
204+
},
205+
"allOf": [
206+
{
207+
"$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource"
208+
}
209+
],
210+
"description": "Server backup properties"
211+
},
212+
"ServerBackupListResult": {
213+
"type": "object",
214+
"properties": {
215+
"value": {
216+
"type": "array",
217+
"items": {
218+
"$ref": "#/definitions/ServerBackup"
219+
},
220+
"description": "The list of backups of a server."
221+
},
222+
"nextLink": {
223+
"description": "The link used to get the next page of operations.",
224+
"type": "string"
225+
}
226+
},
227+
"description": "A list of server backups."
228+
},
229+
"CloudError": {
230+
"type": "object",
231+
"x-ms-external": true,
232+
"properties": {
233+
"error": {
234+
"$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse",
235+
"description": "The resource management error response."
236+
}
237+
},
238+
"description": "An error response from the Batch service."
239+
}
240+
},
241+
"parameters": {
242+
"ServerNameParameter": {
243+
"name": "serverName",
244+
"in": "path",
245+
"required": true,
246+
"type": "string",
247+
"description": "The name of the server.",
248+
"x-ms-parameter-location": "method"
249+
},
250+
"BackupNameParameter": {
251+
"name": "backupName",
252+
"in": "path",
253+
"required": true,
254+
"type": "string",
255+
"description": "The name of the backup.",
256+
"x-ms-parameter-location": "method"
257+
}
258+
}
259+
}

0 commit comments

Comments
 (0)