Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,16 @@ interface VirtualHardDisks {
>;

@doc("The operation to update a virtual hard disk.")
update is ArmTagsPatchAsync<VirtualHardDisk>;
@removed(Versions.v2025_02_01_preview)
@sharedRoute
@renamedFrom(Versions.v2025_02_01_preview, "update")
updateOld is ArmTagsPatchAsync<VirtualHardDisk>;

@doc("The operation to update a virtual hard disk.")
@parameterVisibility
@added(Versions.v2025_02_01_preview)
@sharedRoute
update is ArmCustomPatchAsync<VirtualHardDisk, VirtualHardDisksUpdateRequest>;

@doc("The operation to delete a virtual hard disk.")
delete is ArmResourceDeleteWithoutOkAsync<VirtualHardDisk>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1267,6 +1267,18 @@ model VirtualHardDisksUpdateRequest {
#suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "existing API"
@doc("Resource tags")
tags?: Record<string>;

@added(Versions.v2025_02_01_preview)
@doc("Defines the resource properties for the update.")
properties?: VirtualHardDisksUpdateProperties;
}

@added(Versions.v2025_02_01_preview)
@doc("Defines the resource properties for the update.")
model VirtualHardDisksUpdateProperties {
#suppress "@azure-tools/typespec-azure-core/casing-style" "GB is a short form."
@doc("Size of the disk in GB")
diskSizeGB?: int64;
}

@added(Versions.v2024_05_01_preview)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3344,7 +3344,7 @@
"description": "The resource properties to be updated.",
"required": true,
"schema": {
"$ref": "#/definitions/VirtualHardDiskTagsUpdate"
"$ref": "#/definitions/VirtualHardDisksUpdateRequest"
}
}
],
Expand Down Expand Up @@ -6464,19 +6464,6 @@
}
}
},
"VirtualHardDiskTagsUpdate": {
"type": "object",
"description": "The type used for updating tags in VirtualHardDisk resources.",
"properties": {
"tags": {
"type": "object",
"description": "Resource tags.",
"additionalProperties": {
"type": "string"
}
}
}
},
"VirtualHardDiskUploadRequest": {
"type": "object",
"description": "Request for uploading virtual hard disk.",
Expand Down Expand Up @@ -6544,6 +6531,17 @@
}
}
},
"VirtualHardDisksUpdateProperties": {
"type": "object",
"description": "Defines the resource properties for the update.",
"properties": {
"diskSizeGB": {
"type": "integer",
"format": "int64",
"description": "Size of the disk in GB"
}
}
},
"VirtualHardDisksUpdateRequest": {
"type": "object",
"description": "The virtual hard disk resource patch definition.",
Expand All @@ -6554,6 +6552,10 @@
"additionalProperties": {
"type": "string"
}
},
"properties": {
"$ref": "#/definitions/VirtualHardDisksUpdateProperties",
"description": "Defines the resource properties for the update."
}
}
},
Expand Down