Skip to content

Commit 3ca81d4

Browse files
committed
Fix discriminator and add the sub-types
1 parent 67ee91c commit 3ca81d4

File tree

1 file changed

+105
-60
lines changed
  • specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2019-11-01

1 file changed

+105
-60
lines changed

specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2019-11-01/storagecache.json

Lines changed: 105 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -1432,8 +1432,23 @@
14321432
}
14331433
},
14341434
"StorageTarget": {
1435-
"description": "A storage system being cached by a Cache.",
14361435
"type": "object",
1436+
"description": "Type of the Storage Target.",
1437+
"allOf": [
1438+
{
1439+
"$ref": "#/definitions/StorageTargetResource"
1440+
}
1441+
],
1442+
"properties": {
1443+
"properties": {
1444+
"x-ms-client-flatten": true,
1445+
"description": "StorageTarget properties",
1446+
"$ref": "#/definitions/StorageTargetProperties"
1447+
}
1448+
}
1449+
},
1450+
"StorageTargetResource": {
1451+
"description": "Resource used by a Cache.",
14371452
"properties": {
14381453
"name": {
14391454
"description": "Name of the Storage Target.",
@@ -1449,69 +1464,99 @@
14491464
"description": "Type of the Storage Target; Microsoft.StorageCache/Cache/StorageTarget",
14501465
"readOnly": true,
14511466
"type": "string"
1452-
},
1453-
"properties": {
1454-
"x-ms-client-flatten": true,
1455-
"description": "Properties of the Storage Target.",
1456-
"type": "object",
1457-
"discriminator": "targetType",
1458-
"required": [
1459-
"targetType"
1460-
],
1461-
"properties": {
1462-
"junctions": {
1463-
"description": "List of Cache namespace junctions to target for namespace associations.",
1464-
"type": "array",
1465-
"items": {
1466-
"$ref": "#/definitions/NamespaceJunction"
1467-
}
1468-
},
1469-
"targetType": {
1470-
"description": "Type of the Storage Target.",
1471-
"enum": [
1472-
"nfs3",
1473-
"clfs",
1474-
"unknown"
1475-
],
1476-
"x-ms-enum": {
1477-
"name": "StorageTargetType",
1478-
"modelAsString": true
1479-
},
1480-
"type": "string"
1481-
},
1482-
"provisioningState": {
1483-
"description": "ARM provisioning state, see https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#provisioningstate-property",
1484-
"enum": [
1485-
"Succeeded",
1486-
"Failed",
1487-
"Cancelled",
1488-
"Creating",
1489-
"Deleting",
1490-
"Updating"
1491-
],
1492-
"x-ms-enum": {
1493-
"name": "ProvisioningStateType",
1494-
"modelAsString": true
1495-
},
1496-
"type": "string"
1497-
},
1498-
"nfs3": {
1499-
"description": "Properties when targetType is nfs3.",
1500-
"$ref": "#/definitions/Nfs3Target"
1501-
},
1502-
"clfs": {
1503-
"description": "Properties when targetType is clfs.",
1504-
"$ref": "#/definitions/ClfsTarget"
1505-
},
1506-
"unknown": {
1507-
"description": "Properties when targetType is unknown.",
1508-
"$ref": "#/definitions/UnknownTarget"
1509-
}
1510-
}
15111467
}
15121468
},
15131469
"x-ms-azure-resource": true
15141470
},
1471+
"StorageTargetProperties": {
1472+
"x-ms-client-flatten": true,
1473+
"type": "object",
1474+
"description": "Properties of the Storage Target.",
1475+
"discriminator": "targetType",
1476+
"required": [
1477+
"targetType"
1478+
],
1479+
"properties": {
1480+
"junctions": {
1481+
"description": "List of Cache namespace junctions to target for namespace associations.",
1482+
"type": "array",
1483+
"items": {
1484+
"$ref": "#/definitions/NamespaceJunction"
1485+
}
1486+
},
1487+
"targetType": {
1488+
"description": "Type of the Storage Target.",
1489+
"enum": [
1490+
"nfs3",
1491+
"clfs",
1492+
"unknown"
1493+
],
1494+
"x-ms-enum": {
1495+
"name": "StorageTargetType",
1496+
"modelAsString": true
1497+
},
1498+
"type": "string"
1499+
},
1500+
"provisioningState": {
1501+
"description": "ARM provisioning state, see https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#provisioningstate-property",
1502+
"enum": [
1503+
"Succeeded",
1504+
"Failed",
1505+
"Cancelled",
1506+
"Creating",
1507+
"Deleting",
1508+
"Updating"
1509+
],
1510+
"x-ms-enum": {
1511+
"name": "ProvisioningStateType",
1512+
"modelAsString": true
1513+
},
1514+
"type": "string"
1515+
},
1516+
"nfs3": {
1517+
"description": "Properties when targetType is nfs3.",
1518+
"$ref": "#/definitions/Nfs3Target"
1519+
},
1520+
"clfs": {
1521+
"description": "Properties when targetType is clfs.",
1522+
"$ref": "#/definitions/ClfsTarget"
1523+
},
1524+
"unknown": {
1525+
"description": "Properties when targetType is unknown.",
1526+
"$ref": "#/definitions/UnknownTarget"
1527+
}
1528+
}
1529+
},
1530+
"Nfs3TargetProperties": {
1531+
"description": "An NFSv3 mount point for use as a Storage Target.",
1532+
"type": "object",
1533+
"x-ms-discriminator-value": "nfs3",
1534+
"allOf": [
1535+
{
1536+
"$ref": "#/definitions/StorageTargetProperties"
1537+
}
1538+
]
1539+
},
1540+
"ClfsTargetProperties": {
1541+
"description": "Storage container for use as a CLFS Storage Target.",
1542+
"type": "object",
1543+
"x-ms-discriminator-value": "clfs",
1544+
"allOf": [
1545+
{
1546+
"$ref": "#/definitions/StorageTargetProperties"
1547+
}
1548+
]
1549+
},
1550+
"UnknownTargetProperties": {
1551+
"description": "Storage container for use as an Unknown Storage Target.",
1552+
"type": "object",
1553+
"x-ms-discriminator-value": "unknown",
1554+
"allOf": [
1555+
{
1556+
"$ref": "#/definitions/StorageTargetProperties"
1557+
}
1558+
]
1559+
},
15151560
"NamespaceJunction": {
15161561
"description": "A namespace junction.",
15171562
"type": "object",

0 commit comments

Comments
 (0)