Skip to content

Commit 59883fd

Browse files
pathuang-siaPatricia Huang
and
Patricia Huang
authored
[Hub Generated] Review request for Microsoft.AzureStackHCI to add version preview/2023-09-01-preview (#25555)
* Adds base for updating Microsoft.AzureStackHCI from version preview/2023-07-01-preview to version 2023-09-01 * Updates readme * Updates API version in new specs and examples * update 2023-09-01 from Azure/azure-rest-api-specs-pr#14245 * add suppressions from cluster resources * remove suppressions from cluster team as some of the files don't exist yet * remove name redundancy in definitions, remove x-ms-client-flatten in gateway * remove suppression GetCollectionOnlyHasValueAndNextLink * remove x-ms-code-generation-settings from resource files since the client name is already set in the title lin in readme file according to docs: https://github.com/Azure/azure-openapi-validator/blob/main/docs/deprecated-xms-code-generation-setting.md * pick up changes from Azure/azure-rest-api-specs-pr#14872 * pick up changes from Azure/azure-rest-api-specs-pr#15062 * fix routetable properties to readonly and correct name according to https://github.com/Azure/azure-rest-api-specs-pr/blob/9b0cab3710aa58519c6aa9e11f350b22e0fc3dc9/specification/network/resource-manager/Microsoft.Network/stable/2023-02-01/routeTable.json#L707 * fix property description * updating 2023-09-01 to 2023-09-01-preview according to breaking change committee guidance * remove 200 response from LRO delete * add suppression as requested reviewer --------- Co-authored-by: Patricia Huang <pathuang@pathuang-dev>
1 parent 46178ee commit 59883fd

File tree

63 files changed

+7540
-7
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

+7540
-7
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-09-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-09-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,20 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b",
4+
"resourceGroupName": "test-rg",
5+
"galleryImageName": "test-gallery-image",
6+
"api-version": "2023-09-01-preview"
7+
},
8+
"responses": {
9+
"202": {
10+
"headers": {
11+
"azure-asyncoperation": "http://azure.async.operation/status"
12+
}
13+
},
14+
"204": {
15+
"headers": {
16+
"azure-asyncoperation": "http://azure.async.operation/status"
17+
}
18+
}
19+
}
20+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"parameters": {
3+
"api-version": "2023-09-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,20 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b",
4+
"resourceGroupName": "test-rg",
5+
"logicalNetworkName": "test-lnet",
6+
"api-version": "2023-09-01-preview"
7+
},
8+
"responses": {
9+
"202": {
10+
"headers": {
11+
"azure-asyncoperation": "http://azure.async.operation/status"
12+
}
13+
},
14+
"204": {
15+
"headers": {
16+
"azure-asyncoperation": "http://azure.async.operation/status"
17+
}
18+
}
19+
}
20+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b",
4+
"resourceGroupName": "test-rg",
5+
"marketplaceGalleryImageName": "test-marketplace-gallery-image",
6+
"api-version": "2023-09-01-preview"
7+
},
8+
"responses": {
9+
"202": {
10+
"headers": {
11+
"azure-asyncoperation": "http://azure.async.operation/status"
12+
}
13+
},
14+
"204": {
15+
"headers": {
16+
"azure-asyncoperation": "http://azure.async.operation/status"
17+
}
18+
}
19+
}
20+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b",
4+
"resourceGroupName": "test-rg",
5+
"networkInterfaceName": "test-nic",
6+
"api-version": "2023-09-01-preview"
7+
},
8+
"responses": {
9+
"202": {
10+
"headers": {
11+
"azure-asyncoperation": "http://azure.async.operation/status"
12+
}
13+
},
14+
"204": {
15+
"headers": {
16+
"azure-asyncoperation": "http://azure.async.operation/status"
17+
}
18+
}
19+
}
20+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b",
4+
"resourceGroupName": "test-rg",
5+
"storageContainerName": "Default_Container",
6+
"api-version": "2023-09-01-preview"
7+
},
8+
"responses": {
9+
"202": {
10+
"headers": {
11+
"azure-asyncoperation": "http://azure.async.operation/status"
12+
}
13+
},
14+
"204": {
15+
"headers": {
16+
"azure-asyncoperation": "http://azure.async.operation/status"
17+
}
18+
}
19+
}
20+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b",
4+
"resourceGroupName": "test-rg",
5+
"virtualHardDiskName": "test-vhd",
6+
"api-version": "2023-09-01-preview"
7+
},
8+
"responses": {
9+
"202": {
10+
"headers": {
11+
"azure-asyncoperation": "http://azure.async.operation/status"
12+
}
13+
},
14+
"204": {
15+
"headers": {
16+
"azure-asyncoperation": "http://azure.async.operation/status"
17+
}
18+
}
19+
}
20+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"parameters": {
3+
"api-version": "2023-09-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,54 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b",
4+
"resourceGroupName": "test-rg",
5+
"galleryImageName": "test-gallery-image",
6+
"api-version": "2023-09-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": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-storage-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": 9383
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-09-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+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"parameters": {
3+
"api-version": "2023-09-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/hybridIdentityMetadata/default",
10+
"name": "default",
11+
"type": "Microsoft.AzureStackHCI/virtualMachineInstances/hybridIdentityMetadata",
12+
"properties": {
13+
"publicKey": "8ec7d60c-9700-40b1-8e6e-e5b2f6f477f2",
14+
"identity": {
15+
"principalId": "7b5129bc-8642-4a6a-95f8-63400ca6ec4d",
16+
"tenantId": "ec46ca82-5d4a-4e3e-b4b7-e27f9318645d",
17+
"type": "SystemAssigned"
18+
}
19+
}
20+
}
21+
}
22+
}
23+
}
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+
"logicalNetworkName": "test-lnet",
6+
"api-version": "2023-09-01-preview"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/logicalNetworks/test-lnet",
12+
"name": "test-lnet",
13+
"type": "Microsoft.AzureStackHCI/logicalNetworks",
14+
"location": "West US2",
15+
"extendedLocation": {
16+
"name": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location",
17+
"type": "CustomLocation"
18+
},
19+
"properties": {
20+
"provisioningState": "Accepted"
21+
}
22+
}
23+
}
24+
}
25+
}

0 commit comments

Comments
 (0)