diff --git a/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01-legacy/examples/DatabaseTransparentDataEncryptionActivityList.json b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01-legacy/examples/DatabaseTransparentDataEncryptionActivityList.json deleted file mode 100644 index 54993dacf6c7..000000000000 --- a/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01-legacy/examples/DatabaseTransparentDataEncryptionActivityList.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-1111-2222-3333-444444444444", - "resourceGroupName": "sqlcrudtest-6852", - "serverName": "sqlcrudtest-2080", - "databaseName": "sqlcrudtest-9187", - "transparentDataEncryptionName": "current", - "api-version": "2014-04-01" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "properties": { - "status": "Encrypting", - "percentComplete": 100 - }, - "name": "current", - "location": "West US", - "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-6852/providers/Microsoft.Sql/servers/sqlcrudtest-2080/databases/sqlcrudtest-9187/transparentDataEncryption/current/operationResults/current", - "type": "Microsoft.Sql/servers/databases/transparentDataEncryption/operationResults" - } - ] - } - } - } -} diff --git a/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01-legacy/examples/DatabaseTransparentDataEncryptionCreateOrUpdate.json b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01-legacy/examples/DatabaseTransparentDataEncryptionCreateOrUpdate.json deleted file mode 100644 index 86ac32fe594b..000000000000 --- a/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01-legacy/examples/DatabaseTransparentDataEncryptionCreateOrUpdate.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-1111-2222-3333-444444444444", - "resourceGroupName": "sqlcrudtest-6852", - "serverName": "sqlcrudtest-2080", - "databaseName": "sqlcrudtest-9187", - "transparentDataEncryptionName": "current", - "api-version": "2014-04-01", - "parameters": { - "properties": { - "status": "Enabled" - } - } - }, - "responses": { - "200": { - "body": { - "name": "current", - "location": "North Europe", - "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-6852/providers/Microsoft.Sql/servers/sqlcrudtest-2080/databases/sqlcrudtest-9187/transparentDataEncryption/current", - "type": "Microsoft.Sql/servers/databases/transparentDataEncryption", - "properties": { - "status": "Enabled" - } - } - }, - "201": { - "body": { - "name": "current", - "location": "North Europe", - "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-6852/providers/Microsoft.Sql/servers/sqlcrudtest-2080/databases/sqlcrudtest-9187/transparentDataEncryption/current", - "type": "Microsoft.Sql/servers/databases/transparentDataEncryption", - "properties": { - "status": "Enabled" - } - } - } - } -} diff --git a/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01-legacy/examples/DatabaseTransparentDataEncryptionGet.json b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01-legacy/examples/DatabaseTransparentDataEncryptionGet.json deleted file mode 100644 index 3097c2bdeffb..000000000000 --- a/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01-legacy/examples/DatabaseTransparentDataEncryptionGet.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-1111-2222-3333-444444444444", - "resourceGroupName": "sqlcrudtest-6852", - "serverName": "sqlcrudtest-2080", - "databaseName": "sqlcrudtest-9187", - "transparentDataEncryptionName": "current", - "api-version": "2014-04-01" - }, - "responses": { - "200": { - "body": { - "name": "current", - "location": "North Europe", - "id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-6852/providers/Microsoft.Sql/servers/sqlcrudtest-2080/databases/sqlcrudtest-9187/transparentDataEncryption/current", - "type": "Microsoft.Sql/servers/databases/transparentDataEncryption", - "properties": { - "status": "Enabled" - } - } - } - } -} diff --git a/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01-legacy/sql.core_legacy.json b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01-legacy/sql.core_legacy.json index 6badae492b8b..77fabce2d909 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01-legacy/sql.core_legacy.json +++ b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01-legacy/sql.core_legacy.json @@ -107,160 +107,6 @@ "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": "../../../common/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../common/v1/types.json#/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": "../../../common/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../common/v1/types.json#/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": "../../../common/v1/types.json#/parameters/ApiVersionParameter" - }, - { - "$ref": "../../../common/v1/types.json#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "../../../common/v1/types.json#/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" - } - } - }, - "x-ms-pageable": { - "nextLinkName": null - } - } } }, "definitions": { @@ -547,42 +393,6 @@ ], "description": "Represents the response to a list elastic pool database activity request." }, - "TransparentDataEncryptionProperties": { - "properties": { - "status": { - "type": "string", - "description": "The status of the database transparent data encryption.", - "enum": [ - "Enabled", - "Disabled" - ], - "x-ms-enum": { - "name": "TransparentDataEncryptionStatus" - } - } - }, - "description": "Represents the properties of a database transparent data encryption." - }, - "TransparentDataEncryption": { - "properties": { - "location": { - "type": "string", - "readOnly": true, - "description": "Resource location." - }, - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/TransparentDataEncryptionProperties", - "description": "Represents the properties of the resource." - } - }, - "allOf": [ - { - "$ref": "../../../common/v1/types.json#/definitions/ProxyResource" - } - ], - "description": "Represents a database transparent data encryption configuration." - }, "SloUsageMetric": { "properties": { "serviceLevelObjective": { @@ -704,65 +514,6 @@ } }, "description": "The impact of an operation, both in absolute and relative terms." - }, - "TransparentDataEncryptionActivityProperties": { - "properties": { - "status": { - "readOnly": true, - "type": "string", - "description": "The status of the database.", - "enum": [ - "Encrypting", - "Decrypting" - ], - "x-ms-enum": { - "name": "TransparentDataEncryptionActivityStatus", - "modelAsString": true - } - }, - "percentComplete": { - "readOnly": true, - "type": "number", - "format": "float", - "description": "The percent complete of the transparent data encryption scan for a database." - } - }, - "description": "Represents the properties of a database transparent data encryption Scan." - }, - "TransparentDataEncryptionActivity": { - "properties": { - "location": { - "type": "string", - "readOnly": true, - "description": "Resource location." - }, - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/TransparentDataEncryptionActivityProperties", - "description": "Represents the properties of the resource." - } - }, - "allOf": [ - { - "$ref": "../../../common/v1/types.json#/definitions/ProxyResource" - } - ], - "description": "Represents a database transparent data encryption Scan." - }, - "TransparentDataEncryptionActivityListResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/TransparentDataEncryptionActivity" - }, - "description": "The list of database transparent data encryption activities." - } - }, - "required": [ - "value" - ], - "description": "Represents the response to a list database transparent data encryption activity request." } }, "parameters": { @@ -781,21 +532,6 @@ "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": { diff --git a/specification/sql/resource-manager/readme.md b/specification/sql/resource-manager/readme.md index cacdbe8455ff..14993e5af742 100644 --- a/specification/sql/resource-manager/readme.md +++ b/specification/sql/resource-manager/readme.md @@ -143,6 +143,7 @@ input-file: - ./Microsoft.Sql/preview/2020-11-01-preview/VirtualNetworkRules.json - ./Microsoft.Sql/preview/2020-11-01-preview/WorkloadClassifiers.json - ./Microsoft.Sql/preview/2020-11-01-preview/WorkloadGroups.json +- ./Microsoft.Sql/preview/2021-02-01-preview/TransparentDataEncryptions.json - ./Microsoft.Sql/preview/2021-02-01-preview/BackupShortTermRetentionPolicies.json - ./Microsoft.Sql/preview/2021-02-01-preview/Databases.json - ./Microsoft.Sql/preview/2021-02-01-preview/DatabaseExtensions.json