From 90fd5ece0068373c4abd8160805dba09957268ad Mon Sep 17 00:00:00 2001 From: shurd Date: Wed, 17 Jul 2019 10:21:37 -0700 Subject: [PATCH] fixing Cosmos account keys response (#6587) --- .../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 687ff390bd7d..b1f3a328b89f 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 @@ -4502,12 +4502,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" } } }