-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Hub Generated] Review request for Microsoft.AzureStackHCI to add ver…
…sion 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>
- Loading branch information
1 parent
46178ee
commit 59883fd
Showing
63 changed files
with
7,540 additions
and
7 deletions.
There are no files selected for viewing
64 changes: 64 additions & 0 deletions
64
...estackhci/resource-manager/Microsoft.AzureStackHCI/preview/2023-09-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": "2023-09-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." | ||
} | ||
} | ||
} | ||
} | ||
} |
41 changes: 41 additions & 0 deletions
41
...manager/Microsoft.AzureStackHCI/preview/2023-09-01-preview/examples/CreateGuestAgent.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,41 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2023-09-01-preview", | ||
"resourceUri": "subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/Microsoft.HybridCompute/machines/DemoVM", | ||
"body": { | ||
"properties": { | ||
"provisioningAction": "install", | ||
"credentials": { | ||
"username": "tempuser", | ||
"password": "<password>" | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/Microsoft.HybridCompute/machines/DemoVM/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default/guestAgents/default", | ||
"name": "default", | ||
"type": "Microsoft.AzureStackHCI/virtualMachineInstances/guestAgents", | ||
"properties": { | ||
"provisioningAction": "install", | ||
"status": "connected", | ||
"provisioningState": "Succeeded" | ||
} | ||
} | ||
}, | ||
"201": { | ||
"body": { | ||
"id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/Microsoft.HybridCompute/machines/DemoVM/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default/guestAgents/default", | ||
"name": "default", | ||
"type": "Microsoft.AzureStackHCI/virtualMachineInstances/guestAgents", | ||
"properties": { | ||
"provisioningAction": "install", | ||
"status": "connected", | ||
"provisioningState": "Created" | ||
} | ||
} | ||
} | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
...nager/Microsoft.AzureStackHCI/preview/2023-09-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,20 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", | ||
"resourceGroupName": "test-rg", | ||
"galleryImageName": "test-gallery-image", | ||
"api-version": "2023-09-01-preview" | ||
}, | ||
"responses": { | ||
"202": { | ||
"headers": { | ||
"azure-asyncoperation": "http://azure.async.operation/status" | ||
} | ||
}, | ||
"204": { | ||
"headers": { | ||
"azure-asyncoperation": "http://azure.async.operation/status" | ||
} | ||
} | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
...manager/Microsoft.AzureStackHCI/preview/2023-09-01-preview/examples/DeleteGuestAgent.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,18 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2023-09-01-preview", | ||
"resourceUri": "subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/Microsoft.HybridCompute/machines/DemoVM" | ||
}, | ||
"responses": { | ||
"202": { | ||
"headers": { | ||
"azure-asyncoperation": "http://azure.async.operation/status" | ||
} | ||
}, | ||
"204": { | ||
"headers": { | ||
"azure-asyncoperation": "http://azure.async.operation/status" | ||
} | ||
} | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
...ger/Microsoft.AzureStackHCI/preview/2023-09-01-preview/examples/DeleteLogicalNetwork.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,20 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", | ||
"resourceGroupName": "test-rg", | ||
"logicalNetworkName": "test-lnet", | ||
"api-version": "2023-09-01-preview" | ||
}, | ||
"responses": { | ||
"202": { | ||
"headers": { | ||
"azure-asyncoperation": "http://azure.async.operation/status" | ||
} | ||
}, | ||
"204": { | ||
"headers": { | ||
"azure-asyncoperation": "http://azure.async.operation/status" | ||
} | ||
} | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
...soft.AzureStackHCI/preview/2023-09-01-preview/examples/DeleteMarketplaceGalleryImage.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,20 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", | ||
"resourceGroupName": "test-rg", | ||
"marketplaceGalleryImageName": "test-marketplace-gallery-image", | ||
"api-version": "2023-09-01-preview" | ||
}, | ||
"responses": { | ||
"202": { | ||
"headers": { | ||
"azure-asyncoperation": "http://azure.async.operation/status" | ||
} | ||
}, | ||
"204": { | ||
"headers": { | ||
"azure-asyncoperation": "http://azure.async.operation/status" | ||
} | ||
} | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
...r/Microsoft.AzureStackHCI/preview/2023-09-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,20 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", | ||
"resourceGroupName": "test-rg", | ||
"networkInterfaceName": "test-nic", | ||
"api-version": "2023-09-01-preview" | ||
}, | ||
"responses": { | ||
"202": { | ||
"headers": { | ||
"azure-asyncoperation": "http://azure.async.operation/status" | ||
} | ||
}, | ||
"204": { | ||
"headers": { | ||
"azure-asyncoperation": "http://azure.async.operation/status" | ||
} | ||
} | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
...r/Microsoft.AzureStackHCI/preview/2023-09-01-preview/examples/DeleteStorageContainer.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,20 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", | ||
"resourceGroupName": "test-rg", | ||
"storageContainerName": "Default_Container", | ||
"api-version": "2023-09-01-preview" | ||
}, | ||
"responses": { | ||
"202": { | ||
"headers": { | ||
"azure-asyncoperation": "http://azure.async.operation/status" | ||
} | ||
}, | ||
"204": { | ||
"headers": { | ||
"azure-asyncoperation": "http://azure.async.operation/status" | ||
} | ||
} | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
...er/Microsoft.AzureStackHCI/preview/2023-09-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,20 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", | ||
"resourceGroupName": "test-rg", | ||
"virtualHardDiskName": "test-vhd", | ||
"api-version": "2023-09-01-preview" | ||
}, | ||
"responses": { | ||
"202": { | ||
"headers": { | ||
"azure-asyncoperation": "http://azure.async.operation/status" | ||
} | ||
}, | ||
"204": { | ||
"headers": { | ||
"azure-asyncoperation": "http://azure.async.operation/status" | ||
} | ||
} | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
...osoft.AzureStackHCI/preview/2023-09-01-preview/examples/DeleteVirtualMachineInstance.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,18 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2023-09-01-preview", | ||
"resourceUri": "subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/Microsoft.HybridCompute/machines/DemoVM" | ||
}, | ||
"responses": { | ||
"202": { | ||
"headers": { | ||
"azure-asyncoperation": "http://azure.async.operation/status" | ||
} | ||
}, | ||
"204": { | ||
"headers": { | ||
"azure-asyncoperation": "http://azure.async.operation/status" | ||
} | ||
} | ||
} | ||
} |
54 changes: 54 additions & 0 deletions
54
...-manager/Microsoft.AzureStackHCI/preview/2023-09-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,54 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", | ||
"resourceGroupName": "test-rg", | ||
"galleryImageName": "test-gallery-image", | ||
"api-version": "2023-09-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", | ||
"containerId": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-storage-container", | ||
"osType": "Windows", | ||
"cloudInitDataSource": "NoCloud", | ||
"hyperVGeneration": "V1", | ||
"identifier": { | ||
"publisher": "myPublisherName", | ||
"offer": "myOfferName", | ||
"sku": "mySkuName" | ||
}, | ||
"version": { | ||
"name": "1.0.0", | ||
"properties": { | ||
"storageProfile": { | ||
"osDiskImage": { | ||
"sizeInMB": 30270 | ||
} | ||
} | ||
} | ||
}, | ||
"status": { | ||
"provisioningStatus": { | ||
"operationId": "79cfc696-44f5-4a68-a620-21850f7e9fb0", | ||
"status": "Succeeded" | ||
}, | ||
"progressPercentage": 100, | ||
"downloadStatus": { | ||
"downloadSizeInMB": 9383 | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
...ce-manager/Microsoft.AzureStackHCI/preview/2023-09-01-preview/examples/GetGuestAgent.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,20 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2023-09-01-preview", | ||
"resourceUri": "subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/Microsoft.HybridCompute/machines/DemoVM" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/Microsoft.HybridCompute/machines/DemoVM/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default/guestAgents/default", | ||
"name": "default", | ||
"type": "Microsoft.AzureStackHCI/virtualMachineInstances/guestAgents", | ||
"properties": { | ||
"provisioningAction": "install", | ||
"status": "connected", | ||
"provisioningState": "Succeeded" | ||
} | ||
} | ||
} | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
...icrosoft.AzureStackHCI/preview/2023-09-01-preview/examples/GetHybridIdentityMetadata.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,23 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2023-09-01-preview", | ||
"resourceUri": "subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/Microsoft.HybridCompute/machines/DemoVM" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/Microsoft.HybridCompute/machines/DemoVM/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default/hybridIdentityMetadata/default", | ||
"name": "default", | ||
"type": "Microsoft.AzureStackHCI/virtualMachineInstances/hybridIdentityMetadata", | ||
"properties": { | ||
"publicKey": "8ec7d60c-9700-40b1-8e6e-e5b2f6f477f2", | ||
"identity": { | ||
"principalId": "7b5129bc-8642-4a6a-95f8-63400ca6ec4d", | ||
"tenantId": "ec46ca82-5d4a-4e3e-b4b7-e27f9318645d", | ||
"type": "SystemAssigned" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
...anager/Microsoft.AzureStackHCI/preview/2023-09-01-preview/examples/GetLogicalNetwork.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,25 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b", | ||
"resourceGroupName": "test-rg", | ||
"logicalNetworkName": "test-lnet", | ||
"api-version": "2023-09-01-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/logicalNetworks/test-lnet", | ||
"name": "test-lnet", | ||
"type": "Microsoft.AzureStackHCI/logicalNetworks", | ||
"location": "West US2", | ||
"extendedLocation": { | ||
"name": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location", | ||
"type": "CustomLocation" | ||
}, | ||
"properties": { | ||
"provisioningState": "Accepted" | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.