Skip to content

Commit

Permalink
Adding examples to VirtualMachineImages_ListWithProperties (#32788)
Browse files Browse the repository at this point in the history
* comment

* Add x-ms-enum and x-ms-pageable properties

* adding type VirtualMachineImagesWithPropertiesListResult

* adding examples

* fixing error

* fix names

* prettier fix

* Update VM image properties in JSON example

* Update VM image properties in JSON file

* Fix typo in JSON property value.

---------

Co-authored-by: Theodore Chang <[email protected]>
  • Loading branch information
haagha and grizzlytheodore authored Feb 25, 2025
1 parent 3acaf0b commit 1233595
Show file tree
Hide file tree
Showing 3 changed files with 97 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
{
"title": "VirtualMachineImages_ListWithProperties_MaximumSet",
"operationId": "VirtualMachineImages_ListWithProperties",
"parameters": {
"location": "eastus",
"publisherName": "MicrosoftWindowsServer",
"offer": "WindowsServer",
"skus": "2022-datacenter-azure-edition",
"$expand": "Properties",
"$top": 4,
"$orderby": "aa",
"api-version": "2024-11-01",
"subscriptionId": "{subscription-id}"
},
"responses": {
"200": {
"body": {
"value": [
{
"properties": {
"plan": {
"publisher": "MicrosoftWindowsServer",
"name": "aaaaaaaaa",
"product": "aaaaaaaaaaaaaa"
},
"osDiskImage": {
"operatingSystem": "Windows"
},
"dataDiskImages": [
{
"lun": 17
}
],
"automaticOSUpgradeProperties": {
"automaticOSUpgradeSupported": true
},
"hyperVGeneration": "V1",
"disallowed": {
"vmDiskType": "None"
},
"features": [
{
"name": "aaaaaaaaaaaaaaaaaaaaa",
"value": "aaaaaaaaaaaaaaaaaaaa"
}
],
"imageDeprecationStatus": {
"imageState": "ScheduledForDeprecation",
"scheduledDeprecationTime": "2023-01-13T00:00:00+00:00",
"alternativeOption": {
"type": "Offer",
"value": "aaaaaaa"
}
},
"architecture": "x64"
},
"name": "aaaaaaaaa",
"location": "aaaaa",
"tags": {},
"extendedLocation": {
"name": "aaaaaaaaaaaaaaaaaaaaa",
"type": "EdgeZone"
},
"id": "aaaaaaaaaaa"
}
],
"nextLink": "aaaa"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"title": "VirtualMachineImages_ListWithProperties_MinimumSet",
"operationId": "VirtualMachineImages_ListWithProperties",
"parameters": {
"location": "eastus",
"publisherName": "MicrosoftWindowsServer",
"offer": "WindowsServer",
"skus": "2022-datacenter-azure-edition",
"$expand": "Properties",
"api-version": "2024-11-01",
"subscriptionId": "{subscription-id}"
},
"responses": {
"200": {
"body": {}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -872,6 +872,14 @@
},
"x-ms-pageable": {
"nextLinkName": "nextLink"
},
"x-ms-examples": {
"VirtualMachineImages_ListWithProperties_MaximumSet": {
"$ref": "./examples/virtualMachineImageExamples/VirtualMachineImages_ListWithProperties_MaximumSet_Gen.json"
},
"VirtualMachineImages_ListWithProperties_MinimumSet": {
"$ref": "./examples/virtualMachineImageExamples/VirtualMachineImages_ListWithProperties_MinimumSet_Gen.json"
}
}
}
}
Expand Down

0 comments on commit 1233595

Please sign in to comment.