From 1e9e4203ed4e13174fce675c776fc4b56a606681 Mon Sep 17 00:00:00 2001 From: Patricia Huang <69329771+pathuang-sia@users.noreply.github.com> Date: Mon, 6 Jun 2022 18:49:44 -0700 Subject: [PATCH] [Microsoft.AzureStackHCI] 2021-09-01-preview update (#7147) * GalleryImage, MarketplaceGalleryImage, VirtualMachine, and VirtualHardDisk 2021-09-01-preview changes (#6751) * initial commit * syntax error fix * move galleryimageversionproperties under galleryimageproperties * add galleryimageversion as child of galleryimageproperties * update create/get galleryimage json example * remove version readonly and fix version description * add imagesource and fix imagepath example * fix getgalleryimage.json * pending to inprogress * mark secret x-ms-secret * fix osdisk uri to id in vms * update to local * create marketplacegalleryimages * fix file name * filenmae fix * file rename * file rename * add missing exampl.es * add enum * update vm and vhd examples * add num to galleryimages as well * fix example: remove imagepath from response and fix sizeInMB * update vhd example response with other properties * fix vm create vlow * fix example imagereference * fix osdisk camel case * remove securityprofile from response * add readonly to sizeInMB * update disksizeBytes and readonly to sizeInMB * update missed diskSizeBytes in examples * fix camelcase * remove osprofile from response and request when osdisk is specified in vm put * Add signature, set proper status properties to galleryImages & marketplaceGalleryImages (#6989) * add signature, set proper status properties * fix semantics * fix status for all resources and remove signature * remove imagePath from marketplacegalleryimage example * fix status name * add readonly to status * add x-ms-client-flatten, and align errorMessage/errorCode description * update property description * add powerstate to virtualmachinestatus * add provisioningstate enum and remove readonly for galleryimageversion.name * Sync azurestackhci 2021-07 changes to 2021-09 (#7106) * sync marketplacegalleryimage descriptions * Add to custom words and fix example * fix updatemarketplacegalleryimage.json * add marketplaceGalleryImages to readme * update all references to v3 * Revert "update all references to v3" This reverts commit 186589ff6ab6f0d3b5257c2ebe8b078e1f29052a. * npm run prettier * User/vishalk/storage container rpsaasdev (#7084) * swagger chanfes * added availablesize and containersize in status Co-authored-by: Vishal Kadam * V3 to v2 * fix typo * Revert "fix typo" This reverts commit 8ea4035c868811dedcf3d7db17cfb9decb3814f9. * Revert "V3 to v2" This reverts commit c04f9f7254e28485bfe2fa6a9fbcf9cd921d518e. * convert all to v3 * v3 to v2, add ListOperationByCluster example * linter feedback * more fix based on linter feedback * fix breaking change errors * continue fixing breaking change * User/vishalk/storage container (#5953) * updated VHD object * updated storage container swagger * added available size property * updated description of path Co-authored-by: Vishal Kadam * Add canceled to provisioningState enum Co-authored-by: Arka Co-authored-by: vishal-kadam <33834843+vishal-kadam@users.noreply.github.com> Co-authored-by: Vishal Kadam --- custom-words.txt | 5 + .../DeleteMarketplaceGalleryImage.json | 12 + .../examples/GetMarketplaceGalleryImage.json | 54 ++ ...arketplaceGalleryImageByResourceGroup.json | 57 ++ ...MarketplaceGalleryImageBySubscription.json | 56 ++ .../examples/ListOperationByCluster.json | 13 + .../examples/PutMarketplaceGalleryImage.json | 119 ++++ .../PutVirtualMachineWithGalleryImage.json | 116 ++++ ...ualMachineWithMarketplaceGalleryImage.json | 116 ++++ .../examples/PutVirtualMachineWithOsDisk.json | 103 +++ .../UpdateMarketplaceGalleryImage.json | 109 ++++ .../marketplaceGalleryImages.json | 587 ++++++++++++++++++ .../2020-08-08-preview/delegatedSubnets.json | 18 +- .../stable/2021-03-15/operations.json | 5 + 14 files changed, 1367 insertions(+), 3 deletions(-) create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-09-01-preview/examples/DeleteMarketplaceGalleryImage.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-09-01-preview/examples/GetMarketplaceGalleryImage.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-09-01-preview/examples/ListMarketplaceGalleryImageByResourceGroup.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-09-01-preview/examples/ListMarketplaceGalleryImageBySubscription.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-09-01-preview/examples/ListOperationByCluster.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-09-01-preview/examples/PutMarketplaceGalleryImage.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-09-01-preview/examples/PutVirtualMachineWithGalleryImage.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-09-01-preview/examples/PutVirtualMachineWithMarketplaceGalleryImage.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-09-01-preview/examples/PutVirtualMachineWithOsDisk.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-09-01-preview/examples/UpdateMarketplaceGalleryImage.json create mode 100644 specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-09-01-preview/marketplaceGalleryImages.json diff --git a/custom-words.txt b/custom-words.txt index 60acbf5c77ef..40edb8b07235 100644 --- a/custom-words.txt +++ b/custom-words.txt @@ -1251,11 +1251,16 @@ mariadb Marketo marketplaceagreementsapi <<<<<<< HEAD +<<<<<<< HEAD marketplacecatalog ======= marketplacegalleryimage marketplacegalleryimages >>>>>>> 858f624c15... [Microsoft.AzureStackHCI] 2021-09-01-preview update (#7147) +======= +marketplacegalleryimage +marketplacegalleryimages +>>>>>>> 858f624c15... [Microsoft.AzureStackHCI] 2021-09-01-preview update (#7147) marketplaceordering maxclients maxcoordinates diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-09-01-preview/examples/DeleteMarketplaceGalleryImage.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-09-01-preview/examples/DeleteMarketplaceGalleryImage.json new file mode 100644 index 000000000000..f11eb04b81ab --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-09-01-preview/examples/DeleteMarketplaceGalleryImage.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "marketplacegalleryimagesName": "test-marketplace-gallery-image", + "api-version": "2021-09-01-preview" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-09-01-preview/examples/GetMarketplaceGalleryImage.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-09-01-preview/examples/GetMarketplaceGalleryImage.json new file mode 100644 index 000000000000..4c9a0d980eb4 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-09-01-preview/examples/GetMarketplaceGalleryImage.json @@ -0,0 +1,54 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "marketplacegalleryimagesName": "test-marketplace-gallery-image", + "api-version": "2021-09-01-preview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/marketplacegalleryimages/test-marketplace-gallery-image", + "name": "test-marketplace-gallery-image", + "type": "Microsoft.AzureStackHCI/marketplacegalleryimages", + "location": "West US2", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "properties": { + "provisioningState": "Accepted", + "containerName": "Default_Container", + "osType": "Windows", + "cloudInitDataSource": "NoCloud", + "hyperVGeneration": "V1", + "identifier": { + "publisher": "myPublisherName", + "offer": "myOfferName", + "sku": "mySkuName" + }, + "version": { + "name": "1.0.0", + "properties": { + "storageProfile": { + "osDiskImage": { + "sizeInMB": 30270 + } + } + } + }, + "status": { + "provisioningStatus": { + "operationId": "79cfc696-44f5-4a68-a620-21850f7e9fb0", + "status": "Succeeded" + }, + "progressPercentage": 100, + "downloadStatus": { + "downloadSizeInMB": 9383 + } + } + } + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-09-01-preview/examples/ListMarketplaceGalleryImageByResourceGroup.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-09-01-preview/examples/ListMarketplaceGalleryImageByResourceGroup.json new file mode 100644 index 000000000000..20c4caad664d --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-09-01-preview/examples/ListMarketplaceGalleryImageByResourceGroup.json @@ -0,0 +1,57 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "api-version": "2021-09-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/marketplacegalleryimages/test-marketplace-gallery-image", + "name": "test-marketplace-gallery-image", + "type": "Microsoft.AzureStackHCI/marketplacegalleryimages", + "location": "West US2", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "properties": { + "provisioningState": "Accepted", + "containerName": "Default_Container", + "osType": "Windows", + "cloudInitDataSource": "Azure", + "hyperVGeneration": "V1", + "identifier": { + "publisher": "myPublisherName", + "offer": "myOfferName", + "sku": "mySkuName" + }, + "version": { + "name": "1.0.0", + "properties": { + "storageProfile": { + "osDiskImage": { + "sizeInMB": 30270 + } + } + } + }, + "status": { + "provisioningStatus": { + "operationId": "79cfc696-44f5-4a68-a620-21850f7e9fb0", + "status": "Succeeded" + }, + "progressPercentage": 100, + "downloadStatus": { + "downloadSizeInMB": 9383 + } + } + } + } + ] + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-09-01-preview/examples/ListMarketplaceGalleryImageBySubscription.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-09-01-preview/examples/ListMarketplaceGalleryImageBySubscription.json new file mode 100644 index 000000000000..812bdeec84f9 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-09-01-preview/examples/ListMarketplaceGalleryImageBySubscription.json @@ -0,0 +1,56 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "api-version": "2021-09-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/marketplacegalleryimages/test-marketplace-gallery-image", + "name": "test-marketplace-gallery-image", + "type": "Microsoft.AzureStackHCI/marketplacegalleryimages", + "location": "West US2", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "properties": { + "provisioningState": "Accepted", + "containerName": "Default_Container", + "osType": "Windows", + "cloudInitDataSource": "Azure", + "hyperVGeneration": "V1", + "identifier": { + "publisher": "myPublisherName", + "offer": "myOfferName", + "sku": "mySkuName" + }, + "version": { + "name": "1.0.0", + "properties": { + "storageProfile": { + "osDiskImage": { + "sizeInMB": 30270 + } + } + } + }, + "status": { + "provisioningStatus": { + "operationId": "79cfc696-44f5-4a68-a620-21850f7e9fb0", + "status": "Succeeded" + }, + "progressPercentage": 100, + "downloadStatus": { + "downloadSizeInMB": 9383 + } + } + } + } + ] + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-09-01-preview/examples/ListOperationByCluster.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-09-01-preview/examples/ListOperationByCluster.json new file mode 100644 index 000000000000..1c523bf7b0d7 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-09-01-preview/examples/ListOperationByCluster.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "clusterName": "myCluster", + "api-version": "2021-09-01-preview" + }, + "responses": { + "200": { + "body": {} + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-09-01-preview/examples/PutMarketplaceGalleryImage.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-09-01-preview/examples/PutMarketplaceGalleryImage.json new file mode 100644 index 000000000000..aa613499731d --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-09-01-preview/examples/PutMarketplaceGalleryImage.json @@ -0,0 +1,119 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "marketplacegalleryimagesName": "test-marketplace-gallery-image", + "api-version": "2021-09-01-preview", + "marketplacegalleryimages": { + "location": "West US2", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "properties": { + "containerName": "Default_Container", + "osType": "Windows", + "cloudInitDataSource": "Azure", + "hyperVGeneration": "V1", + "identifier": { + "publisher": "myPublisherName", + "offer": "myOfferName", + "sku": "mySkuName" + }, + "version": { + "name": "1.0.0" + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/marketplacegalleryimages/test-marketplace-gallery-image", + "name": "test-marketplace-gallery-image", + "type": "Microsoft.AzureStackHCI/marketplacegalleryimages", + "location": "West US2", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "properties": { + "containerName": "Default_Container", + "osType": "Windows", + "cloudInitDataSource": "Azure", + "hyperVGeneration": "V1", + "identifier": { + "publisher": "myPublisherName", + "offer": "myOfferName", + "sku": "mySkuName" + }, + "version": { + "name": "1.0.0", + "properties": { + "storageProfile": { + "osDiskImage": { + "sizeInMB": 30270 + } + } + } + }, + "status": { + "provisioningStatus": { + "operationId": "79cfc696-44f5-4a68-a620-21850f7e9fb0", + "status": "InProgress" + }, + "progressPercentage": 0, + "downloadStatus": { + "downloadSizeInMB": 9383 + } + }, + "provisioningState": "Accepted" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/marketplacegalleryimages/test-marketplace-gallery-image", + "name": "test-marketplace-gallery-image", + "type": "Microsoft.AzureStackHCI/marketplacegalleryimages", + "location": "West US2", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "properties": { + "containerName": "Default_Container", + "osType": "Windows", + "cloudInitDataSource": "Azure", + "hyperVGeneration": "V1", + "identifier": { + "publisher": "myPublisherName", + "offer": "myOfferName", + "sku": "mySkuName" + }, + "version": { + "name": "1.0.0", + "properties": { + "storageProfile": { + "osDiskImage": { + "sizeInMB": 30270 + } + } + } + }, + "status": { + "provisioningStatus": { + "operationId": "79cfc696-44f5-4a68-a620-21850f7e9fb0", + "status": "Succeeded" + }, + "progressPercentage": 100, + "downloadStatus": { + "downloadSizeInMB": 9383 + } + }, + "provisioningState": "Creating" + } + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-09-01-preview/examples/PutVirtualMachineWithGalleryImage.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-09-01-preview/examples/PutVirtualMachineWithGalleryImage.json new file mode 100644 index 000000000000..685740d05098 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-09-01-preview/examples/PutVirtualMachineWithGalleryImage.json @@ -0,0 +1,116 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "virtualmachinesName": "test-vm", + "api-version": "2021-09-01-preview", + "virtualmachines": { + "location": "West US2", + "extendedLocation": { + "type": "CustomLocation", + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location" + }, + "properties": { + "storageProfile": { + "imageReference": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryimages/test-gallery-image" + }, + "vmConfigContainerName": "Default_Container" + }, + "hardwareProfile": { + "vmSize": "Default" + }, + "osProfile": { + "computerName": "luamaster", + "adminUsername": "localadmin", + "adminPassword": "password" + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "test-nic" + } + ] + }, + "securityProfile": { + "enableTPM": true, + "uefiSettings": { + "secureBootEnabled": true + } + } + } + } + }, + "responses": { + "200": { + "body": { + "location": "West US2", + "extendedLocation": { + "type": "CustomLocation", + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location" + }, + "properties": { + "storageProfile": { + "imageReference": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryimages/test-gallery-image" + }, + "vmConfigContainerName": "Default_Container" + }, + "hardwareProfile": { + "vmSize": "Default" + }, + "osProfile": { + "computerName": "luamaster", + "adminUsername": "localadmin" + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "test-nic" + } + ] + }, + "securityProfile": { + "enableTPM": true, + "uefiSettings": { + "secureBootEnabled": true + } + }, + "provisioningState": "Accepted" + } + } + }, + "201": { + "body": { + "location": "West US2", + "extendedLocation": { + "type": "CustomLocation", + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location" + }, + "properties": { + "storageProfile": { + "imageReference": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryimages/test-gallery-image" + }, + "vmConfigContainerName": "Default_Container" + }, + "hardwareProfile": { + "vmSize": "Default" + }, + "osProfile": { + "computerName": "luamaster", + "adminUsername": "localadmin" + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "test-nic" + } + ] + }, + "provisioningState": "created" + } + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-09-01-preview/examples/PutVirtualMachineWithMarketplaceGalleryImage.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-09-01-preview/examples/PutVirtualMachineWithMarketplaceGalleryImage.json new file mode 100644 index 000000000000..4b87ba21d859 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-09-01-preview/examples/PutVirtualMachineWithMarketplaceGalleryImage.json @@ -0,0 +1,116 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "virtualmachinesName": "test-vm", + "api-version": "2021-09-01-preview", + "virtualmachines": { + "location": "West US2", + "extendedLocation": { + "type": "CustomLocation", + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location" + }, + "properties": { + "storageProfile": { + "imageReference": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/marketplacegalleryimages/test-marketplace-gallery-image" + }, + "vmConfigContainerName": "Default_Container" + }, + "hardwareProfile": { + "vmSize": "Default" + }, + "osProfile": { + "computerName": "luamaster", + "adminUsername": "localadmin", + "adminPassword": "password" + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "test-nic" + } + ] + }, + "securityProfile": { + "enableTPM": true, + "uefiSettings": { + "secureBootEnabled": true + } + } + } + } + }, + "responses": { + "200": { + "body": { + "location": "West US2", + "extendedLocation": { + "type": "CustomLocation", + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location" + }, + "properties": { + "storageProfile": { + "imageReference": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/marketplacegalleryimages/test-marketplace-gallery-image" + }, + "vmConfigContainerName": "Default_Container" + }, + "hardwareProfile": { + "vmSize": "Default" + }, + "osProfile": { + "computerName": "luamaster", + "adminUsername": "localadmin" + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "test-nic" + } + ] + }, + "securityProfile": { + "enableTPM": true, + "uefiSettings": { + "secureBootEnabled": true + } + }, + "provisioningState": "Accepted" + } + } + }, + "201": { + "body": { + "location": "West US2", + "extendedLocation": { + "type": "CustomLocation", + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location" + }, + "properties": { + "storageProfile": { + "imageReference": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/marketplacegalleryimages/test-marketplace-gallery-image" + }, + "vmConfigContainerName": "Default_Container" + }, + "hardwareProfile": { + "vmSize": "Default" + }, + "osProfile": { + "computerName": "luamaster", + "adminUsername": "localadmin" + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "test-nic" + } + ] + }, + "provisioningState": "created" + } + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-09-01-preview/examples/PutVirtualMachineWithOsDisk.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-09-01-preview/examples/PutVirtualMachineWithOsDisk.json new file mode 100644 index 000000000000..8c825818fc22 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-09-01-preview/examples/PutVirtualMachineWithOsDisk.json @@ -0,0 +1,103 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "virtualmachinesName": "test-vm", + "api-version": "2021-09-01-preview", + "virtualmachines": { + "location": "West US2", + "extendedLocation": { + "type": "CustomLocation", + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location" + }, + "properties": { + "storageProfile": { + "osDisk": { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualharddisks/test-vhd" + }, + "vmConfigContainerName": "Default_Container" + }, + "hardwareProfile": { + "vmSize": "Default" + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "test-nic" + } + ] + }, + "securityProfile": { + "enableTPM": true, + "uefiSettings": { + "secureBootEnabled": true + } + } + } + } + }, + "responses": { + "200": { + "body": { + "location": "West US2", + "extendedLocation": { + "type": "CustomLocation", + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location" + }, + "properties": { + "storageProfile": { + "osDisk": { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualharddisks/test-vhd" + }, + "vmConfigContainerName": "Default_Container" + }, + "hardwareProfile": { + "vmSize": "Default" + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "test-nic" + } + ] + }, + "securityProfile": { + "enableTPM": true, + "uefiSettings": { + "secureBootEnabled": true + } + }, + "provisioningState": "Accepted" + } + } + }, + "201": { + "body": { + "location": "West US2", + "extendedLocation": { + "type": "CustomLocation", + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location" + }, + "properties": { + "storageProfile": { + "osDisk": { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualharddisks/test-vhd" + }, + "vmConfigContainerName": "Default_Container" + }, + "hardwareProfile": { + "vmSize": "Default" + }, + "networkProfile": { + "networkInterfaces": [ + { + "id": "test-nic" + } + ] + }, + "provisioningState": "created" + } + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-09-01-preview/examples/UpdateMarketplaceGalleryImage.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-09-01-preview/examples/UpdateMarketplaceGalleryImage.json new file mode 100644 index 000000000000..d922ceb12ca0 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-09-01-preview/examples/UpdateMarketplaceGalleryImage.json @@ -0,0 +1,109 @@ +{ + "parameters": { + "subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", + "resourceGroupName": "test-rg", + "marketplacegalleryimagesName": "test-marketplce-gallery-image", + "api-version": "2021-09-01-preview", + "marketplacegalleryimages": { + "tags": { + "additionalProperties": "sample" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/marketplacegalleryimages/test-marketplace-gallery-image", + "name": "test-marketplace-gallery-image", + "type": "Microsoft.AzureStackHCI/marketplacegalleryimages", + "location": "West US2", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "tags": { + "additionalProperties": "sample" + }, + "properties": { + "containerName": "Default_Container", + "osType": "Windows", + "cloudInitDataSource": "Azure", + "hyperVGeneration": "V1", + "identifier": { + "publisher": "myPublisherName", + "offer": "myOfferName", + "sku": "mySkuName" + }, + "version": { + "name": "1.0.0", + "properties": { + "storageProfile": { + "osDiskImage": { + "sizeInMB": 30270 + } + } + } + }, + "status": { + "provisioningStatus": { + "operationId": "79cfc696-44f5-4a68-a620-21850f7e9fb0", + "status": "InProgress" + }, + "progressPercentage": 0, + "downloadStatus": { + "downloadSizeInMB": 9383 + } + }, + "provisioningState": "Accepted" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/marketplacegalleryimages/test-marketplace-gallery-image", + "name": "test-marketplace-gallery-image", + "type": "Microsoft.AzureStackHCI/marketplacegalleryimages", + "location": "West US2", + "extendedLocation": { + "name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", + "type": "CustomLocation" + }, + "tags": { + "additionalProperties": "sample" + }, + "properties": { + "containerName": "Default_Container", + "osType": "Windows", + "cloudInitDataSource": "Azure", + "hyperVGeneration": "V1", + "identifier": { + "publisher": "myPublisherName", + "offer": "myOfferName", + "sku": "mySkuName" + }, + "version": { + "name": "1.0.0", + "properties": { + "storageProfile": { + "osDiskImage": { + "sizeInMB": 30270 + } + } + } + }, + "status": { + "provisioningStatus": { + "operationId": "79cfc696-44f5-4a68-a620-21850f7e9fb0", + "status": "Succeeded" + }, + "progressPercentage": 100, + "downloadStatus": { + "downloadSizeInMB": 9383 + } + }, + "provisioningState": "Creating" + } + } + } + } +} diff --git a/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-09-01-preview/marketplaceGalleryImages.json b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-09-01-preview/marketplaceGalleryImages.json new file mode 100644 index 000000000000..6bb60e2ab293 --- /dev/null +++ b/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-09-01-preview/marketplaceGalleryImages.json @@ -0,0 +1,587 @@ +{ + "swagger": "2.0", + "info": { + "title": "AzureStackHCI", + "description": "The Microsoft.AzureStackHCI Rest API spec.", + "version": "2021-09-01-preview", + "x-ms-code-generation-settings": { + "name": "AzureStackHCIClient" + } + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/marketplacegalleryimages/{marketplacegalleryimagesName}": { + "get": { + "operationId": "marketplacegalleryimages_Get", + "description": "Gets marketplacegalleryimages by resource name", + "x-ms-examples": { + "GetMarketplaceGalleryImage": { + "$ref": "./examples/GetMarketplaceGalleryImage.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/marketplacegalleryimagesNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + }, + "200": { + "description": "Retrieves the marketplacegalleryimages resource.", + "schema": { + "$ref": "#/definitions/marketplacegalleryimages" + } + } + } + }, + "put": { + "operationId": "marketplacegalleryimages_CreateOrUpdate", + "description": "Creates or updates a marketplacegalleryimage", + "x-ms-examples": { + "PutMarketplaceGalleryImage": { + "$ref": "./examples/PutMarketplaceGalleryImage.json" + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/marketplacegalleryimagesNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "marketplacegalleryimages", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/marketplacegalleryimages" + } + } + ], + "responses": { + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + }, + "200": { + "description": "Updates the marketplacegalleryimages resource.", + "schema": { + "$ref": "#/definitions/marketplacegalleryimages" + } + }, + "201": { + "description": "Creates the marketplacegalleryimages resource.", + "schema": { + "$ref": "#/definitions/marketplacegalleryimages" + } + } + } + }, + "delete": { + "operationId": "marketplacegalleryimages_Delete", + "description": "Deletes a marketplacegalleryimage", + "x-ms-examples": { + "DeleteMarketplaceGalleryImage": { + "$ref": "./examples/DeleteMarketplaceGalleryImage.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/marketplacegalleryimagesNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + }, + "200": { + "description": "Deletes the marketplacegalleryimages resource." + }, + "204": { + "description": "No content" + } + } + }, + "patch": { + "operationId": "marketplacegalleryimages_Update", + "description": "Updates a marketplacegalleryimage", + "x-ms-examples": { + "UpdateMarketplaceGalleryImage": { + "$ref": "./examples/UpdateMarketplaceGalleryImage.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/marketplacegalleryimagesNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + }, + { + "name": "marketplacegalleryimages", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/marketplacegalleryimagesPatch" + } + } + ], + "responses": { + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + }, + "200": { + "description": "Updates the marketplacegalleryimages resource.", + "schema": { + "$ref": "#/definitions/marketplacegalleryimages" + } + }, + "201": { + "description": "Updates the marketplacegalleryimages resource.", + "schema": { + "$ref": "#/definitions/marketplacegalleryimages" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/marketplacegalleryimages": { + "get": { + "operationId": "marketplacegalleryimages_ListByResourceGroup", + "description": "Lists all marketplacegalleryimages under the resource group", + "x-ms-examples": { + "ListMarketplaceGalleryImageByResourceGroup": { + "$ref": "./examples/ListMarketplaceGalleryImageByResourceGroup.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + }, + "200": { + "description": "Lists all marketplacegalleryimages under the resource group.", + "schema": { + "$ref": "#/definitions/marketplacegalleryimagesListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.AzureStackHCI/marketplacegalleryimages": { + "get": { + "operationId": "marketplacegalleryimages_ListBySubscription", + "description": "Lists all marketplacegalleryimages under the subscription", + "x-ms-examples": { + "ListMarketplaceGalleryImageBySubscription": { + "$ref": "./examples/ListMarketplaceGalleryImageBySubscription.json" + } + }, + "parameters": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" + } + ], + "responses": { + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } + }, + "200": { + "description": "Lists all marketplacegalleryimages under the subscription.", + "schema": { + "$ref": "#/definitions/marketplacegalleryimagesListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + } + }, + "definitions": { + "marketplacegalleryimagesProperties": { + "type": "object", + "x-ms-client-flatten": true, + "properties": { + "containerName": { + "type": "string", + "description": "Container Name for storage container" + }, + "osType": { + "type": "string", + "enum": [ + "Windows", + "Linux" + ], + "x-ms-enum": { + "name": "OperatingSystemTypes", + "modelAsString": false + }, + "description": "operating system type that the gallery image uses. Expected to be linux or windows" + }, + "cloudInitDataSource": { + "type": "string", + "description": "Datasource for the gallery image when provisioning with cloud-init [Azure, NoCloud]", + "enum": [ + "NoCloud", + "Azure" + ], + "x-ms-enum": { + "name": "CloudInitDataSource", + "modelAsString": true + } + }, + "hyperVGeneration": { + "type": "string", + "description": "The hypervisor generation of the Virtual Machine [V1, V2]", + "enum": [ + "V1", + "V2" + ], + "x-ms-enum": { + "name": "HyperVGeneration", + "modelAsString": true + } + }, + "identifier": { + "$ref": "#/definitions/galleryImageIdentifier" + }, + "version": { + "$ref": "#/definitions/galleryImageVersion" + }, + "provisioningState": { + "type": "string", + "description": "Provisioning state of the gallery image.", + "readOnly": true, + "enum": [ + "Succeeded", + "Failed", + "InProgress", + "Accepted", + "Deleting", + "Canceled" + ], + "x-ms-enum": { + "name": "ProvisioningStateEnum", + "modelAsString": true + } + }, + "resourceName": { + "type": "string", + "description": "name of the object to be used in moc" + }, + "status": { + "$ref": "#/definitions/marketplaceGalleryImageStatus" + } + }, + "description": "marketplacegalleryimagesProperties defines a list of properties under marketplacegalleryimages" + }, + "marketplaceGalleryImageStatus": { + "type": "object", + "x-ms-client-flatten": true, + "readOnly": true, + "properties": { + "errorCode": { + "type": "string", + "description": "MarketplaceGalleryImage provisioning error code" + }, + "errorMessage": { + "type": "string", + "description": "Descriptive error message" + }, + "provisioningStatus": { + "type": "object", + "description": "The provisioning status of the marketplace gallery image", + "properties": { + "operationId": { + "type": "string", + "description": "The ID of the operation performed on the marketplace gallery image" + }, + "status": { + "type": "string", + "description": "The status of the operation performed on the marketplace gallery image [Succeeded, Failed, InProgress]", + "enum": [ + "Succeeded", + "Failed", + "InProgress" + ], + "x-ms-enum": { + "name": "ProvisioningStatusEnum", + "modelAsString": true + } + } + } + }, + "downloadStatus": { + "type": "object", + "properties": { + "downloadSizeInMB": { + "type": "integer", + "format": "int64", + "description": "The downloaded sized of the image in MB" + } + }, + "description": "The download status of the marketplace gallery image" + }, + "progressPercentage": { + "type": "integer", + "format": "int64", + "description": "The progress of the operation in percentage" + } + }, + "description": "marketplaceGalleryImageStatus defines the observed state of marketplacegalleryimages" + }, + "galleryImageIdentifier": { + "type": "object", + "properties": { + "publisher": { + "type": "string", + "description": "The name of the gallery image definition publisher." + }, + "offer": { + "type": "string", + "description": "The name of the gallery image definition offer." + }, + "sku": { + "type": "string", + "description": "The name of the gallery image definition SKU." + } + }, + "required": [ + "publisher", + "offer", + "sku" + ], + "description": "This is the gallery image definition identifier." + }, + "galleryImageVersion": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "This is the version of the gallery image." + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/galleryImageVersionProperties" + } + }, + "description": "Specifies information about the gallery image version that you want to create or update." + }, + "galleryImageVersionProperties": { + "type": "object", + "properties": { + "storageProfile": { + "$ref": "#/definitions/galleryImageVersionStorageProfile" + } + }, + "required": [ + "storageProfile" + ], + "description": "Describes the properties of a gallery image version." + }, + "galleryImageVersionStorageProfile": { + "type": "object", + "properties": { + "osDiskImage": { + "$ref": "#/definitions/galleryOSDiskImage" + } + }, + "description": "This is the storage profile of a Gallery Image Version." + }, + "galleryOSDiskImage": { + "allOf": [ + { + "$ref": "#/definitions/galleryDiskImage" + } + ], + "description": "This is the OS disk image." + }, + "galleryDiskImage": { + "type": "object", + "properties": { + "sizeInMB": { + "type": "integer", + "format": "int64", + "readOnly": true, + "description": "This property indicates the size of the VHD to be created." + } + }, + "description": "This is the disk image base class." + }, + "marketplacegalleryimages": { + "type": "object", + "description": "The marketplacegalleryimages resource definition.", + "x-ms-azure-resource": true, + "x-ms-client-flatten": true, + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/marketplacegalleryimagesProperties" + }, + "extendedLocation": { + "type": "object", + "description": "The extendedLocation of the resource.", + "properties": { + "type": { + "type": "string", + "description": "The extended location type." + }, + "name": { + "type": "string", + "description": "The extended location name." + } + } + }, + "systemData": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" + } + }, + "allOf": [ + { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/TrackedResource" + } + ] + }, + "marketplacegalleryimagesPatch": { + "type": "object", + "properties": { + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags" + } + }, + "description": "The marketplacegalleryimages resource patch definition." + }, + "marketplacegalleryimagesListResult": { + "type": "object", + "description": "List of marketplacegalleryimages.", + "properties": { + "value": { + "type": "array", + "description": "The itemed list of marketplacegalleryimages", + "items": { + "$ref": "#/definitions/marketplacegalleryimages" + } + }, + "nextLink": { + "type": "string", + "description": "Link to the next set of results.", + "readOnly": true + } + } + } + }, + "parameters": { + "marketplacegalleryimagesNameParameter": { + "name": "marketplacegalleryimagesName", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "maxLength": 64, + "minLength": 3, + "description": "Name of the marketplace gallery image" + } + } +} diff --git a/specification/dnc/resource-manager/Microsoft.DelegatedNetwork/preview/2020-08-08-preview/delegatedSubnets.json b/specification/dnc/resource-manager/Microsoft.DelegatedNetwork/preview/2020-08-08-preview/delegatedSubnets.json index 60f0d4955115..d86b1b1d88c9 100644 --- a/specification/dnc/resource-manager/Microsoft.DelegatedNetwork/preview/2020-08-08-preview/delegatedSubnets.json +++ b/specification/dnc/resource-manager/Microsoft.DelegatedNetwork/preview/2020-08-08-preview/delegatedSubnets.json @@ -321,17 +321,28 @@ "readOnly": true, "description": "An identifier that represents the resource." }, - "name": { + "errorMessage": { "type": "string", "readOnly": true, "description": "The name of the resource." }, - "type": { + "progressPercentage": { + "type": "integer", + "format": "int64", + "description": "The progress of the operation in percentage" + } + }, + "description": "galleryImageStatus defines the observed state of galleryimages" + }, + "galleryImageIdentifier": { + "type": "object", + "properties": { + "publisher": { "type": "string", "readOnly": true, "description": "The type of resource." }, - "location": { + "offer": { "type": "string", "description": "Location of the resource." }, @@ -360,6 +371,7 @@ "DelegatedSubnets": { "description": "An array of DelegatedSubnet resources.", "type": "object", + "description": "List of galleryimages.", "properties": { "value": { "type": "array", diff --git a/specification/dnc/resource-manager/Microsoft.DelegatedNetwork/stable/2021-03-15/operations.json b/specification/dnc/resource-manager/Microsoft.DelegatedNetwork/stable/2021-03-15/operations.json index 5d4a9aeaa73d..2a549853f627 100644 --- a/specification/dnc/resource-manager/Microsoft.DelegatedNetwork/stable/2021-03-15/operations.json +++ b/specification/dnc/resource-manager/Microsoft.DelegatedNetwork/stable/2021-03-15/operations.json @@ -67,6 +67,11 @@ "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } + }, + "x-ms-examples": { + "List operation resources": { + "$ref": "./examples/ListOperationByCluster.json" + } } } }