Skip to content

Commit 31f25cf

Browse files
ArkanayanJocelynBerrendonner
authored andcommitted
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]>
1 parent c1ce1d5 commit 31f25cf

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+4287
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
{
2+
"swagger": "2.0",
3+
"info": {
4+
"title": "AzureStackHCI",
5+
"description": "The Microsoft.AzureStackHCI Rest API spec",
6+
"version": "2021-07-01-preview"
7+
},
8+
"host": "management.azure.com",
9+
"schemes": [
10+
"https"
11+
],
12+
"consumes": [
13+
"application/json"
14+
],
15+
"produces": [
16+
"application/json"
17+
],
18+
"security": [
19+
{
20+
"azure_auth": [
21+
"user_impersonation"
22+
]
23+
}
24+
],
25+
"securityDefinitions": {
26+
"azure_auth": {
27+
"type": "oauth2",
28+
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
29+
"flow": "implicit",
30+
"description": "Azure Active Directory OAuth2 Flow",
31+
"scopes": {
32+
"user_impersonation": "impersonate your user account"
33+
}
34+
}
35+
},
36+
"paths": {},
37+
"definitions": {
38+
"ExtendedLocationType": {
39+
"type": "string",
40+
"description": "The type of extendedLocation.",
41+
"enum": [
42+
"CustomLocation"
43+
],
44+
"x-ms-enum": {
45+
"name": "ExtendedLocationTypes",
46+
"modelAsString": true
47+
}
48+
},
49+
"ExtendedLocation": {
50+
"description": "The complex type of the extended location.",
51+
"type": "object",
52+
"properties": {
53+
"name": {
54+
"type": "string",
55+
"description": "The name of the extended location."
56+
},
57+
"type": {
58+
"$ref": "#/definitions/ExtendedLocationType",
59+
"description": "The type of the extended location."
60+
}
61+
}
62+
}
63+
}
64+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b",
4+
"resourceGroupName": "test-rg",
5+
"galleryimagesName": "test-gallery-image",
6+
"api-version": "2021-07-01-preview"
7+
},
8+
"responses": {
9+
"200": {},
10+
"204": {}
11+
}
12+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b",
4+
"resourceGroupName": "test-rg",
5+
"networkinterfacesName": "test-nic",
6+
"api-version": "2021-07-01-preview"
7+
},
8+
"responses": {
9+
"200": {},
10+
"204": {}
11+
}
12+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b",
4+
"resourceGroupName": "test-rg",
5+
"virtualharddisksName": "test-vhd",
6+
"api-version": "2021-07-01-preview"
7+
},
8+
"responses": {
9+
"200": {},
10+
"204": {}
11+
}
12+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b",
4+
"resourceGroupName": "test-rg",
5+
"virtualmachinesName": "test-vm",
6+
"api-version": "2021-07-01-preview"
7+
},
8+
"responses": {
9+
"200": {},
10+
"204": {}
11+
}
12+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b",
4+
"resourceGroupName": "test-rg",
5+
"virtualnetworksName": "test-vnet",
6+
"api-version": "2021-07-01-preview"
7+
},
8+
"responses": {
9+
"200": {},
10+
"204": {}
11+
}
12+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b",
4+
"resourceGroupName": "test-rg",
5+
"galleryimagesName": "test-gallery-image",
6+
"api-version": "2021-07-01-preview"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryimages/test-gallery-image",
12+
"name": "test-gallery-image",
13+
"type": "Microsoft.AzureStackHCI/galleryimages",
14+
"location": "West US2",
15+
"extendedLocation": {
16+
"name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location",
17+
"type": "CustomLocation"
18+
},
19+
"properties": {
20+
"provisioningState": "Accepted",
21+
"imagePath": "C:\\test.vhdx",
22+
"containerName": "Default_Container"
23+
}
24+
}
25+
}
26+
}
27+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b",
4+
"resourceGroupName": "test-rg",
5+
"networkinterfacesName": "test-nic",
6+
"api-version": "2021-07-01-preview"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/networkinterfaces/test-nic",
12+
"name": "test-vnet",
13+
"type": "Microsoft.AzureStackHCI/networkinterfaces",
14+
"location": "West US2",
15+
"extendedLocation": {
16+
"name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location",
17+
"type": "CustomLocation"
18+
},
19+
"properties": {
20+
"provisioningState": "Accepted",
21+
"ipConfigurations": [
22+
{
23+
"name": "ipconfig-sample",
24+
"properties": {
25+
"subnet": {
26+
"id": "external"
27+
}
28+
}
29+
}
30+
]
31+
}
32+
}
33+
}
34+
}
35+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b",
4+
"resourceGroupName": "test-rg",
5+
"virtualharddisksName": "test-vhd",
6+
"api-version": "2021-07-01-preview"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualharddisks/test-vhd",
12+
"name": "test-vhd",
13+
"type": "Microsoft.AzureStackHCI/virtualharddisks",
14+
"location": "West US2",
15+
"extendedLocation": {
16+
"name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location",
17+
"type": "CustomLocation"
18+
},
19+
"properties": {
20+
"diskSizeBytes": 32,
21+
"provisioningState": "Accepted"
22+
}
23+
}
24+
}
25+
}
26+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b",
4+
"resourceGroupName": "test-rg",
5+
"virtualmachinesName": "test-vm",
6+
"api-version": "2021-07-01-preview"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/virtualmachines/test-vm",
12+
"name": "test-vm",
13+
"type": "Microsoft.AzureStackHCI/virtualmachines",
14+
"location": "West US2",
15+
"extendedLocation": {
16+
"name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location",
17+
"type": "CustomLocation"
18+
},
19+
"properties": {
20+
"provisioningState": "Accepted",
21+
"storageProfile": {
22+
"imageReference": {
23+
"name": "test-gallery-image"
24+
}
25+
},
26+
"hardwareProfile": {
27+
"vmSize": "Default"
28+
},
29+
"osProfile": {
30+
"computerName": "luamaster",
31+
"adminUsername": "localadmin"
32+
},
33+
"networkProfile": {
34+
"networkInterfaces": [
35+
{
36+
"id": "test-nic"
37+
}
38+
]
39+
}
40+
}
41+
}
42+
}
43+
}
44+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b",
4+
"resourceGroupName": "test-rg",
5+
"virtualnetworksName": "test-vnet",
6+
"api-version": "2021-07-01-preview"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryimages/test-vnet",
12+
"name": "test-vnet",
13+
"type": "Microsoft.AzureStackHCI/virtualnetworks",
14+
"location": "West US2",
15+
"extendedLocation": {
16+
"name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location",
17+
"type": "CustomLocation"
18+
},
19+
"properties": {
20+
"provisioningState": "Accepted",
21+
"networkType": "Transparent"
22+
}
23+
}
24+
}
25+
}
26+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b",
4+
"resourceGroupName": "test-rg",
5+
"api-version": "2021-07-01-preview"
6+
},
7+
"responses": {
8+
"200": {
9+
"body": {
10+
"value": [
11+
{
12+
"id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryimages/test-gallery-image",
13+
"name": "test-gallery-image",
14+
"type": "Microsoft.AzureStackHCI/galleryimages",
15+
"location": "West US2",
16+
"extendedLocation": {
17+
"name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location",
18+
"type": "CustomLocation"
19+
},
20+
"properties": {
21+
"provisioningState": "Accepted",
22+
"imagePath": "C:\\test.vhdx",
23+
"containerName": "Default_Container"
24+
}
25+
}
26+
]
27+
}
28+
}
29+
}
30+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b",
4+
"api-version": "2021-07-01-preview"
5+
},
6+
"responses": {
7+
"200": {
8+
"body": {
9+
"value": [
10+
{
11+
"id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryimages/test-gallery-image",
12+
"name": "test-gallery-image",
13+
"type": "Microsoft.AzureStackHCI/galleryimages",
14+
"location": "West US2",
15+
"extendedLocation": {
16+
"name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location",
17+
"type": "CustomLocation"
18+
},
19+
"properties": {
20+
"provisioningState": "Accepted",
21+
"imagePath": "C:\\test.vhdx",
22+
"containerName": "Default_Container"
23+
}
24+
}
25+
]
26+
}
27+
}
28+
}
29+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b",
4+
"resourceGroupName": "test-rg",
5+
"networkinterfacesName": "test-nic",
6+
"api-version": "2021-07-01-preview"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"value": [
12+
{
13+
"id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/networkinterfaces/test-nic",
14+
"name": "test-vnet",
15+
"type": "Microsoft.AzureStackHCI/networkinterfaces",
16+
"location": "West US2",
17+
"extendedLocation": {
18+
"name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location",
19+
"type": "CustomLocation"
20+
},
21+
"properties": {
22+
"provisioningState": "Accepted",
23+
"ipConfigurations": [
24+
{
25+
"name": "ipconfig-sample",
26+
"properties": {
27+
"subnet": {
28+
"id": "external"
29+
}
30+
}
31+
}
32+
]
33+
}
34+
}
35+
]
36+
}
37+
}
38+
}
39+
}

0 commit comments

Comments
 (0)