Skip to content

Commit df22c5b

Browse files
anujtoshniwalLeiwang3SQL
authored andcommitted
Add 'id' property to ClientEncryptionKeyResource (Azure#16771)
* Add 'id' property to ClientEncryptionKeyResource * prettier fix * Mark operation as long running to fix warning.
1 parent b1a3987 commit df22c5b

File tree

4 files changed

+15
-1
lines changed

4 files changed

+15
-1
lines changed

specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/cosmos-db.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2017,6 +2017,7 @@
20172017
}
20182018
},
20192019
"description": "Create or update a ClientEncryptionKey. This API is meant to be invoked via tools such as the Azure Powershell (instead of directly).",
2020+
"x-ms-long-running-operation": true,
20202021
"parameters": [
20212022
{
20222023
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
@@ -2047,6 +2048,9 @@
20472048
}
20482049
],
20492050
"responses": {
2051+
"202": {
2052+
"description": "The client encryption key create or update operation will complete asynchronously."
2053+
},
20502054
"200": {
20512055
"description": "The client encryption key create or update operation was completed successfully.",
20522056
"schema": {
@@ -8132,6 +8136,10 @@
81328136
"type": "object",
81338137
"description": "Cosmos DB client encryption key resource object.",
81348138
"properties": {
8139+
"id": {
8140+
"type": "string",
8141+
"description": "Name of the ClientEncryptionKey"
8142+
},
81358143
"encryptionAlgorithm": {
81368144
"type": "string",
81378145
"description": "Encryption algorithm that will be used along with this client encryption key to encrypt/decrypt data."

specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlClientEncryptionKeyCreateUpdate.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"createUpdateClientEncryptionKeyParameters": {
1010
"properties": {
1111
"resource": {
12+
"id": "cekName",
1213
"encryptionAlgorithm": "AEAD_AES_256_CBC_HMAC_SHA256",
1314
"wrappedDataEncryptionKey": "This is actually an array of bytes. This request/response is being presented as a string for readability in the example",
1415
"keyWrapMetadata": {
@@ -28,6 +29,7 @@
2829
"type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/clientEncryptionKey",
2930
"properties": {
3031
"resource": {
32+
"id": "cekName",
3133
"encryptionAlgorithm": "AEAD_AES_256_CBC_HMAC_SHA256",
3234
"wrappedDataEncryptionKey": "This is actually an array of bytes. This request/response is being presented as a string for readability in the example",
3335
"keyWrapMetadata": {
@@ -41,6 +43,7 @@
4143
}
4244
}
4345
}
44-
}
46+
},
47+
"202": {}
4548
}
4649
}

specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlClientEncryptionKeyGet.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/clientEncryptionKey",
1616
"properties": {
1717
"resource": {
18+
"id": "cekName",
1819
"encryptionAlgorithm": "AEAD_AES_256_CBC_HMAC_SHA256",
1920
"wrappedDataEncryptionKey": "This is actually an array of bytes. This request/response is being presented as a string for readability in the example",
2021
"keyWrapMetadata": {

specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-10-15-preview/examples/CosmosDBSqlClientEncryptionKeysList.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/clientEncryptionKey",
1717
"properties": {
1818
"resource": {
19+
"id": "cekName1",
1920
"encryptionAlgorithm": "AEAD_AES_256_CBC_HMAC_SHA256",
2021
"wrappedDataEncryptionKey": "This is actually an array of bytes. This request/response is being presented as a string for readability in the example",
2122
"keyWrapMetadata": {
@@ -35,6 +36,7 @@
3536
"type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/clientEncryptionKey",
3637
"properties": {
3738
"resource": {
39+
"id": "cekName2",
3840
"encryptionAlgorithm": "AEAD_AES_256_CBC_HMAC_SHA256",
3941
"wrappedDataEncryptionKey": "This is actually an array of bytes. This request/response is being presented as a string for readability in the example",
4042
"keyWrapMetadata": {

0 commit comments

Comments
 (0)