Skip to content

Commit eab6964

Browse files
committed
Add new version changes
1 parent 35491e6 commit eab6964

File tree

5 files changed

+265
-2
lines changed

5 files changed

+265
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"parameters": {
3+
"backupName": "mybackup",
4+
"serverName": "mysqltestserver",
5+
"resourceGroupName": "TestGroup",
6+
"api-version": "2021-05-01",
7+
"subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff"
8+
},
9+
"responses": {
10+
"200": {
11+
"body": {
12+
"properties": {
13+
"backupType": "FULL",
14+
"source": "Automatic",
15+
"completedTime": "2022-05-07T07:38:01.1498043+00:00"
16+
},
17+
"id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/TestGroup/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestserver/backups/customer_20220507t073755_bb392c3b-17c6-4d3f-9742-8479ca87b3ac_mybackup",
18+
"name": "customer_20220507t073755_bb392c3b-17c6-4d3f-9742-8479ca87b3ac_mybackup",
19+
"type": "Microsoft.DBforMySQL/flexibleServers/backups"
20+
}
21+
}
22+
}
23+
}

specification/mysql/resource-manager/Microsoft.DBforMySQL/preview/2021-12-01-preview/examples/ConfigurationsBatchUpdate.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
"value": "8"
1919
}
2020
}
21-
]
21+
],
22+
"resetAllToDefault": false
2223
}
2324
},
2425
"responses": {

specification/mysql/resource-manager/Microsoft.DBforMySQL/preview/2021-12-01-preview/examples/ConfigurationsListByServer.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
"serverName": "mysqltestserver",
44
"resourceGroupName": "testrg",
55
"api-version": "2021-12-01-preview",
6-
"subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff"
6+
"subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff",
7+
"page": 1,
8+
"pageSize": 8
79
},
810
"responses": {
911
"200": {
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"parameters": {
3+
"serverName": "mysqltestserver",
4+
"resourceGroupName": "TestGroup",
5+
"api-version": "2021-12-01-preview",
6+
"subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"value": [
12+
{
13+
"properties": {
14+
"sizeInKB": 1,
15+
"createdTime": "0001-01-01T00:00:00+00:00",
16+
"lastModifiedTime": "2018-03-01T06:09:20+00:00",
17+
"type": "slowlog",
18+
"url": "https://wasd2prodwus1afse42.file.core.windows.net/833c99b2f36c47349e5554b903fe0440/serverlogs/mysql-slow-mysqltestsvc1-2018022823.log?sv=2015-04-05&sr=f&sig=D9Ga4N5Pa%2BPe5Bmjpvs7A0TPD%2FF7IZpk9e4KWR0jgpM%3D&se=2018-03-01T07%3A12%3A13Z&sp=r"
19+
},
20+
"id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestsvc1/logFiles/mysql-slow-mysqltestsvc1-2018022823.log",
21+
"name": "mysql-slow-mysqltestsvc1-2018022823.log",
22+
"type": "Microsoft.DBforMySQL/flexibleServers/logFiles"
23+
}
24+
]
25+
}
26+
}
27+
}
28+
}

specification/mysql/resource-manager/Microsoft.DBforMySQL/preview/2021-12-01-preview/mysql.json

Lines changed: 209 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -558,6 +558,49 @@
558558
}
559559
},
560560
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/backups/{backupName}": {
561+
"put": {
562+
"tags": [
563+
"Backups"
564+
],
565+
"operationId": "Backups_Put",
566+
"x-ms-examples": {
567+
"Create backup for a server": {
568+
"$ref": "./examples/BackupPut.json"
569+
}
570+
},
571+
"description": "Create backup for a given server with specified backup name.",
572+
"parameters": [
573+
{
574+
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
575+
},
576+
{
577+
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
578+
},
579+
{
580+
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
581+
},
582+
{
583+
"$ref": "#/parameters/ServerNameParameter"
584+
},
585+
{
586+
"$ref": "#/parameters/BackupNameParameter"
587+
}
588+
],
589+
"responses": {
590+
"200": {
591+
"description": "OK",
592+
"schema": {
593+
"$ref": "#/definitions/ServerBackup"
594+
}
595+
},
596+
"default": {
597+
"description": "Error response describing why the operation failed.",
598+
"schema": {
599+
"$ref": "#/definitions/CloudError"
600+
}
601+
}
602+
}
603+
},
561604
"get": {
562605
"tags": [
563606
"Backups"
@@ -1204,6 +1247,51 @@
12041247
}
12051248
}
12061249
},
1250+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/logFiles": {
1251+
"get": {
1252+
"tags": [
1253+
"LogFiles"
1254+
],
1255+
"operationId": "LogFiles_ListByServer",
1256+
"x-ms-examples": {
1257+
"List all serverlog files for a server": {
1258+
"$ref": "./examples/LogFilesListByServer.json"
1259+
}
1260+
},
1261+
"description": "List all the serverlog files in a given server.",
1262+
"parameters": [
1263+
{
1264+
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter"
1265+
},
1266+
{
1267+
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter"
1268+
},
1269+
{
1270+
"$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter"
1271+
},
1272+
{
1273+
"$ref": "#/parameters/ServerNameParameter"
1274+
}
1275+
],
1276+
"responses": {
1277+
"200": {
1278+
"description": "OK",
1279+
"schema": {
1280+
"$ref": "#/definitions/LogFileListResult"
1281+
}
1282+
},
1283+
"default": {
1284+
"description": "Error response describing why the operation failed.",
1285+
"schema": {
1286+
"$ref": "#/definitions/CloudError"
1287+
}
1288+
}
1289+
},
1290+
"x-ms-pageable": {
1291+
"nextLinkName": "nextLink"
1292+
}
1293+
}
1294+
},
12071295
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/configurations": {
12081296
"get": {
12091297
"tags": [
@@ -1228,6 +1316,18 @@
12281316
},
12291317
{
12301318
"$ref": "#/parameters/ServerNameParameter"
1319+
},
1320+
{
1321+
"$ref": "#/parameters/ConfigurationTagsParameter"
1322+
},
1323+
{
1324+
"$ref": "#/parameters/ConfigurationKeywordParameter"
1325+
},
1326+
{
1327+
"$ref": "#/parameters/ConfigurationPageParameter"
1328+
},
1329+
{
1330+
"$ref": "#/parameters/ConfigurationPageSizeParameter"
12311331
}
12321332
],
12331333
"responses": {
@@ -1858,6 +1958,10 @@
18581958
"format": "password",
18591959
"description": "The password of the administrator login."
18601960
},
1961+
"version": {
1962+
"$ref": "#/definitions/ServerVersion",
1963+
"description": "Server version."
1964+
},
18611965
"storage": {
18621966
"$ref": "#/definitions/Storage",
18631967
"description": "Storage related properties of a server."
@@ -2266,10 +2370,81 @@
22662370
"$ref": "#/definitions/ConfigurationForBatchUpdate"
22672371
},
22682372
"description": "The list of server configurations."
2373+
},
2374+
"resetAllToDefault": {
2375+
"type": "boolean",
2376+
"description": "Whether to reset all server parameters to default."
22692377
}
22702378
},
22712379
"description": "A list of server configurations to update."
22722380
},
2381+
"LogFileProperties": {
2382+
"type": "object",
2383+
"properties": {
2384+
"sizeInKB": {
2385+
"type": "integer",
2386+
"format": "int64",
2387+
"description": "The size in kb of the logFile."
2388+
},
2389+
"createdTime": {
2390+
"type": "string",
2391+
"format": "date-time",
2392+
"description": "Creation timestamp of the log file."
2393+
},
2394+
"type": {
2395+
"type": "string",
2396+
"description": "Type of the log file."
2397+
},
2398+
"lastModifiedTime": {
2399+
"type": "string",
2400+
"format": "date-time",
2401+
"description": "Last modified timestamp of the log file."
2402+
},
2403+
"url": {
2404+
"type": "string",
2405+
"description": "The url to download the log file from."
2406+
}
2407+
},
2408+
"description": "The properties of a logFile."
2409+
},
2410+
"LogFile": {
2411+
"type": "object",
2412+
"properties": {
2413+
"properties": {
2414+
"$ref": "#/definitions/LogFileProperties",
2415+
"x-ms-client-flatten": true,
2416+
"description": "The properties of a logFile."
2417+
},
2418+
"systemData": {
2419+
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData",
2420+
"readOnly": true,
2421+
"description": "The system metadata relating to this resource."
2422+
}
2423+
},
2424+
"allOf": [
2425+
{
2426+
"$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ProxyResource"
2427+
}
2428+
],
2429+
"description": "Represents a logFile."
2430+
},
2431+
"LogFileListResult": {
2432+
"type": "object",
2433+
"properties": {
2434+
"value": {
2435+
"type": "array",
2436+
"items": {
2437+
"$ref": "#/definitions/LogFile"
2438+
},
2439+
"description": "The list of logFiles in a server"
2440+
},
2441+
"nextLink": {
2442+
"description": "The link used to get the next page of operations.",
2443+
"type": "string"
2444+
}
2445+
},
2446+
"description": "A List of logFiles."
2447+
},
22732448
"VirtualNetworkSubnetUsageParameter": {
22742449
"type": "object",
22752450
"properties": {
@@ -2687,6 +2862,40 @@
26872862
"description": "The name of the server configuration.",
26882863
"x-ms-parameter-location": "method"
26892864
},
2865+
"ConfigurationTagsParameter": {
2866+
"name": "tags",
2867+
"in": "query",
2868+
"required": false,
2869+
"type": "string",
2870+
"description": "The tags of the server configuration.",
2871+
"x-ms-parameter-location": "method"
2872+
},
2873+
"ConfigurationKeywordParameter": {
2874+
"name": "keyword",
2875+
"in": "query",
2876+
"required": false,
2877+
"type": "string",
2878+
"description": "The keyword of the server configuration.",
2879+
"x-ms-parameter-location": "method"
2880+
},
2881+
"ConfigurationPageParameter": {
2882+
"name": "page",
2883+
"in": "query",
2884+
"required": false,
2885+
"type": "integer",
2886+
"format": "int32",
2887+
"description": "The page of the server configuration.",
2888+
"x-ms-parameter-location": "method"
2889+
},
2890+
"ConfigurationPageSizeParameter": {
2891+
"name": "pageSize",
2892+
"in": "query",
2893+
"required": false,
2894+
"type": "integer",
2895+
"format": "int32",
2896+
"description": "The pageSize of the server configuration.",
2897+
"x-ms-parameter-location": "method"
2898+
},
26902899
"LocationNameParameter": {
26912900
"name": "locationName",
26922901
"in": "path",

0 commit comments

Comments
 (0)