diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/preview/2020-07-01-preview/examples/CapabilitiesByLocationList.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/preview/2020-07-01-preview/examples/CapabilitiesByLocationList.json index 54179b014b28..2879d5f5d180 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/preview/2020-07-01-preview/examples/CapabilitiesByLocationList.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/preview/2020-07-01-preview/examples/CapabilitiesByLocationList.json @@ -17,15 +17,16 @@ { "name": "PremiumFileShare", "minStorageSize": { - "name": "10240", - "storageSizeMB": 10240 + "name": "5120", + "storageSizeMB": 5120 }, "maxStorageSize": { "name": "16777216", "storageSizeMB": 16777216 }, "minBackupRetentionDays": 7, - "maxBackupRetentionDays": 35 + "maxBackupRetentionDays": 35, + "status": "Default" } ], "supportedServerVersions": [ @@ -36,23 +37,28 @@ "name": "Standard_B1s", "vCores": 1, "supportedIops": 320, - "supportedMemoryPerVcoreMB": 2048 + "supportedMemoryPerVcoreMB": 1024, + "status": "Available" }, { "name": "Standard_B1ms", "vCores": 1, "supportedIops": 640, - "supportedMemoryPerVcoreMB": 2048 + "supportedMemoryPerVcoreMB": 2048, + "status": "Available" }, { "name": "Standard_B2s", "vCores": 2, "supportedIops": 1280, - "supportedMemoryPerVcoreMB": 2048 + "supportedMemoryPerVcoreMB": 2048, + "status": "Available" } - ] + ], + "status": "Available" } - ] + ], + "status": "Available" }, { "name": "GeneralPurpose", @@ -60,15 +66,16 @@ { "name": "PremiumFileShare", "minStorageSize": { - "name": "10240", - "storageSizeMB": 10240 + "name": "5120", + "storageSizeMB": 5120 }, "maxStorageSize": { "name": "16777216", "storageSizeMB": 16777216 }, "minBackupRetentionDays": 7, - "maxBackupRetentionDays": 35 + "maxBackupRetentionDays": 35, + "status": "Default" } ], "supportedServerVersions": [ @@ -79,47 +86,56 @@ "name": "Standard_D2ds_v4", "vCores": 2, "supportedIops": 3200, - "supportedMemoryPerVcoreMB": 4096 + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" }, { "name": "Standard_D4ds_v4", "vCores": 4, "supportedIops": 6400, - "supportedMemoryPerVcoreMB": 4096 + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" }, { "name": "Standard_D8ds_v4", "vCores": 8, "supportedIops": 12800, - "supportedMemoryPerVcoreMB": 4096 + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" }, { "name": "Standard_D16ds_v4", "vCores": 16, "supportedIops": 20000, - "supportedMemoryPerVcoreMB": 4096 + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" }, { "name": "Standard_D32ds_v4", "vCores": 32, "supportedIops": 20000, - "supportedMemoryPerVcoreMB": 4096 + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" }, { "name": "Standard_D48ds_v4", "vCores": 48, "supportedIops": 20000, - "supportedMemoryPerVcoreMB": 4096 + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" }, { "name": "Standard_D64ds_v4", "vCores": 64, "supportedIops": 20000, - "supportedMemoryPerVcoreMB": 4096 + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" } - ] + ], + "status": "Default" } - ] + ], + "status": "Default" }, { "name": "MemoryOptimized", @@ -127,15 +143,16 @@ { "name": "PremiumFileShare", "minStorageSize": { - "name": "10240", - "storageSizeMB": 10240 + "name": "5120", + "storageSizeMB": 5120 }, "maxStorageSize": { "name": "16777216", "storageSizeMB": 16777216 }, "minBackupRetentionDays": 7, - "maxBackupRetentionDays": 35 + "maxBackupRetentionDays": 35, + "status": "Default" } ], "supportedServerVersions": [ @@ -146,49 +163,59 @@ "name": "Standard_E2ds_v4", "vCores": 2, "supportedIops": 3200, - "supportedMemoryPerVcoreMB": 8192 + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" }, { "name": "Standard_E4ds_v4", "vCores": 4, "supportedIops": 6400, - "supportedMemoryPerVcoreMB": 8192 + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" }, { "name": "Standard_E8ds_v4", "vCores": 8, "supportedIops": 12800, - "supportedMemoryPerVcoreMB": 8192 + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" }, { "name": "Standard_E16ds_v4", "vCores": 16, "supportedIops": 20000, - "supportedMemoryPerVcoreMB": 8192 + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" }, { "name": "Standard_E32ds_v4", "vCores": 32, "supportedIops": 20000, - "supportedMemoryPerVcoreMB": 8192 + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" }, { "name": "Standard_E48ds_v4", "vCores": 48, "supportedIops": 20000, - "supportedMemoryPerVcoreMB": 8192 + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" }, { "name": "Standard_E64ds_v4", "vCores": 64, "supportedIops": 20000, - "supportedMemoryPerVcoreMB": 8192 + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" } - ] + ], + "status": "Available" } - ] + ], + "status": "Available" } - ] + ], + "status": "Default" } ] } diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/preview/2020-07-01-preview/examples/ConfigurationsBatchUpdate.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/preview/2020-07-01-preview/examples/ConfigurationsBatchUpdate.json new file mode 100644 index 000000000000..7887e8818a62 --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/preview/2020-07-01-preview/examples/ConfigurationsBatchUpdate.json @@ -0,0 +1,57 @@ +{ + "parameters": { + "serverName": "mysqltestsvc1", + "resourceGroupName": "testrg", + "api-version": "2020-07-01-preview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "value": [ + { + "name": "event_scheduler", + "properties": { + "value": "OFF" + } + }, + { + "name": "div_precision_increment", + "properties": { + "value": "4" + } + } + ] + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "value": "OFF", + "description": "Indicates the status of the Event Scheduler.", + "defaultValue": "OFF", + "dataType": "Enumeration", + "allowedValues": "ON,OFF,DISABLED", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestsvc1/configurations/event_scheduler", + "name": "event_scheduler", + "type": "Microsoft.DBforMySQL/flexibleServers/configurations" + }, + { + "properties": { + "value": "4", + "description": "Number of digits by which to increase the scale of the result of division operations.", + "defaultValue": "4", + "dataType": "Integer", + "allowedValues": "0-30", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestsvc1/configurations/div_precision_increment", + "name": "div_precision_increment", + "type": "Microsoft.DBforMySQL/flexibleServers/configurations" + } + ] + } + }, + "202": {} + } +} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/preview/2020-07-01-preview/mysql.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/preview/2020-07-01-preview/mysql.json index aae90e29117a..5d80b6e0d11d 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/preview/2020-07-01-preview/mysql.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/preview/2020-07-01-preview/mysql.json @@ -1197,6 +1197,64 @@ } } }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySql/flexibleServers/{serverName}/updateConfigurations": { + "post": { + "tags": [ + "Configurations" + ], + "operationId": "Configurations_BatchUpdate", + "x-ms-examples": { + "ConfigurationList": { + "$ref": "./examples/ConfigurationsBatchUpdate.json" + } + }, + "description": "Update a list of configurations in a given server.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "name": "value", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ConfigurationListResult" + }, + "description": "The parameters for updating a list of server configuration." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ConfigurationListResult" + } + }, + "202": { + "description": "Accepted" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } + } + }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySql/flexibleServers/{serverName}/configurations": { "get": { "tags": [ @@ -2085,7 +2143,6 @@ "description": "Represents a Configuration." }, "ConfigurationListResult": { - "type": "object", "properties": { "value": { "type": "array", @@ -2184,6 +2241,11 @@ "format": "int64", "description": "supported memory per vCore in MB", "readOnly": true + }, + "status": { + "type": "string", + "description": "The status of the capability.", + "readOnly": true } }, "description": "Vcores capability" @@ -2203,6 +2265,11 @@ "$ref": "#/definitions/VcoreCapability" }, "readOnly": true + }, + "status": { + "type": "string", + "description": "The status of the capability.", + "readOnly": true } }, "description": "Server version capabilities." @@ -2235,6 +2302,11 @@ "format": "int64", "description": "Maximum backup retention days", "readOnly": true + }, + "status": { + "type": "string", + "description": "The status of the capability.", + "readOnly": true } }, "description": "storage edition capability" @@ -2261,6 +2333,11 @@ "$ref": "#/definitions/ServerVersionCapability" }, "readOnly": true + }, + "status": { + "type": "string", + "description": "The status of the capability.", + "readOnly": true } }, "description": "Server edition capabilities." @@ -2279,6 +2356,11 @@ "$ref": "#/definitions/ServerEditionCapability" }, "readOnly": true + }, + "status": { + "type": "string", + "description": "The status of the capability.", + "readOnly": true } }, "description": "Location capabilities." diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/preview/2020-07-01-privatepreview/examples/CapabilitiesByLocationList.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/preview/2020-07-01-privatepreview/examples/CapabilitiesByLocationList.json index ac537987f888..85c70b67c907 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/preview/2020-07-01-privatepreview/examples/CapabilitiesByLocationList.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/preview/2020-07-01-privatepreview/examples/CapabilitiesByLocationList.json @@ -17,15 +17,16 @@ { "name": "PremiumFileShare", "minStorageSize": { - "name": "10240", - "storageSizeMB": 10240 + "name": "5120", + "storageSizeMB": 5120 }, "maxStorageSize": { "name": "16777216", "storageSizeMB": 16777216 }, "minBackupRetentionDays": 7, - "maxBackupRetentionDays": 35 + "maxBackupRetentionDays": 35, + "status": "Default" } ], "supportedServerVersions": [ @@ -36,23 +37,28 @@ "name": "Standard_B1s", "vCores": 1, "supportedIops": 320, - "supportedMemoryPerVcoreMB": 2048 + "supportedMemoryPerVcoreMB": 1024, + "status": "Available" }, { "name": "Standard_B1ms", "vCores": 1, "supportedIops": 640, - "supportedMemoryPerVcoreMB": 2048 + "supportedMemoryPerVcoreMB": 2048, + "status": "Available" }, { "name": "Standard_B2s", "vCores": 2, "supportedIops": 1280, - "supportedMemoryPerVcoreMB": 2048 + "supportedMemoryPerVcoreMB": 2048, + "status": "Available" } - ] + ], + "status": "Available" } - ] + ], + "status": "Available" }, { "name": "GeneralPurpose", @@ -60,15 +66,16 @@ { "name": "PremiumFileShare", "minStorageSize": { - "name": "10240", - "storageSizeMB": 10240 + "name": "5120", + "storageSizeMB": 5120 }, "maxStorageSize": { "name": "16777216", "storageSizeMB": 16777216 }, "minBackupRetentionDays": 7, - "maxBackupRetentionDays": 35 + "maxBackupRetentionDays": 35, + "status": "Default" } ], "supportedServerVersions": [ @@ -79,47 +86,56 @@ "name": "Standard_D2ds_v4", "vCores": 2, "supportedIops": 3200, - "supportedMemoryPerVcoreMB": 4096 + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" }, { "name": "Standard_D4ds_v4", "vCores": 4, "supportedIops": 6400, - "supportedMemoryPerVcoreMB": 4096 + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" }, { "name": "Standard_D8ds_v4", "vCores": 8, "supportedIops": 12800, - "supportedMemoryPerVcoreMB": 4096 + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" }, { "name": "Standard_D16ds_v4", "vCores": 16, "supportedIops": 20000, - "supportedMemoryPerVcoreMB": 4096 + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" }, { "name": "Standard_D32ds_v4", "vCores": 32, "supportedIops": 20000, - "supportedMemoryPerVcoreMB": 4096 + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" }, { "name": "Standard_D48ds_v4", "vCores": 48, "supportedIops": 20000, - "supportedMemoryPerVcoreMB": 4096 + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" }, { "name": "Standard_D64ds_v4", "vCores": 64, "supportedIops": 20000, - "supportedMemoryPerVcoreMB": 4096 + "supportedMemoryPerVcoreMB": 4096, + "status": "Available" } - ] + ], + "status": "Default" } - ] + ], + "status": "Default" }, { "name": "MemoryOptimized", @@ -127,15 +143,16 @@ { "name": "PremiumFileShare", "minStorageSize": { - "name": "10240", - "storageSizeMB": 10240 + "name": "5120", + "storageSizeMB": 5120 }, "maxStorageSize": { "name": "16777216", "storageSizeMB": 16777216 }, "minBackupRetentionDays": 7, - "maxBackupRetentionDays": 35 + "maxBackupRetentionDays": 35, + "status": "Default" } ], "supportedServerVersions": [ @@ -146,49 +163,59 @@ "name": "Standard_E2ds_v4", "vCores": 2, "supportedIops": 3200, - "supportedMemoryPerVcoreMB": 8192 + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" }, { "name": "Standard_E4ds_v4", "vCores": 4, "supportedIops": 6400, - "supportedMemoryPerVcoreMB": 8192 + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" }, { "name": "Standard_E8ds_v4", "vCores": 8, "supportedIops": 12800, - "supportedMemoryPerVcoreMB": 8192 + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" }, { "name": "Standard_E16ds_v4", "vCores": 16, "supportedIops": 20000, - "supportedMemoryPerVcoreMB": 8192 + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" }, { "name": "Standard_E32ds_v4", "vCores": 32, "supportedIops": 20000, - "supportedMemoryPerVcoreMB": 8192 + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" }, { "name": "Standard_E48ds_v4", "vCores": 48, "supportedIops": 20000, - "supportedMemoryPerVcoreMB": 8192 + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" }, { "name": "Standard_E64ds_v4", "vCores": 64, "supportedIops": 20000, - "supportedMemoryPerVcoreMB": 8192 + "supportedMemoryPerVcoreMB": 8192, + "status": "Available" } - ] + ], + "status": "Available" } - ] + ], + "status": "Available" } - ] + ], + "status": "Default" } ] } diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/preview/2020-07-01-privatepreview/examples/ConfigurationsBatchUpdate.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/preview/2020-07-01-privatepreview/examples/ConfigurationsBatchUpdate.json new file mode 100644 index 000000000000..695c5fe53c1d --- /dev/null +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/preview/2020-07-01-privatepreview/examples/ConfigurationsBatchUpdate.json @@ -0,0 +1,57 @@ +{ + "parameters": { + "serverName": "mysqltestsvc1", + "resourceGroupName": "testrg", + "api-version": "2020-07-01-privatepreview", + "subscriptionId": "ffffffff-ffff-ffff-ffff-ffffffffffff", + "value": [ + { + "name": "event_scheduler", + "properties": { + "value": "OFF" + } + }, + { + "name": "div_precision_increment", + "properties": { + "value": "4" + } + } + ] + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "value": "OFF", + "description": "Indicates the status of the Event Scheduler.", + "defaultValue": "OFF", + "dataType": "Enumeration", + "allowedValues": "ON,OFF,DISABLED", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestsvc1/configurations/event_scheduler", + "name": "event_scheduler", + "type": "Microsoft.DBforMySQL/flexibleServers/configurations" + }, + { + "properties": { + "value": "4", + "description": "Number of digits by which to increase the scale of the result of division operations.", + "defaultValue": "4", + "dataType": "Integer", + "allowedValues": "0-30", + "source": "system-default" + }, + "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/testrg/providers/Microsoft.DBforMySQL/flexibleServers/mysqltestsvc1/configurations/div_precision_increment", + "name": "div_precision_increment", + "type": "Microsoft.DBforMySQL/flexibleServers/configurations" + } + ] + } + }, + "202": {} + } +} diff --git a/specification/mysql/resource-manager/Microsoft.DBforMySQL/preview/2020-07-01-privatepreview/mysql.json b/specification/mysql/resource-manager/Microsoft.DBforMySQL/preview/2020-07-01-privatepreview/mysql.json index d7e237cea7cb..1db902d66888 100644 --- a/specification/mysql/resource-manager/Microsoft.DBforMySQL/preview/2020-07-01-privatepreview/mysql.json +++ b/specification/mysql/resource-manager/Microsoft.DBforMySQL/preview/2020-07-01-privatepreview/mysql.json @@ -1197,6 +1197,64 @@ } } }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySql/flexibleServers/{serverName}/updateConfigurations": { + "post": { + "tags": [ + "Configurations" + ], + "operationId": "ServerParameters_BatchUpdate", + "x-ms-examples": { + "ConfigurationList": { + "$ref": "./examples/ConfigurationsBatchUpdate.json" + } + }, + "description": "Update a list of configurations in a given server.", + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ApiVersionParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "name": "value", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ConfigurationListResult" + }, + "description": "The parameters for updating a list of server configuration." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ConfigurationListResult" + } + }, + "202": { + "description": "Accepted" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } + } + }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBForMySql/flexibleServers/{serverName}/configurations": { "get": { "tags": [ @@ -2085,7 +2143,6 @@ "description": "Represents a Configuration." }, "ConfigurationListResult": { - "type": "object", "properties": { "value": { "type": "array", @@ -2184,6 +2241,11 @@ "format": "int64", "description": "supported memory per vCore in MB", "readOnly": true + }, + "status": { + "type": "string", + "description": "The status of the capability.", + "readOnly": true } }, "description": "Vcores capability" @@ -2203,6 +2265,11 @@ "$ref": "#/definitions/VcoreCapability" }, "readOnly": true + }, + "status": { + "type": "string", + "description": "The status of the capability.", + "readOnly": true } }, "description": "Server version capabilities." @@ -2235,6 +2302,11 @@ "format": "int64", "description": "Maximum backup retention days", "readOnly": true + }, + "status": { + "type": "string", + "description": "The status of the capability.", + "readOnly": true } }, "description": "storage edition capability" @@ -2261,6 +2333,11 @@ "$ref": "#/definitions/ServerVersionCapability" }, "readOnly": true + }, + "status": { + "type": "string", + "description": "The status of the capability.", + "readOnly": true } }, "description": "Server edition capabilities." @@ -2279,6 +2356,11 @@ "$ref": "#/definitions/ServerEditionCapability" }, "readOnly": true + }, + "status": { + "type": "string", + "description": "The status of the capability.", + "readOnly": true } }, "description": "Location capabilities."