Skip to content

Commit 5be09d0

Browse files
authored
Remove TDE api from v5 tag (#14251)
* Remove TDE api from v5 tag * Added back TDE apis * Fix prettier related issue
1 parent cec78db commit 5be09d0

File tree

2 files changed

+149
-1
lines changed

2 files changed

+149
-1
lines changed

specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/sql.core_legacy.json

Lines changed: 149 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,111 @@
108108
}
109109
}
110110
},
111+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/transparentDataEncryption/{transparentDataEncryptionName}": {
112+
"put": {
113+
"tags": [
114+
"TransparentDataEncryption"
115+
],
116+
"operationId": "TransparentDataEncryptions_CreateOrUpdate",
117+
"description": "Creates or updates a database's transparent data encryption configuration.",
118+
"x-ms-examples": {
119+
"Create or update a database's transparent data encryption configuration": {
120+
"$ref": "./examples/DatabaseTransparentDataEncryptionCreateOrUpdate.json"
121+
}
122+
},
123+
"parameters": [
124+
{
125+
"$ref": "../../../common/v1/types.json#/parameters/ApiVersionParameter"
126+
},
127+
{
128+
"$ref": "../../../common/v1/types.json#/parameters/SubscriptionIdParameter"
129+
},
130+
{
131+
"$ref": "../../../common/v1/types.json#/parameters/ResourceGroupParameter"
132+
},
133+
{
134+
"$ref": "#/parameters/ServerNameParameter"
135+
},
136+
{
137+
"name": "databaseName",
138+
"in": "path",
139+
"required": true,
140+
"type": "string",
141+
"description": "The name of the database for which setting the transparent data encryption applies."
142+
},
143+
{
144+
"$ref": "#/parameters/TransparentDataEncryptionNameParameter"
145+
},
146+
{
147+
"name": "parameters",
148+
"in": "body",
149+
"required": true,
150+
"schema": {
151+
"$ref": "#/definitions/TransparentDataEncryption"
152+
},
153+
"description": "The required parameters for creating or updating transparent data encryption."
154+
}
155+
],
156+
"responses": {
157+
"200": {
158+
"description": "OK",
159+
"schema": {
160+
"$ref": "#/definitions/TransparentDataEncryption"
161+
}
162+
},
163+
"201": {
164+
"description": "Created",
165+
"schema": {
166+
"$ref": "#/definitions/TransparentDataEncryption"
167+
}
168+
}
169+
}
170+
},
171+
"get": {
172+
"tags": [
173+
"TransparentDataEncryption"
174+
],
175+
"operationId": "TransparentDataEncryptions_Get",
176+
"description": "Gets a database's transparent data encryption configuration.",
177+
"x-ms-examples": {
178+
"Get a database's transparent data encryption configuration": {
179+
"$ref": "./examples/DatabaseTransparentDataEncryptionGet.json"
180+
}
181+
},
182+
"parameters": [
183+
{
184+
"$ref": "../../../common/v1/types.json#/parameters/ApiVersionParameter"
185+
},
186+
{
187+
"$ref": "../../../common/v1/types.json#/parameters/SubscriptionIdParameter"
188+
},
189+
{
190+
"$ref": "../../../common/v1/types.json#/parameters/ResourceGroupParameter"
191+
},
192+
{
193+
"$ref": "#/parameters/ServerNameParameter"
194+
},
195+
{
196+
"name": "databaseName",
197+
"in": "path",
198+
"required": true,
199+
"type": "string",
200+
"description": "The name of the database for which the transparent data encryption applies."
201+
},
202+
{
203+
"$ref": "#/parameters/TransparentDataEncryptionNameParameter"
204+
}
205+
],
206+
"responses": {
207+
"200": {
208+
"description": "OK",
209+
"schema": {
210+
"$ref": "#/definitions/TransparentDataEncryption"
211+
}
212+
}
213+
}
214+
}
215+
},
111216
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/transparentDataEncryption/{transparentDataEncryptionName}/operationResults": {
112217
"get": {
113218
"tags": [
@@ -442,6 +547,42 @@
442547
],
443548
"description": "Represents the response to a list elastic pool database activity request."
444549
},
550+
"TransparentDataEncryptionProperties": {
551+
"properties": {
552+
"status": {
553+
"type": "string",
554+
"description": "The status of the database transparent data encryption.",
555+
"enum": [
556+
"Enabled",
557+
"Disabled"
558+
],
559+
"x-ms-enum": {
560+
"name": "TransparentDataEncryptionStatus"
561+
}
562+
}
563+
},
564+
"description": "Represents the properties of a database transparent data encryption."
565+
},
566+
"TransparentDataEncryption": {
567+
"properties": {
568+
"location": {
569+
"type": "string",
570+
"readOnly": true,
571+
"description": "Resource location."
572+
},
573+
"properties": {
574+
"x-ms-client-flatten": true,
575+
"$ref": "#/definitions/TransparentDataEncryptionProperties",
576+
"description": "Represents the properties of the resource."
577+
}
578+
},
579+
"allOf": [
580+
{
581+
"$ref": "../../../common/v1/types.json#/definitions/ProxyResource"
582+
}
583+
],
584+
"description": "Represents a database transparent data encryption configuration."
585+
},
445586
"SloUsageMetric": {
446587
"properties": {
447588
"serviceLevelObjective": {
@@ -633,6 +774,14 @@
633774
"description": "The name of the server.",
634775
"x-ms-parameter-location": "method"
635776
},
777+
"DatabaseExpandParameter": {
778+
"name": "$expand",
779+
"in": "query",
780+
"required": false,
781+
"type": "string",
782+
"description": "A comma separated list of child objects to expand in the response. Possible properties: serviceTierAdvisors, transparentDataEncryption.",
783+
"x-ms-parameter-location": "method"
784+
},
636785
"TransparentDataEncryptionNameParameter": {
637786
"name": "transparentDataEncryptionName",
638787
"in": "path",

specification/sql/resource-manager/readme.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,6 @@ input-file:
148148
- ./Microsoft.Sql/preview/2020-11-01-preview/SyncMembers.json
149149
- ./Microsoft.Sql/preview/2020-11-01-preview/TdeCertificates.json
150150
- ./Microsoft.Sql/preview/2020-11-01-preview/TimeZones.json
151-
- ./Microsoft.Sql/preview/2020-11-01-preview/TransparentDataEncryptions.json
152151
- ./Microsoft.Sql/preview/2020-11-01-preview/VirtualClusters.json
153152
- ./Microsoft.Sql/preview/2020-11-01-preview/VirtualNetworkRules.json
154153
- ./Microsoft.Sql/preview/2020-11-01-preview/WorkloadClassifiers.json

0 commit comments

Comments
 (0)