Skip to content

Commit

Permalink
[Hub Generated] Review request for Microsoft.AzureStackHCI to add ver…
Browse files Browse the repository at this point in the history
…sion preview/2023-07-01-preview (#24998)

* Adds base for updating Microsoft.AzureStackHCI from version preview/2022-12-15-preview to version 2023-07-01-preview

* Updates readme

* Updates API version in new specs and examples

* Add 2023-07-01-preview

* Update readme.md

* Update readme.md

* Make RP name pascal-case

* GalleryImages use "update" in 200 response description

* Update galleryImages.json - Add "location" header to 202 response

* Update galleryImages.json - add location header to 202

* Update galleryImages.json - Add type:object

* Update marketplaceGalleryImages.json - Add 202 location header

* Update marketplaceGalleryImages.json - pascalcase RP name

* Update marketplaceGalleryImages.json - add type:object

* Update networkInterfaces.json - 200 PUT description must include UPDATE

* Update networkInterfaces.json - add 202 location header

* Update networkInterfaces.json - add type:object

* Update storageContainers.json - pascalcase RP name

* Update storageContainers.json - 200 PUT description must include UPDATE

* Update storageContainers.json - 202 location header

* Update storageContainers.json - add type:object

* Update virtualHardDisks.json - pascalcase RP name

* Update virtualHardDisks.json - 202 location header

* Update virtualHardDisks.json - 200 PUT description must include update

* Update galleryImages.json - "x-ms-long-running-operation": true,

* Update virtualMachineInstances.json - 200 PUT updated in description

* Update virtualMachineInstances.json - location header 202

* Update virtualMachineInstances.json - 	Description of 200 response code of a PUT operation MUST include term 'update'.

* Update virtualNetworks.json - A 202 response should include an Location response header.

* Update virtualNetworks.json - camelcase id property name

* Update virtualNetworks.json - ID exception from camelcase

* Update virtualNetworks.json

* Update virtualMachineInstances.json - 202 accepted location header

* Update virtualMachineInstances.json - add identity property to VMI update request body

* Update virtualMachineInstances.json - move identity

* Update virtualNetworks.json - Id camelcase attempt

* Update virtualNetworks.json - camelcase attempt "id"

* Update galleryImages.json - remove stray comma

* Update marketplaceGalleryImages.json - remove stray comma

* Update networkInterfaces.json

* Update storageContainers.json - remove stray comma

* Update virtualHardDisks.json

* Update virtualMachineInstances.json - remove stray comma

* Update virtualNetworks.json - remove stray comma

* Run prettier

* Revert to HCI

* Update virtualHardDisks.json - type object

* Update virtualMachineInstances.json - type object

* Update virtualNetworks.json - type object

* Update virtualMachineInstances.json - array id

* Update virtualMachineInstances.json - comma

* Update virtualMachineInstances.json - final-state-via location

* Update readme.md

* Update readme.md - suppress errors

* Update readme.md

* Update readme.md

* Update readme.md

* Add operations API'

* Remove Operations API suppression

* Fix RP path

* Fix RP path

* Add operations API to gallery images

* Fix operations schemas

* Use newer operations api

* Remove unused schema

* Add ListOperations example

* Update galleryImages.json to use v3 common types

* Update virtualMachineInstances.json - remove 200 from delete

* Update virtualMachineInstances.json - remove delete 200

* Update DeleteVirtualMachineInstance.json - remove 200 response

* Update DeleteGuestAgent.json - remove 200 response

* Update GetGalleryImage.json - dummy change to retrigger CI

---------

Co-authored-by: wyatt-troia-msft <[email protected]>
  • Loading branch information
wyatt-troia-msft and wyatt-troia authored Aug 15, 2023
1 parent 44b38c6 commit 277c989
Show file tree
Hide file tree
Showing 63 changed files with 7,513 additions and 18 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
{
"swagger": "2.0",
"info": {
"title": "AzureStackHCI",
"description": "The Microsoft.AzureStackHCI Rest API spec",
"version": "2023-07-01-preview"
},
"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": {},
"definitions": {
"ExtendedLocationType": {
"type": "string",
"description": "The type of extendedLocation.",
"enum": [
"CustomLocation"
],
"x-ms-enum": {
"name": "ExtendedLocationTypes",
"modelAsString": true
}
},
"ExtendedLocation": {
"description": "The complex type of the extended location.",
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The name of the extended location."
},
"type": {
"$ref": "#/definitions/ExtendedLocationType",
"description": "The type of the extended location."
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"parameters": {
"api-version": "2023-07-01-preview",
"resourceUri": "subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/Microsoft.HybridCompute/machines/DemoVM",
"body": {
"properties": {
"provisioningAction": "install",
"credentials": {
"username": "tempuser",
"password": "<password>"
}
}
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/Microsoft.HybridCompute/machines/DemoVM/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default/guestAgents/default",
"name": "default",
"type": "Microsoft.AzureStackHCI/virtualMachineInstances/guestAgents",
"properties": {
"provisioningAction": "install",
"status": "connected",
"provisioningState": "Succeeded"
}
}
},
"201": {
"body": {
"id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/Microsoft.HybridCompute/machines/DemoVM/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default/guestAgents/default",
"name": "default",
"type": "Microsoft.AzureStackHCI/virtualMachineInstances/guestAgents",
"properties": {
"provisioningAction": "install",
"status": "connected",
"provisioningState": "Created"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"parameters": {
"subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b",
"resourceGroupName": "test-rg",
"galleryImageName": "test-gallery-image",
"api-version": "2023-07-01-preview"
},
"responses": {
"200": {
"headers": {
"azure-asyncoperation": "http://azure.async.operation/status"
}
},
"202": {
"headers": {
"azure-asyncoperation": "http://azure.async.operation/status"
}
},
"204": {
"headers": {
"azure-asyncoperation": "http://azure.async.operation/status"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"parameters": {
"api-version": "2023-07-01-preview",
"resourceUri": "subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/Microsoft.HybridCompute/machines/DemoVM"
},
"responses": {
"202": {
"headers": {
"azure-asyncoperation": "http://azure.async.operation/status"
}
},
"204": {
"headers": {
"azure-asyncoperation": "http://azure.async.operation/status"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"parameters": {
"subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b",
"resourceGroupName": "test-rg",
"marketplaceGalleryImageName": "test-marketplace-gallery-image",
"api-version": "2023-07-01-preview"
},
"responses": {
"200": {
"headers": {
"azure-asyncoperation": "http://azure.async.operation/status"
}
},
"202": {
"headers": {
"azure-asyncoperation": "http://azure.async.operation/status"
}
},
"204": {
"headers": {
"azure-asyncoperation": "http://azure.async.operation/status"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"parameters": {
"subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b",
"resourceGroupName": "test-rg",
"networkInterfaceName": "test-nic",
"api-version": "2023-07-01-preview"
},
"responses": {
"200": {
"headers": {
"azure-asyncoperation": "http://azure.async.operation/status"
}
},
"202": {
"headers": {
"azure-asyncoperation": "http://azure.async.operation/status"
}
},
"204": {
"headers": {
"azure-asyncoperation": "http://azure.async.operation/status"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"parameters": {
"subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b",
"resourceGroupName": "test-rg",
"storageContainerName": "Default_Container",
"api-version": "2023-07-01-preview"
},
"responses": {
"200": {
"headers": {
"azure-asyncoperation": "http://azure.async.operation/status"
}
},
"202": {
"headers": {
"azure-asyncoperation": "http://azure.async.operation/status"
}
},
"204": {
"headers": {
"azure-asyncoperation": "http://azure.async.operation/status"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"parameters": {
"subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b",
"resourceGroupName": "test-rg",
"virtualHardDiskName": "test-vhd",
"api-version": "2023-07-01-preview"
},
"responses": {
"200": {
"headers": {
"azure-asyncoperation": "http://azure.async.operation/status"
}
},
"202": {
"headers": {
"azure-asyncoperation": "http://azure.async.operation/status"
}
},
"204": {
"headers": {
"azure-asyncoperation": "http://azure.async.operation/status"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"parameters": {
"resourceUri": "subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/Microsoft.HybridCompute/machines/DemoVM/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default",
"api-version": "2023-07-01-preview"
},
"responses": {
"202": {
"headers": {
"azure-asyncoperation": "http://azure.async.operation/status"
}
},
"204": {
"headers": {
"azure-asyncoperation": "http://azure.async.operation/status"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"parameters": {
"subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b",
"resourceGroupName": "test-rg",
"virtualNetworkName": "test-vnet",
"api-version": "2023-07-01-preview"
},
"responses": {
"200": {
"headers": {
"azure-asyncoperation": "http://azure.async.operation/status"
}
},
"202": {
"headers": {
"azure-asyncoperation": "http://azure.async.operation/status"
}
},
"204": {
"headers": {
"azure-asyncoperation": "http://azure.async.operation/status"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"parameters": {
"subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b",
"resourceGroupName": "test-rg",
"galleryImageName": "test-gallery-image",
"api-version": "2023-07-01-preview"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryImages/test-gallery-image",
"name": "test-gallery-image",
"type": "Microsoft.AzureStackHCI/galleryImages",
"location": "West US2",
"extendedLocation": {
"name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location",
"type": "CustomLocation"
},
"properties": {
"provisioningState": "Accepted",
"containerId": "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": 9382
}
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"parameters": {
"api-version": "2023-07-01-preview",
"resourceUri": "subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/Microsoft.HybridCompute/machines/DemoVM"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/Microsoft.HybridCompute/machines/DemoVM/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default/guestAgents/default",
"name": "default",
"type": "Microsoft.AzureStackHCI/virtualMachineInstances/guestAgents",
"properties": {
"provisioningAction": "install",
"status": "connected",
"provisioningState": "Succeeded"
}
}
}
}
}
Loading

0 comments on commit 277c989

Please sign in to comment.