|
1432 | 1432 | } |
1433 | 1433 | }, |
1434 | 1434 | "StorageTarget": { |
1435 | | - "description": "A storage system being cached by a Cache.", |
1436 | 1435 | "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.", |
1437 | 1452 | "properties": { |
1438 | 1453 | "name": { |
1439 | 1454 | "description": "Name of the Storage Target.", |
|
1449 | 1464 | "description": "Type of the Storage Target; Microsoft.StorageCache/Cache/StorageTarget", |
1450 | 1465 | "readOnly": true, |
1451 | 1466 | "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 | | - } |
1511 | 1467 | } |
1512 | 1468 | }, |
1513 | 1469 | "x-ms-azure-resource": true |
1514 | 1470 | }, |
| 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 | + }, |
1515 | 1560 | "NamespaceJunction": { |
1516 | 1561 | "description": "A namespace junction.", |
1517 | 1562 | "type": "object", |
|
0 commit comments