forked from Azure/azure-rest-api-specs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DiskRP] Swagger changes for API version 2019-11-01 (Azure#8195)
* initial commit with the 2019-07-01 version first * adding the properties from the private sdk from version 2019-07-01 * adding diskIOPSReadOnly and diskMBpsReadOnly * adding 202 response code for PUT of a DiskEncryptionSet * adding exmaples * updating the example for creating a disk encryption set to include the 202 response and updating the readme * removing the 201 response code from DiskEncryptionSet creation * updating the descrptions for the EncryptionTypes * type is no longer required in the Encryption field for Disk Properties * changing the readme package and description for diskmbpsreadonly and diskiopsreadonly descriptions in disk.json * making diskMBpsReadWrite an int64 * updating the exmaples and disk.json to use the 2019-11-01 version * removing encryptionwithcustomerkey * adding galleryImageRef * supressing the camelCase rule for IOPS * fixing syntax errors in readme.md * changing the supression file to be disk.json rather than disks.json * adding properties to the supression paths * updating the from field in the supression * updating supression * moving supression to the top * suppressing the lint errors for IOPS * removing diskencryptionset changes * putting encryption type back in the disk encryption object but type is now optional * removing encryption set type
- Loading branch information
Showing
24 changed files
with
3,300 additions
and
1 deletion.
There are no files selected for viewing
2,008 changes: 2,008 additions & 0 deletions
2,008
specification/compute/resource-manager/Microsoft.Compute/stable/2019-11-01/disk.json
Large diffs are not rendered by default.
Oops, something went wrong.
60 changes: 60 additions & 0 deletions
60
...source-manager/Microsoft.Compute/stable/2019-11-01/examples/CreateADiskEncryptionSet.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,60 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "{subscription-id}", | ||
"resourceGroupName": "myResourceGroup", | ||
"api-version": "2019-11-01", | ||
"diskEncryptionSetName": "myDiskEncryptionSet", | ||
"diskEncryptionSet": { | ||
"location": "West US", | ||
"identity": { | ||
"type": "SystemAssigned" | ||
}, | ||
"properties": { | ||
"activeKey": { | ||
"sourceVault": { | ||
"id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.KeyVault/vaults/myVMVault" | ||
}, | ||
"keyUrl": "https://myvmvault.vault-int.azure-int.net/keys/{key}" | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"201": { | ||
"body": { | ||
"name": "myDiskEncryptionSet", | ||
"location": "West US", | ||
"identity": { | ||
"type": "SystemAssigned" | ||
}, | ||
"properties": { | ||
"activeKey": { | ||
"sourceVault": { | ||
"id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.KeyVault/vaults/myVMVault" | ||
}, | ||
"keyUrl": "https://myvmvault.vault-int.azure-int.net/keys/{key}" | ||
}, | ||
"previousKeys": [] | ||
} | ||
} | ||
}, | ||
"200": { | ||
"body": { | ||
"name": "myDiskEncryptionSet", | ||
"location": "West US", | ||
"identity": { | ||
"type": "SystemAssigned" | ||
}, | ||
"properties": { | ||
"activeKey": { | ||
"sourceVault": { | ||
"id": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.KeyVault/vaults/myVMVault" | ||
}, | ||
"keyUrl": "https://myvmvault.vault-int.azure-int.net/keys/{key}" | ||
}, | ||
"previousKeys": [] | ||
} | ||
} | ||
} | ||
} | ||
} |
45 changes: 45 additions & 0 deletions
45
...er/Microsoft.Compute/stable/2019-11-01/examples/CreateAManagedDiskByCopyingASnapshot.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,45 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "{subscription-id}", | ||
"resourceGroupName": "myResourceGroup", | ||
"api-version": "2019-11-01", | ||
"diskName": "myDisk", | ||
"disk": { | ||
"location": "West US", | ||
"properties": { | ||
"creationData": { | ||
"createOption": "Copy", | ||
"sourceResourceId": "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot" | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"202": { | ||
"body": { | ||
"name": "myDisk", | ||
"location": "West US", | ||
"properties": { | ||
"provisioningState": "Updating", | ||
"creationData": { | ||
"createOption": "Copy", | ||
"sourceResourceId": "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot" | ||
} | ||
} | ||
} | ||
}, | ||
"200": { | ||
"body": { | ||
"name": "myDisk", | ||
"location": "West US", | ||
"properties": { | ||
"provisioningState": "Updating", | ||
"creationData": { | ||
"createOption": "Copy", | ||
"sourceResourceId": "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
48 changes: 48 additions & 0 deletions
48
...1-01/examples/CreateAManagedDiskByImportingAnUnmanagedBlobFromADifferentSubscription.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,48 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "{subscription-id}", | ||
"resourceGroupName": "myResourceGroup", | ||
"api-version": "2019-11-01", | ||
"diskName": "myDisk", | ||
"disk": { | ||
"location": "West US", | ||
"properties": { | ||
"creationData": { | ||
"createOption": "Import", | ||
"storageAccountId": "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/myStorageAccount", | ||
"sourceUri": "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd" | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"202": { | ||
"body": { | ||
"name": "myDisk", | ||
"location": "West US", | ||
"properties": { | ||
"provisioningState": "Updating", | ||
"creationData": { | ||
"createOption": "Import", | ||
"storageAccountId": "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/myStorageAccount", | ||
"sourceUri": "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd" | ||
} | ||
} | ||
} | ||
}, | ||
"200": { | ||
"body": { | ||
"name": "myDisk", | ||
"location": "West US", | ||
"properties": { | ||
"provisioningState": "Updating", | ||
"creationData": { | ||
"createOption": "Import", | ||
"storageAccountId": "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/myStorageAccount", | ||
"sourceUri": "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
45 changes: 45 additions & 0 deletions
45
...9-11-01/examples/CreateAManagedDiskByImportingAnUnmanagedBlobFromTheSameSubscription.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,45 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "{subscription-id}", | ||
"resourceGroupName": "myResourceGroup", | ||
"api-version": "2019-11-01", | ||
"diskName": "myDisk", | ||
"disk": { | ||
"location": "West US", | ||
"properties": { | ||
"creationData": { | ||
"createOption": "Import", | ||
"sourceUri": "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd" | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"202": { | ||
"body": { | ||
"name": "myDisk", | ||
"location": "West US", | ||
"properties": { | ||
"provisioningState": "Updating", | ||
"creationData": { | ||
"createOption": "Import", | ||
"sourceUri": "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd" | ||
} | ||
} | ||
} | ||
}, | ||
"200": { | ||
"body": { | ||
"name": "myDisk", | ||
"location": "West US", | ||
"properties": { | ||
"provisioningState": "Updating", | ||
"creationData": { | ||
"createOption": "Import", | ||
"sourceUri": "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
54 changes: 54 additions & 0 deletions
54
...er/Microsoft.Compute/stable/2019-11-01/examples/CreateAManagedDiskFromAPlatformImage.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": "{subscription-id}", | ||
"resourceGroupName": "myResourceGroup", | ||
"api-version": "2019-11-01", | ||
"diskName": "myDisk", | ||
"disk": { | ||
"location": "West US", | ||
"properties": { | ||
"osType": "Windows", | ||
"creationData": { | ||
"createOption": "FromImage", | ||
"imageReference": { | ||
"id": "/Subscriptions/{subscriptionId}/Providers/Microsoft.Compute/Locations/uswest/Publishers/Microsoft/ArtifactTypes/VMImage/Offers/{offer}" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"202": { | ||
"body": { | ||
"name": "myDisk", | ||
"location": "West US", | ||
"properties": { | ||
"provisioningState": "Updating", | ||
"osType": "Windows", | ||
"creationData": { | ||
"createOption": "FromImage", | ||
"imageReference": { | ||
"id": "/Subscriptions/{subscriptionId}/Providers/Microsoft.Compute/Locations/uswest/Publishers/Microsoft/ArtifactTypes/VMImage/Offers/{offer}" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"200": { | ||
"body": { | ||
"name": "myDisk", | ||
"location": "West US", | ||
"properties": { | ||
"provisioningState": "Updating", | ||
"osType": "Windows", | ||
"creationData": { | ||
"createOption": "FromImage", | ||
"imageReference": { | ||
"id": "/Subscriptions/{subscriptionId}/Providers/Microsoft.Compute/Locations/uswest/Publishers/Microsoft/ArtifactTypes/VMImage/Offers/{offer}" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
45 changes: 45 additions & 0 deletions
45
...osoft.Compute/stable/2019-11-01/examples/CreateAManagedDiskFromAnExistingManagedDisk.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,45 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "{subscription-id}", | ||
"resourceGroupName": "myResourceGroup", | ||
"api-version": "2019-11-01", | ||
"diskName": "myDisk2", | ||
"disk": { | ||
"location": "West US", | ||
"properties": { | ||
"creationData": { | ||
"createOption": "Copy", | ||
"sourceResourceId": "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myDisk1" | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"202": { | ||
"body": { | ||
"properties": { | ||
"creationData": { | ||
"createOption": "Copy", | ||
"sourceResourceId": "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myDisk1" | ||
}, | ||
"provisioningState": "Updating" | ||
}, | ||
"location": "West US", | ||
"name": "myDisk2" | ||
} | ||
}, | ||
"200": { | ||
"body": { | ||
"properties": { | ||
"creationData": { | ||
"createOption": "Copy", | ||
"sourceResourceId": "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myDisk1" | ||
}, | ||
"provisioningState": "Updating" | ||
}, | ||
"location": "West US", | ||
"name": "myDisk2" | ||
} | ||
} | ||
} | ||
} |
45 changes: 45 additions & 0 deletions
45
...source-manager/Microsoft.Compute/stable/2019-11-01/examples/CreateAManagedUploadDisk.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,45 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "{subscription-id}", | ||
"resourceGroupName": "myResourceGroup", | ||
"api-version": "2019-11-01", | ||
"diskName": "myDisk", | ||
"disk": { | ||
"location": "West US", | ||
"properties": { | ||
"creationData": { | ||
"createOption": "Upload", | ||
"uploadSizeBytes": 10737418752 | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"202": { | ||
"body": { | ||
"properties": { | ||
"creationData": { | ||
"createOption": "Upload", | ||
"uploadSizeBytes": 10737418752 | ||
}, | ||
"provisioningState": "Updating" | ||
}, | ||
"location": "West US", | ||
"name": "myDisk" | ||
} | ||
}, | ||
"200": { | ||
"body": { | ||
"properties": { | ||
"creationData": { | ||
"createOption": "Upload", | ||
"uploadSizeBytes": 10737418752 | ||
}, | ||
"provisioningState": "Updating" | ||
}, | ||
"location": "West US", | ||
"name": "myDisk" | ||
} | ||
} | ||
} | ||
} |
48 changes: 48 additions & 0 deletions
48
...9-11-01/examples/CreateASnapshotByImportingAnUnmanagedBlobFromADifferentSubscription.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,48 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "{subscription-id}", | ||
"resourceGroupName": "myResourceGroup", | ||
"api-version": "2019-11-01", | ||
"snapshotName": "mySnapshot1", | ||
"snapshot": { | ||
"location": "West US", | ||
"properties": { | ||
"creationData": { | ||
"createOption": "Import", | ||
"storageAccountId": "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/myStorageAccount", | ||
"sourceUri": "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd" | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"202": { | ||
"body": { | ||
"properties": { | ||
"creationData": { | ||
"createOption": "Import", | ||
"storageAccountId": "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/myStorageAccount", | ||
"sourceUri": "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd" | ||
}, | ||
"provisioningState": "Updating" | ||
}, | ||
"location": "West US", | ||
"name": "mySnapshot1" | ||
} | ||
}, | ||
"200": { | ||
"body": { | ||
"properties": { | ||
"creationData": { | ||
"createOption": "Import", | ||
"storageAccountId": "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/myStorageAccount", | ||
"sourceUri": "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd" | ||
}, | ||
"provisioningState": "Updating" | ||
}, | ||
"location": "West US", | ||
"name": "mySnapshot1" | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.