forked from Azure/azure-rest-api-specs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Publish Microsoft.AzureStackHCI 2021-07-01-preview (Azure#18152)
* Adds base for updating Microsoft.AzureStackHCI from version preview/2021-01-01-preview to version 2021-07-01-preview * Updates readme * Updates API version in new specs and examples * Publishing the 2021-07-01-preview API for self-service VM on HCI * Fix some linter errors * Update readme to include 2021-07 * Fix errors and run prettier * Fix readme.go.md * Fix SSH description * Set provisioningState as enum * Use common-types TrackedResource * Change vmSize type to enum * Set adminPassword mutability to [create] * Set osType as Enum * Set networkType as enum * Some changes based on feedback * Remove storagecontainers * Add MocVirtualMachineStatus object * Fix provisioningState enum * Fix networkinterface id description * Fix provisioningState in all the resources * Update description of ipConfigurationReferences.ID * Add typed status object * Use common-types v3/types.json objects * Remove 201 response from update apis * Add enum PrivateIPAllocationMethod * Add additional provisioningState enum variants * Fix typo * Remove MOC reference from object definitions * Set provisioningState as read only * Mark Statuses as readOnly * Change description of routeTable ID * Put extended location definition in a common file * Change description of route.ID * Fix customLocation enum types * Remove storageContainers examples StorageContainer is not published in this version * Fix swagger lintdiff * Remove 201 response from update examples fixes RESPONSE_STATUS_CODE_NOT_IN_SPEC [https://github.com/Azure/azure-rest-api-specs/blob/master/documentation/Semantic-and-Model-Violations-Reference.md\#RESPONSE_STATUS_CODE_NOT_IN_SPEC] * Fix PrettierCheck on common.json * Set long running operation options final state to location * Add operations examples * Fix model validation errors * Fix git merge Co-authored-by: Jocelyn Berrendonner [MSFT] <[email protected]>
- Loading branch information
1 parent
39c3169
commit 09f9e9b
Showing
44 changed files
with
4,293 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
64 changes: 64 additions & 0 deletions
64
...estackhci/resource-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/common.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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": "2021-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." | ||
} | ||
} | ||
} | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
...nager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/DeleteGalleryImage.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", | ||
"resourceGroupName": "test-rg", | ||
"galleryimagesName": "test-gallery-image", | ||
"api-version": "2021-07-01-preview" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"204": {} | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
...r/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/DeleteNetworkInterface.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", | ||
"resourceGroupName": "test-rg", | ||
"networkinterfacesName": "test-nic", | ||
"api-version": "2021-07-01-preview" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"204": {} | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
...er/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/DeleteVirtualHardDisk.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", | ||
"resourceGroupName": "test-rg", | ||
"virtualharddisksName": "test-vhd", | ||
"api-version": "2021-07-01-preview" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"204": {} | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
...ger/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/DeleteVirtualMachine.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", | ||
"resourceGroupName": "test-rg", | ||
"virtualmachinesName": "test-vm", | ||
"api-version": "2021-07-01-preview" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"204": {} | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
...ger/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/DeleteVirtualNetwork.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", | ||
"resourceGroupName": "test-rg", | ||
"virtualnetworksName": "test-vnet", | ||
"api-version": "2021-07-01-preview" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"204": {} | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
...-manager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/GetGalleryImage.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", | ||
"resourceGroupName": "test-rg", | ||
"galleryimagesName": "test-gallery-image", | ||
"api-version": "2021-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", | ||
"imagePath": "C:\\test.vhdx", | ||
"containerName": "Default_Container" | ||
} | ||
} | ||
} | ||
} | ||
} |
35 changes: 35 additions & 0 deletions
35
...ager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/GetNetworkInterface.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", | ||
"resourceGroupName": "test-rg", | ||
"networkinterfacesName": "test-nic", | ||
"api-version": "2021-07-01-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/networkinterfaces/test-nic", | ||
"name": "test-vnet", | ||
"type": "Microsoft.AzureStackHCI/networkinterfaces", | ||
"location": "West US2", | ||
"extendedLocation": { | ||
"name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", | ||
"type": "CustomLocation" | ||
}, | ||
"properties": { | ||
"provisioningState": "Accepted", | ||
"ipConfigurations": [ | ||
{ | ||
"name": "ipconfig-sample", | ||
"properties": { | ||
"subnet": { | ||
"id": "external" | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
...nager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/GetVirtualHardDisk.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", | ||
"resourceGroupName": "test-rg", | ||
"virtualharddisksName": "test-vhd", | ||
"api-version": "2021-07-01-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualharddisks/test-vhd", | ||
"name": "test-vhd", | ||
"type": "Microsoft.AzureStackHCI/virtualharddisks", | ||
"location": "West US2", | ||
"extendedLocation": { | ||
"name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", | ||
"type": "CustomLocation" | ||
}, | ||
"properties": { | ||
"diskSizeBytes": 32, | ||
"provisioningState": "Accepted" | ||
} | ||
} | ||
} | ||
} | ||
} |
44 changes: 44 additions & 0 deletions
44
...anager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/GetVirtualMachine.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", | ||
"resourceGroupName": "test-rg", | ||
"virtualmachinesName": "test-vm", | ||
"api-version": "2021-07-01-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualmachines/test-vm", | ||
"name": "test-vm", | ||
"type": "Microsoft.AzureStackHCI/virtualmachines", | ||
"location": "West US2", | ||
"extendedLocation": { | ||
"name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", | ||
"type": "CustomLocation" | ||
}, | ||
"properties": { | ||
"provisioningState": "Accepted", | ||
"storageProfile": { | ||
"imageReference": { | ||
"name": "test-gallery-image" | ||
} | ||
}, | ||
"hardwareProfile": { | ||
"vmSize": "Default" | ||
}, | ||
"osProfile": { | ||
"computerName": "luamaster", | ||
"adminUsername": "localadmin" | ||
}, | ||
"networkProfile": { | ||
"networkInterfaces": [ | ||
{ | ||
"id": "test-nic" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
...anager/Microsoft.AzureStackHCI/preview/2021-07-01-preview/examples/GetVirtualNetwork.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", | ||
"resourceGroupName": "test-rg", | ||
"virtualnetworksName": "test-vnet", | ||
"api-version": "2021-07-01-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryimages/test-vnet", | ||
"name": "test-vnet", | ||
"type": "Microsoft.AzureStackHCI/virtualnetworks", | ||
"location": "West US2", | ||
"extendedLocation": { | ||
"name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", | ||
"type": "CustomLocation" | ||
}, | ||
"properties": { | ||
"provisioningState": "Accepted", | ||
"networkType": "Transparent" | ||
} | ||
} | ||
} | ||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
...ft.AzureStackHCI/preview/2021-07-01-preview/examples/ListGalleryImageByResourceGroup.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", | ||
"resourceGroupName": "test-rg", | ||
"api-version": "2021-07-01-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"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", | ||
"imagePath": "C:\\test.vhdx", | ||
"containerName": "Default_Container" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
...oft.AzureStackHCI/preview/2021-07-01-preview/examples/ListGalleryImageBySubscription.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", | ||
"api-version": "2021-07-01-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"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", | ||
"imagePath": "C:\\test.vhdx", | ||
"containerName": "Default_Container" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.