From 01446e4d773d5b8951b073159af5a0ab7362dae3 Mon Sep 17 00:00:00 2001 From: Vinit Dinesh Parekh Date: Wed, 5 May 2021 07:41:26 -0700 Subject: [PATCH 1/3] Remove TDE api from v5 tag --- specification/sql/resource-manager/readme.md | 1 - 1 file changed, 1 deletion(-) diff --git a/specification/sql/resource-manager/readme.md b/specification/sql/resource-manager/readme.md index 1dfc4b58afc6..61a15b7d19e1 100644 --- a/specification/sql/resource-manager/readme.md +++ b/specification/sql/resource-manager/readme.md @@ -148,7 +148,6 @@ input-file: - ./Microsoft.Sql/preview/2020-11-01-preview/SyncMembers.json - ./Microsoft.Sql/preview/2020-11-01-preview/TdeCertificates.json - ./Microsoft.Sql/preview/2020-11-01-preview/TimeZones.json -- ./Microsoft.Sql/preview/2020-11-01-preview/TransparentDataEncryptions.json - ./Microsoft.Sql/preview/2020-11-01-preview/VirtualClusters.json - ./Microsoft.Sql/preview/2020-11-01-preview/VirtualNetworkRules.json - ./Microsoft.Sql/preview/2020-11-01-preview/WorkloadClassifiers.json From 59f12d944421fe961c36c680bca52b33815c6f9a Mon Sep 17 00:00:00 2001 From: Vinit Dinesh Parekh Date: Wed, 5 May 2021 12:33:28 -0700 Subject: [PATCH 2/3] Added back TDE apis --- .../stable/2014-04-01/sql.core_legacy.json | 150 ++++++++++++++++++ 1 file changed, 150 insertions(+) diff --git a/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/sql.core_legacy.json b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/sql.core_legacy.json index 318abf8bb4d6..ba06129b1d7a 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/sql.core_legacy.json +++ b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/sql.core_legacy.json @@ -108,6 +108,112 @@ } } }, + "/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": [ @@ -442,6 +548,42 @@ ], "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": { @@ -633,6 +775,14 @@ "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", From 1ada54ea7098a18242b7674a36785d8a2a814525 Mon Sep 17 00:00:00 2001 From: Vinit Dinesh Parekh Date: Wed, 5 May 2021 12:38:44 -0700 Subject: [PATCH 3/3] Fix prettier related issue --- .../Microsoft.Sql/stable/2014-04-01/sql.core_legacy.json | 1 - 1 file changed, 1 deletion(-) diff --git a/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/sql.core_legacy.json b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/sql.core_legacy.json index ba06129b1d7a..6badae492b8b 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/sql.core_legacy.json +++ b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/sql.core_legacy.json @@ -213,7 +213,6 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/transparentDataEncryption/{transparentDataEncryptionName}/operationResults": { "get": { "tags": [