From f8bd523610424b4f132e310df45ccbec4e828e0c Mon Sep 17 00:00:00 2001 From: Sam Hurd Date: Wed, 10 Jul 2019 11:46:39 -0700 Subject: [PATCH] fixing Cosmos account keys response --- .../stable/2015-04-08/cosmos-db.json | 9 +++++---- .../examples/CosmosDBDatabaseAccountListKeys.json | 6 ++---- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2015-04-08/cosmos-db.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2015-04-08/cosmos-db.json index 125d85a870f7..e84347499ed2 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2015-04-08/cosmos-db.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2015-04-08/cosmos-db.json @@ -4486,12 +4486,13 @@ "readOnly": true, "type": "string", "description": "Base 64 encoded value of the secondary read-write key." - }, - "properties": { - "x-ms-client-flatten": true, + } + }, + "allOf": [ + { "$ref": "#/definitions/DatabaseAccountListReadOnlyKeysResult" } - } + ] }, "DatabaseAccountConnectionString": { "description": "Connection string for the Cosmos DB account", diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2015-04-08/examples/CosmosDBDatabaseAccountListKeys.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2015-04-08/examples/CosmosDBDatabaseAccountListKeys.json index f04f6c904308..05a9097380c6 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2015-04-08/examples/CosmosDBDatabaseAccountListKeys.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2015-04-08/examples/CosmosDBDatabaseAccountListKeys.json @@ -10,10 +10,8 @@ "body": { "primaryMasterKey": "primaryMasterKey", "secondaryMasterKey": "secondaryMasterKey", - "properties": { - "primaryReadonlyMasterKey": "primaryReadonlyMasterKey", - "secondaryReadonlyMasterKey": "secondaryReadonlyMasterKey" - } + "primaryReadonlyMasterKey": "primaryReadonlyMasterKey", + "secondaryReadonlyMasterKey": "secondaryReadonlyMasterKey" } } }