From 3cd0c94bb625c674f622ef43e3dae9ea9b569730 Mon Sep 17 00:00:00 2001 From: Jared Moore Date: Mon, 6 Nov 2017 17:13:51 -0800 Subject: [PATCH 1/6] Separate 2014 databases out of sql.core.json --- .../stable/2014-04-01/databases.json | 994 +++++++++++++ .../stable/2014-04-01/sql.core.json | 1232 +++-------------- specification/sql/resource-manager/readme.md | 6 +- 3 files changed, 1161 insertions(+), 1071 deletions(-) create mode 100644 specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/databases.json diff --git a/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/databases.json b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/databases.json new file mode 100644 index 000000000000..0e3a600e098f --- /dev/null +++ b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/databases.json @@ -0,0 +1,994 @@ +{ + "swagger": "2.0", + "info": { + "title": "Azure SQL Database", + "description": "Provides create, read, update and delete functionality for Azure SQL Database resources including servers, databases, elastic pools, recommendations, and operations.", + "version": "2014-04-01" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/pause": { + "post": { + "tags": [ + "DatabaseActivation" + ], + "operationId": "Databases_Pause", + "description": "Pauses a data warehouse.", + "x-ms-examples": { + "Pause a data warehouse": { "$ref": "./examples/DatabasePause.json" } + }, + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "name": "databaseName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the data warehouse to pause." + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/resume": { + "post": { + "tags": [ + "DatabaseActivation" + ], + "operationId": "Databases_Resume", + "description": "Resumes a data warehouse.", + "x-ms-examples": { + "Resume a data warehouse": { "$ref": "./examples/DatabaseResume.json" } + }, + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "name": "databaseName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the data warehouse to resume." + } + ], + "responses": { + "202": { + "description": "Accepted" + }, + "200": { + "description": "OK" + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}": { + "put": { + "tags": [ + "Databases" + ], + "operationId": "Databases_CreateOrUpdate", + "description": "Creates a new database or updates an existing database.", + "x-ms-examples": { + "Create a database min": { "$ref": "./examples/DatabaseCreateOrUpdateMin.json" }, + "Create a database max": { "$ref": "./examples/DatabaseCreateMax.json" }, + "Create a database as a copy": { "$ref": "./examples/DatabaseCreateCopy.json" }, + "Create a database as an online secondary": { "$ref": "./examples/DatabaseCreateOnlineSecondary.json" }, + "Create a database as a non-readable secondary": { "$ref": "./examples/DatabaseCreateNonReadableSecondary.json" }, + "Create a database as a point in time restore": { "$ref": "./examples/DatabaseCreatePointInTimeRestore.json" }, + "Create a database as a dropped database restore to deletion time": { "$ref": "./examples/DatabaseCreateDroppedDatabaseRestore.json" }, + "Create a database as a dropped database restore to a specific point in time": { "$ref": "./examples/DatabaseCreateDroppedDatabaseRestoreToPointInTime.json" }, + "Create a database as a geo restore": { "$ref": "./examples/DatabaseCreateGeoRestore.json" }, + "Create a database from a long term retention backup": { "$ref": "./examples/DatabaseCreateLongTermRetentionRestore.json" }, + "Update a database's elastic pool'": { "$ref": "./examples/DatabaseUpdateElasticPool.json" }, + "Update a database max": { "$ref": "./examples/DatabaseUpdateMaxPut.json" } + }, + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "name": "databaseName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the database to be operated on (updated or created)." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Database" + }, + "description": "The required parameters for creating or updating a database." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Database" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/Database" + } + }, + "202": { + "description": "Accepted" + } + }, + "x-ms-long-running-operation": true + }, + "patch": { + "tags": [ + "Databases" + ], + "operationId": "Databases_Update", + "description": "Updates an existing database.", + "x-ms-examples": { + "Update a database max": { "$ref": "./examples/DatabaseUpdateMaxPatch.json" }, + "Update a database min": { "$ref": "./examples/DatabaseUpdateMin.json" } + }, + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "name": "databaseName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the database to be updated." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/DatabaseUpdate" + }, + "description": "The required parameters for updating a database." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Database" + } + }, + "202": { + "description": "Accepted" + } + }, + "x-ms-long-running-operation": true + }, + "delete": { + "tags": [ + "Databases" + ], + "operationId": "Databases_Delete", + "description": "Deletes a database.", + "x-ms-examples": { + "Delete a database": { "$ref": "./examples/DatabaseDelete.json" } + }, + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "name": "databaseName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the database to be deleted." + } + ], + "responses": { + "200": { + "description": "OK" + }, + "204": { + "description": "NoContent" + } + } + }, + "get": { + "tags": [ + "Databases" + ], + "operationId": "Databases_Get", + "description": "Gets a database.", + "x-ms-examples": { + "Get a database": { "$ref": "./examples/DatabaseGet.json" } + }, + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "name": "databaseName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the database to be retrieved." + }, + { + "$ref": "#/parameters/DatabaseExpandParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Database" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases": { + "get": { + "tags": [ + "Databases" + ], + "operationId": "Databases_ListByServer", + "description": "Returns a list of databases in a server.", + "x-ms-examples": { + "List databases by server": { "$ref": "./examples/DatabaseList.json" }, + "List databases by server with filter": { "$ref": "./examples/DatabaseListWithFilter.json" } + }, + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "$ref": "#/parameters/DatabaseExpandParameter" + }, + { + "name": "$filter", + "in": "query", + "required": false, + "type": "string", + "description": "An OData filter expression that describes a subset of databases to return." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/DatabaseListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools/{elasticPoolName}/databases/{databaseName}": { + "get": { + "tags": [ + "ElasticPools" + ], + "operationId": "Databases_GetByElasticPool", + "description": "Gets a database inside of an elastic pool.", + "x-ms-examples": { + "Get a database in an elastic pool": { "$ref": "./examples/DatabaseGetByElasticPool.json" } + }, + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "name": "elasticPoolName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the elastic pool to be retrieved." + }, + { + "name": "databaseName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the database to be retrieved." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Database" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools/{elasticPoolName}/databases": { + "get": { + "tags": [ + "Databases" + ], + "operationId": "Databases_ListByElasticPool", + "description": "Returns a list of databases in an elastic pool.", + "x-ms-examples": { + "Gets databases in an elastic pool": { "$ref": "./examples/DatabaseListByElasticPool.json" } + }, + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "name": "elasticPoolName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the elastic pool to be retrieved." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/DatabaseListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/recommendedElasticPools/{recommendedElasticPoolName}/databases/{databaseName}": { + "get": { + "tags": [ + "Databases" + ], + "operationId": "Databases_GetByRecommendedElasticPool", + "description": "Gets a database inside of a recommented elastic pool.", + "x-ms-examples": { + "Get a database in a recommended elastic pool": { "$ref": "./examples/DatabaseGetByRecommendedElasticPool.json" } + }, + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "name": "recommendedElasticPoolName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the elastic pool to be retrieved." + }, + { + "name": "databaseName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the database to be retrieved." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Database" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/recommendedElasticPools/{recommendedElasticPoolName}/databases": { + "get": { + "tags": [ + "Databases" + ], + "operationId": "Databases_ListByRecommendedElasticPool", + "description": "Returns a list of databases inside a recommented elastic pool.", + "x-ms-examples": { + "Gets databases in an elastic pool": { "$ref": "./examples/DatabaseListByRecommendedElasticPool.json" } + }, + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupParameter" + }, + { + "$ref": "#/parameters/ServerNameParameter" + }, + { + "name": "recommendedElasticPoolName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the recommended elastic pool to be retrieved." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/DatabaseListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + } + }, + "definitions": { + "DatabaseProperties": { + "properties": { + "collation": { + "type": "string", + "description": "The collation of the database. If createMode is not Default, this value is ignored.", + "x-ms-mutability": ["create", "read"] + }, + "creationDate": { + "readOnly": true, + "type": "string", + "format": "date-time", + "description": "The creation date of the database (ISO8601 format)." + }, + "containmentState": { + "readOnly": true, + "type": "integer", + "format": "int64", + "description": "The containment state of the database." + }, + "currentServiceObjectiveId": { + "readOnly": true, + "type": "string", + "format": "uuid", + "description": "The current service level objective ID of the database. This is the ID of the service level objective that is currently active." + }, + "databaseId": { + "readOnly": true, + "type": "string", + "format": "uuid", + "description": "The ID of the database." + }, + "earliestRestoreDate": { + "readOnly": true, + "type": "string", + "format": "date-time", + "description": "This records the earliest start date and time that restore is available for this database (ISO8601 format)." + }, + "createMode": { + "type": "string", + "description": "Specifies the mode of database creation.\n\nDefault: regular database creation.\n\nCopy: creates a database as a copy of an existing database. sourceDatabaseId must be specified as the resource ID of the source database.\n\nOnlineSecondary/NonReadableSecondary: creates a database as a (readable or nonreadable) secondary replica of an existing database. sourceDatabaseId must be specified as the resource ID of the existing primary database.\n\nPointInTimeRestore: Creates a database by restoring a point in time backup of an existing database. sourceDatabaseId must be specified as the resource ID of the existing database, and restorePointInTime must be specified.\n\nRecovery: Creates a database by restoring a geo-replicated backup. sourceDatabaseId must be specified as the recoverable database resource ID to restore.\n\nRestore: Creates a database by restoring a backup of a deleted database. sourceDatabaseId must be specified. If sourceDatabaseId is the database's original resource ID, then sourceDatabaseDeletionDate must be specified. Otherwise sourceDatabaseId must be the restorable dropped database resource ID and sourceDatabaseDeletionDate is ignored. restorePointInTime may also be specified to restore from an earlier point in time.\n\nRestoreLongTermRetentionBackup: Creates a database by restoring from a long term retention vault. recoveryServicesRecoveryPointResourceId must be specified as the recovery point resource ID.\n\nCopy, NonReadableSecondary, OnlineSecondary and RestoreLongTermRetentionBackup are not supported for DataWarehouse edition.", + "enum": [ + "Copy", + "Default", + "NonReadableSecondary", + "OnlineSecondary", + "PointInTimeRestore", + "Recovery", + "Restore", + "RestoreLongTermRetentionBackup" + ], + "x-ms-enum": { + "name": "CreateMode", + "modelAsString": true + }, + "x-ms-mutability": [ "create" ] + }, + "sourceDatabaseId": { + "type": "string", + "description": "Conditional. If createMode is Copy, NonReadableSecondary, OnlineSecondary, PointInTimeRestore, Recovery, or Restore, then this value is required. Specifies the resource ID of the source database. If createMode is NonReadableSecondary or OnlineSecondary, the name of the source database must be the same as the new database being created.", + "x-ms-mutability": [ "create" ] + }, + "sourceDatabaseDeletionDate": { + "type": "string", + "format": "date-time", + "description": "Conditional. If createMode is Restore and sourceDatabaseId is the deleted database's original resource id when it existed (as opposed to its current restorable dropped database id), then this value is required. Specifies the time that the database was deleted.", + "x-ms-mutability": [ "create" ] + }, + "restorePointInTime": { + "type": "string", + "format": "date-time", + "description": "Conditional. If createMode is PointInTimeRestore, this value is required. If createMode is Restore, this value is optional. Specifies the point in time (ISO8601 format) of the source database that will be restored to create the new database. Must be greater than or equal to the source database's earliestRestoreDate value.", + "x-ms-mutability": [ "create" ] + }, + "recoveryServicesRecoveryPointResourceId": { + "type": "string", + "description": "Conditional. If createMode is RestoreLongTermRetentionBackup, then this value is required. Specifies the resource ID of the recovery point to restore from.", + "x-ms-mutability": [ "create" ] + }, + "edition": { + "type": "string", + "description": "The edition of the database. The DatabaseEditions enumeration contains all the valid editions. If createMode is NonReadableSecondary or OnlineSecondary, this value is ignored. To see possible values, query the capabilities API (/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationID}/capabilities) referred to by operationId: \"Capabilities_ListByLocation.\" or use the Azure CLI command `az sql db list-editions -l westus --query [].name` .", + "enum": [ + "Web", + "Business", + "Basic", + "Standard", + "Premium", + "PremiumRS", + "Free", + "Stretch", + "DataWarehouse", + "System", + "System2" + ], + "x-ms-enum": { + "name": "DatabaseEdition", + "modelAsString": true + } + }, + "maxSizeBytes": { + "type": "string", + "description": "The max size of the database expressed in bytes. If createMode is not Default, this value is ignored. To see possible values, query the capabilities API (/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationID}/capabilities) referred to by operationId: \"Capabilities_ListByLocation.\"" + }, + "requestedServiceObjectiveId": { + "type": "string", + "format": "uuid", + "description": "The configured service level objective ID of the database. This is the service level objective that is in the process of being applied to the database. Once successfully updated, it will match the value of currentServiceObjectiveId property. If requestedServiceObjectiveId and requestedServiceObjectiveName are both updated, the value of requestedServiceObjectiveId overrides the value of requestedServiceObjectiveName. To see possible values, query the capabilities API (/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationID}/capabilities) referred to by operationId: \"Capabilities_ListByLocation.\" or use the Azure CLI command `az sql db list-editions --location --query [].supportedServiceLevelObjectives[].name` ." + }, + "requestedServiceObjectiveName": { + "type": "string", + "enum": [ + "System", + "System0", + "System1", + "System2", + "System3", + "System4", + "System2L", + "System3L", + "System4L", + "Free", + "Basic", + "S0", + "S1", + "S2", + "S3", + "S4", + "S6", + "S7", + "S9", + "S12", + "P1", + "P2", + "P3", + "P4", + "P6", + "P11", + "P15", + "PRS1", + "PRS2", + "PRS4", + "PRS6", + "DW100", + "DW200", + "DW300", + "DW400", + "DW500", + "DW600", + "DW1000", + "DW1200", + "DW1000c", + "DW1500", + "DW1500c", + "DW2000", + "DW2000c", + "DW3000", + "DW2500c", + "DW3000c", + "DW6000", + "DW5000c", + "DW6000c", + "DW7500c", + "DW10000c", + "DW15000c", + "DW30000c", + "DS100", + "DS200", + "DS300", + "DS400", + "DS500", + "DS600", + "DS1000", + "DS1200", + "DS1500", + "DS2000", + "ElasticPool" + ], + "x-ms-enum": { + "modelAsString": true, + "name": "ServiceObjectiveName" + }, + "description": "The name of the configured service level objective of the database. This is the service level objective that is in the process of being applied to the database. Once successfully updated, it will match the value of serviceLevelObjective property. To see possible values, query the capabilities API (/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationID}/capabilities) referred to by operationId: \"Capabilities_ListByLocation.\" or use the Azure CLI command `az sql db list-editions --location --query [].supportedServiceLevelObjectives[].name` ." + }, + "serviceLevelObjective": { + "readOnly": true, + "type": "string", + "enum": [ + "System", + "System0", + "System1", + "System2", + "System3", + "System4", + "System2L", + "System3L", + "System4L", + "Free", + "Basic", + "S0", + "S1", + "S2", + "S3", + "S4", + "S6", + "S7", + "S9", + "S12", + "P1", + "P2", + "P3", + "P4", + "P6", + "P11", + "P15", + "PRS1", + "PRS2", + "PRS4", + "PRS6", + "DW100", + "DW200", + "DW300", + "DW400", + "DW500", + "DW600", + "DW1000", + "DW1200", + "DW1000c", + "DW1500", + "DW1500c", + "DW2000", + "DW2000c", + "DW3000", + "DW2500c", + "DW3000c", + "DW6000", + "DW5000c", + "DW6000c", + "DW7500c", + "DW10000c", + "DW15000c", + "DW30000c", + "DS100", + "DS200", + "DS300", + "DS400", + "DS500", + "DS600", + "DS1000", + "DS1200", + "DS1500", + "DS2000", + "ElasticPool" + ], + "x-ms-enum": { + "modelAsString": true, + "name": "ServiceObjectiveName" + }, + "description": "The current service level objective of the database." + }, + "status": { + "readOnly": true, + "type": "string", + "description": "The status of the database." + }, + "elasticPoolName": { + "type": "string", + "description": "The name of the elastic pool the database is in. If elasticPoolName and requestedServiceObjectiveName are both updated, the value of requestedServiceObjectiveName is ignored. Not supported for DataWarehouse edition." + }, + "defaultSecondaryLocation": { + "readOnly": true, + "type": "string", + "description": "The default secondary region for this database." + }, + "serviceTierAdvisors": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/ServiceTierAdvisor" + }, + "description": "The list of service tier advisors for this database. Expanded property" + }, + "transparentDataEncryption": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/TransparentDataEncryption" + }, + "description": "The transparent data encryption info for this database." + }, + "recommendedIndex": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/RecommendedIndex" + }, + "description": "The recommended indices for this database." + }, + "failoverGroupId": { + "readOnly": true, + "type": "string", + "description": "The resource identifier of the failover group containing this database." + }, + "readScale": { + "type": "string", + "enum": [ + "Enabled", + "Disabled" + ], + "description": "Conditional. If the database is a geo-secondary, readScale indicates whether read-only connections are allowed to this database or not. Not supported for DataWarehouse edition.", + "x-ms-enum": { + "name": "ReadScale" + } + }, + "sampleName": { + "type": "string", + "enum": [ + "AdventureWorksLT" + ], + "description": "Indicates the name of the sample schema to apply when creating this database. If createMode is not Default, this value is ignored. Not supported for DataWarehouse edition.", + "x-ms-enum": { + "modelAsString": true, + "name": "SampleName" + }, + "x-ms-mutability": [ "create" ] + }, + "zoneRedundant": { + "description": "Whether or not this database is zone redundant, which means the replicas of this database will be spread across multiple availability zones.", + "type": "boolean" + } + }, + "description": "Represents the properties of a database." + }, + "Database": { + "properties": { + "kind": { + "readOnly": true, + "type": "string", + "description": "Kind of database. This is metadata used for the Azure portal experience." + }, + "properties": { + "$ref": "#/definitions/DatabaseProperties", + "description": "The properties representing the resource.", + "x-ms-client-flatten": true + } + }, + "allOf": [ + { + "$ref": "#/definitions/TrackedResource" + } + ], + "description": "Represents a database." + }, + "DatabaseUpdate": { + "properties": { + "tags":{ + "type":"object", + "additionalProperties":{ + "type":"string" + }, + "description":"Resource tags." + }, + "properties": { + "$ref": "#/definitions/DatabaseProperties", + "description": "The properties representing the resource.", + "x-ms-client-flatten": true + } + }, + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "description": "Represents a database update." + }, + "DatabaseListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Database" + }, + "description": "The list of databases housed in the server." + } + }, + "required": ["value"], + "description": "Represents the response to a list database request." + } + }, + "parameters": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "The subscription ID that identifies an Azure subscription." + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "The API version to use for the request." + }, + "ResourceGroupParameter": { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.", + "x-ms-parameter-location": "method" + }, + "ServerNameParameter": { + "name": "serverName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the server.", + "x-ms-parameter-location": "method" + }, + "DatabaseExpandParameter": { + "name": "$expand", + "in": "query", + "required": false, + "type": "string", + "description": "A comma separated list of child objects to expand in the response. Possible properties: serviceTierAdvisors, transparentDataEncryption.", + "x-ms-parameter-location": "method" + }, + "TransparentDataEncryptionNameParameter": { + "name": "transparentDataEncryptionName", + "in": "path", + "required": true, + "type": "string", + "enum": ["current"], + "description": "The name of the transparent data encryption configuration.", + "x-ms-enum":{ + "modelAsString": true, + "name": "TransparentDataEncryptionName" + }, + "x-ms-parameter-location": "method" + } + }, + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "description": "Azure Active Directory OAuth2 Flow", + "flow": "implicit", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + } +} \ No newline at end of file diff --git a/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/sql.core.json b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/sql.core.json index 4dcb69159dfb..ae9fad1f7c61 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/sql.core.json +++ b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/sql.core.json @@ -55,110 +55,16 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/pause": { - "post": { - "tags": [ - "DatabaseActivation" - ], - "operationId": "Databases_Pause", - "description": "Pauses a data warehouse.", - "x-ms-examples": { - "Pause a data warehouse": { "$ref": "./examples/DatabasePause.json" } - }, - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - }, - { - "name": "databaseName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the data warehouse to pause." - } - ], - "responses": { - "200": { - "description": "OK" - }, - "202": { - "description": "Accepted" - } - }, - "x-ms-long-running-operation": true - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/resume": { - "post": { - "tags": [ - "DatabaseActivation" - ], - "operationId": "Databases_Resume", - "description": "Resumes a data warehouse.", - "x-ms-examples": { - "Resume a data warehouse": { "$ref": "./examples/DatabaseResume.json" } - }, - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - }, - { - "name": "databaseName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the data warehouse to resume." - } - ], - "responses": { - "202": { - "description": "Accepted" - }, - "200": { - "description": "OK" - } - }, - "x-ms-long-running-operation": true - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools/{elasticPoolName}": { "put": { "tags": [ - "Databases" + "ElasticPools" ], - "operationId": "Databases_CreateOrUpdate", - "description": "Creates a new database or updates an existing database.", - "x-ms-examples": { - "Create a database min": { "$ref": "./examples/DatabaseCreateOrUpdateMin.json" }, - "Create a database max": { "$ref": "./examples/DatabaseCreateMax.json" }, - "Create a database as a copy": { "$ref": "./examples/DatabaseCreateCopy.json" }, - "Create a database as an online secondary": { "$ref": "./examples/DatabaseCreateOnlineSecondary.json" }, - "Create a database as a non-readable secondary": { "$ref": "./examples/DatabaseCreateNonReadableSecondary.json" }, - "Create a database as a point in time restore": { "$ref": "./examples/DatabaseCreatePointInTimeRestore.json" }, - "Create a database as a dropped database restore to deletion time": { "$ref": "./examples/DatabaseCreateDroppedDatabaseRestore.json" }, - "Create a database as a dropped database restore to a specific point in time": { "$ref": "./examples/DatabaseCreateDroppedDatabaseRestoreToPointInTime.json" }, - "Create a database as a geo restore": { "$ref": "./examples/DatabaseCreateGeoRestore.json" }, - "Create a database from a long term retention backup": { "$ref": "./examples/DatabaseCreateLongTermRetentionRestore.json" }, - "Update a database's elastic pool'": { "$ref": "./examples/DatabaseUpdateElasticPool.json" }, - "Update a database max": { "$ref": "./examples/DatabaseUpdateMaxPut.json" } + "operationId": "ElasticPools_CreateOrUpdate", + "description": "Creates a new elastic pool or updates an existing elastic pool.", + "x-ms-examples":{ + "Create elastic pool max": { "$ref": "./examples/ElasticPoolCreateOrUpdateMax.json" }, + "Create elastic pool min": { "$ref": "./examples/ElasticPoolCreateOrUpdateMin.json" } }, "parameters": [ { @@ -174,33 +80,33 @@ "$ref": "#/parameters/ServerNameParameter" }, { - "name": "databaseName", + "name": "elasticPoolName", "in": "path", "required": true, "type": "string", - "description": "The name of the database to be operated on (updated or created)." + "description": "The name of the elastic pool to be operated on (updated or created)." }, { "name": "parameters", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/Database" + "$ref": "#/definitions/ElasticPool" }, - "description": "The required parameters for creating or updating a database." + "description": "The required parameters for creating or updating an elastic pool." } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/Database" + "$ref": "#/definitions/ElasticPool" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/Database" + "$ref": "#/definitions/ElasticPool" } }, "202": { @@ -211,13 +117,13 @@ }, "patch": { "tags": [ - "Databases" + "ElasticPools" ], - "operationId": "Databases_Update", - "description": "Updates an existing database.", - "x-ms-examples": { - "Update a database max": { "$ref": "./examples/DatabaseUpdateMaxPatch.json" }, - "Update a database min": { "$ref": "./examples/DatabaseUpdateMin.json" } + "operationId": "ElasticPools_Update", + "description": "Updates an existing elastic pool.", + "x-ms-examples":{ + "Update elastic pool max": { "$ref": "./examples/ElasticPoolUpdateMax.json" }, + "Update elastic pool min": { "$ref": "./examples/ElasticPoolUpdateMin.json" } }, "parameters": [ { @@ -233,27 +139,27 @@ "$ref": "#/parameters/ServerNameParameter" }, { - "name": "databaseName", + "name": "elasticPoolName", "in": "path", "required": true, "type": "string", - "description": "The name of the database to be updated." + "description": "The name of the elastic pool to be updated." }, { "name": "parameters", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/DatabaseUpdate" + "$ref": "#/definitions/ElasticPoolUpdate" }, - "description": "The required parameters for updating a database." + "description": "The required parameters for updating an elastic pool." } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/Database" + "$ref": "#/definitions/ElasticPool" } }, "202": { @@ -264,12 +170,12 @@ }, "delete": { "tags": [ - "Databases" + "ElasticPools" ], - "operationId": "Databases_Delete", - "description": "Deletes a database.", - "x-ms-examples": { - "Delete a database": { "$ref": "./examples/DatabaseDelete.json" } + "operationId": "ElasticPools_Delete", + "description": "Deletes the elastic pool.", + "x-ms-examples":{ + "Delete elastic pool": { "$ref": "./examples/ElasticPoolDelete.json" } }, "parameters": [ { @@ -285,11 +191,11 @@ "$ref": "#/parameters/ServerNameParameter" }, { - "name": "databaseName", + "name": "elasticPoolName", "in": "path", "required": true, "type": "string", - "description": "The name of the database to be deleted." + "description": "The name of the elastic pool to be deleted." } ], "responses": { @@ -297,18 +203,18 @@ "description": "OK" }, "204": { - "description": "NoContent" + "description": "Accepted" } } }, "get": { "tags": [ - "Databases" + "ElasticPools" ], - "operationId": "Databases_Get", - "description": "Gets a database.", - "x-ms-examples": { - "Get a database": { "$ref": "./examples/DatabaseGet.json" } + "operationId": "ElasticPools_Get", + "description": "Gets an elastic pool.", + "x-ms-examples":{ + "Get elastic pool": { "$ref": "./examples/ElasticPoolGet.json" } }, "parameters": [ { @@ -324,36 +230,32 @@ "$ref": "#/parameters/ServerNameParameter" }, { - "name": "databaseName", + "name": "elasticPoolName", "in": "path", "required": true, "type": "string", - "description": "The name of the database to be retrieved." - }, - { - "$ref": "#/parameters/DatabaseExpandParameter" + "description": "The name of the elastic pool to be retrieved." } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/Database" + "$ref": "#/definitions/ElasticPool" } } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools": { "get": { "tags": [ - "Databases" + "ElasticPools" ], - "operationId": "Databases_ListByServer", - "description": "Returns a list of databases in a server.", - "x-ms-examples": { - "List databases by server": { "$ref": "./examples/DatabaseList.json" }, - "List databases by server with filter": { "$ref": "./examples/DatabaseListWithFilter.json" } + "operationId": "ElasticPools_ListByServer", + "description": "Returns a list of elastic pools in a server.", + "x-ms-examples":{ + "List elastic pools": { "$ref": "./examples/ElasticPoolList.json" } }, "parameters": [ { @@ -367,23 +269,13 @@ }, { "$ref": "#/parameters/ServerNameParameter" - }, - { - "$ref": "#/parameters/DatabaseExpandParameter" - }, - { - "name": "$filter", - "in": "query", - "required": false, - "type": "string", - "description": "An OData filter expression that describes a subset of databases to return." } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/DatabaseListResult" + "$ref": "#/definitions/ElasticPoolListResult" } } }, @@ -392,16 +284,15 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools/{elasticPoolName}": { - "put": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools/{elasticPoolName}/elasticPoolActivity": { + "get": { "tags": [ "ElasticPools" ], - "operationId": "ElasticPools_CreateOrUpdate", - "description": "Creates a new elastic pool or updates an existing elastic pool.", + "operationId": "ElasticPoolActivities_ListByElasticPool", + "description": "Returns elastic pool activities.", "x-ms-examples":{ - "Create elastic pool max": { "$ref": "./examples/ElasticPoolCreateOrUpdateMax.json" }, - "Create elastic pool min": { "$ref": "./examples/ElasticPoolCreateOrUpdateMin.json" } + "List Elastic pool activity": { "$ref": "./examples/ElasticPoolActivityList.json" } }, "parameters": [ { @@ -421,46 +312,31 @@ "in": "path", "required": true, "type": "string", - "description": "The name of the elastic pool to be operated on (updated or created)." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ElasticPool" - }, - "description": "The required parameters for creating or updating an elastic pool." + "description": "The name of the elastic pool for which to get the current activity." } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/ElasticPool" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/ElasticPool" + "$ref": "#/definitions/ElasticPoolActivityListResult" } - }, - "202": { - "description": "Accepted" } }, - "x-ms-long-running-operation": true - }, - "patch": { + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools/{elasticPoolName}/elasticPoolDatabaseActivity": { + "get": { "tags": [ "ElasticPools" ], - "operationId": "ElasticPools_Update", - "description": "Updates an existing elastic pool.", + "operationId": "ElasticPoolDatabaseActivities_ListByElasticPool", + "description": "Returns activity on databases inside of an elastic pool.", "x-ms-examples":{ - "Update elastic pool max": { "$ref": "./examples/ElasticPoolUpdateMax.json" }, - "Update elastic pool min": { "$ref": "./examples/ElasticPoolUpdateMin.json" } + "List elastic pool database activity": { "$ref": "./examples/ElasticPoolDatabaseActivityList.json" } }, "parameters": [ { @@ -480,39 +356,31 @@ "in": "path", "required": true, "type": "string", - "description": "The name of the elastic pool to be updated." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ElasticPoolUpdate" - }, - "description": "The required parameters for updating an elastic pool." + "description": "The name of the elastic pool." } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/ElasticPool" + "$ref": "#/definitions/ElasticPoolDatabaseActivityListResult" } - }, - "202": { - "description": "Accepted" } }, - "x-ms-long-running-operation": true - }, - "delete": { + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/recommendedElasticPools/{recommendedElasticPoolName}": { + "get": { "tags": [ - "ElasticPools" + "RecommendedElasticPools" ], - "operationId": "ElasticPools_Delete", - "description": "Deletes the elastic pool.", - "x-ms-examples":{ - "Delete elastic pool": { "$ref": "./examples/ElasticPoolDelete.json" } + "operationId": "RecommendedElasticPools_Get", + "description": "Gets a recommented elastic pool.", + "x-ms-examples": { + "Get a recommended elastic pool": { "$ref": "./examples/RecommendedElasticPoolGet.json" } }, "parameters": [ { @@ -528,30 +396,32 @@ "$ref": "#/parameters/ServerNameParameter" }, { - "name": "elasticPoolName", + "name": "recommendedElasticPoolName", "in": "path", "required": true, "type": "string", - "description": "The name of the elastic pool to be deleted." + "description": "The name of the recommended elastic pool to be retrieved." } ], "responses": { "200": { - "description": "OK" - }, - "204": { - "description": "Accepted" + "description": "OK", + "schema": { + "$ref": "#/definitions/RecommendedElasticPool" + } } } - }, + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/recommendedElasticPools": { "get": { "tags": [ - "ElasticPools" + "RecommendedElasticPools" ], - "operationId": "ElasticPools_Get", - "description": "Gets an elastic pool.", - "x-ms-examples":{ - "Get elastic pool": { "$ref": "./examples/ElasticPoolGet.json" } + "operationId": "RecommendedElasticPools_ListByServer", + "description": "Returns recommended elastic pools.", + "x-ms-examples": { + "List recommended elastic pools": { "$ref": "./examples/RecommendedElasticPoolList.json" } }, "parameters": [ { @@ -565,98 +435,13 @@ }, { "$ref": "#/parameters/ServerNameParameter" - }, - { - "name": "elasticPoolName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the elastic pool to be retrieved." } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/ElasticPool" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools": { - "get": { - "tags": [ - "ElasticPools" - ], - "operationId": "ElasticPools_ListByServer", - "description": "Returns a list of elastic pools in a server.", - "x-ms-examples":{ - "List elastic pools": { "$ref": "./examples/ElasticPoolList.json" } - }, - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ElasticPoolListResult" - } - } - }, - "x-ms-pageable": { - "nextLinkName": null - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools/{elasticPoolName}/elasticPoolActivity": { - "get": { - "tags": [ - "ElasticPools" - ], - "operationId": "ElasticPoolActivities_ListByElasticPool", - "description": "Returns elastic pool activities.", - "x-ms-examples":{ - "List Elastic pool activity": { "$ref": "./examples/ElasticPoolActivityList.json" } - }, - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - }, - { - "name": "elasticPoolName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the elastic pool for which to get the current activity." - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ElasticPoolActivityListResult" + "$ref": "#/definitions/RecommendedElasticPoolListResult" } } }, @@ -665,15 +450,15 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools/{elasticPoolName}/elasticPoolDatabaseActivity": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/recommendedElasticPools/{recommendedElasticPoolName}/metrics": { "get": { "tags": [ - "ElasticPools" + "RecommendedElasticPools" ], - "operationId": "ElasticPoolDatabaseActivities_ListByElasticPool", - "description": "Returns activity on databases inside of an elastic pool.", - "x-ms-examples":{ - "List elastic pool database activity": { "$ref": "./examples/ElasticPoolDatabaseActivityList.json" } + "operationId": "RecommendedElasticPools_ListMetrics", + "description": "Returns recommented elastic pool metrics.", + "x-ms-examples": { + "Get recommended elastic pool metrics": { "$ref": "./examples/RecommendedElasticPoolListMetrics.json" } }, "parameters": [ { @@ -689,18 +474,18 @@ "$ref": "#/parameters/ServerNameParameter" }, { - "name": "elasticPoolName", + "name": "recommendedElasticPoolName", "in": "path", "required": true, "type": "string", - "description": "The name of the elastic pool." + "description": "The name of the recommended elastic pool to be retrieved." } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/ElasticPoolDatabaseActivityListResult" + "$ref": "#/definitions/RecommendedElasticPoolListMetricsResult" } } }, @@ -709,15 +494,15 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools/{elasticPoolName}/databases/{databaseName}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/serviceTierAdvisors/{serviceTierAdvisorName}": { "get": { "tags": [ - "ElasticPools" + "ServiceTierAdvisors" ], - "operationId": "Databases_GetByElasticPool", - "description": "Gets a database inside of an elastic pool.", + "operationId": "ServiceTierAdvisors_Get", + "description": "Gets a service tier advisor.", "x-ms-examples": { - "Get a database in an elastic pool": { "$ref": "./examples/DatabaseGetByElasticPool.json" } + "Get a service tier advisor": { "$ref": "./examples/ServiceTierAdvisorGet.json" } }, "parameters": [ { @@ -733,39 +518,39 @@ "$ref": "#/parameters/ServerNameParameter" }, { - "name": "elasticPoolName", + "name": "databaseName", "in": "path", "required": true, "type": "string", - "description": "The name of the elastic pool to be retrieved." + "description": "The name of database." }, { - "name": "databaseName", + "name": "serviceTierAdvisorName", "in": "path", "required": true, "type": "string", - "description": "The name of the database to be retrieved." + "description": "The name of service tier advisor." } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/Database" + "$ref": "#/definitions/ServiceTierAdvisor" } } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools/{elasticPoolName}/databases": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/serviceTierAdvisors": { "get": { "tags": [ - "Databases" + "ServiceTierAdvisors" ], - "operationId": "Databases_ListByElasticPool", - "description": "Returns a list of databases in an elastic pool.", + "operationId": "ServiceTierAdvisors_ListByDatabase", + "description": "Returns service tier advisors for specified database.", "x-ms-examples": { - "Gets databases in an elastic pool": { "$ref": "./examples/DatabaseListByElasticPool.json" } + "Get a list of a service tier advisors": { "$ref": "./examples/ServiceTierAdvisorList.json" } }, "parameters": [ { @@ -781,18 +566,18 @@ "$ref": "#/parameters/ServerNameParameter" }, { - "name": "elasticPoolName", + "name": "databaseName", "in": "path", "required": true, "type": "string", - "description": "The name of the elastic pool to be retrieved." + "description": "The name of database." } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/DatabaseListResult" + "$ref": "#/definitions/ServiceTierAdvisorListResult" } } }, @@ -801,15 +586,15 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/recommendedElasticPools/{recommendedElasticPoolName}": { - "get": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/transparentDataEncryption/{transparentDataEncryptionName}": { + "put": { "tags": [ - "RecommendedElasticPools" + "TransparentDataEncryption" ], - "operationId": "RecommendedElasticPools_Get", - "description": "Gets a recommented elastic pool.", + "operationId": "TransparentDataEncryptions_CreateOrUpdate", + "description": "Creates or updates a database's transparent data encryption configuration.", "x-ms-examples": { - "Get a recommended elastic pool": { "$ref": "./examples/RecommendedElasticPoolGet.json" } + "Create or update a database's transparent data encryption configuration": { "$ref": "./examples/DatabaseTransparentDataEncryptionCreateOrUpdate.json" } }, "parameters": [ { @@ -825,117 +610,48 @@ "$ref": "#/parameters/ServerNameParameter" }, { - "name": "recommendedElasticPoolName", + "name": "databaseName", "in": "path", "required": true, "type": "string", - "description": "The name of the recommended elastic pool to be retrieved." - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/RecommendedElasticPool" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/recommendedElasticPools/{recommendedElasticPoolName}/databases/{databaseName}": { - "get": { - "tags": [ - "Databases" - ], - "operationId": "Databases_GetByRecommendedElasticPool", - "description": "Gets a database inside of a recommented elastic pool.", - "x-ms-examples": { - "Get a database in a recommended elastic pool": { "$ref": "./examples/DatabaseGetByRecommendedElasticPool.json" } - }, - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" + "description": "The name of the database for which setting the transparent data encryption applies." }, { - "name": "recommendedElasticPoolName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the elastic pool to be retrieved." + "$ref": "#/parameters/TransparentDataEncryptionNameParameter" }, { - "name": "databaseName", - "in": "path", + "name": "parameters", + "in": "body", "required": true, - "type": "string", - "description": "The name of the database to be retrieved." + "schema": { + "$ref": "#/definitions/TransparentDataEncryption" + }, + "description": "The required parameters for creating or updating transparent data encryption." } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/Database" + "$ref": "#/definitions/TransparentDataEncryption" } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/recommendedElasticPools": { - "get": { - "tags": [ - "RecommendedElasticPools" - ], - "operationId": "RecommendedElasticPools_ListByServer", - "description": "Returns recommended elastic pools.", - "x-ms-examples": { - "List recommended elastic pools": { "$ref": "./examples/RecommendedElasticPoolList.json" } - }, - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupParameter" }, - { - "$ref": "#/parameters/ServerNameParameter" - } - ], - "responses": { - "200": { - "description": "OK", + "201": { + "description": "Created", "schema": { - "$ref": "#/definitions/RecommendedElasticPoolListResult" + "$ref": "#/definitions/TransparentDataEncryption" } } - }, - "x-ms-pageable": { - "nextLinkName": null } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/recommendedElasticPools/{recommendedElasticPoolName}/databases": { + }, "get": { "tags": [ - "Databases" + "TransparentDataEncryption" ], - "operationId": "Databases_ListByRecommendedElasticPool", - "description": "Returns a list of databases inside a recommented elastic pool.", + "operationId": "TransparentDataEncryptions_Get", + "description": "Gets a database's transparent data encryption configuration.", "x-ms-examples": { - "Gets databases in an elastic pool": { "$ref": "./examples/DatabaseListByRecommendedElasticPool.json" } + "Get a database's transparent data encryption configuration": { "$ref": "./examples/DatabaseTransparentDataEncryptionGet.json" } }, "parameters": [ { @@ -951,35 +667,35 @@ "$ref": "#/parameters/ServerNameParameter" }, { - "name": "recommendedElasticPoolName", + "name": "databaseName", "in": "path", "required": true, "type": "string", - "description": "The name of the recommended elastic pool to be retrieved." + "description": "The name of the database for which the transparent data encryption applies." + }, + { + "$ref": "#/parameters/TransparentDataEncryptionNameParameter" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/DatabaseListResult" + "$ref": "#/definitions/TransparentDataEncryption" } } - }, - "x-ms-pageable": { - "nextLinkName": null } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/recommendedElasticPools/{recommendedElasticPoolName}/metrics": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/transparentDataEncryption/{transparentDataEncryptionName}/operationResults": { "get": { "tags": [ - "RecommendedElasticPools" + "TransparentDataEncryption" ], - "operationId": "RecommendedElasticPools_ListMetrics", - "description": "Returns recommented elastic pool metrics.", + "operationId": "TransparentDataEncryptionActivities_ListByConfiguration", + "description": "Returns a database's transparent data encryption operation result.", "x-ms-examples": { - "Get recommended elastic pool metrics": { "$ref": "./examples/RecommendedElasticPoolListMetrics.json" } + "List a database's transparent data encryption activities": { "$ref": "./examples/DatabaseTransparentDataEncryptionActivityList.json" } }, "parameters": [ { @@ -995,258 +711,21 @@ "$ref": "#/parameters/ServerNameParameter" }, { - "name": "recommendedElasticPoolName", + "name": "databaseName", "in": "path", "required": true, "type": "string", - "description": "The name of the recommended elastic pool to be retrieved." + "description": "The name of the database for which the transparent data encryption applies." + }, + { + "$ref": "#/parameters/TransparentDataEncryptionNameParameter" } ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/RecommendedElasticPoolListMetricsResult" - } - } - }, - "x-ms-pageable": { - "nextLinkName": null - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/serviceTierAdvisors/{serviceTierAdvisorName}": { - "get": { - "tags": [ - "ServiceTierAdvisors" - ], - "operationId": "ServiceTierAdvisors_Get", - "description": "Gets a service tier advisor.", - "x-ms-examples": { - "Get a service tier advisor": { "$ref": "./examples/ServiceTierAdvisorGet.json" } - }, - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - }, - { - "name": "databaseName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of database." - }, - { - "name": "serviceTierAdvisorName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of service tier advisor." - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ServiceTierAdvisor" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/serviceTierAdvisors": { - "get": { - "tags": [ - "ServiceTierAdvisors" - ], - "operationId": "ServiceTierAdvisors_ListByDatabase", - "description": "Returns service tier advisors for specified database.", - "x-ms-examples": { - "Get a list of a service tier advisors": { "$ref": "./examples/ServiceTierAdvisorList.json" } - }, - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - }, - { - "name": "databaseName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of database." - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ServiceTierAdvisorListResult" - } - } - }, - "x-ms-pageable": { - "nextLinkName": null - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/transparentDataEncryption/{transparentDataEncryptionName}": { - "put": { - "tags": [ - "TransparentDataEncryption" - ], - "operationId": "TransparentDataEncryptions_CreateOrUpdate", - "description": "Creates or updates a database's transparent data encryption configuration.", - "x-ms-examples": { - "Create or update a database's transparent data encryption configuration": { "$ref": "./examples/DatabaseTransparentDataEncryptionCreateOrUpdate.json" } - }, - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - }, - { - "name": "databaseName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the database for which setting the transparent data encryption applies." - }, - { - "$ref": "#/parameters/TransparentDataEncryptionNameParameter" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/TransparentDataEncryption" - }, - "description": "The required parameters for creating or updating transparent data encryption." - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/TransparentDataEncryption" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/TransparentDataEncryption" - } - } - } - }, - "get": { - "tags": [ - "TransparentDataEncryption" - ], - "operationId": "TransparentDataEncryptions_Get", - "description": "Gets a database's transparent data encryption configuration.", - "x-ms-examples": { - "Get a database's transparent data encryption configuration": { "$ref": "./examples/DatabaseTransparentDataEncryptionGet.json" } - }, - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - }, - { - "name": "databaseName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the database for which the transparent data encryption applies." - }, - { - "$ref": "#/parameters/TransparentDataEncryptionNameParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/TransparentDataEncryption" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/transparentDataEncryption/{transparentDataEncryptionName}/operationResults": { - "get": { - "tags": [ - "TransparentDataEncryption" - ], - "operationId": "TransparentDataEncryptionActivities_ListByConfiguration", - "description": "Returns a database's transparent data encryption operation result.", - "x-ms-examples": { - "List a database's transparent data encryption activities": { "$ref": "./examples/DatabaseTransparentDataEncryptionActivityList.json" } - }, - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - }, - { - "name": "databaseName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the database for which the transparent data encryption applies." - }, - { - "$ref": "#/parameters/TransparentDataEncryptionNameParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/TransparentDataEncryptionActivityListResult" + "$ref": "#/definitions/TransparentDataEncryptionActivityListResult" } } }, @@ -1459,7 +938,7 @@ "readOnly": true, "type": "array", "items": { - "$ref": "#/definitions/Database" + "$ref": "./databases.json#/definitions/Database" }, "description": "The list of databases in this pool. Expanded property" }, @@ -2072,393 +1551,6 @@ ], "description": "Represents a database transparent data encryption configuration." }, - "DatabaseProperties": { - "properties": { - "collation": { - "type": "string", - "description": "The collation of the database. If createMode is not Default, this value is ignored.", - "x-ms-mutability": ["create", "read"] - }, - "creationDate": { - "readOnly": true, - "type": "string", - "format": "date-time", - "description": "The creation date of the database (ISO8601 format)." - }, - "containmentState": { - "readOnly": true, - "type": "integer", - "format": "int64", - "description": "The containment state of the database." - }, - "currentServiceObjectiveId": { - "readOnly": true, - "type": "string", - "format": "uuid", - "description": "The current service level objective ID of the database. This is the ID of the service level objective that is currently active." - }, - "databaseId": { - "readOnly": true, - "type": "string", - "format": "uuid", - "description": "The ID of the database." - }, - "earliestRestoreDate": { - "readOnly": true, - "type": "string", - "format": "date-time", - "description": "This records the earliest start date and time that restore is available for this database (ISO8601 format)." - }, - "createMode": { - "type": "string", - "description": "Specifies the mode of database creation.\n\nDefault: regular database creation.\n\nCopy: creates a database as a copy of an existing database. sourceDatabaseId must be specified as the resource ID of the source database.\n\nOnlineSecondary/NonReadableSecondary: creates a database as a (readable or nonreadable) secondary replica of an existing database. sourceDatabaseId must be specified as the resource ID of the existing primary database.\n\nPointInTimeRestore: Creates a database by restoring a point in time backup of an existing database. sourceDatabaseId must be specified as the resource ID of the existing database, and restorePointInTime must be specified.\n\nRecovery: Creates a database by restoring a geo-replicated backup. sourceDatabaseId must be specified as the recoverable database resource ID to restore.\n\nRestore: Creates a database by restoring a backup of a deleted database. sourceDatabaseId must be specified. If sourceDatabaseId is the database's original resource ID, then sourceDatabaseDeletionDate must be specified. Otherwise sourceDatabaseId must be the restorable dropped database resource ID and sourceDatabaseDeletionDate is ignored. restorePointInTime may also be specified to restore from an earlier point in time.\n\nRestoreLongTermRetentionBackup: Creates a database by restoring from a long term retention vault. recoveryServicesRecoveryPointResourceId must be specified as the recovery point resource ID.\n\nCopy, NonReadableSecondary, OnlineSecondary and RestoreLongTermRetentionBackup are not supported for DataWarehouse edition.", - "enum": [ - "Copy", - "Default", - "NonReadableSecondary", - "OnlineSecondary", - "PointInTimeRestore", - "Recovery", - "Restore", - "RestoreLongTermRetentionBackup" - ], - "x-ms-enum": { - "name": "CreateMode", - "modelAsString": true - }, - "x-ms-mutability": [ "create" ] - }, - "sourceDatabaseId": { - "type": "string", - "description": "Conditional. If createMode is Copy, NonReadableSecondary, OnlineSecondary, PointInTimeRestore, Recovery, or Restore, then this value is required. Specifies the resource ID of the source database. If createMode is NonReadableSecondary or OnlineSecondary, the name of the source database must be the same as the new database being created.", - "x-ms-mutability": [ "create" ] - }, - "sourceDatabaseDeletionDate": { - "type": "string", - "format": "date-time", - "description": "Conditional. If createMode is Restore and sourceDatabaseId is the deleted database's original resource id when it existed (as opposed to its current restorable dropped database id), then this value is required. Specifies the time that the database was deleted.", - "x-ms-mutability": [ "create" ] - }, - "restorePointInTime": { - "type": "string", - "format": "date-time", - "description": "Conditional. If createMode is PointInTimeRestore, this value is required. If createMode is Restore, this value is optional. Specifies the point in time (ISO8601 format) of the source database that will be restored to create the new database. Must be greater than or equal to the source database's earliestRestoreDate value.", - "x-ms-mutability": [ "create" ] - }, - "recoveryServicesRecoveryPointResourceId": { - "type": "string", - "description": "Conditional. If createMode is RestoreLongTermRetentionBackup, then this value is required. Specifies the resource ID of the recovery point to restore from.", - "x-ms-mutability": [ "create" ] - }, - "edition": { - "type": "string", - "description": "The edition of the database. The DatabaseEditions enumeration contains all the valid editions. If createMode is NonReadableSecondary or OnlineSecondary, this value is ignored. To see possible values, query the capabilities API (/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationID}/capabilities) referred to by operationId: \"Capabilities_ListByLocation.\" or use the Azure CLI command `az sql db list-editions -l westus --query [].name` .", - "enum": [ - "Web", - "Business", - "Basic", - "Standard", - "Premium", - "PremiumRS", - "Free", - "Stretch", - "DataWarehouse", - "System", - "System2" - ], - "x-ms-enum": { - "name": "DatabaseEdition", - "modelAsString": true - } - }, - "maxSizeBytes": { - "type": "string", - "description": "The max size of the database expressed in bytes. If createMode is not Default, this value is ignored. To see possible values, query the capabilities API (/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationID}/capabilities) referred to by operationId: \"Capabilities_ListByLocation.\"" - }, - "requestedServiceObjectiveId": { - "type": "string", - "format": "uuid", - "description": "The configured service level objective ID of the database. This is the service level objective that is in the process of being applied to the database. Once successfully updated, it will match the value of currentServiceObjectiveId property. If requestedServiceObjectiveId and requestedServiceObjectiveName are both updated, the value of requestedServiceObjectiveId overrides the value of requestedServiceObjectiveName. To see possible values, query the capabilities API (/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationID}/capabilities) referred to by operationId: \"Capabilities_ListByLocation.\" or use the Azure CLI command `az sql db list-editions --location --query [].supportedServiceLevelObjectives[].name` ." - }, - "requestedServiceObjectiveName": { - "type": "string", - "enum": [ - "System", - "System0", - "System1", - "System2", - "System3", - "System4", - "System2L", - "System3L", - "System4L", - "Free", - "Basic", - "S0", - "S1", - "S2", - "S3", - "S4", - "S6", - "S7", - "S9", - "S12", - "P1", - "P2", - "P3", - "P4", - "P6", - "P11", - "P15", - "PRS1", - "PRS2", - "PRS4", - "PRS6", - "DW100", - "DW200", - "DW300", - "DW400", - "DW500", - "DW600", - "DW1000", - "DW1200", - "DW1000c", - "DW1500", - "DW1500c", - "DW2000", - "DW2000c", - "DW3000", - "DW2500c", - "DW3000c", - "DW6000", - "DW5000c", - "DW6000c", - "DW7500c", - "DW10000c", - "DW15000c", - "DW30000c", - "DS100", - "DS200", - "DS300", - "DS400", - "DS500", - "DS600", - "DS1000", - "DS1200", - "DS1500", - "DS2000", - "ElasticPool" - ], - "x-ms-enum": { - "modelAsString": true, - "name": "ServiceObjectiveName" - }, - "description": "The name of the configured service level objective of the database. This is the service level objective that is in the process of being applied to the database. Once successfully updated, it will match the value of serviceLevelObjective property. To see possible values, query the capabilities API (/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationID}/capabilities) referred to by operationId: \"Capabilities_ListByLocation.\" or use the Azure CLI command `az sql db list-editions --location --query [].supportedServiceLevelObjectives[].name` ." - }, - "serviceLevelObjective": { - "readOnly": true, - "type": "string", - "enum": [ - "System", - "System0", - "System1", - "System2", - "System3", - "System4", - "System2L", - "System3L", - "System4L", - "Free", - "Basic", - "S0", - "S1", - "S2", - "S3", - "S4", - "S6", - "S7", - "S9", - "S12", - "P1", - "P2", - "P3", - "P4", - "P6", - "P11", - "P15", - "PRS1", - "PRS2", - "PRS4", - "PRS6", - "DW100", - "DW200", - "DW300", - "DW400", - "DW500", - "DW600", - "DW1000", - "DW1200", - "DW1000c", - "DW1500", - "DW1500c", - "DW2000", - "DW2000c", - "DW3000", - "DW2500c", - "DW3000c", - "DW6000", - "DW5000c", - "DW6000c", - "DW7500c", - "DW10000c", - "DW15000c", - "DW30000c", - "DS100", - "DS200", - "DS300", - "DS400", - "DS500", - "DS600", - "DS1000", - "DS1200", - "DS1500", - "DS2000", - "ElasticPool" - ], - "x-ms-enum": { - "modelAsString": true, - "name": "ServiceObjectiveName" - }, - "description": "The current service level objective of the database." - }, - "status": { - "readOnly": true, - "type": "string", - "description": "The status of the database." - }, - "elasticPoolName": { - "type": "string", - "description": "The name of the elastic pool the database is in. If elasticPoolName and requestedServiceObjectiveName are both updated, the value of requestedServiceObjectiveName is ignored. Not supported for DataWarehouse edition." - }, - "defaultSecondaryLocation": { - "readOnly": true, - "type": "string", - "description": "The default secondary region for this database." - }, - "serviceTierAdvisors": { - "readOnly": true, - "type": "array", - "items": { - "$ref": "#/definitions/ServiceTierAdvisor" - }, - "description": "The list of service tier advisors for this database. Expanded property" - }, - "transparentDataEncryption": { - "readOnly": true, - "type": "array", - "items": { - "$ref": "#/definitions/TransparentDataEncryption" - }, - "description": "The transparent data encryption info for this database." - }, - "recommendedIndex": { - "readOnly": true, - "type": "array", - "items": { - "$ref": "#/definitions/RecommendedIndex" - }, - "description": "The recommended indices for this database." - }, - "failoverGroupId": { - "readOnly": true, - "type": "string", - "description": "The resource identifier of the failover group containing this database." - }, - "readScale": { - "type": "string", - "enum": [ - "Enabled", - "Disabled" - ], - "description": "Conditional. If the database is a geo-secondary, readScale indicates whether read-only connections are allowed to this database or not. Not supported for DataWarehouse edition.", - "x-ms-enum": { - "name": "ReadScale" - } - }, - "sampleName": { - "type": "string", - "enum": [ - "AdventureWorksLT" - ], - "description": "Indicates the name of the sample schema to apply when creating this database. If createMode is not Default, this value is ignored. Not supported for DataWarehouse edition.", - "x-ms-enum": { - "modelAsString": true, - "name": "SampleName" - }, - "x-ms-mutability": [ "create" ] - }, - "zoneRedundant": { - "description": "Whether or not this database is zone redundant, which means the replicas of this database will be spread across multiple availability zones.", - "type": "boolean" - } - }, - "description": "Represents the properties of a database." - }, - "Database": { - "properties": { - "kind": { - "readOnly": true, - "type": "string", - "description": "Kind of database. This is metadata used for the Azure portal experience." - }, - "properties": { - "$ref": "#/definitions/DatabaseProperties", - "description": "The properties representing the resource.", - "x-ms-client-flatten": true - } - }, - "allOf": [ - { - "$ref": "#/definitions/TrackedResource" - } - ], - "description": "Represents a database." - }, - "DatabaseUpdate": { - "properties": { - "tags":{ - "type":"object", - "additionalProperties":{ - "type":"string" - }, - "description":"Resource tags." - }, - "properties": { - "$ref": "#/definitions/DatabaseProperties", - "description": "The properties representing the resource.", - "x-ms-client-flatten": true - } - }, - "allOf": [ - { - "$ref": "#/definitions/Resource" - } - ], - "description": "Represents a database update." - }, - "DatabaseListResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/Database" - }, - "description": "The list of databases housed in the server." - } - }, - "required": ["value"], - "description": "Represents the response to a list database request." - }, "ServiceTierAdvisorProperties": { "properties": { "observationPeriodStart": { diff --git a/specification/sql/resource-manager/readme.md b/specification/sql/resource-manager/readme.md index 2314a9384fc9..590e7cb3dca8 100644 --- a/specification/sql/resource-manager/readme.md +++ b/specification/sql/resource-manager/readme.md @@ -46,6 +46,7 @@ input-file: - Microsoft.Sql/stable/2014-04-01/backups.json - Microsoft.Sql/stable/2014-04-01/capabilities.json - Microsoft.Sql/stable/2014-04-01/connectionPolicies.json +- Microsoft.Sql/stable/2014-04-01/databases.json - Microsoft.Sql/stable/2014-04-01/databaseSecurityAlertPolicies.json - Microsoft.Sql/stable/2014-04-01/dataMasking.json - Microsoft.Sql/stable/2014-04-01/firewallRules.json @@ -90,6 +91,7 @@ input-file: - Microsoft.Sql/stable/2014-04-01/backupLongTermRetentionVaults.json - Microsoft.Sql/stable/2014-04-01/backups.json - Microsoft.Sql/stable/2014-04-01/connectionPolicies.json +- Microsoft.Sql/stable/2014-04-01/databases.json - Microsoft.Sql/stable/2014-04-01/databaseSecurityAlertPolicies.json - Microsoft.Sql/stable/2014-04-01/dataMasking.json - Microsoft.Sql/stable/2014-04-01/firewallRules.json @@ -102,8 +104,8 @@ input-file: - Microsoft.Sql/stable/2014-04-01/serviceObjectives.json - Microsoft.Sql/stable/2014-04-01/sql.core.json - Microsoft.Sql/stable/2014-04-01/usages.json -- Microsoft.Sql/preview/2015-05-01-preview/blobAuditingPolicies.json - Microsoft.Sql/stable/2015-05-01/capabilities.json +- Microsoft.Sql/preview/2015-05-01-preview/blobAuditingPolicies.json - Microsoft.Sql/preview/2015-05-01-preview/encryptionProtectors.json - Microsoft.Sql/preview/2015-05-01-preview/failoverGroups.json - Microsoft.Sql/preview/2015-05-01-preview/operations.json @@ -126,6 +128,7 @@ These settings apply only when `--tag=package-2014-04` is specified on the comma ``` yaml $(tag) == 'package-2014-04' input-file: +- Microsoft.Sql/stable/2014-04-01/databases.json - Microsoft.Sql/stable/2014-04-01/firewallRules.json - Microsoft.Sql/stable/2014-04-01/importExport.json - Microsoft.Sql/stable/2014-04-01/replicationLinks.json @@ -202,6 +205,7 @@ input-file: - ./Microsoft.Sql/stable/2014-04-01/backups.json - ./Microsoft.Sql/stable/2014-04-01/capabilities.json - ./Microsoft.Sql/stable/2014-04-01/connectionPolicies.json + - ./Microsoft.Sql/stable/2014-04-01/databases.json - ./Microsoft.Sql/stable/2014-04-01/databaseSecurityAlertPolicies.json - ./Microsoft.Sql/stable/2014-04-01/dataMasking.json - ./Microsoft.Sql/stable/2014-04-01/deprecated.json From d5630e3a6011ebbd93f0417e270c77942e411db0 Mon Sep 17 00:00:00 2001 From: Jared Moore Date: Wed, 24 Jan 2018 13:39:59 -0800 Subject: [PATCH 2/6] Fixed file name capitalization of 2017 databases.json --- .../2017-03-01-preview/{Databases.json => databases.json} | 0 specification/sql/resource-manager/readme.md | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename specification/sql/resource-manager/Microsoft.Sql/preview/2017-03-01-preview/{Databases.json => databases.json} (100%) diff --git a/specification/sql/resource-manager/Microsoft.Sql/preview/2017-03-01-preview/Databases.json b/specification/sql/resource-manager/Microsoft.Sql/preview/2017-03-01-preview/databases.json similarity index 100% rename from specification/sql/resource-manager/Microsoft.Sql/preview/2017-03-01-preview/Databases.json rename to specification/sql/resource-manager/Microsoft.Sql/preview/2017-03-01-preview/databases.json diff --git a/specification/sql/resource-manager/readme.md b/specification/sql/resource-manager/readme.md index 590e7cb3dca8..6f76d4709310 100644 --- a/specification/sql/resource-manager/readme.md +++ b/specification/sql/resource-manager/readme.md @@ -152,7 +152,7 @@ These can be regenerated by running the following PowerShell script from this re ``` yaml $(tag) == 'schema-2017-03-preview' input-file: - - ./Microsoft.Sql/preview/2017-03-01-preview/Databases.json + - ./Microsoft.Sql/preview/2017-03-01-preview/databases.json - ./Microsoft.Sql/preview/2017-03-01-preview/renameDatabase.json - ./Microsoft.Sql/preview/2017-03-01-preview/serverDnsAliases.json From 42b93124ba02721077f9e7be847006062f78650c Mon Sep 17 00:00:00 2001 From: Jared Moore Date: Wed, 24 Jan 2018 15:17:20 -0800 Subject: [PATCH 3/6] Extract elasticPools.json from sql.core.json --- .../stable/2014-04-01/elasticPools.json | 454 ++++++++++++++++++ .../stable/2014-04-01/sql.core.json | 343 ------------- specification/sql/resource-manager/readme.md | 4 + 3 files changed, 458 insertions(+), 343 deletions(-) create mode 100644 specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/elasticPools.json diff --git a/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/elasticPools.json b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/elasticPools.json new file mode 100644 index 000000000000..9a10b61c8797 --- /dev/null +++ b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/elasticPools.json @@ -0,0 +1,454 @@ +{ + "swagger":"2.0", + "info":{ + "title":"Azure SQL Database", + "description":"Provides create, read, update and delete functionality for Azure SQL Database resources including servers, databases, elastic pools, recommendations, and operations.", + "version":"2014-04-01" + }, + "host":"management.azure.com", + "schemes":[ + "https" + ], + "consumes":[ + "application/json" + ], + "produces":[ + "application/json" + ], + "paths":{ + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools/{elasticPoolName}":{ + "put":{ + "tags":[ + "ElasticPools" + ], + "operationId":"ElasticPools_CreateOrUpdate", + "description":"Creates a new elastic pool or updates an existing elastic pool.", + "x-ms-examples":{ + "Create elastic pool max":{ + "$ref":"./examples/ElasticPoolCreateOrUpdateMax.json" + }, + "Create elastic pool min":{ + "$ref":"./examples/ElasticPoolCreateOrUpdateMin.json" + } + }, + "parameters":[ + { + "$ref":"#/parameters/ApiVersionParameter" + }, + { + "$ref":"#/parameters/SubscriptionIdParameter" + }, + { + "$ref":"#/parameters/ResourceGroupParameter" + }, + { + "$ref":"#/parameters/ServerNameParameter" + }, + { + "name":"elasticPoolName", + "in":"path", + "required":true, + "type":"string", + "description":"The name of the elastic pool to be operated on (updated or created)." + }, + { + "name":"parameters", + "in":"body", + "required":true, + "schema":{ + "$ref":"#/definitions/ElasticPool" + }, + "description":"The required parameters for creating or updating an elastic pool." + } + ], + "responses":{ + "200":{ + "description":"OK", + "schema":{ + "$ref":"#/definitions/ElasticPool" + } + }, + "201":{ + "description":"Created", + "schema":{ + "$ref":"#/definitions/ElasticPool" + } + }, + "202":{ + "description":"Accepted" + } + }, + "x-ms-long-running-operation":true + }, + "patch":{ + "tags":[ + "ElasticPools" + ], + "operationId":"ElasticPools_Update", + "description":"Updates an existing elastic pool.", + "x-ms-examples":{ + "Update elastic pool max":{ + "$ref":"./examples/ElasticPoolUpdateMax.json" + }, + "Update elastic pool min":{ + "$ref":"./examples/ElasticPoolUpdateMin.json" + } + }, + "parameters":[ + { + "$ref":"#/parameters/ApiVersionParameter" + }, + { + "$ref":"#/parameters/SubscriptionIdParameter" + }, + { + "$ref":"#/parameters/ResourceGroupParameter" + }, + { + "$ref":"#/parameters/ServerNameParameter" + }, + { + "name":"elasticPoolName", + "in":"path", + "required":true, + "type":"string", + "description":"The name of the elastic pool to be updated." + }, + { + "name":"parameters", + "in":"body", + "required":true, + "schema":{ + "$ref":"#/definitions/ElasticPoolUpdate" + }, + "description":"The required parameters for updating an elastic pool." + } + ], + "responses":{ + "200":{ + "description":"OK", + "schema":{ + "$ref":"#/definitions/ElasticPool" + } + }, + "202":{ + "description":"Accepted" + } + }, + "x-ms-long-running-operation":true + }, + "delete":{ + "tags":[ + "ElasticPools" + ], + "operationId":"ElasticPools_Delete", + "description":"Deletes the elastic pool.", + "x-ms-examples":{ + "Delete elastic pool":{ + "$ref":"./examples/ElasticPoolDelete.json" + } + }, + "parameters":[ + { + "$ref":"#/parameters/ApiVersionParameter" + }, + { + "$ref":"#/parameters/SubscriptionIdParameter" + }, + { + "$ref":"#/parameters/ResourceGroupParameter" + }, + { + "$ref":"#/parameters/ServerNameParameter" + }, + { + "name":"elasticPoolName", + "in":"path", + "required":true, + "type":"string", + "description":"The name of the elastic pool to be deleted." + } + ], + "responses":{ + "200":{ + "description":"OK" + }, + "204":{ + "description":"Accepted" + } + } + }, + "get":{ + "tags":[ + "ElasticPools" + ], + "operationId":"ElasticPools_Get", + "description":"Gets an elastic pool.", + "x-ms-examples":{ + "Get elastic pool":{ + "$ref":"./examples/ElasticPoolGet.json" + } + }, + "parameters":[ + { + "$ref":"#/parameters/ApiVersionParameter" + }, + { + "$ref":"#/parameters/SubscriptionIdParameter" + }, + { + "$ref":"#/parameters/ResourceGroupParameter" + }, + { + "$ref":"#/parameters/ServerNameParameter" + }, + { + "name":"elasticPoolName", + "in":"path", + "required":true, + "type":"string", + "description":"The name of the elastic pool to be retrieved." + } + ], + "responses":{ + "200":{ + "description":"OK", + "schema":{ + "$ref":"#/definitions/ElasticPool" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools":{ + "get":{ + "tags":[ + "ElasticPools" + ], + "operationId":"ElasticPools_ListByServer", + "description":"Returns a list of elastic pools in a server.", + "x-ms-examples":{ + "List elastic pools":{ + "$ref":"./examples/ElasticPoolList.json" + } + }, + "parameters":[ + { + "$ref":"#/parameters/ApiVersionParameter" + }, + { + "$ref":"#/parameters/SubscriptionIdParameter" + }, + { + "$ref":"#/parameters/ResourceGroupParameter" + }, + { + "$ref":"#/parameters/ServerNameParameter" + } + ], + "responses":{ + "200":{ + "description":"OK", + "schema":{ + "$ref":"#/definitions/ElasticPoolListResult" + } + } + }, + "x-ms-pageable":{ + "nextLinkName":null + } + } + } + }, + "definitions":{ + "ElasticPoolProperties":{ + "properties":{ + "creationDate":{ + "readOnly":true, + "type":"string", + "format":"date-time", + "description":"The creation date of the elastic pool (ISO8601 format)." + }, + "state":{ + "readOnly":true, + "type":"string", + "enum":[ + "Creating", + "Ready", + "Disabled" + ], + "description":"The state of the elastic pool.", + "x-ms-enum":{ + "modelAsString":true, + "name":"ElasticPoolState" + } + }, + "edition":{ + "type":"string", + "description":"The edition of the elastic pool.", + "enum":[ + "Basic", + "Standard", + "Premium" + ], + "x-ms-enum":{ + "name":"ElasticPoolEdition", + "modelAsString":true + }, + "x-ms-mutability":[ + "create", + "read" + ] + }, + "dtu":{ + "type":"integer", + "format":"int32", + "description":"The total shared DTU for the database elastic pool." + }, + "databaseDtuMax":{ + "type":"integer", + "format":"int32", + "description":"The maximum DTU any one database can consume." + }, + "databaseDtuMin":{ + "type":"integer", + "format":"int32", + "description":"The minimum DTU all databases are guaranteed." + }, + "storageMB":{ + "type":"integer", + "format":"int32", + "description":"Gets storage limit for the database elastic pool in MB." + }, + "zoneRedundant":{ + "description":"Whether or not this database elastic pool is zone redundant, which means the replicas of this database will be spread across multiple availability zones.", + "type":"boolean" + } + }, + "description":"Represents the properties of an elastic pool." + }, + "ElasticPool":{ + "properties":{ + "properties":{ + "$ref":"#/definitions/ElasticPoolProperties", + "description":"The properties representing the resource.", + "x-ms-client-flatten":true + }, + "kind":{ + "readOnly":true, + "type":"string", + "description":"Kind of elastic pool. This is metadata used for the Azure portal experience." + } + }, + "allOf":[ + { + "$ref":"#/definitions/TrackedResource" + } + ], + "description":"Represents a database elastic pool." + }, + "ElasticPoolUpdate":{ + "properties":{ + "tags":{ + "type":"object", + "additionalProperties":{ + "type":"string" + }, + "description":"Resource tags." + }, + "properties":{ + "$ref":"#/definitions/ElasticPoolProperties", + "description":"The properties representing the resource.", + "x-ms-client-flatten":true + } + }, + "allOf":[ + { + "$ref":"#/definitions/Resource" + } + ], + "description":"Represents an elastic pool update." + }, + "ElasticPoolListResult":{ + "properties":{ + "value":{ + "type":"array", + "items":{ + "$ref":"#/definitions/ElasticPool" + }, + "description":"The list of elastic pools hosted in the server." + } + }, + "required":[ + "value" + ], + "description":"Represents the response to a list elastic pool request." + } + }, + "parameters":{ + "SubscriptionIdParameter":{ + "name":"subscriptionId", + "in":"path", + "required":true, + "type":"string", + "description":"The subscription ID that identifies an Azure subscription." + }, + "ApiVersionParameter":{ + "name":"api-version", + "in":"query", + "required":true, + "type":"string", + "description":"The API version to use for the request." + }, + "ResourceGroupParameter":{ + "name":"resourceGroupName", + "in":"path", + "required":true, + "type":"string", + "description":"The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.", + "x-ms-parameter-location":"method" + }, + "ServerNameParameter":{ + "name":"serverName", + "in":"path", + "required":true, + "type":"string", + "description":"The name of the server.", + "x-ms-parameter-location":"method" + }, + "DatabaseExpandParameter":{ + "name":"$expand", + "in":"query", + "required":false, + "type":"string", + "description":"A comma separated list of child objects to expand in the response. Possible properties: serviceTierAdvisors, transparentDataEncryption.", + "x-ms-parameter-location":"method" + }, + "TransparentDataEncryptionNameParameter":{ + "name":"transparentDataEncryptionName", + "in":"path", + "required":true, + "type":"string", + "enum":[ + "current" + ], + "description":"The name of the transparent data encryption configuration.", + "x-ms-enum":{ + "modelAsString":true, + "name":"TransparentDataEncryptionName" + }, + "x-ms-parameter-location":"method" + } + }, + "securityDefinitions":{ + "azure_auth":{ + "type":"oauth2", + "description":"Azure Active Directory OAuth2 Flow", + "flow":"implicit", + "authorizationUrl":"https://login.microsoftonline.com/common/oauth2/authorize", + "scopes":{ + "user_impersonation":"impersonate your user account" + } + } + } +} \ No newline at end of file diff --git a/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/sql.core.json b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/sql.core.json index ae9fad1f7c61..003999e359e8 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/sql.core.json +++ b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/sql.core.json @@ -55,235 +55,6 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools/{elasticPoolName}": { - "put": { - "tags": [ - "ElasticPools" - ], - "operationId": "ElasticPools_CreateOrUpdate", - "description": "Creates a new elastic pool or updates an existing elastic pool.", - "x-ms-examples":{ - "Create elastic pool max": { "$ref": "./examples/ElasticPoolCreateOrUpdateMax.json" }, - "Create elastic pool min": { "$ref": "./examples/ElasticPoolCreateOrUpdateMin.json" } - }, - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - }, - { - "name": "elasticPoolName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the elastic pool to be operated on (updated or created)." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ElasticPool" - }, - "description": "The required parameters for creating or updating an elastic pool." - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ElasticPool" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/ElasticPool" - } - }, - "202": { - "description": "Accepted" - } - }, - "x-ms-long-running-operation": true - }, - "patch": { - "tags": [ - "ElasticPools" - ], - "operationId": "ElasticPools_Update", - "description": "Updates an existing elastic pool.", - "x-ms-examples":{ - "Update elastic pool max": { "$ref": "./examples/ElasticPoolUpdateMax.json" }, - "Update elastic pool min": { "$ref": "./examples/ElasticPoolUpdateMin.json" } - }, - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - }, - { - "name": "elasticPoolName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the elastic pool to be updated." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ElasticPoolUpdate" - }, - "description": "The required parameters for updating an elastic pool." - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ElasticPool" - } - }, - "202": { - "description": "Accepted" - } - }, - "x-ms-long-running-operation": true - }, - "delete": { - "tags": [ - "ElasticPools" - ], - "operationId": "ElasticPools_Delete", - "description": "Deletes the elastic pool.", - "x-ms-examples":{ - "Delete elastic pool": { "$ref": "./examples/ElasticPoolDelete.json" } - }, - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - }, - { - "name": "elasticPoolName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the elastic pool to be deleted." - } - ], - "responses": { - "200": { - "description": "OK" - }, - "204": { - "description": "Accepted" - } - } - }, - "get": { - "tags": [ - "ElasticPools" - ], - "operationId": "ElasticPools_Get", - "description": "Gets an elastic pool.", - "x-ms-examples":{ - "Get elastic pool": { "$ref": "./examples/ElasticPoolGet.json" } - }, - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - }, - { - "name": "elasticPoolName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the elastic pool to be retrieved." - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ElasticPool" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools": { - "get": { - "tags": [ - "ElasticPools" - ], - "operationId": "ElasticPools_ListByServer", - "description": "Returns a list of elastic pools in a server.", - "x-ms-examples":{ - "List elastic pools": { "$ref": "./examples/ElasticPoolList.json" } - }, - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ElasticPoolListResult" - } - } - }, - "x-ms-pageable": { - "nextLinkName": null - } - } - }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools/{elasticPoolName}/elasticPoolActivity": { "get": { "tags": [ @@ -994,120 +765,6 @@ "required": ["value"], "description": "Represents the response to a list recommended elastic pool metrics request." }, - "ElasticPoolProperties": { - "properties": { - "creationDate": { - "readOnly": true, - "type": "string", - "format": "date-time", - "description": "The creation date of the elastic pool (ISO8601 format)." - }, - "state": { - "readOnly": true, - "type": "string", - "enum": ["Creating", "Ready", "Disabled"], - "description": "The state of the elastic pool.", - "x-ms-enum": { - "modelAsString": true, - "name": "ElasticPoolState" - } - }, - "edition": { - "type": "string", - "description": "The edition of the elastic pool.", - "enum": [ - "Basic", - "Standard", - "Premium" - ], - "x-ms-enum": { - "name": "ElasticPoolEdition", - "modelAsString": true - }, - "x-ms-mutability": [ "create", "read" ] - }, - "dtu": { - "type": "integer", - "format": "int32", - "description": "The total shared DTU for the database elastic pool." - }, - "databaseDtuMax": { - "type": "integer", - "format": "int32", - "description": "The maximum DTU any one database can consume." - }, - "databaseDtuMin": { - "type": "integer", - "format": "int32", - "description": "The minimum DTU all databases are guaranteed." - }, - "storageMB": { - "type": "integer", - "format": "int32", - "description": "Gets storage limit for the database elastic pool in MB." - }, - "zoneRedundant": { - "description": "Whether or not this database elastic pool is zone redundant, which means the replicas of this database will be spread across multiple availability zones.", - "type": "boolean" - } - }, - "description": "Represents the properties of an elastic pool." - }, - "ElasticPool": { - "properties": { - "properties": { - "$ref": "#/definitions/ElasticPoolProperties", - "description": "The properties representing the resource.", - "x-ms-client-flatten": true - }, - "kind": { - "readOnly": true, - "type": "string", - "description": "Kind of elastic pool. This is metadata used for the Azure portal experience." - } - }, - "allOf": [ - { - "$ref": "#/definitions/TrackedResource" - } - ], - "description": "Represents a database elastic pool." - }, - "ElasticPoolUpdate": { - "properties": { - "tags":{ - "type":"object", - "additionalProperties":{ - "type":"string" - }, - "description":"Resource tags." - }, - "properties": { - "$ref": "#/definitions/ElasticPoolProperties", - "description": "The properties representing the resource.", - "x-ms-client-flatten": true - } - }, - "allOf": [ - { - "$ref": "#/definitions/Resource" - } - ], - "description": "Represents an elastic pool update." - }, - "ElasticPoolListResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/ElasticPool" - }, - "description": "The list of elastic pools hosted in the server." - } - }, - "required": ["value"], - "description": "Represents the response to a list elastic pool request." - }, "ElasticPoolActivityProperties": { "properties": { "endTime": { diff --git a/specification/sql/resource-manager/readme.md b/specification/sql/resource-manager/readme.md index 6f76d4709310..8e4facb78419 100644 --- a/specification/sql/resource-manager/readme.md +++ b/specification/sql/resource-manager/readme.md @@ -49,6 +49,7 @@ input-file: - Microsoft.Sql/stable/2014-04-01/databases.json - Microsoft.Sql/stable/2014-04-01/databaseSecurityAlertPolicies.json - Microsoft.Sql/stable/2014-04-01/dataMasking.json +- Microsoft.Sql/stable/2014-04-01/elasticPools.json - Microsoft.Sql/stable/2014-04-01/firewallRules.json - Microsoft.Sql/stable/2014-04-01/geoBackupPolicies.json - Microsoft.Sql/stable/2014-04-01/importExport.json @@ -94,6 +95,7 @@ input-file: - Microsoft.Sql/stable/2014-04-01/databases.json - Microsoft.Sql/stable/2014-04-01/databaseSecurityAlertPolicies.json - Microsoft.Sql/stable/2014-04-01/dataMasking.json +- Microsoft.Sql/stable/2014-04-01/elasticPools.json - Microsoft.Sql/stable/2014-04-01/firewallRules.json - Microsoft.Sql/stable/2014-04-01/geoBackupPolicies.json - Microsoft.Sql/stable/2014-04-01/importExport.json @@ -129,6 +131,7 @@ These settings apply only when `--tag=package-2014-04` is specified on the comma ``` yaml $(tag) == 'package-2014-04' input-file: - Microsoft.Sql/stable/2014-04-01/databases.json +- Microsoft.Sql/stable/2014-04-01/elasticPools.json - Microsoft.Sql/stable/2014-04-01/firewallRules.json - Microsoft.Sql/stable/2014-04-01/importExport.json - Microsoft.Sql/stable/2014-04-01/replicationLinks.json @@ -209,6 +212,7 @@ input-file: - ./Microsoft.Sql/stable/2014-04-01/databaseSecurityAlertPolicies.json - ./Microsoft.Sql/stable/2014-04-01/dataMasking.json - ./Microsoft.Sql/stable/2014-04-01/deprecated.json + - ./Microsoft.Sql/stable/2014-04-01/elasticPools.json - ./Microsoft.Sql/stable/2014-04-01/firewallRules.json - ./Microsoft.Sql/stable/2014-04-01/geoBackupPolicies.json - ./Microsoft.Sql/stable/2014-04-01/importExport.json From 5a6fe19cfbfc33daf461404f3e77978e398bec49 Mon Sep 17 00:00:00 2001 From: Jared Moore Date: Wed, 24 Jan 2018 15:54:30 -0800 Subject: [PATCH 4/6] Extract checkNameAvailability.json from sql.core.json --- .../2014-04-01/checkNameAvailability.json | 190 ++++++++++++++++++ .../stable/2014-04-01/sql.core.json | 95 --------- specification/sql/resource-manager/readme.md | 4 + 3 files changed, 194 insertions(+), 95 deletions(-) create mode 100644 specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/checkNameAvailability.json diff --git a/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/checkNameAvailability.json b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/checkNameAvailability.json new file mode 100644 index 000000000000..67e700ca1247 --- /dev/null +++ b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/checkNameAvailability.json @@ -0,0 +1,190 @@ +{ + "swagger":"2.0", + "info":{ + "title":"Azure SQL Database", + "description":"Provides create, read, update and delete functionality for Azure SQL Database resources including servers, databases, elastic pools, recommendations, and operations.", + "version":"2014-04-01" + }, + "host":"management.azure.com", + "schemes":[ + "https" + ], + "consumes":[ + "application/json" + ], + "produces":[ + "application/json" + ], + "paths":{ + "/subscriptions/{subscriptionId}/providers/Microsoft.Sql/checkNameAvailability":{ + "post":{ + "tags":[ + "Servers" + ], + "operationId":"Servers_CheckNameAvailability", + "description":"Determines whether a resource can be created with the specified name.", + "x-ms-examples":{ + "Check for a server name that is available":{ + "$ref":"./examples/CheckNameAvailabilityServerAvailable.json" + }, + "Check for a server name that already exists":{ + "$ref":"./examples/CheckNameAvailabilityServerAlreadyExists.json" + }, + "Check for a server name that is invalid":{ + "$ref":"./examples/CheckNameAvailabilityServerInvalid.json" + } + }, + "parameters":[ + { + "$ref":"#/parameters/ApiVersionParameter" + }, + { + "$ref":"#/parameters/SubscriptionIdParameter" + }, + { + "name":"parameters", + "in":"body", + "required":true, + "schema":{ + "$ref":"#/definitions/CheckNameAvailabilityRequest" + }, + "description":"The parameters to request for name availability." + } + ], + "responses":{ + "200":{ + "description":"OK", + "schema":{ + "$ref":"#/definitions/CheckNameAvailabilityResponse" + } + } + } + } + } + }, + "definitions":{ + "CheckNameAvailabilityRequest":{ + "properties":{ + "name":{ + "type":"string", + "description":"The name whose availability is to be checked." + }, + "type":{ + "type":"string", + "description":"The type of resource that is used as the scope of the availability check.", + "enum":[ + "Microsoft.Sql/servers" + ], + "x-ms-enum":{ + "name":"CheckNameAvailabilityResourceType", + "modelAsString":false + } + } + }, + "required":[ + "name", + "type" + ], + "description":"A request to check whether the specified name for a resource is available." + }, + "CheckNameAvailabilityResponse":{ + "properties":{ + "available":{ + "type":"boolean", + "description":"True if the name is available, otherwise false.", + "readOnly":true + }, + "message":{ + "type":"string", + "description":"A message explaining why the name is unavailable. Will be null if the name is available.", + "readOnly":true + }, + "name":{ + "type":"string", + "description":"The name whose availability was checked.", + "readOnly":true + }, + "reason":{ + "type":"string", + "description":"The reason code explaining why the name is unavailable. Will be null if the name is available.", + "enum":[ + "Invalid", + "AlreadyExists" + ], + "x-ms-enum":{ + "name":"CheckNameAvailabilityReason", + "modelAsString":false + }, + "readOnly":true + } + }, + "description":"A response indicating whether the specified name for a resource is available." + } + }, + "parameters":{ + "SubscriptionIdParameter":{ + "name":"subscriptionId", + "in":"path", + "required":true, + "type":"string", + "description":"The subscription ID that identifies an Azure subscription." + }, + "ApiVersionParameter":{ + "name":"api-version", + "in":"query", + "required":true, + "type":"string", + "description":"The API version to use for the request." + }, + "ResourceGroupParameter":{ + "name":"resourceGroupName", + "in":"path", + "required":true, + "type":"string", + "description":"The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.", + "x-ms-parameter-location":"method" + }, + "ServerNameParameter":{ + "name":"serverName", + "in":"path", + "required":true, + "type":"string", + "description":"The name of the server.", + "x-ms-parameter-location":"method" + }, + "DatabaseExpandParameter":{ + "name":"$expand", + "in":"query", + "required":false, + "type":"string", + "description":"A comma separated list of child objects to expand in the response. Possible properties: serviceTierAdvisors, transparentDataEncryption.", + "x-ms-parameter-location":"method" + }, + "TransparentDataEncryptionNameParameter":{ + "name":"transparentDataEncryptionName", + "in":"path", + "required":true, + "type":"string", + "enum":[ + "current" + ], + "description":"The name of the transparent data encryption configuration.", + "x-ms-enum":{ + "modelAsString":true, + "name":"TransparentDataEncryptionName" + }, + "x-ms-parameter-location":"method" + } + }, + "securityDefinitions":{ + "azure_auth":{ + "type":"oauth2", + "description":"Azure Active Directory OAuth2 Flow", + "flow":"implicit", + "authorizationUrl":"https://login.microsoftonline.com/common/oauth2/authorize", + "scopes":{ + "user_impersonation":"impersonate your user account" + } + } + } +} \ No newline at end of file diff --git a/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/sql.core.json b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/sql.core.json index 003999e359e8..4fc8af0a60de 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/sql.core.json +++ b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/sql.core.json @@ -16,45 +16,6 @@ "application/json" ], "paths": { - "/subscriptions/{subscriptionId}/providers/Microsoft.Sql/checkNameAvailability": { - "post": { - "tags": [ - "Servers" - ], - "operationId": "Servers_CheckNameAvailability", - "description": "Determines whether a resource can be created with the specified name.", - "x-ms-examples": { - "Check for a server name that is available": { "$ref": "./examples/CheckNameAvailabilityServerAvailable.json" }, - "Check for a server name that already exists": { "$ref": "./examples/CheckNameAvailabilityServerAlreadyExists.json" }, - "Check for a server name that is invalid": { "$ref": "./examples/CheckNameAvailabilityServerInvalid.json" } - }, - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/CheckNameAvailabilityRequest" - }, - "description": "The parameters to request for name availability." - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/CheckNameAvailabilityResponse" - } - } - } - } - }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools/{elasticPoolName}/elasticPoolActivity": { "get": { "tags": [ @@ -569,62 +530,6 @@ } ] }, - "CheckNameAvailabilityRequest": { - "properties":{ - "name": { - "type": "string", - "description": "The name whose availability is to be checked." - }, - "type": { - "type": "string", - "description": "The type of resource that is used as the scope of the availability check.", - "enum": [ - "Microsoft.Sql/servers" - ], - "x-ms-enum": { - "name": "CheckNameAvailabilityResourceType", - "modelAsString": false - } - } - }, - "required": [ - "name", "type" - ], - "description": "A request to check whether the specified name for a resource is available." - }, - "CheckNameAvailabilityResponse": { - "properties":{ - "available": { - "type": "boolean", - "description": "True if the name is available, otherwise false.", - "readOnly": true - }, - "message": { - "type": "string", - "description": "A message explaining why the name is unavailable. Will be null if the name is available.", - "readOnly": true - }, - "name": { - "type": "string", - "description": "The name whose availability was checked.", - "readOnly": true - }, - "reason": { - "type": "string", - "description": "The reason code explaining why the name is unavailable. Will be null if the name is available.", - "enum": [ - "Invalid", - "AlreadyExists" - ], - "x-ms-enum": { - "name": "CheckNameAvailabilityReason", - "modelAsString": false - }, - "readOnly": true - } - }, - "description": "A response indicating whether the specified name for a resource is available." - }, "RecommendedElasticPoolMetric": { "properties": { "dateTime": { diff --git a/specification/sql/resource-manager/readme.md b/specification/sql/resource-manager/readme.md index 8e4facb78419..e39702c2aade 100644 --- a/specification/sql/resource-manager/readme.md +++ b/specification/sql/resource-manager/readme.md @@ -45,6 +45,7 @@ input-file: - Microsoft.Sql/stable/2014-04-01/backupLongTermRetentionVaults.json - Microsoft.Sql/stable/2014-04-01/backups.json - Microsoft.Sql/stable/2014-04-01/capabilities.json +- Microsoft.Sql/stable/2014-04-01/checkNameAvailability.json - Microsoft.Sql/stable/2014-04-01/connectionPolicies.json - Microsoft.Sql/stable/2014-04-01/databases.json - Microsoft.Sql/stable/2014-04-01/databaseSecurityAlertPolicies.json @@ -91,6 +92,7 @@ input-file: - Microsoft.Sql/stable/2014-04-01/backupLongTermRetentionPolicies.json - Microsoft.Sql/stable/2014-04-01/backupLongTermRetentionVaults.json - Microsoft.Sql/stable/2014-04-01/backups.json +- Microsoft.Sql/stable/2014-04-01/checkNameAvailability.json - Microsoft.Sql/stable/2014-04-01/connectionPolicies.json - Microsoft.Sql/stable/2014-04-01/databases.json - Microsoft.Sql/stable/2014-04-01/databaseSecurityAlertPolicies.json @@ -130,6 +132,7 @@ These settings apply only when `--tag=package-2014-04` is specified on the comma ``` yaml $(tag) == 'package-2014-04' input-file: +- Microsoft.Sql/stable/2014-04-01/checkNameAvailability.json - Microsoft.Sql/stable/2014-04-01/databases.json - Microsoft.Sql/stable/2014-04-01/elasticPools.json - Microsoft.Sql/stable/2014-04-01/firewallRules.json @@ -207,6 +210,7 @@ input-file: - ./Microsoft.Sql/stable/2014-04-01/backupLongTermRetentionVaults.json - ./Microsoft.Sql/stable/2014-04-01/backups.json - ./Microsoft.Sql/stable/2014-04-01/capabilities.json + - ./Microsoft.Sql/stable/2014-04-01/checkNameAvailability.json - ./Microsoft.Sql/stable/2014-04-01/connectionPolicies.json - ./Microsoft.Sql/stable/2014-04-01/databases.json - ./Microsoft.Sql/stable/2014-04-01/databaseSecurityAlertPolicies.json From c3c2deb378780dbbc02f89ecb65281f190eeba2e Mon Sep 17 00:00:00 2001 From: Jared Moore Date: Thu, 25 Jan 2018 10:08:36 -0800 Subject: [PATCH 5/6] Fixed missing references --- .../stable/2014-04-01/databases.json | 1999 +++++++++-------- .../stable/2014-04-01/elasticPools.json | 56 +- .../stable/2014-04-01/sql.core.json | 2 +- 3 files changed, 1116 insertions(+), 941 deletions(-) diff --git a/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/databases.json b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/databases.json index 0e3a600e098f..8b6b5d606b89 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/databases.json +++ b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/databases.json @@ -1,994 +1,1115 @@ { - "swagger": "2.0", - "info": { - "title": "Azure SQL Database", - "description": "Provides create, read, update and delete functionality for Azure SQL Database resources including servers, databases, elastic pools, recommendations, and operations.", - "version": "2014-04-01" - }, - "host": "management.azure.com", - "schemes": [ + "swagger":"2.0", + "info":{ + "title":"Azure SQL Database", + "description":"Provides create, read, update and delete functionality for Azure SQL Databases.", + "version":"2014-04-01" + }, + "host":"management.azure.com", + "schemes":[ "https" - ], - "consumes": [ + ], + "consumes":[ "application/json" - ], - "produces": [ + ], + "produces":[ "application/json" - ], - "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/pause": { - "post": { - "tags": [ - "DatabaseActivation" + ], + "paths":{ + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/pause":{ + "post":{ + "tags":[ + "DatabaseActivation" ], - "operationId": "Databases_Pause", - "description": "Pauses a data warehouse.", - "x-ms-examples": { - "Pause a data warehouse": { "$ref": "./examples/DatabasePause.json" } - }, - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - }, - { - "name": "databaseName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the data warehouse to pause." - } + "operationId":"Databases_Pause", + "description":"Pauses a data warehouse.", + "x-ms-examples":{ + "Pause a data warehouse":{ + "$ref":"./examples/DatabasePause.json" + } + }, + "parameters":[ + { + "$ref":"#/parameters/ApiVersionParameter" + }, + { + "$ref":"#/parameters/SubscriptionIdParameter" + }, + { + "$ref":"#/parameters/ResourceGroupParameter" + }, + { + "$ref":"#/parameters/ServerNameParameter" + }, + { + "name":"databaseName", + "in":"path", + "required":true, + "type":"string", + "description":"The name of the data warehouse to pause." + } ], - "responses": { - "200": { - "description": "OK" - }, - "202": { - "description": "Accepted" - } - }, - "x-ms-long-running-operation": true - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/resume": { - "post": { - "tags": [ - "DatabaseActivation" + "responses":{ + "200":{ + "description":"OK" + }, + "202":{ + "description":"Accepted" + } + }, + "x-ms-long-running-operation":true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/resume":{ + "post":{ + "tags":[ + "DatabaseActivation" ], - "operationId": "Databases_Resume", - "description": "Resumes a data warehouse.", - "x-ms-examples": { - "Resume a data warehouse": { "$ref": "./examples/DatabaseResume.json" } - }, - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - }, - { - "name": "databaseName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the data warehouse to resume." - } + "operationId":"Databases_Resume", + "description":"Resumes a data warehouse.", + "x-ms-examples":{ + "Resume a data warehouse":{ + "$ref":"./examples/DatabaseResume.json" + } + }, + "parameters":[ + { + "$ref":"#/parameters/ApiVersionParameter" + }, + { + "$ref":"#/parameters/SubscriptionIdParameter" + }, + { + "$ref":"#/parameters/ResourceGroupParameter" + }, + { + "$ref":"#/parameters/ServerNameParameter" + }, + { + "name":"databaseName", + "in":"path", + "required":true, + "type":"string", + "description":"The name of the data warehouse to resume." + } ], - "responses": { - "202": { - "description": "Accepted" - }, - "200": { - "description": "OK" - } - }, - "x-ms-long-running-operation": true - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}": { - "put": { - "tags": [ - "Databases" + "responses":{ + "202":{ + "description":"Accepted" + }, + "200":{ + "description":"OK" + } + }, + "x-ms-long-running-operation":true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}":{ + "put":{ + "tags":[ + "Databases" ], - "operationId": "Databases_CreateOrUpdate", - "description": "Creates a new database or updates an existing database.", - "x-ms-examples": { - "Create a database min": { "$ref": "./examples/DatabaseCreateOrUpdateMin.json" }, - "Create a database max": { "$ref": "./examples/DatabaseCreateMax.json" }, - "Create a database as a copy": { "$ref": "./examples/DatabaseCreateCopy.json" }, - "Create a database as an online secondary": { "$ref": "./examples/DatabaseCreateOnlineSecondary.json" }, - "Create a database as a non-readable secondary": { "$ref": "./examples/DatabaseCreateNonReadableSecondary.json" }, - "Create a database as a point in time restore": { "$ref": "./examples/DatabaseCreatePointInTimeRestore.json" }, - "Create a database as a dropped database restore to deletion time": { "$ref": "./examples/DatabaseCreateDroppedDatabaseRestore.json" }, - "Create a database as a dropped database restore to a specific point in time": { "$ref": "./examples/DatabaseCreateDroppedDatabaseRestoreToPointInTime.json" }, - "Create a database as a geo restore": { "$ref": "./examples/DatabaseCreateGeoRestore.json" }, - "Create a database from a long term retention backup": { "$ref": "./examples/DatabaseCreateLongTermRetentionRestore.json" }, - "Update a database's elastic pool'": { "$ref": "./examples/DatabaseUpdateElasticPool.json" }, - "Update a database max": { "$ref": "./examples/DatabaseUpdateMaxPut.json" } - }, - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - }, - { - "name": "databaseName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the database to be operated on (updated or created)." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/Database" - }, - "description": "The required parameters for creating or updating a database." - } + "operationId":"Databases_CreateOrUpdate", + "description":"Creates a new database or updates an existing database.", + "x-ms-examples":{ + "Create a database min":{ + "$ref":"./examples/DatabaseCreateOrUpdateMin.json" + }, + "Create a database max":{ + "$ref":"./examples/DatabaseCreateMax.json" + }, + "Create a database as a copy":{ + "$ref":"./examples/DatabaseCreateCopy.json" + }, + "Create a database as an online secondary":{ + "$ref":"./examples/DatabaseCreateOnlineSecondary.json" + }, + "Create a database as a non-readable secondary":{ + "$ref":"./examples/DatabaseCreateNonReadableSecondary.json" + }, + "Create a database as a point in time restore":{ + "$ref":"./examples/DatabaseCreatePointInTimeRestore.json" + }, + "Create a database as a dropped database restore to deletion time":{ + "$ref":"./examples/DatabaseCreateDroppedDatabaseRestore.json" + }, + "Create a database as a dropped database restore to a specific point in time":{ + "$ref":"./examples/DatabaseCreateDroppedDatabaseRestoreToPointInTime.json" + }, + "Create a database as a geo restore":{ + "$ref":"./examples/DatabaseCreateGeoRestore.json" + }, + "Create a database from a long term retention backup":{ + "$ref":"./examples/DatabaseCreateLongTermRetentionRestore.json" + }, + "Update a database's elastic pool'":{ + "$ref":"./examples/DatabaseUpdateElasticPool.json" + }, + "Update a database max":{ + "$ref":"./examples/DatabaseUpdateMaxPut.json" + } + }, + "parameters":[ + { + "$ref":"#/parameters/ApiVersionParameter" + }, + { + "$ref":"#/parameters/SubscriptionIdParameter" + }, + { + "$ref":"#/parameters/ResourceGroupParameter" + }, + { + "$ref":"#/parameters/ServerNameParameter" + }, + { + "name":"databaseName", + "in":"path", + "required":true, + "type":"string", + "description":"The name of the database to be operated on (updated or created)." + }, + { + "name":"parameters", + "in":"body", + "required":true, + "schema":{ + "$ref":"#/definitions/Database" + }, + "description":"The required parameters for creating or updating a database." + } ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Database" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/Database" - } - }, - "202": { - "description": "Accepted" - } - }, - "x-ms-long-running-operation": true - }, - "patch": { - "tags": [ - "Databases" + "responses":{ + "200":{ + "description":"OK", + "schema":{ + "$ref":"#/definitions/Database" + } + }, + "201":{ + "description":"Created", + "schema":{ + "$ref":"#/definitions/Database" + } + }, + "202":{ + "description":"Accepted" + } + }, + "x-ms-long-running-operation":true + }, + "patch":{ + "tags":[ + "Databases" ], - "operationId": "Databases_Update", - "description": "Updates an existing database.", - "x-ms-examples": { - "Update a database max": { "$ref": "./examples/DatabaseUpdateMaxPatch.json" }, - "Update a database min": { "$ref": "./examples/DatabaseUpdateMin.json" } - }, - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - }, - { - "name": "databaseName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the database to be updated." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/DatabaseUpdate" - }, - "description": "The required parameters for updating a database." - } + "operationId":"Databases_Update", + "description":"Updates an existing database.", + "x-ms-examples":{ + "Update a database max":{ + "$ref":"./examples/DatabaseUpdateMaxPatch.json" + }, + "Update a database min":{ + "$ref":"./examples/DatabaseUpdateMin.json" + } + }, + "parameters":[ + { + "$ref":"#/parameters/ApiVersionParameter" + }, + { + "$ref":"#/parameters/SubscriptionIdParameter" + }, + { + "$ref":"#/parameters/ResourceGroupParameter" + }, + { + "$ref":"#/parameters/ServerNameParameter" + }, + { + "name":"databaseName", + "in":"path", + "required":true, + "type":"string", + "description":"The name of the database to be updated." + }, + { + "name":"parameters", + "in":"body", + "required":true, + "schema":{ + "$ref":"#/definitions/DatabaseUpdate" + }, + "description":"The required parameters for updating a database." + } ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Database" - } - }, - "202": { - "description": "Accepted" - } - }, - "x-ms-long-running-operation": true - }, - "delete": { - "tags": [ - "Databases" + "responses":{ + "200":{ + "description":"OK", + "schema":{ + "$ref":"#/definitions/Database" + } + }, + "202":{ + "description":"Accepted" + } + }, + "x-ms-long-running-operation":true + }, + "delete":{ + "tags":[ + "Databases" ], - "operationId": "Databases_Delete", - "description": "Deletes a database.", - "x-ms-examples": { - "Delete a database": { "$ref": "./examples/DatabaseDelete.json" } - }, - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - }, - { - "name": "databaseName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the database to be deleted." - } + "operationId":"Databases_Delete", + "description":"Deletes a database.", + "x-ms-examples":{ + "Delete a database":{ + "$ref":"./examples/DatabaseDelete.json" + } + }, + "parameters":[ + { + "$ref":"#/parameters/ApiVersionParameter" + }, + { + "$ref":"#/parameters/SubscriptionIdParameter" + }, + { + "$ref":"#/parameters/ResourceGroupParameter" + }, + { + "$ref":"#/parameters/ServerNameParameter" + }, + { + "name":"databaseName", + "in":"path", + "required":true, + "type":"string", + "description":"The name of the database to be deleted." + } ], - "responses": { - "200": { - "description": "OK" - }, - "204": { - "description": "NoContent" - } + "responses":{ + "200":{ + "description":"OK" + }, + "204":{ + "description":"NoContent" + } } - }, - "get": { - "tags": [ - "Databases" + }, + "get":{ + "tags":[ + "Databases" ], - "operationId": "Databases_Get", - "description": "Gets a database.", - "x-ms-examples": { - "Get a database": { "$ref": "./examples/DatabaseGet.json" } - }, - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - }, - { - "name": "databaseName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the database to be retrieved." - }, - { - "$ref": "#/parameters/DatabaseExpandParameter" - } + "operationId":"Databases_Get", + "description":"Gets a database.", + "x-ms-examples":{ + "Get a database":{ + "$ref":"./examples/DatabaseGet.json" + } + }, + "parameters":[ + { + "$ref":"#/parameters/ApiVersionParameter" + }, + { + "$ref":"#/parameters/SubscriptionIdParameter" + }, + { + "$ref":"#/parameters/ResourceGroupParameter" + }, + { + "$ref":"#/parameters/ServerNameParameter" + }, + { + "name":"databaseName", + "in":"path", + "required":true, + "type":"string", + "description":"The name of the database to be retrieved." + }, + { + "$ref":"#/parameters/DatabaseExpandParameter" + } ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Database" + "responses":{ + "200":{ + "description":"OK", + "schema":{ + "$ref":"#/definitions/Database" + } } - } } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases": { - "get": { - "tags": [ - "Databases" + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases":{ + "get":{ + "tags":[ + "Databases" ], - "operationId": "Databases_ListByServer", - "description": "Returns a list of databases in a server.", - "x-ms-examples": { - "List databases by server": { "$ref": "./examples/DatabaseList.json" }, - "List databases by server with filter": { "$ref": "./examples/DatabaseListWithFilter.json" } - }, - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - }, - { - "$ref": "#/parameters/DatabaseExpandParameter" - }, - { - "name": "$filter", - "in": "query", - "required": false, - "type": "string", - "description": "An OData filter expression that describes a subset of databases to return." - } + "operationId":"Databases_ListByServer", + "description":"Returns a list of databases in a server.", + "x-ms-examples":{ + "List databases by server":{ + "$ref":"./examples/DatabaseList.json" + }, + "List databases by server with filter":{ + "$ref":"./examples/DatabaseListWithFilter.json" + } + }, + "parameters":[ + { + "$ref":"#/parameters/ApiVersionParameter" + }, + { + "$ref":"#/parameters/SubscriptionIdParameter" + }, + { + "$ref":"#/parameters/ResourceGroupParameter" + }, + { + "$ref":"#/parameters/ServerNameParameter" + }, + { + "$ref":"#/parameters/DatabaseExpandParameter" + }, + { + "name":"$filter", + "in":"query", + "required":false, + "type":"string", + "description":"An OData filter expression that describes a subset of databases to return." + } ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/DatabaseListResult" + "responses":{ + "200":{ + "description":"OK", + "schema":{ + "$ref":"#/definitions/DatabaseListResult" + } } - } }, - "x-ms-pageable": { - "nextLinkName": null + "x-ms-pageable":{ + "nextLinkName":null } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools/{elasticPoolName}/databases/{databaseName}": { - "get": { - "tags": [ - "ElasticPools" + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools/{elasticPoolName}/databases/{databaseName}":{ + "get":{ + "tags":[ + "ElasticPools" ], - "operationId": "Databases_GetByElasticPool", - "description": "Gets a database inside of an elastic pool.", - "x-ms-examples": { - "Get a database in an elastic pool": { "$ref": "./examples/DatabaseGetByElasticPool.json" } - }, - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - }, - { - "name": "elasticPoolName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the elastic pool to be retrieved." - }, - { - "name": "databaseName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the database to be retrieved." - } + "operationId":"Databases_GetByElasticPool", + "description":"Gets a database inside of an elastic pool.", + "x-ms-examples":{ + "Get a database in an elastic pool":{ + "$ref":"./examples/DatabaseGetByElasticPool.json" + } + }, + "parameters":[ + { + "$ref":"#/parameters/ApiVersionParameter" + }, + { + "$ref":"#/parameters/SubscriptionIdParameter" + }, + { + "$ref":"#/parameters/ResourceGroupParameter" + }, + { + "$ref":"#/parameters/ServerNameParameter" + }, + { + "name":"elasticPoolName", + "in":"path", + "required":true, + "type":"string", + "description":"The name of the elastic pool to be retrieved." + }, + { + "name":"databaseName", + "in":"path", + "required":true, + "type":"string", + "description":"The name of the database to be retrieved." + } ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Database" + "responses":{ + "200":{ + "description":"OK", + "schema":{ + "$ref":"#/definitions/Database" + } } - } } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools/{elasticPoolName}/databases": { - "get": { - "tags": [ - "Databases" + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools/{elasticPoolName}/databases":{ + "get":{ + "tags":[ + "Databases" ], - "operationId": "Databases_ListByElasticPool", - "description": "Returns a list of databases in an elastic pool.", - "x-ms-examples": { - "Gets databases in an elastic pool": { "$ref": "./examples/DatabaseListByElasticPool.json" } - }, - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - }, - { - "name": "elasticPoolName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the elastic pool to be retrieved." - } + "operationId":"Databases_ListByElasticPool", + "description":"Returns a list of databases in an elastic pool.", + "x-ms-examples":{ + "Gets databases in an elastic pool":{ + "$ref":"./examples/DatabaseListByElasticPool.json" + } + }, + "parameters":[ + { + "$ref":"#/parameters/ApiVersionParameter" + }, + { + "$ref":"#/parameters/SubscriptionIdParameter" + }, + { + "$ref":"#/parameters/ResourceGroupParameter" + }, + { + "$ref":"#/parameters/ServerNameParameter" + }, + { + "name":"elasticPoolName", + "in":"path", + "required":true, + "type":"string", + "description":"The name of the elastic pool to be retrieved." + } ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/DatabaseListResult" + "responses":{ + "200":{ + "description":"OK", + "schema":{ + "$ref":"#/definitions/DatabaseListResult" + } } - } }, - "x-ms-pageable": { - "nextLinkName": null + "x-ms-pageable":{ + "nextLinkName":null } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/recommendedElasticPools/{recommendedElasticPoolName}/databases/{databaseName}": { - "get": { - "tags": [ - "Databases" + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/recommendedElasticPools/{recommendedElasticPoolName}/databases/{databaseName}":{ + "get":{ + "tags":[ + "Databases" ], - "operationId": "Databases_GetByRecommendedElasticPool", - "description": "Gets a database inside of a recommented elastic pool.", - "x-ms-examples": { - "Get a database in a recommended elastic pool": { "$ref": "./examples/DatabaseGetByRecommendedElasticPool.json" } - }, - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - }, - { - "name": "recommendedElasticPoolName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the elastic pool to be retrieved." - }, - { - "name": "databaseName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the database to be retrieved." - } + "operationId":"Databases_GetByRecommendedElasticPool", + "description":"Gets a database inside of a recommented elastic pool.", + "x-ms-examples":{ + "Get a database in a recommended elastic pool":{ + "$ref":"./examples/DatabaseGetByRecommendedElasticPool.json" + } + }, + "parameters":[ + { + "$ref":"#/parameters/ApiVersionParameter" + }, + { + "$ref":"#/parameters/SubscriptionIdParameter" + }, + { + "$ref":"#/parameters/ResourceGroupParameter" + }, + { + "$ref":"#/parameters/ServerNameParameter" + }, + { + "name":"recommendedElasticPoolName", + "in":"path", + "required":true, + "type":"string", + "description":"The name of the elastic pool to be retrieved." + }, + { + "name":"databaseName", + "in":"path", + "required":true, + "type":"string", + "description":"The name of the database to be retrieved." + } ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/Database" + "responses":{ + "200":{ + "description":"OK", + "schema":{ + "$ref":"#/definitions/Database" + } } - } } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/recommendedElasticPools/{recommendedElasticPoolName}/databases": { - "get": { - "tags": [ - "Databases" + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/recommendedElasticPools/{recommendedElasticPoolName}/databases":{ + "get":{ + "tags":[ + "Databases" ], - "operationId": "Databases_ListByRecommendedElasticPool", - "description": "Returns a list of databases inside a recommented elastic pool.", - "x-ms-examples": { - "Gets databases in an elastic pool": { "$ref": "./examples/DatabaseListByRecommendedElasticPool.json" } - }, - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupParameter" - }, - { - "$ref": "#/parameters/ServerNameParameter" - }, - { - "name": "recommendedElasticPoolName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the recommended elastic pool to be retrieved." - } + "operationId":"Databases_ListByRecommendedElasticPool", + "description":"Returns a list of databases inside a recommented elastic pool.", + "x-ms-examples":{ + "Gets databases in an elastic pool":{ + "$ref":"./examples/DatabaseListByRecommendedElasticPool.json" + } + }, + "parameters":[ + { + "$ref":"#/parameters/ApiVersionParameter" + }, + { + "$ref":"#/parameters/SubscriptionIdParameter" + }, + { + "$ref":"#/parameters/ResourceGroupParameter" + }, + { + "$ref":"#/parameters/ServerNameParameter" + }, + { + "name":"recommendedElasticPoolName", + "in":"path", + "required":true, + "type":"string", + "description":"The name of the recommended elastic pool to be retrieved." + } ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/DatabaseListResult" + "responses":{ + "200":{ + "description":"OK", + "schema":{ + "$ref":"#/definitions/DatabaseListResult" + } } - } }, - "x-ms-pageable": { - "nextLinkName": null + "x-ms-pageable":{ + "nextLinkName":null } - } } - }, - "definitions": { - "DatabaseProperties": { - "properties": { - "collation": { - "type": "string", - "description": "The collation of the database. If createMode is not Default, this value is ignored.", - "x-ms-mutability": ["create", "read"] - }, - "creationDate": { - "readOnly": true, - "type": "string", - "format": "date-time", - "description": "The creation date of the database (ISO8601 format)." - }, - "containmentState": { - "readOnly": true, - "type": "integer", - "format": "int64", - "description": "The containment state of the database." - }, - "currentServiceObjectiveId": { - "readOnly": true, - "type": "string", - "format": "uuid", - "description": "The current service level objective ID of the database. This is the ID of the service level objective that is currently active." - }, - "databaseId": { - "readOnly": true, - "type": "string", - "format": "uuid", - "description": "The ID of the database." - }, - "earliestRestoreDate": { - "readOnly": true, - "type": "string", - "format": "date-time", - "description": "This records the earliest start date and time that restore is available for this database (ISO8601 format)." - }, - "createMode": { - "type": "string", - "description": "Specifies the mode of database creation.\n\nDefault: regular database creation.\n\nCopy: creates a database as a copy of an existing database. sourceDatabaseId must be specified as the resource ID of the source database.\n\nOnlineSecondary/NonReadableSecondary: creates a database as a (readable or nonreadable) secondary replica of an existing database. sourceDatabaseId must be specified as the resource ID of the existing primary database.\n\nPointInTimeRestore: Creates a database by restoring a point in time backup of an existing database. sourceDatabaseId must be specified as the resource ID of the existing database, and restorePointInTime must be specified.\n\nRecovery: Creates a database by restoring a geo-replicated backup. sourceDatabaseId must be specified as the recoverable database resource ID to restore.\n\nRestore: Creates a database by restoring a backup of a deleted database. sourceDatabaseId must be specified. If sourceDatabaseId is the database's original resource ID, then sourceDatabaseDeletionDate must be specified. Otherwise sourceDatabaseId must be the restorable dropped database resource ID and sourceDatabaseDeletionDate is ignored. restorePointInTime may also be specified to restore from an earlier point in time.\n\nRestoreLongTermRetentionBackup: Creates a database by restoring from a long term retention vault. recoveryServicesRecoveryPointResourceId must be specified as the recovery point resource ID.\n\nCopy, NonReadableSecondary, OnlineSecondary and RestoreLongTermRetentionBackup are not supported for DataWarehouse edition.", - "enum": [ - "Copy", - "Default", - "NonReadableSecondary", - "OnlineSecondary", - "PointInTimeRestore", - "Recovery", - "Restore", - "RestoreLongTermRetentionBackup" - ], - "x-ms-enum": { - "name": "CreateMode", - "modelAsString": true - }, - "x-ms-mutability": [ "create" ] - }, - "sourceDatabaseId": { - "type": "string", - "description": "Conditional. If createMode is Copy, NonReadableSecondary, OnlineSecondary, PointInTimeRestore, Recovery, or Restore, then this value is required. Specifies the resource ID of the source database. If createMode is NonReadableSecondary or OnlineSecondary, the name of the source database must be the same as the new database being created.", - "x-ms-mutability": [ "create" ] - }, - "sourceDatabaseDeletionDate": { - "type": "string", - "format": "date-time", - "description": "Conditional. If createMode is Restore and sourceDatabaseId is the deleted database's original resource id when it existed (as opposed to its current restorable dropped database id), then this value is required. Specifies the time that the database was deleted.", - "x-ms-mutability": [ "create" ] - }, - "restorePointInTime": { - "type": "string", - "format": "date-time", - "description": "Conditional. If createMode is PointInTimeRestore, this value is required. If createMode is Restore, this value is optional. Specifies the point in time (ISO8601 format) of the source database that will be restored to create the new database. Must be greater than or equal to the source database's earliestRestoreDate value.", - "x-ms-mutability": [ "create" ] - }, - "recoveryServicesRecoveryPointResourceId": { - "type": "string", - "description": "Conditional. If createMode is RestoreLongTermRetentionBackup, then this value is required. Specifies the resource ID of the recovery point to restore from.", - "x-ms-mutability": [ "create" ] - }, - "edition": { - "type": "string", - "description": "The edition of the database. The DatabaseEditions enumeration contains all the valid editions. If createMode is NonReadableSecondary or OnlineSecondary, this value is ignored. To see possible values, query the capabilities API (/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationID}/capabilities) referred to by operationId: \"Capabilities_ListByLocation.\" or use the Azure CLI command `az sql db list-editions -l westus --query [].name` .", - "enum": [ - "Web", - "Business", - "Basic", - "Standard", - "Premium", - "PremiumRS", - "Free", - "Stretch", - "DataWarehouse", - "System", - "System2" - ], - "x-ms-enum": { - "name": "DatabaseEdition", - "modelAsString": true - } - }, - "maxSizeBytes": { - "type": "string", - "description": "The max size of the database expressed in bytes. If createMode is not Default, this value is ignored. To see possible values, query the capabilities API (/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationID}/capabilities) referred to by operationId: \"Capabilities_ListByLocation.\"" - }, - "requestedServiceObjectiveId": { - "type": "string", - "format": "uuid", - "description": "The configured service level objective ID of the database. This is the service level objective that is in the process of being applied to the database. Once successfully updated, it will match the value of currentServiceObjectiveId property. If requestedServiceObjectiveId and requestedServiceObjectiveName are both updated, the value of requestedServiceObjectiveId overrides the value of requestedServiceObjectiveName. To see possible values, query the capabilities API (/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationID}/capabilities) referred to by operationId: \"Capabilities_ListByLocation.\" or use the Azure CLI command `az sql db list-editions --location --query [].supportedServiceLevelObjectives[].name` ." - }, - "requestedServiceObjectiveName": { - "type": "string", - "enum": [ - "System", - "System0", - "System1", - "System2", - "System3", - "System4", - "System2L", - "System3L", - "System4L", - "Free", - "Basic", - "S0", - "S1", - "S2", - "S3", - "S4", - "S6", - "S7", - "S9", - "S12", - "P1", - "P2", - "P3", - "P4", - "P6", - "P11", - "P15", - "PRS1", - "PRS2", - "PRS4", - "PRS6", - "DW100", - "DW200", - "DW300", - "DW400", - "DW500", - "DW600", - "DW1000", - "DW1200", - "DW1000c", - "DW1500", - "DW1500c", - "DW2000", - "DW2000c", - "DW3000", - "DW2500c", - "DW3000c", - "DW6000", - "DW5000c", - "DW6000c", - "DW7500c", - "DW10000c", - "DW15000c", - "DW30000c", - "DS100", - "DS200", - "DS300", - "DS400", - "DS500", - "DS600", - "DS1000", - "DS1200", - "DS1500", - "DS2000", - "ElasticPool" - ], - "x-ms-enum": { - "modelAsString": true, - "name": "ServiceObjectiveName" - }, - "description": "The name of the configured service level objective of the database. This is the service level objective that is in the process of being applied to the database. Once successfully updated, it will match the value of serviceLevelObjective property. To see possible values, query the capabilities API (/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationID}/capabilities) referred to by operationId: \"Capabilities_ListByLocation.\" or use the Azure CLI command `az sql db list-editions --location --query [].supportedServiceLevelObjectives[].name` ." - }, - "serviceLevelObjective": { - "readOnly": true, - "type": "string", - "enum": [ - "System", - "System0", - "System1", - "System2", - "System3", - "System4", - "System2L", - "System3L", - "System4L", - "Free", - "Basic", - "S0", - "S1", - "S2", - "S3", - "S4", - "S6", - "S7", - "S9", - "S12", - "P1", - "P2", - "P3", - "P4", - "P6", - "P11", - "P15", - "PRS1", - "PRS2", - "PRS4", - "PRS6", - "DW100", - "DW200", - "DW300", - "DW400", - "DW500", - "DW600", - "DW1000", - "DW1200", - "DW1000c", - "DW1500", - "DW1500c", - "DW2000", - "DW2000c", - "DW3000", - "DW2500c", - "DW3000c", - "DW6000", - "DW5000c", - "DW6000c", - "DW7500c", - "DW10000c", - "DW15000c", - "DW30000c", - "DS100", - "DS200", - "DS300", - "DS400", - "DS500", - "DS600", - "DS1000", - "DS1200", - "DS1500", - "DS2000", - "ElasticPool" - ], - "x-ms-enum": { - "modelAsString": true, - "name": "ServiceObjectiveName" - }, - "description": "The current service level objective of the database." - }, - "status": { - "readOnly": true, - "type": "string", - "description": "The status of the database." - }, - "elasticPoolName": { - "type": "string", - "description": "The name of the elastic pool the database is in. If elasticPoolName and requestedServiceObjectiveName are both updated, the value of requestedServiceObjectiveName is ignored. Not supported for DataWarehouse edition." - }, - "defaultSecondaryLocation": { - "readOnly": true, - "type": "string", - "description": "The default secondary region for this database." - }, - "serviceTierAdvisors": { - "readOnly": true, - "type": "array", - "items": { - "$ref": "#/definitions/ServiceTierAdvisor" - }, - "description": "The list of service tier advisors for this database. Expanded property" - }, - "transparentDataEncryption": { - "readOnly": true, - "type": "array", - "items": { - "$ref": "#/definitions/TransparentDataEncryption" - }, - "description": "The transparent data encryption info for this database." - }, - "recommendedIndex": { - "readOnly": true, - "type": "array", - "items": { - "$ref": "#/definitions/RecommendedIndex" - }, - "description": "The recommended indices for this database." - }, - "failoverGroupId": { - "readOnly": true, - "type": "string", - "description": "The resource identifier of the failover group containing this database." + } + }, + "definitions":{ + "Resource":{ + "description":"ARM resource.", + "properties":{ + "id":{ + "readOnly":true, + "type":"string", + "description":"Resource ID." + }, + "name":{ + "readOnly":true, + "type":"string", + "description":"Resource name." + }, + "type":{ + "readOnly":true, + "type":"string", + "description":"Resource type." + } }, - "readScale": { - "type": "string", - "enum": [ - "Enabled", - "Disabled" - ], - "description": "Conditional. If the database is a geo-secondary, readScale indicates whether read-only connections are allowed to this database or not. Not supported for DataWarehouse edition.", - "x-ms-enum": { - "name": "ReadScale" - } + "x-ms-azure-resource":true + }, + "TrackedResource":{ + "description":"ARM tracked top level resource.", + "properties":{ + "tags":{ + "type":"object", + "additionalProperties":{ + "type":"string" + }, + "x-ms-mutability":[ + "read", + "create", + "update" + ], + "description":"Resource tags." + }, + "location":{ + "type":"string", + "x-ms-mutability":[ + "read", + "create" + ], + "description":"Resource location." + } }, - "sampleName": { - "type": "string", - "enum": [ - "AdventureWorksLT" - ], - "description": "Indicates the name of the sample schema to apply when creating this database. If createMode is not Default, this value is ignored. Not supported for DataWarehouse edition.", - "x-ms-enum": { - "modelAsString": true, - "name": "SampleName" - }, - "x-ms-mutability": [ "create" ] + "required":[ + "location" + ], + "allOf":[ + { + "$ref":"#/definitions/Resource" + } + ] + }, + "DatabaseProperties":{ + "properties":{ + "collation":{ + "type":"string", + "description":"The collation of the database. If createMode is not Default, this value is ignored.", + "x-ms-mutability":[ + "create", + "read" + ] + }, + "creationDate":{ + "readOnly":true, + "type":"string", + "format":"date-time", + "description":"The creation date of the database (ISO8601 format)." + }, + "containmentState":{ + "readOnly":true, + "type":"integer", + "format":"int64", + "description":"The containment state of the database." + }, + "currentServiceObjectiveId":{ + "readOnly":true, + "type":"string", + "format":"uuid", + "description":"The current service level objective ID of the database. This is the ID of the service level objective that is currently active." + }, + "databaseId":{ + "readOnly":true, + "type":"string", + "format":"uuid", + "description":"The ID of the database." + }, + "earliestRestoreDate":{ + "readOnly":true, + "type":"string", + "format":"date-time", + "description":"This records the earliest start date and time that restore is available for this database (ISO8601 format)." + }, + "createMode":{ + "type":"string", + "description":"Specifies the mode of database creation.\n\nDefault: regular database creation.\n\nCopy: creates a database as a copy of an existing database. sourceDatabaseId must be specified as the resource ID of the source database.\n\nOnlineSecondary/NonReadableSecondary: creates a database as a (readable or nonreadable) secondary replica of an existing database. sourceDatabaseId must be specified as the resource ID of the existing primary database.\n\nPointInTimeRestore: Creates a database by restoring a point in time backup of an existing database. sourceDatabaseId must be specified as the resource ID of the existing database, and restorePointInTime must be specified.\n\nRecovery: Creates a database by restoring a geo-replicated backup. sourceDatabaseId must be specified as the recoverable database resource ID to restore.\n\nRestore: Creates a database by restoring a backup of a deleted database. sourceDatabaseId must be specified. If sourceDatabaseId is the database's original resource ID, then sourceDatabaseDeletionDate must be specified. Otherwise sourceDatabaseId must be the restorable dropped database resource ID and sourceDatabaseDeletionDate is ignored. restorePointInTime may also be specified to restore from an earlier point in time.\n\nRestoreLongTermRetentionBackup: Creates a database by restoring from a long term retention vault. recoveryServicesRecoveryPointResourceId must be specified as the recovery point resource ID.\n\nCopy, NonReadableSecondary, OnlineSecondary and RestoreLongTermRetentionBackup are not supported for DataWarehouse edition.", + "enum":[ + "Copy", + "Default", + "NonReadableSecondary", + "OnlineSecondary", + "PointInTimeRestore", + "Recovery", + "Restore", + "RestoreLongTermRetentionBackup" + ], + "x-ms-enum":{ + "name":"CreateMode", + "modelAsString":true + }, + "x-ms-mutability":[ + "create" + ] + }, + "sourceDatabaseId":{ + "type":"string", + "description":"Conditional. If createMode is Copy, NonReadableSecondary, OnlineSecondary, PointInTimeRestore, Recovery, or Restore, then this value is required. Specifies the resource ID of the source database. If createMode is NonReadableSecondary or OnlineSecondary, the name of the source database must be the same as the new database being created.", + "x-ms-mutability":[ + "create" + ] + }, + "sourceDatabaseDeletionDate":{ + "type":"string", + "format":"date-time", + "description":"Conditional. If createMode is Restore and sourceDatabaseId is the deleted database's original resource id when it existed (as opposed to its current restorable dropped database id), then this value is required. Specifies the time that the database was deleted.", + "x-ms-mutability":[ + "create" + ] + }, + "restorePointInTime":{ + "type":"string", + "format":"date-time", + "description":"Conditional. If createMode is PointInTimeRestore, this value is required. If createMode is Restore, this value is optional. Specifies the point in time (ISO8601 format) of the source database that will be restored to create the new database. Must be greater than or equal to the source database's earliestRestoreDate value.", + "x-ms-mutability":[ + "create" + ] + }, + "recoveryServicesRecoveryPointResourceId":{ + "type":"string", + "description":"Conditional. If createMode is RestoreLongTermRetentionBackup, then this value is required. Specifies the resource ID of the recovery point to restore from.", + "x-ms-mutability":[ + "create" + ] + }, + "edition":{ + "type":"string", + "description":"The edition of the database. The DatabaseEditions enumeration contains all the valid editions. If createMode is NonReadableSecondary or OnlineSecondary, this value is ignored. To see possible values, query the capabilities API (/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationID}/capabilities) referred to by operationId: \"Capabilities_ListByLocation.\" or use the Azure CLI command `az sql db list-editions -l westus --query [].name` .", + "enum":[ + "Web", + "Business", + "Basic", + "Standard", + "Premium", + "PremiumRS", + "Free", + "Stretch", + "DataWarehouse", + "System", + "System2" + ], + "x-ms-enum":{ + "name":"DatabaseEdition", + "modelAsString":true + } + }, + "maxSizeBytes":{ + "type":"string", + "description":"The max size of the database expressed in bytes. If createMode is not Default, this value is ignored. To see possible values, query the capabilities API (/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationID}/capabilities) referred to by operationId: \"Capabilities_ListByLocation.\"" + }, + "requestedServiceObjectiveId":{ + "type":"string", + "format":"uuid", + "description":"The configured service level objective ID of the database. This is the service level objective that is in the process of being applied to the database. Once successfully updated, it will match the value of currentServiceObjectiveId property. If requestedServiceObjectiveId and requestedServiceObjectiveName are both updated, the value of requestedServiceObjectiveId overrides the value of requestedServiceObjectiveName. To see possible values, query the capabilities API (/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationID}/capabilities) referred to by operationId: \"Capabilities_ListByLocation.\" or use the Azure CLI command `az sql db list-editions --location --query [].supportedServiceLevelObjectives[].name` ." + }, + "requestedServiceObjectiveName":{ + "type":"string", + "enum":[ + "System", + "System0", + "System1", + "System2", + "System3", + "System4", + "System2L", + "System3L", + "System4L", + "Free", + "Basic", + "S0", + "S1", + "S2", + "S3", + "S4", + "S6", + "S7", + "S9", + "S12", + "P1", + "P2", + "P3", + "P4", + "P6", + "P11", + "P15", + "PRS1", + "PRS2", + "PRS4", + "PRS6", + "DW100", + "DW200", + "DW300", + "DW400", + "DW500", + "DW600", + "DW1000", + "DW1200", + "DW1000c", + "DW1500", + "DW1500c", + "DW2000", + "DW2000c", + "DW3000", + "DW2500c", + "DW3000c", + "DW6000", + "DW5000c", + "DW6000c", + "DW7500c", + "DW10000c", + "DW15000c", + "DW30000c", + "DS100", + "DS200", + "DS300", + "DS400", + "DS500", + "DS600", + "DS1000", + "DS1200", + "DS1500", + "DS2000", + "ElasticPool" + ], + "x-ms-enum":{ + "modelAsString":true, + "name":"ServiceObjectiveName" + }, + "description":"The name of the configured service level objective of the database. This is the service level objective that is in the process of being applied to the database. Once successfully updated, it will match the value of serviceLevelObjective property. To see possible values, query the capabilities API (/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationID}/capabilities) referred to by operationId: \"Capabilities_ListByLocation.\" or use the Azure CLI command `az sql db list-editions --location --query [].supportedServiceLevelObjectives[].name` ." + }, + "serviceLevelObjective":{ + "readOnly":true, + "type":"string", + "enum":[ + "System", + "System0", + "System1", + "System2", + "System3", + "System4", + "System2L", + "System3L", + "System4L", + "Free", + "Basic", + "S0", + "S1", + "S2", + "S3", + "S4", + "S6", + "S7", + "S9", + "S12", + "P1", + "P2", + "P3", + "P4", + "P6", + "P11", + "P15", + "PRS1", + "PRS2", + "PRS4", + "PRS6", + "DW100", + "DW200", + "DW300", + "DW400", + "DW500", + "DW600", + "DW1000", + "DW1200", + "DW1000c", + "DW1500", + "DW1500c", + "DW2000", + "DW2000c", + "DW3000", + "DW2500c", + "DW3000c", + "DW6000", + "DW5000c", + "DW6000c", + "DW7500c", + "DW10000c", + "DW15000c", + "DW30000c", + "DS100", + "DS200", + "DS300", + "DS400", + "DS500", + "DS600", + "DS1000", + "DS1200", + "DS1500", + "DS2000", + "ElasticPool" + ], + "x-ms-enum":{ + "modelAsString":true, + "name":"ServiceObjectiveName" + }, + "description":"The current service level objective of the database." + }, + "status":{ + "readOnly":true, + "type":"string", + "description":"The status of the database." + }, + "elasticPoolName":{ + "type":"string", + "description":"The name of the elastic pool the database is in. If elasticPoolName and requestedServiceObjectiveName are both updated, the value of requestedServiceObjectiveName is ignored. Not supported for DataWarehouse edition." + }, + "defaultSecondaryLocation":{ + "readOnly":true, + "type":"string", + "description":"The default secondary region for this database." + }, + "serviceTierAdvisors":{ + "readOnly":true, + "type":"array", + "items":{ + "$ref":"#/definitions/ServiceTierAdvisor" + }, + "description":"The list of service tier advisors for this database. Expanded property" + }, + "transparentDataEncryption":{ + "readOnly":true, + "type":"array", + "items":{ + "$ref":"#/definitions/TransparentDataEncryption" + }, + "description":"The transparent data encryption info for this database." + }, + "recommendedIndex":{ + "readOnly":true, + "type":"array", + "items":{ + "$ref":"#/definitions/RecommendedIndex" + }, + "description":"The recommended indices for this database." + }, + "failoverGroupId":{ + "readOnly":true, + "type":"string", + "description":"The resource identifier of the failover group containing this database." + }, + "readScale":{ + "type":"string", + "enum":[ + "Enabled", + "Disabled" + ], + "description":"Conditional. If the database is a geo-secondary, readScale indicates whether read-only connections are allowed to this database or not. Not supported for DataWarehouse edition.", + "x-ms-enum":{ + "name":"ReadScale" + } + }, + "sampleName":{ + "type":"string", + "enum":[ + "AdventureWorksLT" + ], + "description":"Indicates the name of the sample schema to apply when creating this database. If createMode is not Default, this value is ignored. Not supported for DataWarehouse edition.", + "x-ms-enum":{ + "modelAsString":true, + "name":"SampleName" + }, + "x-ms-mutability":[ + "create" + ] + }, + "zoneRedundant":{ + "description":"Whether or not this database is zone redundant, which means the replicas of this database will be spread across multiple availability zones.", + "type":"boolean" + } }, - "zoneRedundant": { - "description": "Whether or not this database is zone redundant, which means the replicas of this database will be spread across multiple availability zones.", - "type": "boolean" - } - }, - "description": "Represents the properties of a database." + "description":"Represents the properties of a database." }, - "Database": { - "properties": { - "kind": { - "readOnly": true, - "type": "string", - "description": "Kind of database. This is metadata used for the Azure portal experience." + "Database":{ + "properties":{ + "kind":{ + "readOnly":true, + "type":"string", + "description":"Kind of database. This is metadata used for the Azure portal experience." + }, + "properties":{ + "$ref":"#/definitions/DatabaseProperties", + "description":"The properties representing the resource.", + "x-ms-client-flatten":true + } }, - "properties": { - "$ref": "#/definitions/DatabaseProperties", - "description": "The properties representing the resource.", - "x-ms-client-flatten": true - } - }, - "allOf": [ - { - "$ref": "#/definitions/TrackedResource" - } - ], - "description": "Represents a database." + "allOf":[ + { + "$ref":"#/definitions/TrackedResource" + } + ], + "description":"Represents a database." }, - "DatabaseUpdate": { - "properties": { - "tags":{ - "type":"object", - "additionalProperties":{ - "type":"string" - }, - "description":"Resource tags." + "DatabaseUpdate":{ + "properties":{ + "tags":{ + "type":"object", + "additionalProperties":{ + "type":"string" + }, + "description":"Resource tags." + }, + "properties":{ + "$ref":"#/definitions/DatabaseProperties", + "description":"The properties representing the resource.", + "x-ms-client-flatten":true + } }, - "properties": { - "$ref": "#/definitions/DatabaseProperties", - "description": "The properties representing the resource.", - "x-ms-client-flatten": true - } - }, - "allOf": [ - { - "$ref": "#/definitions/Resource" - } - ], - "description": "Represents a database update." + "allOf":[ + { + "$ref":"#/definitions/Resource" + } + ], + "description":"Represents a database update." }, - "DatabaseListResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/Database" - }, - "description": "The list of databases housed in the server." - } - }, - "required": ["value"], - "description": "Represents the response to a list database request." + "DatabaseListResult":{ + "properties":{ + "value":{ + "type":"array", + "items":{ + "$ref":"#/definitions/Database" + }, + "description":"The list of databases housed in the server." + } + }, + "required":[ + "value" + ], + "description":"Represents the response to a list database request." } - }, - "parameters": { - "SubscriptionIdParameter": { - "name": "subscriptionId", - "in": "path", - "required": true, - "type": "string", - "description": "The subscription ID that identifies an Azure subscription." - }, - "ApiVersionParameter": { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "The API version to use for the request." - }, - "ResourceGroupParameter": { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.", - "x-ms-parameter-location": "method" - }, - "ServerNameParameter": { - "name": "serverName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the server.", - "x-ms-parameter-location": "method" - }, - "DatabaseExpandParameter": { - "name": "$expand", - "in": "query", - "required": false, - "type": "string", - "description": "A comma separated list of child objects to expand in the response. Possible properties: serviceTierAdvisors, transparentDataEncryption.", - "x-ms-parameter-location": "method" - }, - "TransparentDataEncryptionNameParameter": { - "name": "transparentDataEncryptionName", - "in": "path", - "required": true, - "type": "string", - "enum": ["current"], - "description": "The name of the transparent data encryption configuration.", + }, + "parameters":{ + "SubscriptionIdParameter":{ + "name":"subscriptionId", + "in":"path", + "required":true, + "type":"string", + "description":"The subscription ID that identifies an Azure subscription." + }, + "ApiVersionParameter":{ + "name":"api-version", + "in":"query", + "required":true, + "type":"string", + "description":"The API version to use for the request." + }, + "ResourceGroupParameter":{ + "name":"resourceGroupName", + "in":"path", + "required":true, + "type":"string", + "description":"The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.", + "x-ms-parameter-location":"method" + }, + "ServerNameParameter":{ + "name":"serverName", + "in":"path", + "required":true, + "type":"string", + "description":"The name of the server.", + "x-ms-parameter-location":"method" + }, + "DatabaseExpandParameter":{ + "name":"$expand", + "in":"query", + "required":false, + "type":"string", + "description":"A comma separated list of child objects to expand in the response. Possible properties: serviceTierAdvisors, transparentDataEncryption.", + "x-ms-parameter-location":"method" + }, + "TransparentDataEncryptionNameParameter":{ + "name":"transparentDataEncryptionName", + "in":"path", + "required":true, + "type":"string", + "enum":[ + "current" + ], + "description":"The name of the transparent data encryption configuration.", "x-ms-enum":{ - "modelAsString": true, - "name": "TransparentDataEncryptionName" + "modelAsString":true, + "name":"TransparentDataEncryptionName" }, - "x-ms-parameter-location": "method" - } - }, - "securityDefinitions": { - "azure_auth": { - "type": "oauth2", - "description": "Azure Active Directory OAuth2 Flow", - "flow": "implicit", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "scopes": { - "user_impersonation": "impersonate your user account" - } - } - } + "x-ms-parameter-location":"method" + } + }, + "securityDefinitions":{ + "azure_auth":{ + "type":"oauth2", + "description":"Azure Active Directory OAuth2 Flow", + "flow":"implicit", + "authorizationUrl":"https://login.microsoftonline.com/common/oauth2/authorize", + "scopes":{ + "user_impersonation":"impersonate your user account" + } + } + } } \ No newline at end of file diff --git a/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/elasticPools.json b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/elasticPools.json index 9a10b61c8797..aa52b9c1517a 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/elasticPools.json +++ b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/elasticPools.json @@ -2,7 +2,7 @@ "swagger":"2.0", "info":{ "title":"Azure SQL Database", - "description":"Provides create, read, update and delete functionality for Azure SQL Database resources including servers, databases, elastic pools, recommendations, and operations.", + "description":"Provides create, read, update and delete functionality for Azure SQL Database elastic pools.", "version":"2014-04-01" }, "host":"management.azure.com", @@ -261,6 +261,60 @@ } }, "definitions":{ + "Resource":{ + "description":"ARM resource.", + "properties":{ + "id":{ + "readOnly":true, + "type":"string", + "description":"Resource ID." + }, + "name":{ + "readOnly":true, + "type":"string", + "description":"Resource name." + }, + "type":{ + "readOnly":true, + "type":"string", + "description":"Resource type." + } + }, + "x-ms-azure-resource":true + }, + "TrackedResource":{ + "description":"ARM tracked top level resource.", + "properties":{ + "tags":{ + "type":"object", + "additionalProperties":{ + "type":"string" + }, + "x-ms-mutability":[ + "read", + "create", + "update" + ], + "description":"Resource tags." + }, + "location":{ + "type":"string", + "x-ms-mutability":[ + "read", + "create" + ], + "description":"Resource location." + } + }, + "required":[ + "location" + ], + "allOf":[ + { + "$ref":"#/definitions/Resource" + } + ] + }, "ElasticPoolProperties":{ "properties":{ "creationDate":{ diff --git a/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/sql.core.json b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/sql.core.json index 4fc8af0a60de..b08be7c2c859 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/sql.core.json +++ b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/sql.core.json @@ -2,7 +2,7 @@ "swagger": "2.0", "info": { "title": "Azure SQL Database", - "description": "Provides create, read, update and delete functionality for Azure SQL Database resources including servers, databases, elastic pools, recommendations, and operations.", + "description": "Provides create, read, update and delete functionality for Azure SQL Database resources including recommendations and operations.", "version": "2014-04-01" }, "host": "management.azure.com", From b1f5dd6f842a458a6c117a2a5da68a7f5d895d77 Mon Sep 17 00:00:00 2001 From: Jared Moore Date: Thu, 25 Jan 2018 10:17:55 -0800 Subject: [PATCH 6/6] Fixed cross-file references --- .../Microsoft.Sql/stable/2014-04-01/databases.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/databases.json b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/databases.json index 8b6b5d606b89..4f4aec4ad8a3 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/databases.json +++ b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/databases.json @@ -931,7 +931,7 @@ "readOnly":true, "type":"array", "items":{ - "$ref":"#/definitions/ServiceTierAdvisor" + "$ref":"./sql.core.json#/definitions/ServiceTierAdvisor" }, "description":"The list of service tier advisors for this database. Expanded property" }, @@ -939,7 +939,7 @@ "readOnly":true, "type":"array", "items":{ - "$ref":"#/definitions/TransparentDataEncryption" + "$ref":"./sql.core.json#/definitions/TransparentDataEncryption" }, "description":"The transparent data encryption info for this database." }, @@ -947,7 +947,7 @@ "readOnly":true, "type":"array", "items":{ - "$ref":"#/definitions/RecommendedIndex" + "$ref":"./sql.core.json#/definitions/RecommendedIndex" }, "description":"The recommended indices for this database." },