diff --git a/specification/recoveryservicesdatareplication/DataReplication.Management/models.tsp b/specification/recoveryservicesdatareplication/DataReplication.Management/models.tsp index f834f80295d6..79ddac81f6b4 100644 --- a/specification/recoveryservicesdatareplication/DataReplication.Management/models.tsp +++ b/specification/recoveryservicesdatareplication/DataReplication.Management/models.tsp @@ -1400,12 +1400,23 @@ model JobModelCustomProperties { /** * Gets or sets any custom properties of the affected object. */ - #suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" @visibility(Lifecycle.Read) - affectedObjectDetails?: { - description?: string; - type?: "object"; - }; + affectedObjectDetails?: AffectedObjectDetails; +} + +/** + * Details of the affected object. + */ +model AffectedObjectDetails { + /** + * Description of the affected object details. + */ + description?: string; + + /** + * Type of the affected object details. + */ + type?: "object"; } /** diff --git a/specification/recoveryservicesdatareplication/resource-manager/Microsoft.DataReplication/stable/2024-09-01/recoveryservicesdatareplication.json b/specification/recoveryservicesdatareplication/resource-manager/Microsoft.DataReplication/stable/2024-09-01/recoveryservicesdatareplication.json index ea767edda427..9cc789459843 100644 --- a/specification/recoveryservicesdatareplication/resource-manager/Microsoft.DataReplication/stable/2024-09-01/recoveryservicesdatareplication.json +++ b/specification/recoveryservicesdatareplication/resource-manager/Microsoft.DataReplication/stable/2024-09-01/recoveryservicesdatareplication.json @@ -3407,6 +3407,26 @@ } }, "definitions": { + "AffectedObjectDetails": { + "type": "object", + "description": "Details of the affected object.", + "properties": { + "description": { + "type": "string", + "description": "Description of the affected object details." + }, + "type": { + "type": "string", + "description": "Type of the affected object details.", + "enum": [ + "object" + ], + "x-ms-enum": { + "modelAsString": false + } + } + } + }, "AzStackHCIClusterProperties": { "type": "object", "description": "AzStackHCI cluster properties.", @@ -5189,22 +5209,8 @@ "description": "Discriminator property for JobModelCustomProperties." }, "affectedObjectDetails": { - "type": "object", + "$ref": "#/definitions/AffectedObjectDetails", "description": "Gets or sets any custom properties of the affected object.", - "properties": { - "description": { - "type": "string" - }, - "type": { - "type": "string", - "enum": [ - "object" - ], - "x-ms-enum": { - "modelAsString": false - } - } - }, "readOnly": true } },