Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed swagger bugs #4

Merged
merged 7 commits into from
Aug 5, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -720,6 +720,12 @@
"type": "string",
"description": "ARM id of the DiskAccess resource for using private endpoints on disks."
},
"burstingEnabledTime": {
"type": "string",
akashpargat marked this conversation as resolved.
Show resolved Hide resolved
"readOnly": true,
"format": "date-time",
"description": "Latest time when bursting was last enabled on a disk."
},
"tier": {
"type": "string",
"description": "Performance tier of the disk (e.g, P4, S10) as described here: https://azure.microsoft.com/en-us/pricing/details/managed-disks/. Does not apply to Ultra disks."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,10 @@
"securityDataUri": {
"type": "string",
"description": "If createOption is ImportSecure, this is the URI of a blob to be imported into VM guest state."
},
"performancePlus": {
akashpargat marked this conversation as resolved.
Show resolved Hide resolved
"type": "boolean",
"description": "Set this flag to true to get a boost on the performance target of the disk deployed, see here on the respective performance target. This flag can only be set on disk creation time and cannot be disabled after enabled."
akashpargat marked this conversation as resolved.
Show resolved Hide resolved
}
},
"required": [
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"parameters": {
"subscriptionId": "{subscription-id}",
"resourceGroupName": "myResourceGroup",
"api-version": "2022-07-02",
"diskName": "myDisk",
"disk": {
"location": "West US",
"properties": {
"creationData": {
"createOption": "Upload",
"performancePlus": true
}
}
}
},
"responses": {
"202": {
"body": {
"properties": {
"creationData": {
"createOption": "Upload",
"performancePlus": true
},
"provisioningState": "Updating"
},
"location": "West US",
"name": "myDisk"
}
},
"200": {
"body": {
"properties": {
"creationData": {
"createOption": "Upload",
"performancePlus": true
},
"provisioningState": "Updating"
},
"location": "West US",
"name": "myDisk"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
{
"parameters": {
"subscriptionId": "{subscription-id}",
"resourceGroupName": "myResourceGroup",
"api-version": "2022-07-02",
"diskName": "myUltraReadOnlyDisk",
"disk": {
"location": "West US",
"sku": {
"name": "UltraSSD_LRS"
},
"properties": {
"creationData": {
"createOption": "Empty",
"logicalSectorSize": 4096
},
"diskSizeGB": 200,
"diskIOPSReadWrite": 125,
"diskMBpsReadWrite": 3000,
"readOnly": true,
"encryption": {
"type": "EncryptionAtRestWithPlatformKey"
}
}
}
},
"responses": {
"202": {
"body": {
"properties": {
"creationData": {
"createOption": "Empty"
},
"diskSizeGB": 200,
"provisioningState": "Updating"
},
"readOnly": true,
"location": "West US",
akashpargat marked this conversation as resolved.
Show resolved Hide resolved
"name": "myUltraReadOnlyDisk",
"sku": {
"name": "UltraSSD_LRS",
"tier": "Ultra"
}
}
},
"200": {
"body": {
"properties": {
"creationData": {
"createOption": "Empty"
},
"diskSizeGB": 200,
"provisioningState": "Updating"
},
"encryption": {
"type": "EncryptionAtRestWithPlatformKey"
},
"readOnly": true,
"location": "West US",
"name": "myUltraReadOnlyDisk",
"sku": {
"name": "UltraSSD_LRS",
"tier": "Ultra"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
{
"parameters": {
"subscriptionId": "{subscription-id}",
"resourceGroupName": "myResourceGroup",
"api-version": "2022-07-02",
"snapshotName": "myIncrementalSnapshot"
},
"responses": {
"200": {
"body": {
"properties": {
"osType": "Windows",
"hyperVGeneration": "V1",
"purchasePlan": {
"name": "test_sku",
"publisher": "test_test_pmc2pc1",
"product": "marketplace_vm_test"
},
"supportedCapabilities": {
"acceleratedNetwork": true
},
"supportsHibernation": true,
"creationData": {
"createOption": "Copy",
"sourceResourceId": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myDisk",
"sourceUniqueId": "d633885d-d102-4481-901e-5b2413d1a7be"
},
"diskSizeGB": 100,
"encryptionSettingsCollection": {
"enabled": true,
"encryptionSettings": [
{
"diskEncryptionKey": {
"sourceVault": {
"id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.KeyVault/vaults/myVMVault"
},
"secretUrl": "https://myvmvault.vault-int.azure-int.net/secrets/{secret}"
},
"keyEncryptionKey": {
"sourceVault": {
"id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.KeyVault/vaults/myVMVault"
},
"keyUrl": "https://myvmvault.vault-int.azure-int.net/keys/{key}"
}
}
]
},
"encryption": {
"type": "EncryptionAtRestWithPlatformKey"
},
"incremental": true,
"networkAccessPolicy": 0,
"diskState": 0,
"diskSizeBytes": 10737418240,
"uniqueId": "a395e9c1-fb9e-446e-a9ba-7b2fa0bcd305",
"incrementalSnapshotFamilyId": "d1a341d5-1ea7-4a85-b304-944ad8021639",
"timeCreated": "2016-12-28T04:41:35.079872+00:00",
"provisioningState": "Succeeded"
},
"type": "Microsoft.Compute/snapshots",
"location": "westus",
"tags": {
"department": "Development",
"project": "Snapshots"
},
"id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/myIncrementalSnapshot",
"name": "myIncrementalSnapshot"
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -561,6 +561,11 @@
"type": "boolean",
"description": "Whether a snapshot is incremental. Incremental snapshots on the same disk occupy less space than full snapshots and can be diffed."
},
"incrementalSnapshotFamilyId": {
akashpargat marked this conversation as resolved.
Show resolved Hide resolved
akashpargat marked this conversation as resolved.
Show resolved Hide resolved
"type": "string",
"readOnly": true,
"description": "Incremental snapshots for a disk share an incremental snapshot family id. The Get Page Range Diff API can only be called on incremental snapshots with the same family id."
},
"encryption": {
"$ref": "./diskRPCommon.json#/definitions/Encryption",
"description": "Encryption property can be used to encrypt data at rest with customer managed keys or platform managed keys."
Expand Down