-
Notifications
You must be signed in to change notification settings - Fork 5.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Publish Microsoft.AzureStackHCI 2021-07-01-preview #18152
Merged
jianyexi
merged 44 commits into
Azure:main
from
Arkanayan:user/jocelynb/dev-azurestackhci-Microsoft.AzureStackHCI-2021-07-01-preview
Nov 2, 2022
Merged
Changes from 43 commits
Commits
Show all changes
44 commits
Select commit
Hold shift + click to select a range
5f186bf
Adds base for updating Microsoft.AzureStackHCI from version preview/2…
JocelynBerrendonner abaf2ad
Updates readme
JocelynBerrendonner b3de21e
Updates API version in new specs and examples
JocelynBerrendonner 5e1d29e
Publishing the 2021-07-01-preview API for self-service VM on HCI
JocelynBerrendonner 2c4e6a0
Fix some linter errors
Arkanayan f673e49
Update readme to include 2021-07
Arkanayan 93cbfa2
Fix errors and run prettier
Arkanayan e338559
Fix readme.go.md
Arkanayan d8b4c68
Fix SSH description
Arkanayan e8fa92d
Set provisioningState as enum
Arkanayan 9285996
Use common-types TrackedResource
Arkanayan 38fa4f3
Change vmSize type to enum
Arkanayan 32a7b86
Set adminPassword mutability to [create]
Arkanayan e90e6e2
Set osType as Enum
Arkanayan 46081ed
Set networkType as enum
Arkanayan 509a265
Some changes based on feedback
Arkanayan 3c0f17f
Remove storagecontainers
Arkanayan 0a0903a
Add MocVirtualMachineStatus object
Arkanayan 9e94e76
Fix provisioningState enum
Arkanayan 3dfa27f
Fix networkinterface id description
Arkanayan 5ec0595
Fix provisioningState in all the resources
Arkanayan 681be29
Update description of ipConfigurationReferences.ID
Arkanayan 46f14fa
Add typed status object
Arkanayan 35cb52c
Use common-types v3/types.json objects
Arkanayan 48cf271
Remove 201 response from update apis
Arkanayan 09c4f8a
Add enum PrivateIPAllocationMethod
Arkanayan 9c3d49f
Add additional provisioningState enum variants
Arkanayan ab16dd5
Fix typo
Arkanayan 7e50b02
Remove MOC reference from object definitions
Arkanayan 46461d6
Set provisioningState as read only
Arkanayan dcb894e
Mark Statuses as readOnly
Arkanayan 10fd814
Change description of routeTable ID
Arkanayan 97de8ca
Put extended location definition in a common file
Arkanayan 1182f84
Change description of route.ID
Arkanayan d8ae2f5
Fix customLocation enum types
Arkanayan b0ae71e
Remove storageContainers examples
Arkanayan 7edeec6
Fix swagger lintdiff
Arkanayan 5f6876f
Remove 201 response from update examples
Arkanayan 16dfff4
Fix PrettierCheck on common.json
Arkanayan 960224a
Set long running operation options final state to location
Arkanayan 3fd1aed
Add operations examples
Arkanayan 4df3867
Merge remote-tracking branch 'upstream/main' into user/jocelynb/dev-a…
Arkanayan 0dfe31f
Fix model validation errors
Arkanayan 875640c
Fix git merge
Arkanayan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please resolve the git conflict
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.