Skip to content

Commit 277c989

Browse files
[Hub Generated] Review request for Microsoft.AzureStackHCI to add version 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]>
1 parent 44b38c6 commit 277c989

File tree

63 files changed

+7513
-18
lines changed

Some content is hidden

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

63 files changed

+7513
-18
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": "2023-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,41 @@
1+
{
2+
"parameters": {
3+
"api-version": "2023-07-01-preview",
4+
"resourceUri": "subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/Microsoft.HybridCompute/machines/DemoVM",
5+
"body": {
6+
"properties": {
7+
"provisioningAction": "install",
8+
"credentials": {
9+
"username": "tempuser",
10+
"password": "<password>"
11+
}
12+
}
13+
}
14+
},
15+
"responses": {
16+
"200": {
17+
"body": {
18+
"id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/Microsoft.HybridCompute/machines/DemoVM/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default/guestAgents/default",
19+
"name": "default",
20+
"type": "Microsoft.AzureStackHCI/virtualMachineInstances/guestAgents",
21+
"properties": {
22+
"provisioningAction": "install",
23+
"status": "connected",
24+
"provisioningState": "Succeeded"
25+
}
26+
}
27+
},
28+
"201": {
29+
"body": {
30+
"id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/Microsoft.HybridCompute/machines/DemoVM/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default/guestAgents/default",
31+
"name": "default",
32+
"type": "Microsoft.AzureStackHCI/virtualMachineInstances/guestAgents",
33+
"properties": {
34+
"provisioningAction": "install",
35+
"status": "connected",
36+
"provisioningState": "Created"
37+
}
38+
}
39+
}
40+
}
41+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b",
4+
"resourceGroupName": "test-rg",
5+
"galleryImageName": "test-gallery-image",
6+
"api-version": "2023-07-01-preview"
7+
},
8+
"responses": {
9+
"200": {
10+
"headers": {
11+
"azure-asyncoperation": "http://azure.async.operation/status"
12+
}
13+
},
14+
"202": {
15+
"headers": {
16+
"azure-asyncoperation": "http://azure.async.operation/status"
17+
}
18+
},
19+
"204": {
20+
"headers": {
21+
"azure-asyncoperation": "http://azure.async.operation/status"
22+
}
23+
}
24+
}
25+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"parameters": {
3+
"api-version": "2023-07-01-preview",
4+
"resourceUri": "subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/Microsoft.HybridCompute/machines/DemoVM"
5+
},
6+
"responses": {
7+
"202": {
8+
"headers": {
9+
"azure-asyncoperation": "http://azure.async.operation/status"
10+
}
11+
},
12+
"204": {
13+
"headers": {
14+
"azure-asyncoperation": "http://azure.async.operation/status"
15+
}
16+
}
17+
}
18+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b",
4+
"resourceGroupName": "test-rg",
5+
"marketplaceGalleryImageName": "test-marketplace-gallery-image",
6+
"api-version": "2023-07-01-preview"
7+
},
8+
"responses": {
9+
"200": {
10+
"headers": {
11+
"azure-asyncoperation": "http://azure.async.operation/status"
12+
}
13+
},
14+
"202": {
15+
"headers": {
16+
"azure-asyncoperation": "http://azure.async.operation/status"
17+
}
18+
},
19+
"204": {
20+
"headers": {
21+
"azure-asyncoperation": "http://azure.async.operation/status"
22+
}
23+
}
24+
}
25+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b",
4+
"resourceGroupName": "test-rg",
5+
"networkInterfaceName": "test-nic",
6+
"api-version": "2023-07-01-preview"
7+
},
8+
"responses": {
9+
"200": {
10+
"headers": {
11+
"azure-asyncoperation": "http://azure.async.operation/status"
12+
}
13+
},
14+
"202": {
15+
"headers": {
16+
"azure-asyncoperation": "http://azure.async.operation/status"
17+
}
18+
},
19+
"204": {
20+
"headers": {
21+
"azure-asyncoperation": "http://azure.async.operation/status"
22+
}
23+
}
24+
}
25+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b",
4+
"resourceGroupName": "test-rg",
5+
"storageContainerName": "Default_Container",
6+
"api-version": "2023-07-01-preview"
7+
},
8+
"responses": {
9+
"200": {
10+
"headers": {
11+
"azure-asyncoperation": "http://azure.async.operation/status"
12+
}
13+
},
14+
"202": {
15+
"headers": {
16+
"azure-asyncoperation": "http://azure.async.operation/status"
17+
}
18+
},
19+
"204": {
20+
"headers": {
21+
"azure-asyncoperation": "http://azure.async.operation/status"
22+
}
23+
}
24+
}
25+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b",
4+
"resourceGroupName": "test-rg",
5+
"virtualHardDiskName": "test-vhd",
6+
"api-version": "2023-07-01-preview"
7+
},
8+
"responses": {
9+
"200": {
10+
"headers": {
11+
"azure-asyncoperation": "http://azure.async.operation/status"
12+
}
13+
},
14+
"202": {
15+
"headers": {
16+
"azure-asyncoperation": "http://azure.async.operation/status"
17+
}
18+
},
19+
"204": {
20+
"headers": {
21+
"azure-asyncoperation": "http://azure.async.operation/status"
22+
}
23+
}
24+
}
25+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"parameters": {
3+
"resourceUri": "subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/Microsoft.HybridCompute/machines/DemoVM/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default",
4+
"api-version": "2023-07-01-preview"
5+
},
6+
"responses": {
7+
"202": {
8+
"headers": {
9+
"azure-asyncoperation": "http://azure.async.operation/status"
10+
}
11+
},
12+
"204": {
13+
"headers": {
14+
"azure-asyncoperation": "http://azure.async.operation/status"
15+
}
16+
}
17+
}
18+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b",
4+
"resourceGroupName": "test-rg",
5+
"virtualNetworkName": "test-vnet",
6+
"api-version": "2023-07-01-preview"
7+
},
8+
"responses": {
9+
"200": {
10+
"headers": {
11+
"azure-asyncoperation": "http://azure.async.operation/status"
12+
}
13+
},
14+
"202": {
15+
"headers": {
16+
"azure-asyncoperation": "http://azure.async.operation/status"
17+
}
18+
},
19+
"204": {
20+
"headers": {
21+
"azure-asyncoperation": "http://azure.async.operation/status"
22+
}
23+
}
24+
}
25+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b",
4+
"resourceGroupName": "test-rg",
5+
"galleryImageName": "test-gallery-image",
6+
"api-version": "2023-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+
"containerId": "Default_Container",
22+
"osType": "Windows",
23+
"cloudInitDataSource": "NoCloud",
24+
"hyperVGeneration": "V1",
25+
"identifier": {
26+
"publisher": "myPublisherName",
27+
"offer": "myOfferName",
28+
"sku": "mySkuName"
29+
},
30+
"version": {
31+
"name": "1.0.0",
32+
"properties": {
33+
"storageProfile": {
34+
"osDiskImage": {
35+
"sizeInMB": 30270
36+
}
37+
}
38+
}
39+
},
40+
"status": {
41+
"provisioningStatus": {
42+
"operationId": "79cfc696-44f5-4a68-a620-21850f7e9fb0",
43+
"status": "Succeeded"
44+
},
45+
"progressPercentage": 100,
46+
"downloadStatus": {
47+
"downloadSizeInMB": 9382
48+
}
49+
}
50+
}
51+
}
52+
}
53+
}
54+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"parameters": {
3+
"api-version": "2023-07-01-preview",
4+
"resourceUri": "subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/Microsoft.HybridCompute/machines/DemoVM"
5+
},
6+
"responses": {
7+
"200": {
8+
"body": {
9+
"id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/Microsoft.HybridCompute/machines/DemoVM/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default/guestAgents/default",
10+
"name": "default",
11+
"type": "Microsoft.AzureStackHCI/virtualMachineInstances/guestAgents",
12+
"properties": {
13+
"provisioningAction": "install",
14+
"status": "connected",
15+
"provisioningState": "Succeeded"
16+
}
17+
}
18+
}
19+
}
20+
}

0 commit comments

Comments
 (0)