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-08-15-preview/mongorbac.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/mongorbac.json index d54d37477a2a..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 @@ -406,15 +406,28 @@ "description": "A user-friendly name for the Role Definition. Must be unique for the database account." }, "type": { - "type": "string", + "type": "integer", + "format": "int64", "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/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/2022-11-15-preview/mongorbac.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-11-15-preview/mongorbac.json index e51e048f093b..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 @@ -406,15 +406,28 @@ "description": "A user-friendly name for the Role Definition. Must be unique for the database account." }, "type": { - "type": "string", + "type": "integer", + "format": "int64", "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/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/preview/2023-03-01-preview/mongorbac.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2023-03-01-preview/mongorbac.json index ed59bf2c730a..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 @@ -406,15 +406,28 @@ "description": "A user-friendly name for the Role Definition. Must be unique for the database account." }, "type": { - "type": "string", + "type": "integer", + "format": "int64", "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-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-08-15/mongorbac.json b/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-08-15/mongorbac.json index 698de3d93d1a..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 @@ -406,15 +406,28 @@ "description": "A user-friendly name for the Role Definition. Must be unique for the database account." }, "type": { - "type": "string", + "type": "integer", + "format": "int64", "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/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": [ { 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..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 @@ -406,15 +406,28 @@ "description": "A user-friendly name for the Role Definition. Must be unique for the database account." }, "type": { - "type": "string", + "type": "integer", + "format": "int64", "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": {