diff --git a/schemas/2020-08-01-preview/Microsoft.Sql.json b/schemas/2020-08-01-preview/Microsoft.Sql.json index 71142a2298..37dda488f1 100644 --- a/schemas/2020-08-01-preview/Microsoft.Sql.json +++ b/schemas/2020-08-01-preview/Microsoft.Sql.json @@ -1650,63 +1650,25 @@ "servers_databases_extensions": { "type": "object", "properties": { - "administratorLogin": { - "type": "string", - "description": "Administrator login name." - }, - "administratorLoginPassword": { - "type": "string", - "description": "Administrator login password." - }, "apiVersion": { "type": "string", "enum": [ "2020-08-01-preview" ] }, - "authenticationType": { - "type": "string", - "description": "Authentication type." - }, "name": { "type": "string" }, - "operationMode": { + "properties": { "oneOf": [ { - "type": "string", - "enum": [ - "PolybaseImport" - ] + "$ref": "#/definitions/DatabaseExtensionsProperties" }, { "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "Operation Mode." - }, - "storageKey": { - "type": "string", - "description": "Storage key." - }, - "storageKeyType": { - "oneOf": [ - { - "type": "string", - "enum": [ - "SharedAccessKey", - "StorageAccessKey" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Storage key type." - }, - "storageUri": { - "type": "string", - "description": "Storage Uri." + "description": "Contains the database information after successful export." }, "type": { "type": "string", @@ -1718,10 +1680,7 @@ "required": [ "apiVersion", "name", - "operationMode", - "storageKey", - "storageKeyType", - "storageUri", + "properties", "type" ], "description": "Microsoft.Sql/servers/databases/extensions" @@ -3275,6 +3234,55 @@ ], "description": "Properties of a database blob auditing policy." }, + "DatabaseExtensionsProperties": { + "type": "object", + "properties": { + "operationMode": { + "oneOf": [ + { + "type": "string", + "enum": [ + "PolybaseImport" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Operation Mode." + }, + "storageKey": { + "type": "string", + "description": "Storage key." + }, + "storageKeyType": { + "oneOf": [ + { + "type": "string", + "enum": [ + "SharedAccessKey", + "StorageAccessKey" + ] + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], + "description": "Storage key type." + }, + "storageUri": { + "type": "string", + "description": "Storage Uri." + } + }, + "required": [ + "operationMode", + "storageKey", + "storageKeyType", + "storageUri" + ], + "description": "Contains the database information after successful export." + }, "DatabaseProperties": { "type": "object", "properties": { @@ -6744,63 +6752,25 @@ "servers_databases_extensions_childResource": { "type": "object", "properties": { - "administratorLogin": { - "type": "string", - "description": "Administrator login name." - }, - "administratorLoginPassword": { - "type": "string", - "description": "Administrator login password." - }, "apiVersion": { "type": "string", "enum": [ "2020-08-01-preview" ] }, - "authenticationType": { - "type": "string", - "description": "Authentication type." - }, "name": { "type": "string" }, - "operationMode": { - "oneOf": [ - { - "type": "string", - "enum": [ - "PolybaseImport" - ] - }, - { - "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" - } - ], - "description": "Operation Mode." - }, - "storageKey": { - "type": "string", - "description": "Storage key." - }, - "storageKeyType": { + "properties": { "oneOf": [ { - "type": "string", - "enum": [ - "SharedAccessKey", - "StorageAccessKey" - ] + "$ref": "#/definitions/DatabaseExtensionsProperties" }, { "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" } ], - "description": "Storage key type." - }, - "storageUri": { - "type": "string", - "description": "Storage Uri." + "description": "Contains the database information after successful export." }, "type": { "type": "string", @@ -6812,10 +6782,7 @@ "required": [ "apiVersion", "name", - "operationMode", - "storageKey", - "storageKeyType", - "storageUri", + "properties", "type" ], "description": "Microsoft.Sql/servers/databases/extensions"