Skip to content

Commit

Permalink
Add new api-versions (Azure#30637)
Browse files Browse the repository at this point in the history
* Add new api-versions

* add operations files

* add upload to 2024-08-01-preview

* add to readme and cspell

* remove suppress message

* Added a new type of resource allowed for the subnet.id property in a NetworkInterface

* Added vmImageCredentials to gallery image properties for Nexus

* Allow references to Microsoft.NetworkCloud/l2/l3/trunkednetwork types by AzStackHCINetworkInterface

* remove api-version internal

* get rid of file

* Update sdk-suppressions.yaml

* Update sdk-suppressions.yaml

---------

Co-authored-by: kumdeepakgit <[email protected]>
Co-authored-by: Ashwini Cheerla <[email protected]>
Co-authored-by: Yuchao Yan <[email protected]>
Co-authored-by: Chenjie Shi <[email protected]>
  • Loading branch information
5 people authored Oct 11, 2024
1 parent 57cbfdb commit 3b2c83a
Show file tree
Hide file tree
Showing 221 changed files with 25,063 additions and 3 deletions.
6 changes: 6 additions & 0 deletions cSpell.json
Original file line number Diff line number Diff line change
Expand Up @@ -1653,6 +1653,12 @@
"words": [
"billables"
]
},
{
"filename": "**/specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/**/*.json",
"words": [
"SEVSNP"
]
}
],
"enableFiletypes": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ using TypeSpec.Rest;
using Azure.ResourceManager;
using TypeSpec.Http;
using TypeSpec.OpenAPI;
using TypeSpec.Versioning;

namespace Microsoft.AzureStackHCI;

Expand Down Expand Up @@ -52,4 +53,12 @@ interface VirtualHardDisks {

@doc("Lists all of the virtual hard disks in the specified subscription. Use the nextLink property in the response to get the next page of virtual hard disks.")
listAll is ArmListBySubscription<VirtualHardDisk>;

@added(Versions.v2024_08_01_preview)
@doc("The operation to upload a virtual hard disk.")
upload is ArmResourceActionAsync<
VirtualHardDisk,
VirtualHardDiskUploadRequest,
VirtualHardDiskUploadResponse
>;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"parameters": {
"api-version": "2024-08-01-preview",
"resourceUri": "subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.HybridCompute/machines/DemoVM"
},
"responses": {
"200": {
"body": {
"name": "default",
"type": "Microsoft.AzureStackHCI/virtualMachineInstances/AttestationStatus",
"id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.HybridCompute/machines/DemoVM/providers/Microsoft.AzureStackHCI/virtualMachineInstances/default/attestationStatus/default",
"properties": {
"attestSecureBootEnabled": "Disabled",
"attestationCertValidated": "Invalid",
"bootIntegrityValidated": "Invalid",
"errorMessage": "Attestation token has invalid signature",
"healthStatus": "Unhealthy",
"linuxKernelVersion": "1.0.0.0",
"timestamp": "2023/11/10 9:48",
"attestHardwarePlatform": "Unknown",
"attestDiskSecurityEncryptionType": "Unknown"
}
}
}
},
"operationId": "AttestationStatuses_Get",
"title": "GetAttestationStatus"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
{
"parameters": {
"api-version": "2024-08-01-preview",
"galleryImageName": "test-gallery-image",
"resource": {
"extendedLocation": {
"name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location",
"type": "CustomLocation"
},
"location": "West US2",
"properties": {
"containerId": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-storage-container",
"imagePath": "C:\\test.vhdx",
"osType": "Linux"
}
},
"resourceGroupName": "test-rg",
"subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b"
},
"responses": {
"200": {
"body": {
"name": "test-gallery-image",
"type": "Microsoft.AzureStackHCI/galleryImages",
"extendedLocation": {
"name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location",
"type": "CustomLocation"
},
"id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryImages/test-gallery-image",
"location": "West US2",
"properties": {
"cloudInitDataSource": "NoCloud",
"containerId": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-storage-container",
"hyperVGeneration": "V2",
"osType": "Linux",
"provisioningState": "Accepted",
"status": {
"downloadStatus": {
"downloadSizeInMB": 9383
},
"progressPercentage": 100,
"provisioningStatus": {
"operationId": "79cfc696-44f5-4a68-a620-21850f7e9fb0",
"status": "Succeeded"
}
},
"version": {
"properties": {
"storageProfile": {
"osDiskImage": {
"sizeInMB": 30270
}
}
}
}
}
}
},
"201": {
"body": {
"name": "test-gallery-image",
"type": "Microsoft.AzureStackHCI/galleryImages",
"extendedLocation": {
"name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location",
"type": "CustomLocation"
},
"id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryImages/test-galimg3325",
"location": "West US2",
"properties": {
"cloudInitDataSource": "NoCloud",
"containerId": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-storage-container",
"hyperVGeneration": "V2",
"osType": "Linux",
"provisioningState": "Succeeded",
"status": {
"downloadStatus": {
"downloadSizeInMB": 9383
},
"progressPercentage": 100,
"provisioningStatus": {
"operationId": "79cfc696-44f5-4a68-a620-21850f7e9fb0",
"status": "Succeeded"
}
},
"version": {
"properties": {
"storageProfile": {
"osDiskImage": {
"sizeInMB": 30270
}
}
}
}
}
}
}
},
"operationId": "GalleryImages_CreateOrUpdate",
"title": "PutGalleryImage"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"parameters": {
"api-version": "2024-08-01-preview",
"galleryImageName": "test-gallery-image",
"resourceGroupName": "test-rg",
"subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b"
},
"responses": {
"202": {
"headers": {
"azure-asyncoperation": "http://azure.async.operation/status"
}
},
"204": {
"headers": {
"azure-asyncoperation": "http://azure.async.operation/status"
}
}
},
"operationId": "GalleryImages_Delete",
"title": "DeleteGalleryImage"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{
"parameters": {
"api-version": "2024-08-01-preview",
"galleryImageName": "test-gallery-image",
"resourceGroupName": "test-rg",
"subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b"
},
"responses": {
"200": {
"body": {
"name": "test-gallery-image",
"type": "Microsoft.AzureStackHCI/galleryImages",
"extendedLocation": {
"name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location",
"type": "CustomLocation"
},
"id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryImages/test-gallery-image",
"location": "West US2",
"properties": {
"cloudInitDataSource": "NoCloud",
"containerId": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-storage-container",
"hyperVGeneration": "V1",
"identifier": {
"offer": "myOfferName",
"publisher": "myPublisherName",
"sku": "mySkuName"
},
"osType": "Windows",
"provisioningState": "Accepted",
"status": {
"downloadStatus": {
"downloadSizeInMB": 9383
},
"progressPercentage": 100,
"provisioningStatus": {
"operationId": "79cfc696-44f5-4a68-a620-21850f7e9fb0",
"status": "Succeeded"
}
},
"version": {
"name": "1.0.0",
"properties": {
"storageProfile": {
"osDiskImage": {
"sizeInMB": 30270
}
}
}
}
}
}
}
},
"operationId": "GalleryImages_Get",
"title": "GetGalleryImage"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"parameters": {
"api-version": "2024-08-01-preview",
"subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b"
},
"responses": {
"200": {
"body": {
"value": [
{
"name": "test-gallery-image",
"type": "Microsoft.AzureStackHCI/galleryImages",
"extendedLocation": {
"name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location",
"type": "CustomLocation"
},
"id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryImages/test-gallery-image",
"location": "West US2",
"properties": {
"cloudInitDataSource": "NoCloud",
"containerId": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-storage-container",
"hyperVGeneration": "V2",
"osType": "Linux",
"provisioningState": "Accepted",
"status": {
"downloadStatus": {
"downloadSizeInMB": 9383
},
"progressPercentage": 100,
"provisioningStatus": {
"operationId": "79cfc696-44f5-4a68-a620-21850f7e9fb0",
"status": "Succeeded"
}
},
"version": {
"properties": {
"storageProfile": {
"osDiskImage": {
"sizeInMB": 30270
}
}
}
}
}
}
]
}
}
},
"operationId": "GalleryImages_ListAll",
"title": "ListGalleryImageBySubscription"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
"parameters": {
"api-version": "2024-08-01-preview",
"resourceGroupName": "test-rg",
"subscriptionId": "fd3c3665-1729-4b7b-9a38-238e83b0f98b"
},
"responses": {
"200": {
"body": {
"value": [
{
"name": "test-gallery-image",
"type": "Microsoft.AzureStackHCI/galleryImages",
"extendedLocation": {
"name": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.ExtendedLocation/customLocations/dogfood-location",
"type": "CustomLocation"
},
"id": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/galleryImages/test-gallery-image",
"location": "West US2",
"properties": {
"cloudInitDataSource": "NoCloud",
"containerId": "/subscriptions/a95612cb-f1fa-4daa-a4fd-272844fa512c/resourceGroups/dogfoodarc/providers/Microsoft.AzureStackHCI/storageContainers/test-storage-container",
"hyperVGeneration": "V2",
"osType": "Linux",
"provisioningState": "Accepted",
"status": {
"downloadStatus": {
"downloadSizeInMB": 9383
},
"progressPercentage": 100,
"provisioningStatus": {
"operationId": "79cfc696-44f5-4a68-a620-21850f7e9fb0",
"status": "Succeeded"
}
},
"version": {
"properties": {
"storageProfile": {
"osDiskImage": {
"sizeInMB": 30270
}
}
}
}
}
}
]
}
}
},
"operationId": "GalleryImages_ListByResourceGroup",
"title": "ListGalleryImageByResourceGroup"
}
Loading

0 comments on commit 3b2c83a

Please sign in to comment.