From 2b8c43fe8fae52ce6c5dc59c6fe9cf684cfc5655 Mon Sep 17 00:00:00 2001 From: Ashwini Singh Date: Mon, 20 Mar 2023 22:25:01 -0700 Subject: [PATCH 1/5] initial fix --- .../Microsoft.DocumentDB/stable/2022-11-15/mongorbac.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/mongorbac.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/mongorbac.json index 8d8f0e7792e9..800beb93d309 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/mongorbac.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/mongorbac.json @@ -406,7 +406,7 @@ "description": "A user-friendly name for the Role Definition. Must be unique for the database account." }, "type": { - "type": "string", + "type": "int", "enum": [ "BuiltInRole", "CustomRole" From 64d459e6349d37927a67f1a73d24c5a671916120 Mon Sep 17 00:00:00 2001 From: Ashwini Singh Date: Mon, 27 Mar 2023 16:15:49 -0700 Subject: [PATCH 2/5] address review comments --- .../preview/2022-08-15-preview/mongorbac.json | 20 +++++++++++++++---- .../preview/2022-11-15-preview/mongorbac.json | 20 +++++++++++++++---- .../preview/2023-03-01-preview/mongorbac.json | 20 +++++++++++++++---- 3 files changed, 48 insertions(+), 12 deletions(-) diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/mongorbac.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/mongorbac.json index d54d37477a2a..8f2d482a0935 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/mongorbac.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/mongorbac.json @@ -406,15 +406,27 @@ "description": "A user-friendly name for the Role Definition. Must be unique for the database account." }, "type": { - "type": "string", + "type": "integer", "enum": [ - "BuiltInRole", - "CustomRole" + 0, + 1 ], "description": "Indicates whether the Role Definition was built-in or user created.", "x-ms-enum": { "name": "MongoRoleDefinitionType", - "modelAsString": false + "modelAsString": false, + "values": [ + { + "value": 0, + "description": "The BuiltInRole", + "name": "BuiltInRole" + }, + { + "value": 1, + "description": "The CustomRole", + "name": "CustomRole" + } + ] } }, "databaseName": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-11-15-preview/mongorbac.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-11-15-preview/mongorbac.json index e51e048f093b..08f6f34ecb1b 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-11-15-preview/mongorbac.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-11-15-preview/mongorbac.json @@ -406,15 +406,27 @@ "description": "A user-friendly name for the Role Definition. Must be unique for the database account." }, "type": { - "type": "string", + "type": "integer", "enum": [ - "BuiltInRole", - "CustomRole" + 0, + 1 ], "description": "Indicates whether the Role Definition was built-in or user created.", "x-ms-enum": { "name": "MongoRoleDefinitionType", - "modelAsString": false + "modelAsString": false, + "values": [ + { + "value": 0, + "description": "The BuiltInRole", + "name": "BuiltInRole" + }, + { + "value": 1, + "description": "The CustomRole", + "name": "CustomRole" + } + ] } }, "databaseName": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2023-03-01-preview/mongorbac.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2023-03-01-preview/mongorbac.json index ed59bf2c730a..120490393dbc 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2023-03-01-preview/mongorbac.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2023-03-01-preview/mongorbac.json @@ -406,15 +406,27 @@ "description": "A user-friendly name for the Role Definition. Must be unique for the database account." }, "type": { - "type": "string", + "type": "integer", "enum": [ - "BuiltInRole", - "CustomRole" + 0, + 1 ], "description": "Indicates whether the Role Definition was built-in or user created.", "x-ms-enum": { "name": "MongoRoleDefinitionType", - "modelAsString": false + "modelAsString": false, + "values": [ + { + "value": 0, + "description": "The BuiltInRole", + "name": "BuiltInRole" + }, + { + "value": 1, + "description": "The CustomRole", + "name": "CustomRole" + } + ] } }, "databaseName": { From dd490c9269291318313050f72dcb54ac7392bb47 Mon Sep 17 00:00:00 2001 From: Ashwini Singh Date: Mon, 27 Mar 2023 16:19:01 -0700 Subject: [PATCH 3/5] fix release version s --- .../stable/2022-08-15/mongorbac.json | 20 +++++++++++++++---- .../stable/2022-11-15/mongorbac.json | 20 +++++++++++++++---- 2 files changed, 32 insertions(+), 8 deletions(-) diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-08-15/mongorbac.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-08-15/mongorbac.json index 698de3d93d1a..80602625c54f 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-08-15/mongorbac.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-08-15/mongorbac.json @@ -406,15 +406,27 @@ "description": "A user-friendly name for the Role Definition. Must be unique for the database account." }, "type": { - "type": "string", + "type": "integer", "enum": [ - "BuiltInRole", - "CustomRole" + 0, + 1 ], "description": "Indicates whether the Role Definition was built-in or user created.", "x-ms-enum": { "name": "MongoRoleDefinitionType", - "modelAsString": false + "modelAsString": false, + "values": [ + { + "value": 0, + "description": "The BuiltInRole", + "name": "BuiltInRole" + }, + { + "value": 1, + "description": "The CustomRole", + "name": "CustomRole" + } + ] } }, "databaseName": { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/mongorbac.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/mongorbac.json index 800beb93d309..9741afc9e48f 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/mongorbac.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/mongorbac.json @@ -406,15 +406,27 @@ "description": "A user-friendly name for the Role Definition. Must be unique for the database account." }, "type": { - "type": "int", + "type": "integer", "enum": [ - "BuiltInRole", - "CustomRole" + 0, + 1 ], "description": "Indicates whether the Role Definition was built-in or user created.", "x-ms-enum": { "name": "MongoRoleDefinitionType", - "modelAsString": false + "modelAsString": false, + "values": [ + { + "value": 0, + "description": "The BuiltInRole", + "name": "BuiltInRole" + }, + { + "value": 1, + "description": "The CustomRole", + "name": "CustomRole" + } + ] } }, "databaseName": { From bee811ed762ff2b3fe55eb0031711c7af5d9a708 Mon Sep 17 00:00:00 2001 From: Ashwini Singh Date: Mon, 10 Apr 2023 22:43:06 -0700 Subject: [PATCH 4/5] address gates failure --- .../preview/2022-08-15-preview/mongorbac.json | 1 + .../preview/2022-11-15-preview/mongorbac.json | 1 + .../preview/2023-03-01-preview/mongorbac.json | 1 + .../Microsoft.DocumentDB/stable/2022-08-15/mongorbac.json | 1 + .../Microsoft.DocumentDB/stable/2022-11-15/mongorbac.json | 1 + 5 files changed, 5 insertions(+) diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/mongorbac.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/mongorbac.json index 8f2d482a0935..9a8a45eb166d 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/mongorbac.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/mongorbac.json @@ -407,6 +407,7 @@ }, "type": { "type": "integer", + "format": "int64", "enum": [ 0, 1 diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-11-15-preview/mongorbac.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-11-15-preview/mongorbac.json index 08f6f34ecb1b..47e88ae0b74d 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-11-15-preview/mongorbac.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-11-15-preview/mongorbac.json @@ -407,6 +407,7 @@ }, "type": { "type": "integer", + "format": "int64", "enum": [ 0, 1 diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2023-03-01-preview/mongorbac.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2023-03-01-preview/mongorbac.json index 120490393dbc..d58ba07e507d 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2023-03-01-preview/mongorbac.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2023-03-01-preview/mongorbac.json @@ -407,6 +407,7 @@ }, "type": { "type": "integer", + "format": "int64", "enum": [ 0, 1 diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-08-15/mongorbac.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-08-15/mongorbac.json index 80602625c54f..d55f900d70a2 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-08-15/mongorbac.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-08-15/mongorbac.json @@ -407,6 +407,7 @@ }, "type": { "type": "integer", + "format": "int64", "enum": [ 0, 1 diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/mongorbac.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/mongorbac.json index 9741afc9e48f..763e58057c26 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/mongorbac.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/mongorbac.json @@ -407,6 +407,7 @@ }, "type": { "type": "integer", + "format": "int64", "enum": [ 0, 1 From f8102681fc00b9933cec73ce5285d1f3506ed919 Mon Sep 17 00:00:00 2001 From: Ashwini Singh Date: Mon, 10 Apr 2023 22:50:26 -0700 Subject: [PATCH 5/5] address gate check failure --- .../examples/CosmosDBMongoDBRoleDefinitionCreateUpdate.json | 2 +- .../examples/CosmosDBMongoDBRoleDefinitionGet.json | 2 +- .../examples/CosmosDBMongoDBRoleDefinitionList.json | 2 +- .../examples/CosmosDBMongoDBRoleDefinitionCreateUpdate.json | 2 +- .../examples/CosmosDBMongoDBRoleDefinitionGet.json | 2 +- .../examples/CosmosDBMongoDBRoleDefinitionList.json | 2 +- .../examples/CosmosDBMongoDBRoleDefinitionCreateUpdate.json | 2 +- .../examples/CosmosDBMongoDBRoleDefinitionGet.json | 2 +- .../examples/CosmosDBMongoDBRoleDefinitionList.json | 2 +- .../examples/CosmosDBMongoDBRoleDefinitionCreateUpdate.json | 2 +- .../2022-08-15/examples/CosmosDBMongoDBRoleDefinitionGet.json | 2 +- .../2022-08-15/examples/CosmosDBMongoDBRoleDefinitionList.json | 2 +- .../examples/CosmosDBMongoDBRoleDefinitionCreateUpdate.json | 2 +- .../2022-11-15/examples/CosmosDBMongoDBRoleDefinitionGet.json | 2 +- .../2022-11-15/examples/CosmosDBMongoDBRoleDefinitionList.json | 2 +- 15 files changed, 15 insertions(+), 15 deletions(-) diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBMongoDBRoleDefinitionCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBMongoDBRoleDefinitionCreateUpdate.json index e366acc5350f..2aa08184cd12 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBMongoDBRoleDefinitionCreateUpdate.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBMongoDBRoleDefinitionCreateUpdate.json @@ -38,7 +38,7 @@ "type": "Microsoft.DocumentDB/databaseAccounts/mongoDbRoleDefinitionId", "properties": { "roleName": "myRoleName", - "type": "CustomRole", + "type": 1, "databaseName": "sales", "privileges": [ { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBMongoDBRoleDefinitionGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBMongoDBRoleDefinitionGet.json index 62f9817482ff..fb6ddae6305d 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBMongoDBRoleDefinitionGet.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBMongoDBRoleDefinitionGet.json @@ -15,7 +15,7 @@ "type": "Microsoft.DocumentDB/databaseAccounts/mongodbRoleDefinitions", "properties": { "roleName": "myRoleName", - "type": "CustomRole", + "type": 1, "databaseName": "sales", "privileges": [ { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBMongoDBRoleDefinitionList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBMongoDBRoleDefinitionList.json index ef16a7179551..0dc78f38d6fa 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBMongoDBRoleDefinitionList.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBMongoDBRoleDefinitionList.json @@ -15,7 +15,7 @@ "type": "Microsoft.DocumentDB/databaseAccounts/mongodbRoleDefinitions", "properties": { "roleName": "myRoleName", - "type": "CustomRole", + "type": 1, "databaseName": "sales", "privileges": [ { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-11-15-preview/examples/CosmosDBMongoDBRoleDefinitionCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-11-15-preview/examples/CosmosDBMongoDBRoleDefinitionCreateUpdate.json index f7060c6a4a81..075a064febbc 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-11-15-preview/examples/CosmosDBMongoDBRoleDefinitionCreateUpdate.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-11-15-preview/examples/CosmosDBMongoDBRoleDefinitionCreateUpdate.json @@ -38,7 +38,7 @@ "type": "Microsoft.DocumentDB/databaseAccounts/mongoDbRoleDefinitionId", "properties": { "roleName": "myRoleName", - "type": "CustomRole", + "type": 1, "databaseName": "sales", "privileges": [ { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-11-15-preview/examples/CosmosDBMongoDBRoleDefinitionGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-11-15-preview/examples/CosmosDBMongoDBRoleDefinitionGet.json index ae770a872eb5..56314f08ed43 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-11-15-preview/examples/CosmosDBMongoDBRoleDefinitionGet.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-11-15-preview/examples/CosmosDBMongoDBRoleDefinitionGet.json @@ -15,7 +15,7 @@ "type": "Microsoft.DocumentDB/databaseAccounts/mongodbRoleDefinitions", "properties": { "roleName": "myRoleName", - "type": "CustomRole", + "type": 1, "databaseName": "sales", "privileges": [ { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-11-15-preview/examples/CosmosDBMongoDBRoleDefinitionList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-11-15-preview/examples/CosmosDBMongoDBRoleDefinitionList.json index 730bc6b3810c..0b3f1fb39ecf 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-11-15-preview/examples/CosmosDBMongoDBRoleDefinitionList.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-11-15-preview/examples/CosmosDBMongoDBRoleDefinitionList.json @@ -15,7 +15,7 @@ "type": "Microsoft.DocumentDB/databaseAccounts/mongodbRoleDefinitions", "properties": { "roleName": "myRoleName", - "type": "CustomRole", + "type": 1, "databaseName": "sales", "privileges": [ { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2023-03-01-preview/examples/CosmosDBMongoDBRoleDefinitionCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2023-03-01-preview/examples/CosmosDBMongoDBRoleDefinitionCreateUpdate.json index ca4e6cd6cfce..f3e6f534e80f 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2023-03-01-preview/examples/CosmosDBMongoDBRoleDefinitionCreateUpdate.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2023-03-01-preview/examples/CosmosDBMongoDBRoleDefinitionCreateUpdate.json @@ -38,7 +38,7 @@ "type": "Microsoft.DocumentDB/databaseAccounts/mongoDbRoleDefinitionId", "properties": { "roleName": "myRoleName", - "type": "CustomRole", + "type": 1, "databaseName": "sales", "privileges": [ { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2023-03-01-preview/examples/CosmosDBMongoDBRoleDefinitionGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2023-03-01-preview/examples/CosmosDBMongoDBRoleDefinitionGet.json index 4215339e9a80..931f6bfb652e 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2023-03-01-preview/examples/CosmosDBMongoDBRoleDefinitionGet.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2023-03-01-preview/examples/CosmosDBMongoDBRoleDefinitionGet.json @@ -15,7 +15,7 @@ "type": "Microsoft.DocumentDB/databaseAccounts/mongodbRoleDefinitions", "properties": { "roleName": "myRoleName", - "type": "CustomRole", + "type": 1, "databaseName": "sales", "privileges": [ { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2023-03-01-preview/examples/CosmosDBMongoDBRoleDefinitionList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2023-03-01-preview/examples/CosmosDBMongoDBRoleDefinitionList.json index 98d410fea065..8efc5919d9a4 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2023-03-01-preview/examples/CosmosDBMongoDBRoleDefinitionList.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2023-03-01-preview/examples/CosmosDBMongoDBRoleDefinitionList.json @@ -15,7 +15,7 @@ "type": "Microsoft.DocumentDB/databaseAccounts/mongodbRoleDefinitions", "properties": { "roleName": "myRoleName", - "type": "CustomRole", + "type": 1, "databaseName": "sales", "privileges": [ { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-08-15/examples/CosmosDBMongoDBRoleDefinitionCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-08-15/examples/CosmosDBMongoDBRoleDefinitionCreateUpdate.json index 0ce1c04fbda3..0b54ba2bd82c 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-08-15/examples/CosmosDBMongoDBRoleDefinitionCreateUpdate.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-08-15/examples/CosmosDBMongoDBRoleDefinitionCreateUpdate.json @@ -38,7 +38,7 @@ "type": "Microsoft.DocumentDB/databaseAccounts/mongoDbRoleDefinitionId", "properties": { "roleName": "myRoleName", - "type": "CustomRole", + "type": 1, "databaseName": "sales", "privileges": [ { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-08-15/examples/CosmosDBMongoDBRoleDefinitionGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-08-15/examples/CosmosDBMongoDBRoleDefinitionGet.json index 951811b18b26..6830a213123b 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-08-15/examples/CosmosDBMongoDBRoleDefinitionGet.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-08-15/examples/CosmosDBMongoDBRoleDefinitionGet.json @@ -15,7 +15,7 @@ "type": "Microsoft.DocumentDB/databaseAccounts/mongodbRoleDefinitions", "properties": { "roleName": "myRoleName", - "type": "CustomRole", + "type": 1, "databaseName": "sales", "privileges": [ { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-08-15/examples/CosmosDBMongoDBRoleDefinitionList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-08-15/examples/CosmosDBMongoDBRoleDefinitionList.json index c9cb4dd40aa1..4f2467ff6603 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-08-15/examples/CosmosDBMongoDBRoleDefinitionList.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-08-15/examples/CosmosDBMongoDBRoleDefinitionList.json @@ -15,7 +15,7 @@ "type": "Microsoft.DocumentDB/databaseAccounts/mongodbRoleDefinitions", "properties": { "roleName": "myRoleName", - "type": "CustomRole", + "type": 1, "databaseName": "sales", "privileges": [ { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBMongoDBRoleDefinitionCreateUpdate.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBMongoDBRoleDefinitionCreateUpdate.json index be44dbc85218..429078331507 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBMongoDBRoleDefinitionCreateUpdate.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBMongoDBRoleDefinitionCreateUpdate.json @@ -38,7 +38,7 @@ "type": "Microsoft.DocumentDB/databaseAccounts/mongoDbRoleDefinitionId", "properties": { "roleName": "myRoleName", - "type": "CustomRole", + "type": 1, "databaseName": "sales", "privileges": [ { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBMongoDBRoleDefinitionGet.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBMongoDBRoleDefinitionGet.json index 23f6c4c4d47a..c4f62f7fb0c0 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBMongoDBRoleDefinitionGet.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBMongoDBRoleDefinitionGet.json @@ -15,7 +15,7 @@ "type": "Microsoft.DocumentDB/databaseAccounts/mongodbRoleDefinitions", "properties": { "roleName": "myRoleName", - "type": "CustomRole", + "type": 1, "databaseName": "sales", "privileges": [ { diff --git a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBMongoDBRoleDefinitionList.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBMongoDBRoleDefinitionList.json index bb7fc8d6fea8..5066953f948c 100644 --- a/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBMongoDBRoleDefinitionList.json +++ b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBMongoDBRoleDefinitionList.json @@ -15,7 +15,7 @@ "type": "Microsoft.DocumentDB/databaseAccounts/mongodbRoleDefinitions", "properties": { "roleName": "myRoleName", - "type": "CustomRole", + "type": 1, "databaseName": "sales", "privileges": [ {