From d486942bef77e93795e5dcddaea72ed8e67ade7e Mon Sep 17 00:00:00 2001 From: Kang Sun Date: Thu, 13 Aug 2020 17:28:28 -0700 Subject: [PATCH 01/47] add new api version 2020-09-30 for gallery.json --- .../CreateOrUpdateASimpleGallery.json | 55 + ...eateOrUpdateASimpleGalleryApplication.json | 66 + ...pdateASimpleGalleryApplicationVersion.json | 123 + .../CreateOrUpdateASimpleGalleryImage.json | 75 + ...ateOrUpdateASimpleGalleryImageVersion.json | 221 ++ ...leryImageVersionWithSnapshotsAsSource.json | 226 ++ .../2020-09-30/examples/DeleteAGallery.json | 13 + .../examples/DeleteAGalleryApplication.json | 14 + .../DeleteAGalleryApplicationVersion.json | 15 + .../examples/DeleteAGalleryImage.json | 14 + .../examples/DeleteAGalleryImageVersion.json | 15 + .../2020-09-30/examples/GetAGallery.json | 23 + .../examples/GetAGalleryApplication.json | 24 + .../GetAGalleryApplicationVersion.json | 42 + ...plicationVersionWithReplicationStatus.json | 52 + .../2020-09-30/examples/GetAGalleryImage.json | 28 + .../examples/GetAGalleryImageVersion.json | 69 + ...leryImageVersionWithReplicationStatus.json | 87 + ...leryImageVersionWithSnapshotsAsSource.json | 64 + .../ListGalleriesInAResourceGroup.json | 28 + .../ListGalleriesInASubscription.json | 27 + ...licationVersionsInAGalleryApplication.json | 46 + .../ListGalleryApplicationsInAGallery.json | 28 + ...stGalleryImageVersionsInAGalleryImage.json | 73 + .../examples/ListGalleryImagesInAGallery.json | 32 + .../examples/UpdateASimpleGallery.json | 28 + .../UpdateASimpleGalleryApplication.json | 35 + ...pdateASimpleGalleryApplicationVersion.json | 62 + .../examples/UpdateASimpleGalleryImage.json | 40 + .../UpdateASimpleGalleryImageVersion.json | 87 + .../stable/2020-09-30/gallery.json | 2650 +++++++++++++++++ .../compute/resource-manager/readme.md | 24 + 32 files changed, 4386 insertions(+) create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/CreateOrUpdateASimpleGallery.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/CreateOrUpdateASimpleGalleryApplication.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/CreateOrUpdateASimpleGalleryApplicationVersion.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/CreateOrUpdateASimpleGalleryImage.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/CreateOrUpdateASimpleGalleryImageVersion.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/CreateOrUpdateASimpleGalleryImageVersionWithSnapshotsAsSource.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/DeleteAGallery.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/DeleteAGalleryApplication.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/DeleteAGalleryApplicationVersion.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/DeleteAGalleryImage.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/DeleteAGalleryImageVersion.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetAGallery.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetAGalleryApplication.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetAGalleryApplicationVersion.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetAGalleryApplicationVersionWithReplicationStatus.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetAGalleryImage.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetAGalleryImageVersion.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetAGalleryImageVersionWithReplicationStatus.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetAGalleryImageVersionWithSnapshotsAsSource.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/ListGalleriesInAResourceGroup.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/ListGalleriesInASubscription.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/ListGalleryApplicationVersionsInAGalleryApplication.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/ListGalleryApplicationsInAGallery.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/ListGalleryImageVersionsInAGalleryImage.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/ListGalleryImagesInAGallery.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/UpdateASimpleGallery.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/UpdateASimpleGalleryApplication.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/UpdateASimpleGalleryApplicationVersion.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/UpdateASimpleGalleryImage.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/UpdateASimpleGalleryImageVersion.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/gallery.json diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/CreateOrUpdateASimpleGallery.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/CreateOrUpdateASimpleGallery.json new file mode 100644 index 000000000000..be3c726713ed --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/CreateOrUpdateASimpleGallery.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2020-09-30", + "galleryName": "myGalleryName", + "gallery": { + "location": "West US", + "properties": { + "description": "This is the gallery description." + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "description": "This is the gallery description.", + "identifier": { + "uniqueName": "{subscription-id}-MYGALLERYNAME" + }, + "provisioningState": "Updating" + }, + "location": "West US", + "name": "myGalleryName" + } + }, + "201": { + "body": { + "properties": { + "description": "This is the gallery description.", + "identifier": { + "uniqueName": "{subscription-id}-MYGALLERYNAME" + }, + "provisioningState": "Creating" + }, + "location": "West US", + "name": "myGalleryName" + } + }, + "202": { + "body": { + "properties": { + "description": "This is the gallery description.", + "identifier": { + "uniqueName": "{subscription-id}-MYGALLERYNAME" + }, + "provisioningState": "Updating" + }, + "location": "West US", + "name": "myGalleryName" + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/CreateOrUpdateASimpleGalleryApplication.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/CreateOrUpdateASimpleGalleryApplication.json new file mode 100644 index 000000000000..d4f969d2d11e --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/CreateOrUpdateASimpleGalleryApplication.json @@ -0,0 +1,66 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2020-09-30", + "galleryName": "myGalleryName", + "galleryApplicationName": "myGalleryApplicationName", + "galleryApplication": { + "location": "West US", + "properties": { + "description": "This is the gallery application description.", + "eula": "This is the gallery application EULA.", + "privacyStatementUri": "myPrivacyStatementUri}", + "releaseNoteUri": "myReleaseNoteUri", + "supportedOSType": "Windows" + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "description": "This is the gallery application description.", + "eula": "This is the gallery application EULA.", + "privacyStatementUri": "myPrivacyStatementUri}", + "releaseNoteUri": "myReleaseNoteUri", + "supportedOSType": "Windows" + }, + "location": "West US", + "name": "myGalleryApplicationName", + "type": "Microsoft.Compute/galleries", + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/myGalleryName/applications/myGalleryApplicationName" + } + }, + "201": { + "body": { + "properties": { + "description": "This is the gallery application description.", + "eula": "This is the gallery application EULA.", + "privacyStatementUri": "myPrivacyStatementUri}", + "releaseNoteUri": "myReleaseNoteUri", + "supportedOSType": "Windows" + }, + "location": "West US", + "name": "myGalleryApplicationName", + "type": "Microsoft.Compute/galleries", + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/myGalleryName/applications/myGalleryApplicationName" + } + }, + "202": { + "body": { + "properties": { + "description": "This is the gallery application description.", + "eula": "This is the gallery application EULA.", + "privacyStatementUri": "myPrivacyStatementUri}", + "releaseNoteUri": "myReleaseNoteUri", + "supportedOSType": "Windows" + }, + "location": "West US", + "name": "myGalleryApplicationName", + "type": "Microsoft.Compute/galleries", + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/myGalleryName/applications/myGalleryApplicationName" + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/CreateOrUpdateASimpleGalleryApplicationVersion.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/CreateOrUpdateASimpleGalleryApplicationVersion.json new file mode 100644 index 000000000000..6942466a93b3 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/CreateOrUpdateASimpleGalleryApplicationVersion.json @@ -0,0 +1,123 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2020-09-30", + "galleryName": "myGalleryName", + "galleryApplicationName": "myGalleryApplicationName", + "galleryApplicationVersionName": "1.0.0", + "galleryApplicationVersion": { + "location": "West US", + "properties": { + "publishingProfile": { + "source": { + "fileName": "package.zip", + "mediaLink": "https://mystorageaccount.blob.core.windows.net/mycontainer/package.zip?{sasKey}" + }, + "targetRegions": [ + { + "name": "West US", + "regionalReplicaCount": 1, + "storageAccountType": "Standard_LRS" + } + ], + "replicaCount": 1, + "endOfLifeDate": "2019-07-01T07:00:00Z", + "storageAccountType": "Standard_LRS" + } + } + } + }, + "responses": { + "200": { + "body": { + "location": "West US", + "name": "1.0.0", + "type": "Microsoft.Compute/galleries/applications/versions", + "id": "/subscriptions/01523d7c-60da-455e-adef-521b547922c4/resourceGroups/galleryPsTestRg98/providers/Microsoft.Compute/galleries/galleryPsTestGallery6165/applications/galleryPsTestGalleryApplication7825/versions/1.0.0", + "properties": { + "publishingProfile": { + "source": { + "fileName": "package.zip", + "mediaLink": "https://mystorageaccount.blob.core.windows.net/mycontainer/package.zip?{sasKey}" + }, + "enableHealthCheck": false, + "targetRegions": [ + { + "name": "West US", + "regionalReplicaCount": 1, + "storageAccountType": "Standard_LRS" + } + ], + "replicaCount": 1, + "excludeFromLatest": false, + "publishedDate": "2019-06-21T17:13:57.5972568+00:00", + "endOfLifeDate": "2019-07-01T07:00:00+00:00", + "storageAccountType": "Standard_LRS" + }, + "provisioningState": "Updating" + } + } + }, + "201": { + "body": { + "location": "West US", + "name": "1.0.0", + "type": "Microsoft.Compute/galleries/applications/versions", + "id": "/subscriptions/01523d7c-60da-455e-adef-521b547922c4/resourceGroups/galleryPsTestRg98/providers/Microsoft.Compute/galleries/galleryPsTestGallery6165/applications/galleryPsTestGalleryApplication7825/versions/1.0.0", + "properties": { + "publishingProfile": { + "source": { + "fileName": "package.zip", + "mediaLink": "https://mystorageaccount.blob.core.windows.net/mycontainer/package.zip?{sasKey}" + }, + "enableHealthCheck": false, + "targetRegions": [ + { + "name": "West US", + "regionalReplicaCount": 1, + "storageAccountType": "Standard_LRS" + } + ], + "replicaCount": 1, + "excludeFromLatest": false, + "publishedDate": "2019-06-21T17:13:57.5972568+00:00", + "endOfLifeDate": "2019-07-01T07:00:00+00:00", + "storageAccountType": "Standard_LRS" + }, + "provisioningState": "Creating" + } + } + }, + "202": { + "body": { + "location": "West US", + "name": "1.0.0", + "type": "Microsoft.Compute/galleries/applications/versions", + "id": "/subscriptions/01523d7c-60da-455e-adef-521b547922c4/resourceGroups/galleryPsTestRg98/providers/Microsoft.Compute/galleries/galleryPsTestGallery6165/applications/galleryPsTestGalleryApplication7825/versions/1.0.0", + "properties": { + "publishingProfile": { + "source": { + "fileName": "package.zip", + "mediaLink": "https://mystorageaccount.blob.core.windows.net/mycontainer/package.zip?{sasKey}" + }, + "enableHealthCheck": false, + "targetRegions": [ + { + "name": "West US", + "regionalReplicaCount": 1, + "storageAccountType": "Standard_LRS" + } + ], + "replicaCount": 1, + "excludeFromLatest": false, + "publishedDate": "2019-06-21T17:13:57.5972568+00:00", + "endOfLifeDate": "2019-07-01T07:00:00+00:00", + "storageAccountType": "Standard_LRS" + }, + "provisioningState": "Updating" + } + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/CreateOrUpdateASimpleGalleryImage.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/CreateOrUpdateASimpleGalleryImage.json new file mode 100644 index 000000000000..13f9b61d3641 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/CreateOrUpdateASimpleGalleryImage.json @@ -0,0 +1,75 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2020-09-30", + "galleryName": "myGalleryName", + "galleryImageName": "myGalleryImageName", + "galleryImage": { + "location": "West US", + "properties": { + "osType": "Windows", + "osState": "Generalized", + "hyperVGeneration": "V1", + "identifier": { + "publisher": "myPublisherName", + "offer": "myOfferName", + "sku": "mySkuName" + } + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "osType": "Windows", + "osState": "Generalized", + "hyperVGeneration": "V1", + "identifier": { + "publisher": "myPublisherName", + "offer": "myOfferName", + "sku": "mySkuName" + }, + "provisioningState": "Updating" + }, + "location": "West US", + "name": "myGalleryImageName" + } + }, + "201": { + "body": { + "properties": { + "osType": "Windows", + "osState": "Generalized", + "hyperVGeneration": "V1", + "identifier": { + "publisher": "myPublisherName", + "offer": "myOfferName", + "sku": "mySkuName" + }, + "provisioningState": "Creating" + }, + "location": "West US", + "name": "myGalleryImageName" + } + }, + "202": { + "body": { + "properties": { + "osType": "Windows", + "osState": "Generalized", + "hyperVGeneration": "V1", + "identifier": { + "publisher": "myPublisherName", + "offer": "myOfferName", + "sku": "mySkuName" + }, + "provisioningState": "Updating" + }, + "location": "West US", + "name": "myGalleryImageName" + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/CreateOrUpdateASimpleGalleryImageVersion.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/CreateOrUpdateASimpleGalleryImageVersion.json new file mode 100644 index 000000000000..a3353dfdd97e --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/CreateOrUpdateASimpleGalleryImageVersion.json @@ -0,0 +1,221 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2020-09-30", + "galleryName": "myGalleryName", + "galleryImageName": "myGalleryImageName", + "galleryImageVersionName": "1.0.0", + "galleryImageVersion": { + "location": "West US", + "properties": { + "publishingProfile": { + "targetRegions": [ + { + "name": "West US", + "regionalReplicaCount": 1, + "encryption": { + "osDiskImage": { + "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myDiskEncryptionSet" + }, + "dataDiskImages": [ + { + "lun": 0, + "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherDiskEncryptionSet" + }, + { + "lun": 1, + "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myDiskEncryptionSet" + } + ] + } + }, + { + "name": "East US", + "regionalReplicaCount": 2, + "storageAccountType": "Standard_ZRS" + } + ] + }, + "storageProfile": { + "source": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}" + } + } + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "publishingProfile": { + "targetRegions": [ + { + "name": "West US", + "regionalReplicaCount": 1, + "storageAccountType": "Standard_LRS", + "encryption": { + "osDiskImage": { + "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myDiskEncryptionSet" + }, + "dataDiskImages": [ + { + "lun": 0, + "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherDiskEncryptionSet" + }, + { + "lun": 1, + "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myDiskEncryptionSet" + } + ] + } + }, + { + "name": "East US", + "regionalReplicaCount": 2, + "storageAccountType": "Standard_ZRS" + } + ], + "replicaCount": 1, + "publishedDate": "2018-01-01T00:00:00Z", + "storageAccountType": "Standard_LRS" + }, + "storageProfile": { + "source": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}" + }, + "osDiskImage": { + "sizeInGB": 10, + "hostCaching": "ReadOnly" + }, + "dataDiskImages": [ + { + "lun": 1, + "sizeInGB": 10, + "hostCaching": "None" + } + ] + }, + "provisioningState": "Updating" + }, + "location": "West US", + "name": "1.0.0" + } + }, + "201": { + "body": { + "properties": { + "publishingProfile": { + "targetRegions": [ + { + "name": "West US", + "regionalReplicaCount": 1, + "storageAccountType": "Standard_LRS", + "encryption": { + "osDiskImage": { + "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myDiskEncryptionSet" + }, + "dataDiskImages": [ + { + "lun": 0, + "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherDiskEncryptionSet" + }, + { + "lun": 1, + "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myDiskEncryptionSet" + } + ] + } + }, + { + "name": "East US", + "regionalReplicaCount": 2, + "storageAccountType": "Standard_ZRS" + } + ], + "replicaCount": 1, + "publishedDate": "2018-01-01T00:00:00Z", + "storageAccountType": "Standard_LRS" + }, + "storageProfile": { + "source": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}" + }, + "osDiskImage": { + "sizeInGB": 10, + "hostCaching": "ReadOnly" + }, + "dataDiskImages": [ + { + "lun": 1, + "sizeInGB": 10, + "hostCaching": "None" + } + ] + }, + "provisioningState": "Creating" + }, + "location": "West US", + "name": "1.0.0" + } + }, + "202": { + "body": { + "properties": { + "publishingProfile": { + "targetRegions": [ + { + "name": "West US", + "regionalReplicaCount": 1, + "storageAccountType": "Standard_LRS", + "encryption": { + "osDiskImage": { + "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myDiskEncryptionSet" + }, + "dataDiskImages": [ + { + "lun": 0, + "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherDiskEncryptionSet" + }, + { + "lun": 1, + "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myDiskEncryptionSet" + } + ] + } + }, + { + "name": "East US", + "regionalReplicaCount": 2, + "storageAccountType": "Standard_ZRS" + } + ], + "replicaCount": 1, + "publishedDate": "2018-01-01T00:00:00Z", + "storageAccountType": "Standard_LRS" + }, + "storageProfile": { + "source": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}" + }, + "osDiskImage": { + "sizeInGB": 10, + "hostCaching": "ReadOnly" + }, + "dataDiskImages": [ + { + "lun": 1, + "sizeInGB": 10, + "hostCaching": "None" + } + ] + }, + "provisioningState": "Updating" + }, + "location": "West US", + "name": "1.0.0" + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/CreateOrUpdateASimpleGalleryImageVersionWithSnapshotsAsSource.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/CreateOrUpdateASimpleGalleryImageVersionWithSnapshotsAsSource.json new file mode 100644 index 000000000000..d3e4274210ce --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/CreateOrUpdateASimpleGalleryImageVersionWithSnapshotsAsSource.json @@ -0,0 +1,226 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2020-09-30", + "galleryName": "myGalleryName", + "galleryImageName": "myGalleryImageName", + "galleryImageVersionName": "1.0.0", + "galleryImageVersion": { + "location": "West US", + "properties": { + "publishingProfile": { + "targetRegions": [ + { + "name": "West US", + "regionalReplicaCount": 1, + "encryption": { + "osDiskImage": { + "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myDiskEncryptionSet" + }, + "dataDiskImages": [ + { + "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherDiskEncryptionSet", + "lun": 1 + } + ] + } + }, + { + "name": "East US", + "regionalReplicaCount": 2, + "storageAccountType": "Standard_ZRS" + } + ] + }, + "storageProfile": { + "osDiskImage": { + "source": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/snapshots/{snapshotName}" + }, + "hostCaching": "ReadOnly" + }, + "dataDiskImages": [ + { + "source": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/snapshots/{diskSnapshotName}" + }, + "lun": 1, + "hostCaching": "None" + } + ] + } + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "publishingProfile": { + "targetRegions": [ + { + "name": "West US", + "regionalReplicaCount": 1, + "storageAccountType": "Standard_LRS", + "encryption": { + "osDiskImage": { + "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myDiskEncryptionSet" + }, + "dataDiskImages": [ + { + "lun": 1, + "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherDiskEncryptionSet" + } + ] + } + }, + { + "name": "East US", + "regionalReplicaCount": 2, + "storageAccountType": "Standard_ZRS" + } + ], + "replicaCount": 1, + "publishedDate": "2018-01-01T00:00:00Z", + "storageAccountType": "Standard_LRS" + }, + "storageProfile": { + "osDiskImage": { + "source": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/snapshots/{osSnapshotName}" + }, + "sizeInGB": 10, + "hostCaching": "ReadOnly" + }, + "dataDiskImages": [ + { + "source": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/snapshots/{diskSnapshotName}" + }, + "lun": 1, + "sizeInGB": 10, + "hostCaching": "None" + } + ] + }, + "provisioningState": "Updating" + }, + "location": "West US", + "name": "1.0.0" + } + }, + "201": { + "body": { + "properties": { + "publishingProfile": { + "targetRegions": [ + { + "name": "West US", + "regionalReplicaCount": 1, + "storageAccountType": "Standard_LRS", + "encryption": { + "osDiskImage": { + "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myDiskEncryptionSet" + }, + "dataDiskImages": [ + { + "lun": 1, + "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherDiskEncryptionSet" + } + ] + } + }, + { + "name": "East US", + "regionalReplicaCount": 2, + "storageAccountType": "Standard_ZRS" + } + ], + "replicaCount": 1, + "publishedDate": "2018-01-01T00:00:00Z", + "storageAccountType": "Standard_LRS" + }, + "storageProfile": { + "osDiskImage": { + "source": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/snapshots/{osSnapshotName}" + }, + "sizeInGB": 10, + "hostCaching": "ReadOnly" + }, + "dataDiskImages": [ + { + "source": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/snapshots/{diskSnapshotName}" + }, + "lun": 1, + "sizeInGB": 10, + "hostCaching": "None" + } + ] + }, + "provisioningState": "Creating" + }, + "location": "West US", + "name": "1.0.0" + } + }, + "202": { + "body": { + "properties": { + "publishingProfile": { + "targetRegions": [ + { + "name": "West US", + "regionalReplicaCount": 1, + "storageAccountType": "Standard_LRS", + "encryption": { + "osDiskImage": { + "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myDiskEncryptionSet" + }, + "dataDiskImages": [ + { + "lun": 1, + "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherDiskEncryptionSet" + } + ] + } + }, + { + "name": "East US", + "regionalReplicaCount": 2, + "storageAccountType": "Standard_ZRS" + } + ], + "replicaCount": 1, + "publishedDate": "2018-01-01T00:00:00Z", + "storageAccountType": "Standard_LRS" + }, + "storageProfile": { + "osDiskImage": { + "source": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/snapshots/{osSnapshotName}" + }, + "sizeInGB": 10, + "hostCaching": "ReadOnly" + }, + "dataDiskImages": [ + { + "source": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/snapshots/{diskSnapshotName}" + }, + "lun": 1, + "sizeInGB": 10, + "hostCaching": "None" + } + ] + }, + "provisioningState": "Updating" + }, + "location": "West US", + "name": "1.0.0" + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/DeleteAGallery.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/DeleteAGallery.json new file mode 100644 index 000000000000..2abe4517a561 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/DeleteAGallery.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2020-09-30", + "galleryName": "myGalleryName" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/DeleteAGalleryApplication.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/DeleteAGalleryApplication.json new file mode 100644 index 000000000000..f1014e7b7f78 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/DeleteAGalleryApplication.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2020-09-30", + "galleryName": "myGalleryName", + "galleryApplicationName": "myGalleryApplicationName" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/DeleteAGalleryApplicationVersion.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/DeleteAGalleryApplicationVersion.json new file mode 100644 index 000000000000..e4a43f69b126 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/DeleteAGalleryApplicationVersion.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2020-09-30", + "galleryName": "myGalleryName", + "galleryApplicationName": "myGalleryApplicationName", + "galleryApplicationVersionName": "1.0.0" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/DeleteAGalleryImage.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/DeleteAGalleryImage.json new file mode 100644 index 000000000000..6d760641d7b4 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/DeleteAGalleryImage.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2020-09-30", + "galleryName": "myGalleryName", + "galleryImageName": "myGalleryImageName" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/DeleteAGalleryImageVersion.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/DeleteAGalleryImageVersion.json new file mode 100644 index 000000000000..76001cffb9b2 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/DeleteAGalleryImageVersion.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2020-09-30", + "galleryName": "myGalleryName", + "galleryImageName": "myGalleryImageName", + "galleryImageVersionName": "1.0.0" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetAGallery.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetAGallery.json new file mode 100644 index 000000000000..7ef46189bfcc --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetAGallery.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2020-09-30", + "galleryName": "myGalleryName" + }, + "responses": { + "200": { + "body": { + "properties": { + "description": "This is the gallery description.", + "identifier": { + "uniqueName": "{subscription-id}-MYGALLERYNAME" + }, + "provisioningState": "Succeeded" + }, + "location": "West US", + "name": "myGalleryName" + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetAGalleryApplication.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetAGalleryApplication.json new file mode 100644 index 000000000000..37c4d1d42a00 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetAGalleryApplication.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2020-09-30", + "galleryName": "myGalleryName", + "galleryApplicationName": "myGalleryApplicationName" + }, + "responses": { + "200": { + "body": { + "properties": { + "description": "This is the gallery application description.", + "eula": "This is the gallery application EULA.", + "privacyStatementUri": "myPrivacyStatementUri}", + "releaseNoteUri": "myReleaseNoteUri", + "supportedOSType": "Windows" + }, + "location": "West US", + "name": "myGalleryApplicationName" + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetAGalleryApplicationVersion.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetAGalleryApplicationVersion.json new file mode 100644 index 000000000000..ca16dd2d6f84 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetAGalleryApplicationVersion.json @@ -0,0 +1,42 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2020-09-30", + "galleryName": "myGalleryName", + "galleryApplicationName": "myGalleryApplicationName", + "galleryApplicationVersionName": "1.0.0" + }, + "responses": { + "200": { + "body": { + "location": "West US", + "name": "1.0.0", + "type": "Microsoft.Compute/galleries/applications/versions", + "id": "/subscriptions/01523d7c-60da-455e-adef-521b547922c4/resourceGroups/galleryPsTestRg98/providers/Microsoft.Compute/galleries/galleryPsTestGallery6165/applications/galleryPsTestGalleryApplication7825/versions/1.0.0", + "properties": { + "publishingProfile": { + "source": { + "fileName": "package.zip", + "mediaLink": "https://mystorageaccount.blob.core.windows.net/mycontainer/package.zip?{sasKey}" + }, + "enableHealthCheck": false, + "targetRegions": [ + { + "name": "West US", + "regionalReplicaCount": 1, + "storageAccountType": "Standard_LRS" + } + ], + "replicaCount": 1, + "excludeFromLatest": false, + "publishedDate": "2019-06-21T17:13:57.5972568+00:00", + "endOfLifeDate": "2019-07-01T07:00:00+00:00", + "storageAccountType": "Standard_LRS" + }, + "provisioningState": "Succeeded" + } + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetAGalleryApplicationVersionWithReplicationStatus.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetAGalleryApplicationVersionWithReplicationStatus.json new file mode 100644 index 000000000000..e3d246d4bf3e --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetAGalleryApplicationVersionWithReplicationStatus.json @@ -0,0 +1,52 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2020-09-30", + "galleryName": "myGalleryName", + "galleryApplicationName": "myGalleryApplicationName", + "galleryApplicationVersionName": "1.0.0", + "$expand": "ReplicationStatus" + }, + "responses": { + "200": { + "body": { + "properties": { + "publishingProfile": { + "source": { + "fileName": "package.zip", + "mediaLink": "https://mystorageaccount.blob.core.windows.net/mycontainer/package.zip?{sasKey}" + }, + "enableHealthCheck": false, + "targetRegions": [ + { + "name": "West US", + "regionalReplicaCount": 1, + "storageAccountType": "Standard_LRS" + } + ], + "replicaCount": 1, + "excludeFromLatest": false, + "publishedDate": "2019-06-21T17:13:57.5972568+00:00", + "endOfLifeDate": "2019-07-01T07:00:00+00:00", + "storageAccountType": "Standard_LRS" + }, + "replicationStatus": { + "aggregatedState": "Completed", + "summary": [ + { + "region": "West US", + "state": "Completed", + "details": "", + "progress": 100 + } + ] + }, + "provisioningState": "Succeeded" + }, + "location": "West US", + "name": "1.0.0" + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetAGalleryImage.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetAGalleryImage.json new file mode 100644 index 000000000000..8e4305e0148c --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetAGalleryImage.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2020-09-30", + "galleryName": "myGalleryName", + "galleryImageName": "myGalleryImageName" + }, + "responses": { + "200": { + "body": { + "properties": { + "osType": "Windows", + "osState": "Generalized", + "hyperVGeneration": "V1", + "identifier": { + "publisher": "myPublisherName", + "offer": "myOfferName", + "sku": "mySkuName" + }, + "provisioningState": "Succeeded" + }, + "location": "West US", + "name": "myGalleryImageName" + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetAGalleryImageVersion.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetAGalleryImageVersion.json new file mode 100644 index 000000000000..c65d0cc43058 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetAGalleryImageVersion.json @@ -0,0 +1,69 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2020-09-30", + "galleryName": "myGalleryName", + "galleryImageName": "myGalleryImageName", + "galleryImageVersionName": "1.0.0" + }, + "responses": { + "200": { + "body": { + "properties": { + "publishingProfile": { + "targetRegions": [ + { + "name": "West US", + "regionalReplicaCount": 1, + "storageAccountType": "Standard_LRS", + "encryption": { + "osDiskImage": { + "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myDiskEncryptionSet" + }, + "dataDiskImages": [ + { + "lun": 0, + "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherDiskEncryptionSet" + }, + { + "lun": 1, + "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myDiskEncryptionSet" + } + ] + } + }, + { + "name": "East US", + "regionalReplicaCount": 2, + "storageAccountType": "Standard_LRS" + } + ], + "replicaCount": 1, + "publishedDate": "2018-01-01T00:00:00Z", + "storageAccountType": "Standard_LRS" + }, + "storageProfile": { + "source": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}" + }, + "osDiskImage": { + "sizeInGB": 10, + "hostCaching": "ReadOnly" + }, + "dataDiskImages": [ + { + "lun": 1, + "sizeInGB": 10, + "hostCaching": "None" + } + ] + }, + "provisioningState": "Succeeded" + }, + "location": "West US", + "name": "1.0.0" + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetAGalleryImageVersionWithReplicationStatus.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetAGalleryImageVersionWithReplicationStatus.json new file mode 100644 index 000000000000..7462407b0222 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetAGalleryImageVersionWithReplicationStatus.json @@ -0,0 +1,87 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2020-09-30", + "galleryName": "myGalleryName", + "galleryImageName": "myGalleryImageName", + "galleryImageVersionName": "1.0.0", + "$expand": "ReplicationStatus" + }, + "responses": { + "200": { + "body": { + "properties": { + "publishingProfile": { + "targetRegions": [ + { + "name": "West US", + "regionalReplicaCount": 1, + "storageAccountType": "Standard_LRS", + "encryption": { + "osDiskImage": { + "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myDiskEncryptionSet" + }, + "dataDiskImages": [ + { + "lun": 0, + "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherDiskEncryptionSet" + }, + { + "lun": 1, + "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myDiskEncryptionSet" + } + ] + } + }, + { + "name": "East US", + "regionalReplicaCount": 2, + "storageAccountType": "Standard_LRS" + } + ], + "replicaCount": 1, + "publishedDate": "2018-01-01T00:00:00Z", + "storageAccountType": "Standard_LRS" + }, + "storageProfile": { + "source": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}" + }, + "osDiskImage": { + "sizeInGB": 10, + "hostCaching": "ReadOnly" + }, + "dataDiskImages": [ + { + "lun": 1, + "sizeInGB": 10, + "hostCaching": "None" + } + ] + }, + "replicationStatus": { + "aggregatedState": "Completed", + "summary": [ + { + "region": "West US", + "state": "Completed", + "details": "", + "progress": 100 + }, + { + "region": "East US", + "state": "Completed", + "details": "", + "progress": 100 + } + ] + }, + "provisioningState": "Succeeded" + }, + "location": "West US", + "name": "1.0.0" + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetAGalleryImageVersionWithSnapshotsAsSource.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetAGalleryImageVersionWithSnapshotsAsSource.json new file mode 100644 index 000000000000..a0184d882337 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetAGalleryImageVersionWithSnapshotsAsSource.json @@ -0,0 +1,64 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2020-09-30", + "galleryName": "myGalleryName", + "galleryImageName": "myGalleryImageName", + "galleryImageVersionName": "1.0.0" + }, + "responses": { + "200": { + "body": { + "properties": { + "publishingProfile": { + "targetRegions": [ + { + "name": "West US", + "regionalReplicaCount": 1, + "storageAccountType": "Standard_LRS", + "encryption": { + "osDiskImage": { + "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myDiskEncryptionSet" + }, + "dataDiskImages": [ + { + "lun": 1, + "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myDiskEncryptionSet" + } + ] + } + }, + { + "name": "East US", + "regionalReplicaCount": 2, + "storageAccountType": "Standard_LRS" + } + ], + "replicaCount": 1, + "publishedDate": "2018-01-01T00:00:00Z", + "storageAccountType": "Standard_LRS" + }, + "storageProfile": { + "osDiskImage": { + "source": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/snapshots/{snapshotName}", + "sizeInGB": 10, + "hostCaching": "ReadOnly" + }, + "dataDiskImages": [ + { + "source": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/snapshots/{diskSnapshotName}", + "lun": 1, + "sizeInGB": 10, + "hostCaching": "None" + } + ] + }, + "provisioningState": "Succeeded" + }, + "location": "West US", + "name": "1.0.0" + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/ListGalleriesInAResourceGroup.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/ListGalleriesInAResourceGroup.json new file mode 100644 index 000000000000..756c512dd1fe --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/ListGalleriesInAResourceGroup.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2020-09-30" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "description": "This is the gallery description.", + "identifier": { + "uniqueName": "{subscription-id}-MYGALLERYNAME" + }, + "provisioningState": "Succeeded" + }, + "location": "West US", + "name": "myGalleryName", + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/myGalleryName" + } + ], + "nextLink": "http://svchost:99/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries?$skiptoken={token}/Subscriptions/{subscriptionId}/ResourceGroups/myResourceGroup/galleries/myGalleryName" + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/ListGalleriesInASubscription.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/ListGalleriesInASubscription.json new file mode 100644 index 000000000000..280325678dd3 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/ListGalleriesInASubscription.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "api-version": "2020-09-30" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "description": "This is the gallery description.", + "identifier": { + "uniqueName": "{subscription-id}-MYGALLERYNAME" + }, + "provisioningState": "Succeeded" + }, + "location": "West US", + "name": "myGalleryName", + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/myGalleryName" + } + ], + "nextLink": "http://svchost:99/subscriptions/{subscriptionId}/providers/Microsoft.Compute/galleries?$skiptoken={token}/Subscriptions/{subscriptionId}/ResourceGroups/myResourceGroup/galleries/myGalleryName" + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/ListGalleryApplicationVersionsInAGalleryApplication.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/ListGalleryApplicationVersionsInAGalleryApplication.json new file mode 100644 index 000000000000..0899c17bfafe --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/ListGalleryApplicationVersionsInAGalleryApplication.json @@ -0,0 +1,46 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2020-09-30", + "galleryName": "myGalleryName", + "galleryApplicationName": "myGalleryApplicationName" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "location": "West US", + "name": "1.0.0", + "type": "Microsoft.Compute/galleries/applications/versions", + "id": "/subscriptions/01523d7c-60da-455e-adef-521b547922c4/resourceGroups/galleryPsTestRg98/providers/Microsoft.Compute/galleries/galleryPsTestGallery6165/applications/galleryPsTestGalleryApplication7825/versions/1.0.0", + "properties": { + "publishingProfile": { + "source": { + "fileName": "package.zip", + "mediaLink": "https://mystorageaccount.blob.core.windows.net/mycontainer/package.zip?{sasKey}" + }, + "enableHealthCheck": false, + "targetRegions": [ + { + "name": "West US", + "regionalReplicaCount": 1, + "storageAccountType": "Standard_LRS" + } + ], + "replicaCount": 1, + "excludeFromLatest": false, + "publishedDate": "2019-06-21T17:13:57.5972568+00:00", + "endOfLifeDate": "2019-07-01T07:00:00+00:00", + "storageAccountType": "Standard_LRS" + }, + "provisioningState": "Succeeded" + } + } + ], + "nextLink": "http://svchost:99/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/myGalleryName/applications/myGalleryApplicationName/versions?$skiptoken={token}/Subscriptions/{subscriptionId}/ResourceGroups/myResourceGroup/galleries/myGalleryName/applications/myGalleryApplicationName/versions/myGalleryApplicationVersionName" + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/ListGalleryApplicationsInAGallery.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/ListGalleryApplicationsInAGallery.json new file mode 100644 index 000000000000..d21b58c493ff --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/ListGalleryApplicationsInAGallery.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2020-09-30", + "galleryName": "myGalleryName" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "description": "This is the gallery application description.", + "eula": "This is the gallery application EULA.", + "privacyStatementUri": "myPrivacyStatementUri}", + "releaseNoteUri": "myReleaseNoteUri", + "supportedOSType": "Windows" + }, + "location": "West US", + "name": "myGalleryApplicationName" + } + ], + "nextLink": "http://svchost:99/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/myGalleryName/applications?$skiptoken={token}/Subscriptions/{subscriptionId}/ResourceGroups/myResourceGroup/galleries/myGalleryName/applications/myGalleryApplicationName" + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/ListGalleryImageVersionsInAGalleryImage.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/ListGalleryImageVersionsInAGalleryImage.json new file mode 100644 index 000000000000..499ad4e6366f --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/ListGalleryImageVersionsInAGalleryImage.json @@ -0,0 +1,73 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2020-09-30", + "galleryName": "myGalleryName", + "galleryImageName": "myGalleryImageName" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "publishingProfile": { + "targetRegions": [ + { + "name": "West US", + "regionalReplicaCount": 1, + "storageAccountType": "Standard_LRS", + "encryption": { + "osDiskImage": { + "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myDiskEncryptionSet" + }, + "dataDiskImages": [ + { + "lun": 0, + "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherDiskEncryptionSet" + }, + { + "lun": 1, + "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myDiskEncryptionSet" + } + ] + } + }, + { + "name": "East US", + "regionalReplicaCount": 2, + "storageAccountType": "Standard_LRS" + } + ], + "replicaCount": 1, + "publishedDate": "2018-01-01T00:00:00Z", + "storageAccountType": "Standard_LRS" + }, + "storageProfile": { + "source": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}" + }, + "osDiskImage": { + "sizeInGB": 10, + "hostCaching": "ReadOnly" + }, + "dataDiskImages": [ + { + "lun": 1, + "sizeInGB": 10, + "hostCaching": "None" + } + ] + }, + "provisioningState": "Succeeded" + }, + "location": "West US", + "name": "1.0.0" + } + ], + "nextLink": "http://svchost:99/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/myGalleryName/images/myGalleryImageName/versions?$skiptoken={token}/Subscriptions/{subscriptionId}/ResourceGroups/myResourceGroup/galleries/myGalleryName/images/myGalleryImageName/versions/myGalleryImageVersionName" + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/ListGalleryImagesInAGallery.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/ListGalleryImagesInAGallery.json new file mode 100644 index 000000000000..570fc0e39b6f --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/ListGalleryImagesInAGallery.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2020-09-30", + "galleryName": "myGalleryName" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "osType": "Windows", + "osState": "Generalized", + "hyperVGeneration": "V1", + "identifier": { + "publisher": "myPublisherName", + "offer": "myOfferName", + "sku": "mySkuName" + }, + "provisioningState": "Succeeded" + }, + "location": "West US", + "name": "myGalleryImageName" + } + ], + "nextLink": "http://svchost:99/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/myGalleryName/images?$skiptoken={token}/Subscriptions/{subscriptionId}/ResourceGroups/myResourceGroup/galleries/myGalleryName/images/myGalleryImageName" + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/UpdateASimpleGallery.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/UpdateASimpleGallery.json new file mode 100644 index 000000000000..d3618117f15c --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/UpdateASimpleGallery.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2020-09-30", + "galleryName": "myGalleryName", + "gallery": { + "properties": { + "description": "This is the gallery description." + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "description": "This is the gallery description.", + "identifier": { + "uniqueName": "{subscription-id}-MYGALLERYNAME" + }, + "provisioningState": "Updating" + }, + "location": "West US", + "name": "myGalleryName" + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/UpdateASimpleGalleryApplication.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/UpdateASimpleGalleryApplication.json new file mode 100644 index 000000000000..0bb889c29a26 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/UpdateASimpleGalleryApplication.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2020-09-30", + "galleryName": "myGalleryName", + "galleryApplicationName": "myGalleryApplicationName", + "galleryApplication": { + "properties": { + "description": "This is the gallery application description.", + "eula": "This is the gallery application EULA.", + "privacyStatementUri": "myPrivacyStatementUri}", + "releaseNoteUri": "myReleaseNoteUri", + "supportedOSType": "Windows" + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "description": "This is the gallery application description.", + "eula": "This is the gallery application EULA.", + "privacyStatementUri": "myPrivacyStatementUri}", + "releaseNoteUri": "myReleaseNoteUri", + "supportedOSType": "Windows" + }, + "location": "West US", + "name": "myGalleryApplicationName", + "type": "Microsoft.Compute/galleries", + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/myGalleryName/applications/myGalleryApplicationName" + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/UpdateASimpleGalleryApplicationVersion.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/UpdateASimpleGalleryApplicationVersion.json new file mode 100644 index 000000000000..8d473b578024 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/UpdateASimpleGalleryApplicationVersion.json @@ -0,0 +1,62 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2020-09-30", + "galleryName": "myGalleryName", + "galleryApplicationName": "myGalleryApplicationName", + "galleryApplicationVersionName": "1.0.0", + "galleryApplicationVersion": { + "properties": { + "publishingProfile": { + "source": { + "fileName": "package.zip", + "mediaLink": "https://mystorageaccount.blob.core.windows.net/mycontainer/package.zip?{sasKey}" + }, + "targetRegions": [ + { + "name": "West US", + "regionalReplicaCount": 1, + "storageAccountType": "Standard_LRS" + } + ], + "replicaCount": 1, + "endOfLifeDate": "2019-07-01T07:00:00Z", + "storageAccountType": "Standard_LRS" + } + } + } + }, + "responses": { + "200": { + "body": { + "location": "West US", + "name": "1.0.0", + "type": "Microsoft.Compute/galleries/applications/versions", + "id": "/subscriptions/01523d7c-60da-455e-adef-521b547922c4/resourceGroups/galleryPsTestRg98/providers/Microsoft.Compute/galleries/galleryPsTestGallery6165/applications/galleryPsTestGalleryApplication7825/versions/1.0.0", + "properties": { + "publishingProfile": { + "source": { + "fileName": "package.zip", + "mediaLink": "https://mystorageaccount.blob.core.windows.net/mycontainer/package.zip?{sasKey}" + }, + "enableHealthCheck": false, + "targetRegions": [ + { + "name": "West US", + "regionalReplicaCount": 1, + "storageAccountType": "Standard_LRS" + } + ], + "replicaCount": 1, + "excludeFromLatest": false, + "publishedDate": "2019-06-21T17:13:57.5972568+00:00", + "endOfLifeDate": "2019-07-01T07:00:00+00:00", + "storageAccountType": "Standard_LRS" + }, + "provisioningState": "Updating" + } + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/UpdateASimpleGalleryImage.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/UpdateASimpleGalleryImage.json new file mode 100644 index 000000000000..ebfd473f7e95 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/UpdateASimpleGalleryImage.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2020-09-30", + "galleryName": "myGalleryName", + "galleryImageName": "myGalleryImageName", + "galleryImage": { + "properties": { + "osType": "Windows", + "osState": "Generalized", + "hyperVGeneration": "V1", + "identifier": { + "publisher": "myPublisherName", + "offer": "myOfferName", + "sku": "mySkuName" + } + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "osType": "Windows", + "osState": "Generalized", + "hyperVGeneration": "V1", + "identifier": { + "publisher": "myPublisherName", + "offer": "myOfferName", + "sku": "mySkuName" + }, + "provisioningState": "Updating" + }, + "location": "West US", + "name": "myGalleryImageName" + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/UpdateASimpleGalleryImageVersion.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/UpdateASimpleGalleryImageVersion.json new file mode 100644 index 000000000000..5cf4547abad1 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/UpdateASimpleGalleryImageVersion.json @@ -0,0 +1,87 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2020-09-30", + "galleryName": "myGalleryName", + "galleryImageName": "myGalleryImageName", + "galleryImageVersionName": "1.0.0", + "galleryImageVersion": { + "properties": { + "publishingProfile": { + "targetRegions": [ + { + "name": "West US", + "regionalReplicaCount": 1 + }, + { + "name": "East US", + "regionalReplicaCount": 2, + "storageAccountType": "Standard_ZRS" + } + ] + }, + "storageProfile": { + "source": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}" + } + } + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "publishingProfile": { + "targetRegions": [ + { + "name": "West US", + "regionalReplicaCount": 1, + "storageAccountType": "Standard_LRS", + "encryption": { + "osDiskImage": { + "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myDiskEncryptionSet" + }, + "dataDiskImages": [ + { + "lun": 1, + "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myDiskEncryptionSet" + } + ] + } + }, + { + "name": "East US", + "regionalReplicaCount": 2, + "storageAccountType": "Standard_ZRS" + } + ], + "replicaCount": 1, + "publishedDate": "2018-01-01T00:00:00Z", + "storageAccountType": "Standard_LRS" + }, + "storageProfile": { + "source": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}" + }, + "osDiskImage": { + "sizeInGB": 10, + "hostCaching": "ReadOnly" + }, + "dataDiskImages": [ + { + "lun": 1, + "sizeInGB": 10, + "hostCaching": "None" + } + ] + }, + "provisioningState": "Updating" + }, + "location": "West US", + "name": "1.0.0" + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/gallery.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/gallery.json new file mode 100644 index 000000000000..3287d38434c7 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/gallery.json @@ -0,0 +1,2650 @@ +{ + "swagger": "2.0", + "info": { + "title": "SharedImageGalleryServiceClient", + "description": "Shared Image Gallery Service Client.", + "version": "2020-09-30" + }, + "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": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}": { + "put": { + "tags": [ + "Galleries" + ], + "operationId": "Galleries_CreateOrUpdate", + "description": "Create or update a Shared Image Gallery.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "name": "galleryName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Shared Image Gallery. The allowed characters are alphabets and numbers with dots and periods allowed in the middle. The maximum length is 80 characters." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "gallery", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Gallery" + }, + "description": "Parameters supplied to the create or update Shared Image Gallery operation." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Gallery" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/Gallery" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/Gallery" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Create or update a simple gallery.": { + "$ref": "./examples/CreateOrUpdateASimpleGallery.json" + } + } + }, + "patch": { + "tags": [ + "Galleries" + ], + "operationId": "Galleries_Update", + "description": "Update a Shared Image Gallery.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "name": "galleryName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Shared Image Gallery. The allowed characters are alphabets and numbers with dots and periods allowed in the middle. The maximum length is 80 characters." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "gallery", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/GalleryUpdate" + }, + "description": "Parameters supplied to the update Shared Image Gallery operation." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Gallery" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Update a simple gallery.": { + "$ref": "./examples/UpdateASimpleGallery.json" + } + } + }, + "get": { + "tags": [ + "Galleries" + ], + "operationId": "Galleries_Get", + "description": "Retrieves information about a Shared Image Gallery.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "name": "galleryName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Shared Image Gallery." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/Gallery" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Get a gallery.": { + "$ref": "./examples/GetAGallery.json" + } + } + }, + "delete": { + "tags": [ + "Galleries" + ], + "operationId": "Galleries_Delete", + "description": "Delete a Shared Image Gallery.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "name": "galleryName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Shared Image Gallery to be deleted." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "204": { + "description": "No Content" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Delete a gallery.": { + "$ref": "./examples/DeleteAGallery.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}": { + "put": { + "tags": [ + "GalleryImages" + ], + "operationId": "GalleryImages_CreateOrUpdate", + "description": "Create or update a gallery Image Definition.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "name": "galleryName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Shared Image Gallery in which the Image Definition is to be created." + }, + { + "name": "galleryImageName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the gallery Image Definition to be created or updated. The allowed characters are alphabets and numbers with dots, dashes, and periods allowed in the middle. The maximum length is 80 characters." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "galleryImage", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/GalleryImage" + }, + "description": "Parameters supplied to the create or update gallery image operation." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/GalleryImage" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/GalleryImage" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/GalleryImage" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Create or update a simple gallery image.": { + "$ref": "./examples/CreateOrUpdateASimpleGalleryImage.json" + } + } + }, + "patch": { + "tags": [ + "GalleryImages" + ], + "operationId": "GalleryImages_Update", + "description": "Update a gallery Image Definition.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "name": "galleryName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Shared Image Gallery in which the Image Definition is to be updated." + }, + { + "name": "galleryImageName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the gallery Image Definition to be updated. The allowed characters are alphabets and numbers with dots, dashes, and periods allowed in the middle. The maximum length is 80 characters." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "galleryImage", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/GalleryImageUpdate" + }, + "description": "Parameters supplied to the update gallery image operation." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/GalleryImage" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Update a simple gallery image.": { + "$ref": "./examples/UpdateASimpleGalleryImage.json" + } + } + }, + "get": { + "tags": [ + "GalleryImages" + ], + "operationId": "GalleryImages_Get", + "description": "Retrieves information about a gallery Image Definition.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "name": "galleryName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Shared Image Gallery from which the Image Definitions are to be retrieved." + }, + { + "name": "galleryImageName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the gallery Image Definition to be retrieved." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/GalleryImage" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Get a gallery image.": { + "$ref": "./examples/GetAGalleryImage.json" + } + } + }, + "delete": { + "tags": [ + "GalleryImages" + ], + "operationId": "GalleryImages_Delete", + "description": "Delete a gallery image.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "name": "galleryName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Shared Image Gallery in which the Image Definition is to be deleted." + }, + { + "name": "galleryImageName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the gallery Image Definition to be deleted." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "204": { + "description": "No Content" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Delete a gallery image.": { + "$ref": "./examples/DeleteAGalleryImage.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}/versions/{galleryImageVersionName}": { + "put": { + "tags": [ + "GalleryImageVersions" + ], + "operationId": "GalleryImageVersions_CreateOrUpdate", + "description": "Create or update a gallery Image Version.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "name": "galleryName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Shared Image Gallery in which the Image Definition resides." + }, + { + "name": "galleryImageName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the gallery Image Definition in which the Image Version is to be created." + }, + { + "name": "galleryImageVersionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the gallery Image Version to be created. Needs to follow semantic version name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. Format: .." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "galleryImageVersion", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/GalleryImageVersion" + }, + "description": "Parameters supplied to the create or update gallery Image Version operation." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/GalleryImageVersion" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/GalleryImageVersion" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/GalleryImageVersion" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Create or update a simple Gallery Image Version (Managed Image as source).": { + "$ref": "./examples/CreateOrUpdateASimpleGalleryImageVersion.json" + }, + "Create or update a simple Gallery Image Version using snapshots as a source.": { + "$ref": "./examples/CreateOrUpdateASimpleGalleryImageVersionWithSnapshotsAsSource.json" + } + } + }, + "patch": { + "tags": [ + "GalleryImageVersions" + ], + "operationId": "GalleryImageVersions_Update", + "description": "Update a gallery Image Version.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "name": "galleryName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Shared Image Gallery in which the Image Definition resides." + }, + { + "name": "galleryImageName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the gallery Image Definition in which the Image Version is to be updated." + }, + { + "name": "galleryImageVersionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the gallery Image Version to be updated. Needs to follow semantic version name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. Format: .." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "galleryImageVersion", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/GalleryImageVersionUpdate" + }, + "description": "Parameters supplied to the update gallery Image Version operation." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/GalleryImageVersion" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Update a simple Gallery Image Version (Managed Image as source).": { + "$ref": "./examples/UpdateASimpleGalleryImageVersion.json" + } + } + }, + "get": { + "tags": [ + "GalleryImageVersions" + ], + "operationId": "GalleryImageVersions_Get", + "description": "Retrieves information about a gallery Image Version.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "name": "galleryName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Shared Image Gallery in which the Image Definition resides." + }, + { + "name": "galleryImageName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the gallery Image Definition in which the Image Version resides." + }, + { + "name": "galleryImageVersionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the gallery Image Version to be retrieved." + }, + { + "name": "$expand", + "in": "query", + "required": false, + "type": "string", + "description": "The expand expression to apply on the operation.", + "enum": [ + "ReplicationStatus" + ], + "x-ms-enum": { + "name": "ReplicationStatusTypes", + "modelAsString": true + } + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/GalleryImageVersion" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Get a gallery Image Version.": { + "$ref": "./examples/GetAGalleryImageVersion.json" + }, + "Get a gallery Image Version with replication status.": { + "$ref": "./examples/GetAGalleryImageVersionWithReplicationStatus.json" + }, + "Get a gallery Image Version with snapshots as a source.": { + "$ref": "./examples/GetAGalleryImageVersionWithSnapshotsAsSource.json" + } + } + }, + "delete": { + "tags": [ + "GalleryImageVersions" + ], + "operationId": "GalleryImageVersions_Delete", + "description": "Delete a gallery Image Version.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "name": "galleryName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Shared Image Gallery in which the Image Definition resides." + }, + { + "name": "galleryImageName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the gallery Image Definition in which the Image Version resides." + }, + { + "name": "galleryImageVersionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the gallery Image Version to be deleted." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "204": { + "description": "No Content" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Delete a gallery Image Version.": { + "$ref": "./examples/DeleteAGalleryImageVersion.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}": { + "put": { + "tags": [ + "GalleryApplications" + ], + "operationId": "GalleryApplications_CreateOrUpdate", + "description": "Create or update a gallery Application Definition.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "name": "galleryName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Shared Application Gallery in which the Application Definition is to be created." + }, + { + "name": "galleryApplicationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the gallery Application Definition to be created or updated. The allowed characters are alphabets and numbers with dots, dashes, and periods allowed in the middle. The maximum length is 80 characters." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "galleryApplication", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/GalleryApplication" + }, + "description": "Parameters supplied to the create or update gallery Application operation." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/GalleryApplication" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/GalleryApplication" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/GalleryApplication" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Create or update a simple gallery Application.": { + "$ref": "./examples/CreateOrUpdateASimpleGalleryApplication.json" + } + } + }, + "patch": { + "tags": [ + "GalleryApplications" + ], + "operationId": "GalleryApplications_Update", + "description": "Update a gallery Application Definition.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "name": "galleryName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Shared Application Gallery in which the Application Definition is to be updated." + }, + { + "name": "galleryApplicationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the gallery Application Definition to be updated. The allowed characters are alphabets and numbers with dots, dashes, and periods allowed in the middle. The maximum length is 80 characters." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "galleryApplication", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/GalleryApplicationUpdate" + }, + "description": "Parameters supplied to the update gallery Application operation." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/GalleryApplication" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Update a simple gallery Application.": { + "$ref": "./examples/UpdateASimpleGalleryApplication.json" + } + } + }, + "get": { + "tags": [ + "GalleryApplications" + ], + "operationId": "GalleryApplications_Get", + "description": "Retrieves information about a gallery Application Definition.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "name": "galleryName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Shared Application Gallery from which the Application Definitions are to be retrieved." + }, + { + "name": "galleryApplicationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the gallery Application Definition to be retrieved." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/GalleryApplication" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Get a gallery Application.": { + "$ref": "./examples/GetAGalleryApplication.json" + } + } + }, + "delete": { + "tags": [ + "GalleryApplications" + ], + "operationId": "GalleryApplications_Delete", + "description": "Delete a gallery Application.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "name": "galleryName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Shared Application Gallery in which the Application Definition is to be deleted." + }, + { + "name": "galleryApplicationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the gallery Application Definition to be deleted." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "204": { + "description": "No Content" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Delete a gallery Application.": { + "$ref": "./examples/DeleteAGalleryApplication.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}/versions/{galleryApplicationVersionName}": { + "put": { + "tags": [ + "GalleryApplicationVersions" + ], + "operationId": "GalleryApplicationVersions_CreateOrUpdate", + "description": "Create or update a gallery Application Version.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "name": "galleryName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Shared Application Gallery in which the Application Definition resides." + }, + { + "name": "galleryApplicationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the gallery Application Definition in which the Application Version is to be created." + }, + { + "name": "galleryApplicationVersionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the gallery Application Version to be created. Needs to follow semantic version name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. Format: .." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "galleryApplicationVersion", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/GalleryApplicationVersion" + }, + "description": "Parameters supplied to the create or update gallery Application Version operation." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/GalleryApplicationVersion" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/GalleryApplicationVersion" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/GalleryApplicationVersion" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Create or update a simple gallery Application Version.": { + "$ref": "./examples/CreateOrUpdateASimpleGalleryApplicationVersion.json" + } + } + }, + "patch": { + "tags": [ + "GalleryApplicationVersions" + ], + "operationId": "GalleryApplicationVersions_Update", + "description": "Update a gallery Application Version.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "name": "galleryName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Shared Application Gallery in which the Application Definition resides." + }, + { + "name": "galleryApplicationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the gallery Application Definition in which the Application Version is to be updated." + }, + { + "name": "galleryApplicationVersionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the gallery Application Version to be updated. Needs to follow semantic version name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. Format: .." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "galleryApplicationVersion", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/GalleryApplicationVersionUpdate" + }, + "description": "Parameters supplied to the update gallery Application Version operation." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/GalleryApplicationVersion" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Update a simple gallery Application Version.": { + "$ref": "./examples/UpdateASimpleGalleryApplicationVersion.json" + } + } + }, + "get": { + "tags": [ + "GalleryApplicationVersions" + ], + "operationId": "GalleryApplicationVersions_Get", + "description": "Retrieves information about a gallery Application Version.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "name": "galleryName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Shared Application Gallery in which the Application Definition resides." + }, + { + "name": "galleryApplicationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the gallery Application Definition in which the Application Version resides." + }, + { + "name": "galleryApplicationVersionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the gallery Application Version to be retrieved." + }, + { + "name": "$expand", + "in": "query", + "required": false, + "type": "string", + "description": "The expand expression to apply on the operation.", + "enum": [ + "ReplicationStatus" + ], + "x-ms-enum": { + "name": "ReplicationStatusTypes", + "modelAsString": true + } + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/GalleryApplicationVersion" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Get a gallery Application Version.": { + "$ref": "./examples/GetAGalleryApplicationVersion.json" + }, + "Get a gallery Application Version with replication status.": { + "$ref": "./examples/GetAGalleryApplicationVersionWithReplicationStatus.json" + } + } + }, + "delete": { + "tags": [ + "GalleryApplicationVersions" + ], + "operationId": "GalleryApplicationVersions_Delete", + "description": "Delete a gallery Application Version.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "name": "galleryName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Shared Application Gallery in which the Application Definition resides." + }, + { + "name": "galleryApplicationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the gallery Application Definition in which the Application Version resides." + }, + { + "name": "galleryApplicationVersionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the gallery Application Version to be deleted." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "204": { + "description": "No Content" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Delete a gallery Application Version.": { + "$ref": "./examples/DeleteAGalleryApplicationVersion.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries": { + "get": { + "tags": [ + "Galleries" + ], + "operationId": "Galleries_ListByResourceGroup", + "description": "List galleries under a resource group.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/GalleryList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "List galleries in a resource group.": { + "$ref": "./examples/ListGalleriesInAResourceGroup.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/galleries": { + "get": { + "tags": [ + "Galleries" + ], + "operationId": "Galleries_List", + "description": "List galleries under a subscription.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/GalleryList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "List galleries in a subscription.": { + "$ref": "./examples/ListGalleriesInASubscription.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images": { + "get": { + "tags": [ + "GalleryImages" + ], + "operationId": "GalleryImages_ListByGallery", + "description": "List gallery Image Definitions in a gallery.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "name": "galleryName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Shared Image Gallery from which Image Definitions are to be listed." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/GalleryImageList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "List gallery images in a gallery.": { + "$ref": "./examples/ListGalleryImagesInAGallery.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}/versions": { + "get": { + "tags": [ + "GalleryImageVersions" + ], + "operationId": "GalleryImageVersions_ListByGalleryImage", + "description": "List gallery Image Versions in a gallery Image Definition.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "name": "galleryName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Shared Image Gallery in which the Image Definition resides." + }, + { + "name": "galleryImageName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Shared Image Gallery Image Definition from which the Image Versions are to be listed." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/GalleryImageVersionList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "List gallery Image Versions in a gallery Image Definition.": { + "$ref": "./examples/ListGalleryImageVersionsInAGalleryImage.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications": { + "get": { + "tags": [ + "GalleryApplications" + ], + "operationId": "GalleryApplications_ListByGallery", + "description": "List gallery Application Definitions in a gallery.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "name": "galleryName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Shared Application Gallery from which Application Definitions are to be listed." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/GalleryApplicationList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "List gallery Applications in a gallery.": { + "$ref": "./examples/ListGalleryApplicationsInAGallery.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}/versions": { + "get": { + "tags": [ + "GalleryApplicationVersions" + ], + "operationId": "GalleryApplicationVersions_ListByGalleryApplication", + "description": "List gallery Application Versions in a gallery Application Definition.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "name": "galleryName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Shared Application Gallery in which the Application Definition resides." + }, + { + "name": "galleryApplicationName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Shared Application Gallery Application Definition from which the Application Versions are to be listed." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/GalleryApplicationVersionList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "List gallery Application Versions in a gallery Application Definition.": { + "$ref": "./examples/ListGalleryApplicationVersionsInAGalleryApplication.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + } + }, + "definitions": { + "Gallery": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/GalleryProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "description": "Specifies information about the Shared Image Gallery that you want to create or update." + }, + "GalleryUpdate": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/GalleryProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/UpdateResourceDefinition" + } + ], + "description": "Specifies information about the Shared Image Gallery that you want to update." + }, + "GalleryProperties": { + "properties": { + "description": { + "type": "string", + "description": "The description of this Shared Image Gallery resource. This property is updatable." + }, + "identifier": { + "$ref": "#/definitions/GalleryIdentifier" + }, + "provisioningState": { + "readOnly": true, + "type": "string", + "title": "The current state of the gallery.", + "description": "The provisioning state, which only appears in the response.", + "enum": [ + "Creating", + "Updating", + "Failed", + "Succeeded", + "Deleting", + "Migrating" + ] + } + }, + "description": "Describes the properties of a Shared Image Gallery." + }, + "GalleryIdentifier": { + "properties": { + "uniqueName": { + "readOnly": true, + "type": "string", + "description": "The unique name of the Shared Image Gallery. This name is generated automatically by Azure." + } + }, + "description": "Describes the gallery unique name." + }, + "GalleryApplication": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/GalleryApplicationProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "description": "Specifies information about the gallery Application Definition that you want to create or update." + }, + "GalleryApplicationUpdate": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/GalleryApplicationProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/UpdateResourceDefinition" + } + ], + "description": "Specifies information about the gallery Application Definition that you want to update." + }, + "GalleryApplicationProperties": { + "properties": { + "description": { + "type": "string", + "description": "The description of this gallery Application Definition resource. This property is updatable." + }, + "eula": { + "type": "string", + "description": "The Eula agreement for the gallery Application Definition." + }, + "privacyStatementUri": { + "type": "string", + "description": "The privacy statement uri." + }, + "releaseNoteUri": { + "type": "string", + "description": "The release note uri." + }, + "endOfLifeDate": { + "type": "string", + "format": "date-time", + "description": "The end of life date of the gallery Application Definition. This property can be used for decommissioning purposes. This property is updatable." + }, + "supportedOSType": { + "type": "string", + "description": "This property allows you to specify the supported type of the OS that application is built for.

Possible values are:

**Windows**

**Linux**", + "enum": [ + "Windows", + "Linux" + ], + "x-ms-enum": { + "name": "OperatingSystemTypes", + "modelAsString": false + } + } + }, + "required": [ + "supportedOSType" + ], + "description": "Describes the properties of a gallery Application Definition." + }, + "GalleryApplicationVersion": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/GalleryApplicationVersionProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "description": "Specifies information about the gallery Application Version that you want to create or update." + }, + "GalleryApplicationVersionUpdate": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/GalleryApplicationVersionProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/UpdateResourceDefinition" + } + ], + "description": "Specifies information about the gallery Application Version that you want to update." + }, + "GalleryApplicationVersionProperties": { + "properties": { + "publishingProfile": { + "$ref": "#/definitions/GalleryApplicationVersionPublishingProfile" + }, + "provisioningState": { + "readOnly": true, + "type": "string", + "title": "The current state of the gallery Application Version.", + "description": "The provisioning state, which only appears in the response.", + "enum": [ + "Creating", + "Updating", + "Failed", + "Succeeded", + "Deleting", + "Migrating" + ] + }, + "replicationStatus": { + "readOnly": true, + "$ref": "#/definitions/ReplicationStatus" + } + }, + "required": [ + "publishingProfile" + ], + "description": "Describes the properties of a gallery Image Version." + }, + "GalleryApplicationVersionPublishingProfile": { + "properties": { + "source": { + "$ref": "#/definitions/UserArtifactSource" + }, + "contentType": { + "type": "string", + "description": "Optional. May be used to help process this file. The type of file contained in the source, e.g. zip, json, etc." + }, + "enableHealthCheck": { + "type": "boolean", + "description": "Optional. Whether or not this application reports health." + } + }, + "allOf": [ + { + "$ref": "#/definitions/GalleryArtifactPublishingProfileBase" + } + ], + "required": [ + "source" + ], + "description": "The publishing profile of a gallery Image Version." + }, + "UserArtifactSource": { + "properties": { + "fileName": { + "type": "string", + "description": "Required. The fileName of the artifact." + }, + "mediaLink": { + "type": "string", + "description": "Required. The mediaLink of the artifact, must be a readable storage blob." + } + }, + "required": [ + "fileName", + "mediaLink" + ], + "description": "The source image from which the Image Version is going to be created." + }, + "GalleryImage": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/GalleryImageProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "description": "Specifies information about the gallery Image Definition that you want to create or update." + }, + "GalleryImageUpdate": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/GalleryImageProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/UpdateResourceDefinition" + } + ], + "description": "Specifies information about the gallery Image Definition that you want to update." + }, + "GalleryImageProperties": { + "properties": { + "description": { + "type": "string", + "description": "The description of this gallery Image Definition resource. This property is updatable." + }, + "eula": { + "type": "string", + "description": "The Eula agreement for the gallery Image Definition." + }, + "privacyStatementUri": { + "type": "string", + "description": "The privacy statement uri." + }, + "releaseNoteUri": { + "type": "string", + "description": "The release note uri." + }, + "osType": { + "type": "string", + "description": "This property allows you to specify the type of the OS that is included in the disk when creating a VM from a managed image.

Possible values are:

**Windows**

**Linux**", + "enum": [ + "Windows", + "Linux" + ], + "x-ms-enum": { + "name": "OperatingSystemTypes", + "modelAsString": false + } + }, + "osState": { + "type": "string", + "description": "This property allows the user to specify whether the virtual machines created under this image are 'Generalized' or 'Specialized'.", + "enum": [ + "Generalized", + "Specialized" + ], + "x-ms-enum": { + "name": "OperatingSystemStateTypes", + "modelAsString": false + } + }, + "hyperVGeneration": { + "type": "string", + "description": "The hypervisor generation of the Virtual Machine. Applicable to OS disks only.", + "enum": [ + "V1", + "V2" + ], + "x-ms-enum": { + "name": "HyperVGeneration", + "modelAsString": true + } + }, + "endOfLifeDate": { + "type": "string", + "format": "date-time", + "description": "The end of life date of the gallery Image Definition. This property can be used for decommissioning purposes. This property is updatable." + }, + "identifier": { + "$ref": "#/definitions/GalleryImageIdentifier" + }, + "recommended": { + "$ref": "#/definitions/RecommendedMachineConfiguration" + }, + "disallowed": { + "$ref": "#/definitions/Disallowed" + }, + "purchasePlan": { + "$ref": "#/definitions/ImagePurchasePlan" + }, + "provisioningState": { + "readOnly": true, + "type": "string", + "title": "The current state of the gallery Image Definition.", + "description": "The provisioning state, which only appears in the response.", + "enum": [ + "Creating", + "Updating", + "Failed", + "Succeeded", + "Deleting", + "Migrating" + ] + } + }, + "required": [ + "osType", + "osState", + "identifier" + ], + "description": "Describes the properties of a gallery Image Definition." + }, + "GalleryImageIdentifier": { + "properties": { + "publisher": { + "type": "string", + "description": "The name of the gallery Image Definition publisher." + }, + "offer": { + "type": "string", + "description": "The name of the gallery Image Definition offer." + }, + "sku": { + "type": "string", + "description": "The name of the gallery Image Definition SKU." + } + }, + "required": [ + "publisher", + "offer", + "sku" + ], + "description": "This is the gallery Image Definition identifier." + }, + "RecommendedMachineConfiguration": { + "properties": { + "vCPUs": { + "$ref": "#/definitions/ResourceRange" + }, + "memory": { + "$ref": "#/definitions/ResourceRange" + } + }, + "description": "The properties describe the recommended machine configuration for this Image Definition. These properties are updatable." + }, + "ResourceRange": { + "properties": { + "min": { + "type": "integer", + "format": "int32", + "description": "The minimum number of the resource." + }, + "max": { + "type": "integer", + "format": "int32", + "description": "The maximum number of the resource." + } + }, + "description": "Describes the resource range." + }, + "Disallowed": { + "properties": { + "diskTypes": { + "type": "array", + "items": { + "type": "string" + }, + "description": "A list of disk types." + } + }, + "description": "Describes the disallowed disk types." + }, + "ImagePurchasePlan": { + "properties": { + "name": { + "type": "string", + "description": "The plan ID." + }, + "publisher": { + "type": "string", + "description": "The publisher ID." + }, + "product": { + "type": "string", + "description": "The product ID." + } + }, + "description": "Describes the gallery Image Definition purchase plan. This is used by marketplace images." + }, + "GalleryImageVersion": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/GalleryImageVersionProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "description": "Specifies information about the gallery Image Version that you want to create or update." + }, + "GalleryImageVersionUpdate": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/GalleryImageVersionProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/UpdateResourceDefinition" + } + ], + "description": "Specifies information about the gallery Image Version that you want to update." + }, + "GalleryImageVersionProperties": { + "properties": { + "publishingProfile": { + "$ref": "#/definitions/GalleryImageVersionPublishingProfile" + }, + "provisioningState": { + "readOnly": true, + "type": "string", + "title": "The current state of the gallery Image Version.", + "description": "The provisioning state, which only appears in the response.", + "enum": [ + "Creating", + "Updating", + "Failed", + "Succeeded", + "Deleting", + "Migrating" + ] + }, + "storageProfile": { + "$ref": "#/definitions/GalleryImageVersionStorageProfile" + }, + "replicationStatus": { + "readOnly": true, + "$ref": "#/definitions/ReplicationStatus" + } + }, + "required": [ + "storageProfile" + ], + "description": "Describes the properties of a gallery Image Version." + }, + "GalleryArtifactPublishingProfileBase": { + "properties": { + "targetRegions": { + "type": "array", + "items": { + "$ref": "#/definitions/TargetRegion" + }, + "description": "The target regions where the Image Version is going to be replicated to. This property is updatable." + }, + "replicaCount": { + "type": "integer", + "format": "int32", + "description": "The number of replicas of the Image Version to be created per region. This property would take effect for a region when regionalReplicaCount is not specified. This property is updatable." + }, + "excludeFromLatest": { + "type": "boolean", + "description": "If set to true, Virtual Machines deployed from the latest version of the Image Definition won't use this Image Version." + }, + "publishedDate": { + "readOnly": true, + "type": "string", + "format": "date-time", + "description": "The timestamp for when the gallery Image Version is published." + }, + "endOfLifeDate": { + "type": "string", + "format": "date-time", + "description": "The end of life date of the gallery Image Version. This property can be used for decommissioning purposes. This property is updatable." + }, + "storageAccountType": { + "type": "string", + "description": "Specifies the storage account type to be used to store the image. This property is not updatable.", + "enum": [ + "Standard_LRS", + "Standard_ZRS", + "Premium_LRS" + ], + "x-ms-enum": { + "name": "StorageAccountType", + "modelAsString": true + } + } + }, + "description": "Describes the basic gallery artifact publishing profile." + }, + "TargetRegion": { + "properties": { + "name": { + "type": "string", + "description": "The name of the region." + }, + "regionalReplicaCount": { + "type": "integer", + "format": "int32", + "description": "The number of replicas of the Image Version to be created per region. This property is updatable." + }, + "storageAccountType": { + "type": "string", + "description": "Specifies the storage account type to be used to store the image. This property is not updatable.", + "enum": [ + "Standard_LRS", + "Standard_ZRS", + "Premium_LRS" + ], + "x-ms-enum": { + "name": "StorageAccountType", + "modelAsString": true + } + }, + "encryption": { + "$ref": "#/definitions/EncryptionImages" + } + }, + "required": [ + "name" + ], + "description": "Describes the target region information." + }, + "EncryptionImages": { + "properties": { + "osDiskImage": { + "$ref": "#/definitions/OSDiskImageEncryption" + }, + "dataDiskImages": { + "type": "array", + "items": { + "$ref": "#/definitions/DataDiskImageEncryption" + }, + "description": "A list of encryption specifications for data disk images." + } + }, + "description": "Optional. Allows users to provide customer managed keys for encrypting the OS and data disks in the gallery artifact." + }, + "OSDiskImageEncryption": { + "allOf": [ + { + "$ref": "#/definitions/DiskImageEncryption" + } + ], + "description": "Contains encryption settings for an OS disk image." + }, + "DataDiskImageEncryption": { + "properties": { + "lun": { + "type": "integer", + "format": "int32", + "description": "This property specifies the logical unit number of the data disk. This value is used to identify data disks within the Virtual Machine and therefore must be unique for each data disk attached to the Virtual Machine." + } + }, + "allOf": [ + { + "$ref": "#/definitions/DiskImageEncryption" + } + ], + "required": [ + "lun" + ], + "description": "Contains encryption settings for a data disk image." + }, + "DiskImageEncryption": { + "properties": { + "diskEncryptionSetId": { + "type": "string", + "description": "A relative URI containing the resource ID of the disk encryption set." + } + }, + "description": "This is the disk image encryption base class." + }, + "GalleryArtifactSource": { + "properties": { + "managedImage": { + "$ref": "#/definitions/ManagedArtifact" + } + }, + "required": [ + "managedImage" + ], + "description": "The source image from which the Image Version is going to be created." + }, + "ManagedArtifact": { + "properties": { + "id": { + "type": "string", + "description": "The managed artifact id." + } + }, + "required": [ + "id" + ], + "description": "The managed artifact." + }, + "GalleryImageVersionPublishingProfile": { + "allOf": [ + { + "$ref": "#/definitions/GalleryArtifactPublishingProfileBase" + } + ], + "description": "The publishing profile of a gallery Image Version." + }, + "GalleryImageVersionStorageProfile": { + "properties": { + "source": { + "$ref": "#/definitions/GalleryArtifactVersionSource" + }, + "osDiskImage": { + "$ref": "#/definitions/GalleryOSDiskImage" + }, + "dataDiskImages": { + "type": "array", + "items": { + "$ref": "#/definitions/GalleryDataDiskImage" + }, + "description": "A list of data disk images." + } + }, + "description": "This is the storage profile of a Gallery Image Version." + }, + "GalleryArtifactVersionSource": { + "properties": { + "id": { + "type": "string", + "description": "The id of the gallery artifact version source. Can specify a disk uri, snapshot uri, or user image." + } + }, + "description": "The gallery artifact version source." + }, + "GalleryOSDiskImage": { + "allOf": [ + { + "$ref": "#/definitions/GalleryDiskImage" + } + ], + "description": "This is the OS disk image." + }, + "GalleryDataDiskImage": { + "properties": { + "lun": { + "type": "integer", + "format": "int32", + "description": "This property specifies the logical unit number of the data disk. This value is used to identify data disks within the Virtual Machine and therefore must be unique for each data disk attached to the Virtual Machine." + } + }, + "allOf": [ + { + "$ref": "#/definitions/GalleryDiskImage" + } + ], + "required": [ + "lun" + ], + "description": "This is the data disk image." + }, + "GalleryDiskImage": { + "properties": { + "sizeInGB": { + "readOnly": true, + "type": "integer", + "format": "int32", + "description": "This property indicates the size of the VHD to be created." + }, + "hostCaching": { + "type": "string", + "description": "The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'", + "enum": [ + "None", + "ReadOnly", + "ReadWrite" + ], + "x-ms-enum": { + "name": "HostCaching", + "modelAsString": false + } + }, + "source": { + "$ref": "#/definitions/GalleryArtifactVersionSource" + } + }, + "description": "This is the disk image base class." + }, + "ReplicationStatus": { + "properties": { + "aggregatedState": { + "readOnly": true, + "type": "string", + "description": "This is the aggregated replication status based on all the regional replication status flags.", + "enum": [ + "Unknown", + "InProgress", + "Completed", + "Failed" + ], + "x-ms-enum": { + "name": "AggregatedReplicationState", + "modelAsString": true + } + }, + "summary": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/RegionalReplicationStatus" + }, + "description": "This is a summary of replication status for each region." + } + }, + "description": "This is the replication status of the gallery Image Version." + }, + "RegionalReplicationStatus": { + "properties": { + "region": { + "readOnly": true, + "type": "string", + "description": "The region to which the gallery Image Version is being replicated to." + }, + "state": { + "readOnly": true, + "type": "string", + "description": "This is the regional replication state.", + "enum": [ + "Unknown", + "Replicating", + "Completed", + "Failed" + ], + "x-ms-enum": { + "name": "ReplicationState", + "modelAsString": true + } + }, + "details": { + "readOnly": true, + "type": "string", + "description": "The details of the replication status." + }, + "progress": { + "readOnly": true, + "type": "integer", + "format": "int32", + "description": "It indicates progress of the replication job." + } + }, + "description": "This is the regional replication status." + }, + "GalleryList": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Gallery" + }, + "description": "A list of galleries." + }, + "nextLink": { + "type": "string", + "description": "The uri to fetch the next page of galleries. Call ListNext() with this to fetch the next page of galleries." + } + }, + "required": [ + "value" + ], + "description": "The List Galleries operation response." + }, + "GalleryImageList": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/GalleryImage" + }, + "description": "A list of Shared Image Gallery images." + }, + "nextLink": { + "type": "string", + "description": "The uri to fetch the next page of Image Definitions in the Shared Image Gallery. Call ListNext() with this to fetch the next page of gallery Image Definitions." + } + }, + "required": [ + "value" + ], + "description": "The List Gallery Images operation response." + }, + "GalleryImageVersionList": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/GalleryImageVersion" + }, + "description": "A list of gallery Image Versions." + }, + "nextLink": { + "type": "string", + "description": "The uri to fetch the next page of gallery Image Versions. Call ListNext() with this to fetch the next page of gallery Image Versions." + } + }, + "required": [ + "value" + ], + "description": "The List Gallery Image version operation response." + }, + "GalleryApplicationList": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/GalleryApplication" + }, + "description": "A list of Gallery Applications." + }, + "nextLink": { + "type": "string", + "description": "The uri to fetch the next page of Application Definitions in the Application Gallery. Call ListNext() with this to fetch the next page of gallery Application Definitions." + } + }, + "required": [ + "value" + ], + "description": "The List Gallery Applications operation response." + }, + "GalleryApplicationVersionList": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/GalleryApplicationVersion" + }, + "description": "A list of gallery Application Versions." + }, + "nextLink": { + "type": "string", + "description": "The uri to fetch the next page of gallery Application Versions. Call ListNext() with this to fetch the next page of gallery Application Versions." + } + }, + "required": [ + "value" + ], + "description": "The List Gallery Application version operation response." + }, + "CloudError": { + "x-ms-external": true, + "properties": { + "error": { + "$ref": "#/definitions/ApiError" + } + }, + "description": "An error response from the Compute service." + }, + "ApiError": { + "properties": { + "details": { + "type": "array", + "items": { + "$ref": "#/definitions/ApiErrorBase" + }, + "description": "The Api error details" + }, + "innererror": { + "$ref": "#/definitions/InnerError", + "description": "The Api inner error" + }, + "code": { + "type": "string", + "description": "The error code." + }, + "target": { + "type": "string", + "description": "The target of the particular error." + }, + "message": { + "type": "string", + "description": "The error message." + } + }, + "description": "Api error." + }, + "ApiErrorBase": { + "properties": { + "code": { + "type": "string", + "description": "The error code." + }, + "target": { + "type": "string", + "description": "The target of the particular error." + }, + "message": { + "type": "string", + "description": "The error message." + } + }, + "description": "Api error base." + }, + "InnerError": { + "properties": { + "exceptiontype": { + "type": "string", + "description": "The exception type." + }, + "errordetail": { + "type": "string", + "description": "The internal error message or exception dump." + } + }, + "description": "Inner error details." + }, + "Resource": { + "description": "The Resource model definition.", + "properties": { + "id": { + "readOnly": true, + "type": "string", + "description": "Resource Id" + }, + "name": { + "readOnly": true, + "type": "string", + "description": "Resource name" + }, + "type": { + "readOnly": true, + "type": "string", + "description": "Resource type" + }, + "location": { + "type": "string", + "description": "Resource location" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags" + } + }, + "required": [ + "location" + ], + "x-ms-azure-resource": true + }, + "UpdateResourceDefinition": { + "description": "The Update Resource model definition.", + "properties": { + "id": { + "readOnly": true, + "type": "string", + "description": "Resource Id" + }, + "name": { + "readOnly": true, + "type": "string", + "description": "Resource name" + }, + "type": { + "readOnly": true, + "type": "string", + "description": "Resource type" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags" + } + }, + "x-ms-azure-resource": true + } + }, + "parameters": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call." + }, + "ResourceGroupNameParameter": { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "description": "The name of the resource group." + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "Client Api Version." + } + } +} diff --git a/specification/compute/resource-manager/readme.md b/specification/compute/resource-manager/readme.md index ffe6a70bb98a..ca6cbbb2fd50 100644 --- a/specification/compute/resource-manager/readme.md +++ b/specification/compute/resource-manager/readme.md @@ -210,6 +210,29 @@ directive: ``` +### Tag: package-2020-09-30 + +These settings apply only when `--tag=package-2020-09-30` is specified on the command line. + +``` yaml $(tag) == 'package-2020-09-30' +input-file: +- Microsoft.Compute/stable/2020-06-01/compute.json +- Microsoft.Compute/stable/2020-06-01/runCommands.json +- Microsoft.Compute/stable/2019-04-01/skus.json +- Microsoft.Compute/stable/2020-05-01/disk.json +- Microsoft.Compute/stable/2020-09-30/gallery.json +- Microsoft.ContainerService/stable/2017-01-31/containerService.json +``` + +### Tag: package-2020-09-30-only + +These settings apply only when `--tag=package-2020-09-30-only` is specified on the command line. + +``` yaml $(tag) == 'package-2020-09-30-only' +input-file: +- Microsoft.Compute/stable/2020-09-30/gallery.json +``` + ### Tag: package-2020-06-01 These settings apply only when `--tag=package-2020-06-01` is specified on the command line. @@ -817,6 +840,7 @@ require: $(this-folder)/../../../profiles/readme.md # all the input files across all versions input-file: + - $(this-folder)/Microsoft.Compute/stable/2020-09-30/gallery.json - $(this-folder)/Microsoft.Compute/stable/2020-06-01/compute.json - $(this-folder)/Microsoft.Compute/stable/2020-06-01/runCommands.json - $(this-folder)/Microsoft.Compute/stable/2019-04-01/skus.json From 9e5b05582c983cafb2f7b6a9df2d82a8cec7f3f4 Mon Sep 17 00:00:00 2001 From: Kang Sun Date: Thu, 13 Aug 2020 17:33:39 -0700 Subject: [PATCH 02/47] add support for api change, sharing profile related --- .../AddToSharingProfileInAGallery.json | 89 ++++++++++ ...pdateASimpleGalleryWithSharingProfile.json | 128 ++++++++++++++ .../GetAGalleryWithSelectPermissions.json | 37 ++++ .../ResetSharingProfileInAGallery.json | 29 ++++ .../stable/2020-09-30/gallery.json | 164 ++++++++++++++++++ 5 files changed, 447 insertions(+) create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/AddToSharingProfileInAGallery.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/CreateOrUpdateASimpleGalleryWithSharingProfile.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetAGalleryWithSelectPermissions.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/ResetSharingProfileInAGallery.json diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/AddToSharingProfileInAGallery.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/AddToSharingProfileInAGallery.json new file mode 100644 index 000000000000..36ef298069fb --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/AddToSharingProfileInAGallery.json @@ -0,0 +1,89 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2020-09-30", + "galleryName": "myGalleryName", + "sharingUpdate": { + "operationType": "Add", + "groups": [ + { + "type": "Subscriptions", + "ids": [ + "34a4ab42-0d72-47d9-bd1a-aed207386dac", + "380fd389-260b-41aa-bad9-0a83108c370b" + ] + }, + { + "type": "AADTenants", + "ids": [ + "c24c76aa-8897-4027-9b03-8f7928b54ff6" + ] + } + ] + } + }, + "responses": { + "200": { + "body": { + "operationType": "Add", + "groups": [ + { + "type": "Subscriptions", + "ids": [ + "34a4ab42-0d72-47d9-bd1a-aed207386dac", + "380fd389-260b-41aa-bad9-0a83108c370b" + ] + }, + { + "type": "AADTenants", + "ids": [ + "c24c76aa-8897-4027-9b03-8f7928b54ff6" + ] + } + ] + } + }, + "201": { + "body": { + "operationType": "Add", + "groups": [ + { + "type": "Subscriptions", + "ids": [ + "34a4ab42-0d72-47d9-bd1a-aed207386dac", + "380fd389-260b-41aa-bad9-0a83108c370b" + ] + }, + { + "type": "AADTenants", + "ids": [ + "c24c76aa-8897-4027-9b03-8f7928b54ff6" + ] + } + ] + } + }, + "202": { + "body": { + "operationType": "Add", + "groups": [ + { + "type": "Subscriptions", + "ids": [ + "34a4ab42-0d72-47d9-bd1a-aed207386dac", + "380fd389-260b-41aa-bad9-0a83108c370b" + ] + }, + { + "type": "AADTenants", + "ids": [ + "c24c76aa-8897-4027-9b03-8f7928b54ff6" + ] + } + ] + } + } + } + } + \ No newline at end of file diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/CreateOrUpdateASimpleGalleryWithSharingProfile.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/CreateOrUpdateASimpleGalleryWithSharingProfile.json new file mode 100644 index 000000000000..9e7d261f89bd --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/CreateOrUpdateASimpleGalleryWithSharingProfile.json @@ -0,0 +1,128 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2020-09-30", + "galleryName": "myGalleryName", + "gallery": { + "location": "West US", + "properties": { + "description": "This is the gallery description.", + "sharingProfile": { + "permission": "Groups", + "groups": [ + { + "type": "Subscriptions", + "ids": [ + "34a4ab42-0d72-47d9-bd1a-aed207386dac", + "380fd389-260b-41aa-bad9-0a83108c370b" + ] + }, + { + "type": "AADTenants", + "ids": [ + "c24c76aa-8897-4027-9b03-8f7928b54ff6" + ] + } + ] + } + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "description": "This is the gallery description.", + "identifier": { + "uniqueName": "{subscription-id}-MYGALLERYNAME" + }, + "provisioningState": "Updating", + "sharingProfile": { + "permission": "Groups", + "groups": [ + { + "type": "Subscriptions", + "ids": [ + "34a4ab42-0d72-47d9-bd1a-aed207386dac", + "380fd389-260b-41aa-bad9-0a83108c370b" + ] + }, + { + "type": "AADTenants", + "ids": [ + "c24c76aa-8897-4027-9b03-8f7928b54ff6" + ] + } + ] + } + }, + "location": "West US", + "name": "myGalleryName" + } + }, + "201": { + "body": { + "properties": { + "description": "This is the gallery description.", + "identifier": { + "uniqueName": "{subscription-id}-MYGALLERYNAME" + }, + "provisioningState": "Creating", + "sharingProfile": { + "permission": "Groups", + "groups": [ + { + "type": "Subscriptions", + "ids": [ + "34a4ab42-0d72-47d9-bd1a-aed207386dac", + "380fd389-260b-41aa-bad9-0a83108c370b" + ] + }, + { + "type": "AADTenants", + "ids": [ + "c24c76aa-8897-4027-9b03-8f7928b54ff6" + ] + } + ] + } + }, + "location": "West US", + "name": "myGalleryName" + } + }, + "202": { + "body": { + "properties": { + "description": "This is the gallery description.", + "identifier": { + "uniqueName": "{subscription-id}-MYGALLERYNAME" + }, + "provisioningState": "Updating", + "sharingProfile": { + "permission": "Groups", + "groups": [ + { + "type": "Subscriptions", + "ids": [ + "34a4ab42-0d72-47d9-bd1a-aed207386dac", + "380fd389-260b-41aa-bad9-0a83108c370b" + ] + }, + { + "type": "AADTenants", + "ids": [ + "c24c76aa-8897-4027-9b03-8f7928b54ff6" + ] + } + ] + } + }, + "location": "West US", + "name": "myGalleryName" + } + } + } + } + \ No newline at end of file diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetAGalleryWithSelectPermissions.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetAGalleryWithSelectPermissions.json new file mode 100644 index 000000000000..9202f26d6b8a --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetAGalleryWithSelectPermissions.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2020-09-30", + "galleryName": "myGalleryName", + "$select": "Permissions" + }, + "responses": { + "200": { + "body": { + "properties": { + "permissions": { + "groups": [ + { + "type": "Subscriptions", + "ids": [ + "34a4ab42-0d72-47d9-bd1a-aed207386dac", + "380fd389-260b-41aa-bad9-0a83108c370b" + ] + }, + { + "type": "AADTenants", + "ids": [ + "c24c76aa-8897-4027-9b03-8f7928b54ff6" + ] + } + ] + } + }, + "location": "West US", + "name": "myGalleryName" + } + } + } + } + \ No newline at end of file diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/ResetSharingProfileInAGallery.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/ResetSharingProfileInAGallery.json new file mode 100644 index 000000000000..bef971bcedaf --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/ResetSharingProfileInAGallery.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2020-09-30", + "galleryName": "myGalleryName", + "sharingUpdate": { + "operationType": "Reset" + } + }, + "responses": { + "200": { + "body": { + "operationType": "Reset" + } + }, + "201": { + "body": { + "operationType": "Reset" + } + }, + "202": { + "body": { + "operationType": "Reset" + } + } + } + } + \ No newline at end of file diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/gallery.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/gallery.json index 3287d38434c7..95ececa8ea58 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/gallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/gallery.json @@ -98,6 +98,9 @@ "x-ms-examples": { "Create or update a simple gallery.": { "$ref": "./examples/CreateOrUpdateASimpleGallery.json" + }, + "Create or update a simple gallery with sharing profile.": { + "$ref": "./examples/CreateOrUpdateASimpleGalleryWithSharingProfile.json" } } }, @@ -177,6 +180,20 @@ }, { "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "$select", + "in": "query", + "required": false, + "type": "string", + "description": "The select expression to apply on the operation.", + "enum": [ + "Permissions" + ], + "x-ms-enum": { + "name": "Permissions", + "modelAsString": true + } } ], "responses": { @@ -196,6 +213,9 @@ "x-ms-examples": { "Get a gallery.": { "$ref": "./examples/GetAGallery.json" + }, + "Get a gallery with select permissions.": { + "$ref": "./examples/GetAGalleryWithSelectPermissions.json" } } }, @@ -1602,6 +1622,76 @@ "nextLinkName": "nextLink" } } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/share": { + "put": { + "tags": [ + "GallerySharingUpdate" + ], + "operationId": "GallerySharingProfile_Update", + "description": "Update sharing profile of a gallery.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "name": "galleryName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Shared Application Gallery in which the Application Definition resides." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "sharingUpdate", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/SharingUpdate" + }, + "description": "Parameters supplied to the update gallery sharing profile." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/SharingUpdate" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/SharingUpdate" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/SharingUpdate" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Add sharing id to the sharing profile of a gallery.": { + "$ref": "./examples/AddToSharingProfileInAGallery.json" + }, + "reset sharing profile of a gallery.": { + "$ref": "./examples/ResetSharingProfileInAGallery.json" + } + } + } } }, "definitions": { @@ -1655,6 +1745,9 @@ "Deleting", "Migrating" ] + }, + "sharingProfile": { + "$ref": "#/definitions/SharingProfile" } }, "description": "Describes the properties of a Shared Image Gallery." @@ -1669,6 +1762,52 @@ }, "description": "Describes the gallery unique name." }, + "SharingProfile": { + "properties": { + "permissions": { + "type": "string", + "description": "This property allows you to specify the permission of sharing gallery.

Possible values are:

**Private**

**Groups**", + "enum": [ + "Private", + "Groups" + ], + "x-ms-enum": { + "name": "GallerySharingPermissionTypes", + "modelAsString": false + } + }, + "groups": { + "type": "array", + "items": { + "$ref": "#/definitions/SharingProfileGroup" + }, + "description": "A list of sharing profile groups." + } + } + }, + "SharingProfileGroup": { + "properties": { + "type": { + "type": "string", + "description": "This property allows you to specify the type of sharing group.

Possible values are:

**Subscriptions**

**AADTenants**", + "enum": [ + "Subscriptions", + "AADTenants" + ], + "x-ms-enum": { + "name": "SharingProfileGroupTypes", + "modelAsString": false + } + }, + "ids": { + "type": "array", + "items": { + "type": "string" + }, + "description": "A list of subscription/tenant ids the gallery is aimed to be shared to." + } + } + }, "GalleryApplication": { "properties": { "properties": { @@ -2621,6 +2760,31 @@ } }, "x-ms-azure-resource": true + }, + "SharingUpdate": { + "properties": { + "operationType": { + "type": "string", + "description": "This property allows you to specify the operation type of gallery sharing update.

Possible values are:

**Add**

**Remove**

**Reset**", + "enum": [ + "Add", + "Remove", + "Reset" + ], + "x-ms-enum": { + "name": "SharingUpdateOperationTypes", + "modelAsString": false + } + }, + "groups": { + "type": "array", + "items": { + "$ref": "#/definitions/SharingProfileGroup" + }, + "description": "A list of sharing profile groups." + } + }, + "description": "Specifies information about the gallery sharing profile update." } }, "parameters": { From 9b6d3b75778a68e891f872f708a1470ce50f2e37 Mon Sep 17 00:00:00 2001 From: Kang Sun Date: Sun, 16 Aug 2020 21:15:44 -0700 Subject: [PATCH 03/47] update, change post to patch --- .../AddToSharingProfileInAGallery.json | 153 ++++++------ ...pdateASimpleGalleryWithSharingProfile.json | 227 +++++++++--------- .../GetAGalleryWithSelectPermissions.json | 63 ++--- .../ResetSharingProfileInAGallery.json | 43 ++-- .../stable/2020-09-30/gallery.json | 32 ++- 5 files changed, 272 insertions(+), 246 deletions(-) diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/AddToSharingProfileInAGallery.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/AddToSharingProfileInAGallery.json index 36ef298069fb..86035433c57b 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/AddToSharingProfileInAGallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/AddToSharingProfileInAGallery.json @@ -1,89 +1,88 @@ { - "parameters": { - "subscriptionId": "{subscription-id}", - "resourceGroupName": "myResourceGroup", - "api-version": "2020-09-30", - "galleryName": "myGalleryName", - "sharingUpdate": { + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2020-09-30", + "galleryName": "myGalleryName", + "sharingUpdate": { + "operationType": "Add", + "groups": [ + { + "type": "Subscriptions", + "ids": [ + "34a4ab42-0d72-47d9-bd1a-aed207386dac", + "380fd389-260b-41aa-bad9-0a83108c370b" + ] + }, + { + "type": "AADTenants", + "ids": [ + "c24c76aa-8897-4027-9b03-8f7928b54ff6" + ] + } + ] + } + }, + "responses": { + "200": { + "body": { "operationType": "Add", "groups": [ - { - "type": "Subscriptions", - "ids": [ - "34a4ab42-0d72-47d9-bd1a-aed207386dac", - "380fd389-260b-41aa-bad9-0a83108c370b" - ] - }, - { - "type": "AADTenants", - "ids": [ - "c24c76aa-8897-4027-9b03-8f7928b54ff6" - ] - } + { + "type": "Subscriptions", + "ids": [ + "34a4ab42-0d72-47d9-bd1a-aed207386dac", + "380fd389-260b-41aa-bad9-0a83108c370b" + ] + }, + { + "type": "AADTenants", + "ids": [ + "c24c76aa-8897-4027-9b03-8f7928b54ff6" + ] + } ] } }, - "responses": { - "200": { - "body": { - "operationType": "Add", - "groups": [ - { - "type": "Subscriptions", - "ids": [ - "34a4ab42-0d72-47d9-bd1a-aed207386dac", - "380fd389-260b-41aa-bad9-0a83108c370b" - ] - }, - { - "type": "AADTenants", - "ids": [ - "c24c76aa-8897-4027-9b03-8f7928b54ff6" - ] - } + "201": { + "body": { + "operationType": "Add", + "groups": [ + { + "type": "Subscriptions", + "ids": [ + "34a4ab42-0d72-47d9-bd1a-aed207386dac", + "380fd389-260b-41aa-bad9-0a83108c370b" ] - } - }, - "201": { - "body": { - "operationType": "Add", - "groups": [ - { - "type": "Subscriptions", - "ids": [ - "34a4ab42-0d72-47d9-bd1a-aed207386dac", - "380fd389-260b-41aa-bad9-0a83108c370b" - ] - }, - { - "type": "AADTenants", - "ids": [ - "c24c76aa-8897-4027-9b03-8f7928b54ff6" - ] - } + }, + { + "type": "AADTenants", + "ids": [ + "c24c76aa-8897-4027-9b03-8f7928b54ff6" ] - } - }, - "202": { - "body": { - "operationType": "Add", - "groups": [ - { - "type": "Subscriptions", - "ids": [ - "34a4ab42-0d72-47d9-bd1a-aed207386dac", - "380fd389-260b-41aa-bad9-0a83108c370b" - ] - }, - { - "type": "AADTenants", - "ids": [ - "c24c76aa-8897-4027-9b03-8f7928b54ff6" - ] - } + } + ] + } + }, + "202": { + "body": { + "operationType": "Add", + "groups": [ + { + "type": "Subscriptions", + "ids": [ + "34a4ab42-0d72-47d9-bd1a-aed207386dac", + "380fd389-260b-41aa-bad9-0a83108c370b" ] - } + }, + { + "type": "AADTenants", + "ids": [ + "c24c76aa-8897-4027-9b03-8f7928b54ff6" + ] + } + ] } } } - \ No newline at end of file +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/CreateOrUpdateASimpleGalleryWithSharingProfile.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/CreateOrUpdateASimpleGalleryWithSharingProfile.json index 9e7d261f89bd..0f94fdfd3f53 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/CreateOrUpdateASimpleGalleryWithSharingProfile.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/CreateOrUpdateASimpleGalleryWithSharingProfile.json @@ -1,128 +1,127 @@ { - "parameters": { - "subscriptionId": "{subscription-id}", - "resourceGroupName": "myResourceGroup", - "api-version": "2020-09-30", - "galleryName": "myGalleryName", - "gallery": { - "location": "West US", + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2020-09-30", + "galleryName": "myGalleryName", + "gallery": { + "location": "West US", + "properties": { + "description": "This is the gallery description.", + "sharingProfile": { + "permissions": "Groups", + "groups": [ + { + "type": "Subscriptions", + "ids": [ + "34a4ab42-0d72-47d9-bd1a-aed207386dac", + "380fd389-260b-41aa-bad9-0a83108c370b" + ] + }, + { + "type": "AADTenants", + "ids": [ + "c24c76aa-8897-4027-9b03-8f7928b54ff6" + ] + } + ] + } + } + } + }, + "responses": { + "200": { + "body": { "properties": { "description": "This is the gallery description.", + "identifier": { + "uniqueName": "{subscription-id}-MYGALLERYNAME" + }, + "provisioningState": "Updating", "sharingProfile": { - "permission": "Groups", - "groups": [ - { - "type": "Subscriptions", - "ids": [ - "34a4ab42-0d72-47d9-bd1a-aed207386dac", - "380fd389-260b-41aa-bad9-0a83108c370b" - ] - }, - { - "type": "AADTenants", - "ids": [ - "c24c76aa-8897-4027-9b03-8f7928b54ff6" - ] - } - ] + "permissions": "Groups", + "groups": [ + { + "type": "Subscriptions", + "ids": [ + "34a4ab42-0d72-47d9-bd1a-aed207386dac", + "380fd389-260b-41aa-bad9-0a83108c370b" + ] + }, + { + "type": "AADTenants", + "ids": [ + "c24c76aa-8897-4027-9b03-8f7928b54ff6" + ] + } + ] } - } + }, + "location": "West US", + "name": "myGalleryName" } }, - "responses": { - "200": { - "body": { - "properties": { - "description": "This is the gallery description.", - "identifier": { - "uniqueName": "{subscription-id}-MYGALLERYNAME" - }, - "provisioningState": "Updating", - "sharingProfile": { - "permission": "Groups", - "groups": [ - { - "type": "Subscriptions", - "ids": [ - "34a4ab42-0d72-47d9-bd1a-aed207386dac", - "380fd389-260b-41aa-bad9-0a83108c370b" - ] - }, - { - "type": "AADTenants", - "ids": [ - "c24c76aa-8897-4027-9b03-8f7928b54ff6" - ] - } - ] - } + "201": { + "body": { + "properties": { + "description": "This is the gallery description.", + "identifier": { + "uniqueName": "{subscription-id}-MYGALLERYNAME" }, - "location": "West US", - "name": "myGalleryName" - } - }, - "201": { - "body": { - "properties": { - "description": "This is the gallery description.", - "identifier": { - "uniqueName": "{subscription-id}-MYGALLERYNAME" - }, - "provisioningState": "Creating", - "sharingProfile": { - "permission": "Groups", - "groups": [ - { - "type": "Subscriptions", - "ids": [ - "34a4ab42-0d72-47d9-bd1a-aed207386dac", - "380fd389-260b-41aa-bad9-0a83108c370b" - ] - }, - { - "type": "AADTenants", - "ids": [ - "c24c76aa-8897-4027-9b03-8f7928b54ff6" - ] - } + "provisioningState": "Creating", + "sharingProfile": { + "permissions": "Groups", + "groups": [ + { + "type": "Subscriptions", + "ids": [ + "34a4ab42-0d72-47d9-bd1a-aed207386dac", + "380fd389-260b-41aa-bad9-0a83108c370b" ] - } - }, - "location": "West US", - "name": "myGalleryName" - } - }, - "202": { - "body": { - "properties": { - "description": "This is the gallery description.", - "identifier": { - "uniqueName": "{subscription-id}-MYGALLERYNAME" - }, - "provisioningState": "Updating", - "sharingProfile": { - "permission": "Groups", - "groups": [ - { - "type": "Subscriptions", - "ids": [ - "34a4ab42-0d72-47d9-bd1a-aed207386dac", - "380fd389-260b-41aa-bad9-0a83108c370b" - ] - }, - { - "type": "AADTenants", - "ids": [ - "c24c76aa-8897-4027-9b03-8f7928b54ff6" - ] - } + }, + { + "type": "AADTenants", + "ids": [ + "c24c76aa-8897-4027-9b03-8f7928b54ff6" ] - } + } + ] + } + }, + "location": "West US", + "name": "myGalleryName" + } + }, + "202": { + "body": { + "properties": { + "description": "This is the gallery description.", + "identifier": { + "uniqueName": "{subscription-id}-MYGALLERYNAME" }, - "location": "West US", - "name": "myGalleryName" - } + "provisioningState": "Updating", + "sharingProfile": { + "permissions": "Groups", + "groups": [ + { + "type": "Subscriptions", + "ids": [ + "34a4ab42-0d72-47d9-bd1a-aed207386dac", + "380fd389-260b-41aa-bad9-0a83108c370b" + ] + }, + { + "type": "AADTenants", + "ids": [ + "c24c76aa-8897-4027-9b03-8f7928b54ff6" + ] + } + ] + } + }, + "location": "West US", + "name": "myGalleryName" } } } - \ No newline at end of file +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetAGalleryWithSelectPermissions.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetAGalleryWithSelectPermissions.json index 9202f26d6b8a..4b893342493b 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetAGalleryWithSelectPermissions.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetAGalleryWithSelectPermissions.json @@ -1,37 +1,38 @@ { - "parameters": { - "subscriptionId": "{subscription-id}", - "resourceGroupName": "myResourceGroup", - "api-version": "2020-09-30", - "galleryName": "myGalleryName", - "$select": "Permissions" - }, - "responses": { - "200": { - "body": { - "properties": { + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2020-09-30", + "galleryName": "myGalleryName", + "$select": "Permissions" + }, + "responses": { + "200": { + "body": { + "properties": { + "sharingProfile": { "permissions": { - "groups": [ - { - "type": "Subscriptions", - "ids": [ - "34a4ab42-0d72-47d9-bd1a-aed207386dac", - "380fd389-260b-41aa-bad9-0a83108c370b" - ] - }, - { - "type": "AADTenants", - "ids": [ - "c24c76aa-8897-4027-9b03-8f7928b54ff6" - ] - } - ] + "groups": [ + { + "type": "Subscriptions", + "ids": [ + "34a4ab42-0d72-47d9-bd1a-aed207386dac", + "380fd389-260b-41aa-bad9-0a83108c370b" + ] + }, + { + "type": "AADTenants", + "ids": [ + "c24c76aa-8897-4027-9b03-8f7928b54ff6" + ] + } + ] } - }, - "location": "West US", - "name": "myGalleryName" - } + } + }, + "location": "West US", + "name": "myGalleryName" } } } - \ No newline at end of file +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/ResetSharingProfileInAGallery.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/ResetSharingProfileInAGallery.json index bef971bcedaf..d2fce5a78136 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/ResetSharingProfileInAGallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/ResetSharingProfileInAGallery.json @@ -1,29 +1,28 @@ { - "parameters": { - "subscriptionId": "{subscription-id}", - "resourceGroupName": "myResourceGroup", - "api-version": "2020-09-30", - "galleryName": "myGalleryName", - "sharingUpdate": { + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2020-09-30", + "galleryName": "myGalleryName", + "sharingUpdate": { + "operationType": "Reset" + } + }, + "responses": { + "200": { + "body": { "operationType": "Reset" } }, - "responses": { - "200": { - "body": { - "operationType": "Reset" - } - }, - "201": { - "body": { - "operationType": "Reset" - } - }, - "202": { - "body": { - "operationType": "Reset" - } + "201": { + "body": { + "operationType": "Reset" + } + }, + "202": { + "body": { + "operationType": "Reset" } } } - \ No newline at end of file +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/gallery.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/gallery.json index 95ececa8ea58..64529d5f104f 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/gallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/gallery.json @@ -1624,7 +1624,7 @@ } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/share": { - "put": { + "patch": { "tags": [ "GallerySharingUpdate" ], @@ -1763,6 +1763,7 @@ "description": "Describes the gallery unique name." }, "SharingProfile": { + "description": "Profile for gallery sharing to subscription or tenant", "properties": { "permissions": { "type": "string", @@ -1786,6 +1787,7 @@ } }, "SharingProfileGroup": { + "description": "Group of the gallery sharing profile", "properties": { "type": { "type": "string", @@ -2762,6 +2764,7 @@ "x-ms-azure-resource": true }, "SharingUpdate": { + "description": "Specifies information about the gallery sharing profile update.", "properties": { "operationType": { "type": "string", @@ -2784,7 +2787,32 @@ "description": "A list of sharing profile groups." } }, - "description": "Specifies information about the gallery sharing profile update." + "x-ms-azure-resource": true + }, + "SharingUpdateProperties": { + "description": "Properties about the gallery sharing profile update.", + "properties": { + "operationType": { + "type": "string", + "description": "This property allows you to specify the operation type of gallery sharing update.

Possible values are:

**Add**

**Remove**

**Reset**", + "enum": [ + "Add", + "Remove", + "Reset" + ], + "x-ms-enum": { + "name": "SharingUpdateOperationTypes", + "modelAsString": false + } + }, + "groups": { + "type": "array", + "items": { + "$ref": "#/definitions/SharingProfileGroup" + }, + "description": "A list of sharing profile groups." + } + } } }, "parameters": { From ce522c0e358e90515776d27ccdf23f53b6674c8d Mon Sep 17 00:00:00 2001 From: Kang Sun Date: Sun, 16 Aug 2020 23:19:09 -0700 Subject: [PATCH 04/47] fix model validation error --- .../GetAGalleryWithSelectPermissions.json | 33 +++++++++---------- 1 file changed, 16 insertions(+), 17 deletions(-) diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetAGalleryWithSelectPermissions.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetAGalleryWithSelectPermissions.json index 4b893342493b..8be8f60164d2 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetAGalleryWithSelectPermissions.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetAGalleryWithSelectPermissions.json @@ -11,23 +11,22 @@ "body": { "properties": { "sharingProfile": { - "permissions": { - "groups": [ - { - "type": "Subscriptions", - "ids": [ - "34a4ab42-0d72-47d9-bd1a-aed207386dac", - "380fd389-260b-41aa-bad9-0a83108c370b" - ] - }, - { - "type": "AADTenants", - "ids": [ - "c24c76aa-8897-4027-9b03-8f7928b54ff6" - ] - } - ] - } + "permissions": "Group", + "groups": [ + { + "type": "Subscriptions", + "ids": [ + "34a4ab42-0d72-47d9-bd1a-aed207386dac", + "380fd389-260b-41aa-bad9-0a83108c370b" + ] + }, + { + "type": "AADTenants", + "ids": [ + "c24c76aa-8897-4027-9b03-8f7928b54ff6" + ] + } + ] } }, "location": "West US", From b9cb068960159546d63f00f15d277ae95bd52526 Mon Sep 17 00:00:00 2001 From: Kang Sun Date: Sun, 16 Aug 2020 23:22:44 -0700 Subject: [PATCH 05/47] fix typo --- .../2020-09-30/examples/GetAGalleryWithSelectPermissions.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetAGalleryWithSelectPermissions.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetAGalleryWithSelectPermissions.json index 8be8f60164d2..b58ca89c0bc1 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetAGalleryWithSelectPermissions.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetAGalleryWithSelectPermissions.json @@ -11,7 +11,7 @@ "body": { "properties": { "sharingProfile": { - "permissions": "Group", + "permissions": "Groups", "groups": [ { "type": "Subscriptions", From 91e2ebfdfb8a0820219d8a1a323ded0b54e1c4aa Mon Sep 17 00:00:00 2001 From: Kang Sun Date: Mon, 17 Aug 2020 20:01:10 -0700 Subject: [PATCH 06/47] add shared gallery api --- .../AddToSharingProfileInAGallery.json | 40 - .../examples/GetASharedGallery.json | 17 + .../examples/GetASharedGalleryImage.json | 28 + .../GetASharedGalleryImageVersion.json | 23 + ...dGalleryImageVersionWithResourceGroup.json | 24 + ...tASharedGalleryImageWithResourceGroup.json | 29 + .../examples/ListSharedGalleries.json | 21 + .../ListSharedGalleryImageVersions.json | 27 + ...GalleryImageVersionsWithResourceGroup.json | 28 + .../examples/ListSharedGalleryImages.json | 32 + ...tSharedGalleryImagesWithResourceGroup.json | 33 + .../ResetSharingProfileInAGallery.json | 10 - .../stable/2020-09-30/gallery.json | 137 ++- .../stable/2020-09-30/sharedGallery.json | 1064 +++++++++++++++++ 14 files changed, 1422 insertions(+), 91 deletions(-) create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetASharedGallery.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetASharedGalleryImage.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetASharedGalleryImageVersion.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetASharedGalleryImageVersionWithResourceGroup.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetASharedGalleryImageWithResourceGroup.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/ListSharedGalleries.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/ListSharedGalleryImageVersions.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/ListSharedGalleryImageVersionsWithResourceGroup.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/ListSharedGalleryImages.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/ListSharedGalleryImagesWithResourceGroup.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/sharedGallery.json diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/AddToSharingProfileInAGallery.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/AddToSharingProfileInAGallery.json index 86035433c57b..33790ed1a863 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/AddToSharingProfileInAGallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/AddToSharingProfileInAGallery.json @@ -24,46 +24,6 @@ } }, "responses": { - "200": { - "body": { - "operationType": "Add", - "groups": [ - { - "type": "Subscriptions", - "ids": [ - "34a4ab42-0d72-47d9-bd1a-aed207386dac", - "380fd389-260b-41aa-bad9-0a83108c370b" - ] - }, - { - "type": "AADTenants", - "ids": [ - "c24c76aa-8897-4027-9b03-8f7928b54ff6" - ] - } - ] - } - }, - "201": { - "body": { - "operationType": "Add", - "groups": [ - { - "type": "Subscriptions", - "ids": [ - "34a4ab42-0d72-47d9-bd1a-aed207386dac", - "380fd389-260b-41aa-bad9-0a83108c370b" - ] - }, - { - "type": "AADTenants", - "ids": [ - "c24c76aa-8897-4027-9b03-8f7928b54ff6" - ] - } - ] - } - }, "202": { "body": { "operationType": "Add", diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetASharedGallery.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetASharedGallery.json new file mode 100644 index 000000000000..95137d7a1265 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetASharedGallery.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "location": "myLocation", + "api-version": "2020-09-30", + "galleryUniqueName": "galleryUniqueName" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/{subscription-id}/providers/Microsoft.Compute/sharedGalleries/galleryUniqueName", + "location": "myLocation", + "name": "myGalleryName" + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetASharedGalleryImage.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetASharedGalleryImage.json new file mode 100644 index 000000000000..a707ba2a2648 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetASharedGalleryImage.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "location": "myLocation", + "api-version": "2020-09-30", + "galleryUniqueName": "galleryUniqueName", + "galleryImageName": "myGalleryImageName" + }, + "responses": { + "200": { + "body": { + "properties": { + "osType": "Windows", + "osState": "Generalized", + "hyperVGeneration": "V1", + "identifier": { + "publisher": "myPublisherName", + "offer": "myOfferName", + "sku": "mySkuName" + } + }, + "location": "myLocation", + "name": "myGalleryImageName", + "id": "/subscriptions/{subscription-id}/providers/Microsoft.Compute/sharedGalleries/galleryUniqueName/images/myGalleryImageName" + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetASharedGalleryImageVersion.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetASharedGalleryImageVersion.json new file mode 100644 index 000000000000..3215febd95dc --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetASharedGalleryImageVersion.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "location": "myLocation", + "api-version": "2020-09-30", + "galleryUniqueName": "galleryUniqueName", + "galleryImageName": "myGalleryImageName", + "galleryImageVersionName": "myGalleryImageVersionName" + }, + "responses": { + "200": { + "body": { + "properties": { + "publishedDate": "2018-03-20T09:12:28Z", + "endOfLifeDate": "2022-03-20T09:12:28Z" + }, + "location": "myLocation", + "name": "myGalleryImageVersionName", + "id": "/subscriptions/{subscription-id}/providers/Microsoft.Compute/sharedGalleries/galleryUniqueName/images/myGalleryImageName/versions/myGalleryImageVersionName" + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetASharedGalleryImageVersionWithResourceGroup.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetASharedGalleryImageVersionWithResourceGroup.json new file mode 100644 index 000000000000..4a0903b759b6 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetASharedGalleryImageVersionWithResourceGroup.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "location": "myLocation", + "api-version": "2020-09-30", + "galleryUniqueName": "galleryUniqueName", + "galleryImageName": "myGalleryImageName", + "galleryImageVersionName": "myGalleryImageVersionName" + }, + "responses": { + "200": { + "body": { + "properties": { + "publishedDate": "2018-03-20T09:12:28Z", + "endOfLifeDate": "2022-03-20T09:12:28Z" + }, + "location": "myLocation", + "name": "myGalleryImageVersionName", + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/sharedGalleries/galleryUniqueName/images/myGalleryImageName/versions/myGalleryImageVersionName" + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetASharedGalleryImageWithResourceGroup.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetASharedGalleryImageWithResourceGroup.json new file mode 100644 index 000000000000..4a0140433a9e --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetASharedGalleryImageWithResourceGroup.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "location": "myLocation", + "api-version": "2020-09-30", + "galleryUniqueName": "galleryUniqueName", + "galleryImageName": "myGalleryImageName" + }, + "responses": { + "200": { + "body": { + "properties": { + "osType": "Windows", + "osState": "Generalized", + "hyperVGeneration": "V1", + "identifier": { + "publisher": "myPublisherName", + "offer": "myOfferName", + "sku": "mySkuName" + } + }, + "location": "myLocation", + "name": "myGalleryImageName", + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/sharedGalleries/galleryUniqueName/images/myGalleryImageName" + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/ListSharedGalleries.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/ListSharedGalleries.json new file mode 100644 index 000000000000..a377ab59bf26 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/ListSharedGalleries.json @@ -0,0 +1,21 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "location": "myLocation", + "api-version": "2020-09-30" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "location": "myLocation", + "name": "galleryUniqueName", + "id": "/subscriptions/{subscription-id}/providers/Microsoft.Compute/sharedGalleries/galleryUniqueName" + } + ], + "nextLink": "http://svchost:99/subscriptions/{subscriptionId}/providers/Microsoft.Compute/sharedGalleries?$skiptoken={token}/Subscriptions/{subscriptionId}/galleries/galleryUniqueName" + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/ListSharedGalleryImageVersions.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/ListSharedGalleryImageVersions.json new file mode 100644 index 000000000000..4dce5b631641 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/ListSharedGalleryImageVersions.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "location": "myLocation", + "api-version": "2020-09-30", + "galleryUniqueName": "galleryUniqueName", + "galleryImageName": "myGalleryImageName" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "publishedDate": "2018-03-20T09:12:28Z", + "endOfLifeDate": "2022-03-20T09:12:28Z" + }, + "location": "myLocation", + "name": "myGalleryImageVersionName", + "id": "/subscriptions/{subscription-id}/providers/Microsoft.Compute/sharedGalleries/galleryUniqueName/images/myGalleryImageName/versions/myGalleryImageVersionName" + } + ], + "nextLink": "http://svchost:99/subscriptions/{subscription-Id}/providers/Microsoft.Compute/sharedGalleries/galleryUniqueName/images/myGalleryImageName/versions?$skiptoken={token}/Subscriptions/{subscription-Id}/galleries/galleryUniqueName/images/myGalleryImageName/versions/myGalleryImageVersionName" + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/ListSharedGalleryImageVersionsWithResourceGroup.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/ListSharedGalleryImageVersionsWithResourceGroup.json new file mode 100644 index 000000000000..08c729bd6444 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/ListSharedGalleryImageVersionsWithResourceGroup.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "location": "myLocation", + "api-version": "2020-09-30", + "galleryUniqueName": "galleryUniqueName", + "galleryImageName": "myGalleryImageName" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "publishedDate": "2018-03-20T09:12:28Z", + "endOfLifeDate": "2022-03-20T09:12:28Z" + }, + "location": "myLocation", + "name": "myGalleryImageVersionName", + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/sharedGalleries/galleryUniqueName/images/myGalleryImageName/versions/myGalleryImageVersionName" + } + ], + "nextLink": "http://svchost:99/subscriptions/{subscription-Id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/sharedGalleries/galleryUniqueName/images/myGalleryImageName/versions?$skiptoken={token}/Subscriptions/{subscription-Id}/resourceGroups/myResourceGroup/galleries/galleryUniqueName/images/myGalleryImageName/versions/myGalleryImageVersionName" + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/ListSharedGalleryImages.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/ListSharedGalleryImages.json new file mode 100644 index 000000000000..5ad0d165aa94 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/ListSharedGalleryImages.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "location": "myLocation", + "api-version": "2020-09-30", + "galleryUniqueName": "galleryUniqueName" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "osType": "Windows", + "osState": "Generalized", + "hyperVGeneration": "V1", + "identifier": { + "publisher": "myPublisherName", + "offer": "myOfferName", + "sku": "mySkuName" + } + }, + "location": "myLocation", + "name": "myGalleryImageName", + "id": "/subscriptions/{subscription-id}/providers/Microsoft.Compute/sharedGalleries/galleryUniqueName/images/myGalleryImageName" + } + ], + "nextLink": "http://svchost:99/subscriptions/{subscription-Id}/providers/Microsoft.Compute/sharedGalleries/galleryUniqueName/images?$skiptoken={token}/Subscriptions/{subscription-Id}/galleries/galleryUniqueName/images/myGalleryImageName" + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/ListSharedGalleryImagesWithResourceGroup.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/ListSharedGalleryImagesWithResourceGroup.json new file mode 100644 index 000000000000..9cb9dc3a182c --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/ListSharedGalleryImagesWithResourceGroup.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "location": "myLocation", + "api-version": "2020-09-30", + "galleryUniqueName": "galleryUniqueName" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "osType": "Windows", + "osState": "Generalized", + "hyperVGeneration": "V1", + "identifier": { + "publisher": "myPublisherName", + "offer": "myOfferName", + "sku": "mySkuName" + } + }, + "location": "myLocation", + "name": "myGalleryImageName", + "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/sharedGalleries/galleryUniqueName/images/myGalleryImageName" + } + ], + "nextLink": "http://svchost:99/subscriptions/{subscription-Id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/sharedGalleries/galleryUniqueName/images?$skiptoken={token}/Subscriptions/{subscription-Id}/resourceGroups/myResourceGroup/galleries/galleryUniqueName/images/myGalleryImageName" + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/ResetSharingProfileInAGallery.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/ResetSharingProfileInAGallery.json index d2fce5a78136..d8be7f85b7a3 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/ResetSharingProfileInAGallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/ResetSharingProfileInAGallery.json @@ -9,16 +9,6 @@ } }, "responses": { - "200": { - "body": { - "operationType": "Reset" - } - }, - "201": { - "body": { - "operationType": "Reset" - } - }, "202": { "body": { "operationType": "Reset" diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/gallery.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/gallery.json index 64529d5f104f..f6f9b0cb93ed 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/gallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/gallery.json @@ -34,6 +34,31 @@ } }, "paths": { + "/providers/Microsoft.Compute/operations": { + "get": { + "tags": [ + "SharedImageGalleryOperations" + ], + "operationId": "Operations_List", + "description": "Gets a list of Shared Image Gallery operations.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/SharedImageGalleryOperationListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}": { "put": { "tags": [ @@ -1624,7 +1649,7 @@ } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/share": { - "patch": { + "post": { "tags": [ "GallerySharingUpdate" ], @@ -1642,7 +1667,7 @@ "in": "path", "required": true, "type": "string", - "description": "The name of the Shared Application Gallery in which the Application Definition resides." + "description": "The name of the Shared Image Gallery." }, { "$ref": "#/parameters/ApiVersionParameter" @@ -1658,18 +1683,6 @@ } ], "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/SharingUpdate" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/SharingUpdate" - } - }, "202": { "description": "Accepted", "schema": { @@ -1784,7 +1797,10 @@ }, "description": "A list of sharing profile groups." } - } + }, + "required": [ + "permissions" + ] }, "SharingProfileGroup": { "description": "Group of the gallery sharing profile", @@ -1808,7 +1824,11 @@ }, "description": "A list of subscription/tenant ids the gallery is aimed to be shared to." } - } + }, + "required": [ + "type", + "ids" + ] }, "GalleryApplication": { "properties": { @@ -2633,6 +2653,63 @@ ], "description": "The List Gallery Application version operation response." }, + "SharedImageGalleryOperationListResult": { + "properties": { + "value": { + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/SharedImageGalleryOperationValue" + }, + "description": "The list of shared image gallery operations" + } + }, + "description": "The List Shared Image Gallery Operation operation response." + }, + "SharedImageGalleryOperationValue": { + "properties": { + "origin": { + "type": "string", + "readOnly": true, + "description": "The origin of the shared image gallery operation." + }, + "name": { + "type": "string", + "readOnly": true, + "description": "The name of the shared image gallery operation." + }, + "display": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/SharedImageGalleryOperationValueDisplay" + } + }, + "description": "Describes the properties of a Shared Image Gallery Operation value." + }, + "SharedImageGalleryOperationValueDisplay": { + "properties": { + "operation": { + "type": "string", + "readOnly": true, + "description": "The display name of the shared image gallery operation." + }, + "resource": { + "type": "string", + "readOnly": true, + "description": "The display name of the resource the operation applies to." + }, + "description": { + "type": "string", + "readOnly": true, + "description": "The description of the operation." + }, + "provider": { + "type": "string", + "readOnly": true, + "description": "The resource provider for the operation." + } + }, + "description": "Describes the properties of a Shared Image Gallery Operation Value Display." + }, "CloudError": { "x-ms-external": true, "properties": { @@ -2787,32 +2864,10 @@ "description": "A list of sharing profile groups." } }, + "required": [ + "operationType" + ], "x-ms-azure-resource": true - }, - "SharingUpdateProperties": { - "description": "Properties about the gallery sharing profile update.", - "properties": { - "operationType": { - "type": "string", - "description": "This property allows you to specify the operation type of gallery sharing update.

Possible values are:

**Add**

**Remove**

**Reset**", - "enum": [ - "Add", - "Remove", - "Reset" - ], - "x-ms-enum": { - "name": "SharingUpdateOperationTypes", - "modelAsString": false - } - }, - "groups": { - "type": "array", - "items": { - "$ref": "#/definitions/SharingProfileGroup" - }, - "description": "A list of sharing profile groups." - } - } } }, "parameters": { diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/sharedGallery.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/sharedGallery.json new file mode 100644 index 000000000000..39f7d4b959f8 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/sharedGallery.json @@ -0,0 +1,1064 @@ +{ + "swagger": "2.0", + "info": { + "title": "SharedGalleryServiceClient", + "description": "Shared Gallery Service Client.", + "version": "2020-09-30" + }, + "host": "pir.compute.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": { + "/providers/Microsoft.Compute/operations": { + "get": { + "tags": [ + "SharedGalleryOperations" + ], + "operationId": "Operations_List", + "description": "Gets a list of Shared Gallery operations.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/SharedGalleryOperationListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries": { + "get": { + "tags": [ + "SharedGalleries" + ], + "operationId": "SharedGalleries_List", + "description": "List shared galleries by subscription id or tenant id.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/LocationNameParamter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/SharedGalleryList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Get a gallery.": { + "$ref": "./examples/ListSharedGalleries.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries/{galleryUniqueName}/images": { + "get": { + "tags": [ + "SharedGalleryImages" + ], + "operationId": "SharedGalleryImages_List", + "description": "List shared gallery images by subscription id or tenant id.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/LocationNameParamter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "galleryUniqueName", + "in": "path", + "required": true, + "type": "string", + "description": "The unique name of the Shared Gallery." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/SharedGalleryImageList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Get a gallery.": { + "$ref": "./examples/ListSharedGalleryImages.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/locations/{location}/sharedGalleries/{galleryUniqueName}/images": { + "get": { + "tags": [ + "SharedGalleryImages" + ], + "operationId": "SharedGalleryImages_ListWithRg", + "description": "List shared gallery images by subscription id or tenant id and resource group.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/LocationNameParamter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "galleryUniqueName", + "in": "path", + "required": true, + "type": "string", + "description": "The unique name of the Shared Gallery." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/SharedGalleryImageList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Get a gallery.": { + "$ref": "./examples/ListSharedGalleryImagesWithResourceGroup.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries/{galleryUniqueName}/images/{galleryImageName}/versions": { + "get": { + "tags": [ + "SharedGalleryImageVersions" + ], + "operationId": "SharedGalleryImageVersions_List", + "description": "List shared gallery image verions by subscription id or tenant id.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/LocationNameParamter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "galleryUniqueName", + "in": "path", + "required": true, + "type": "string", + "description": "The unique name of the Shared Gallery." + }, + { + "name": "galleryImageName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Shared Image Gallery Image Definition from which the Image Versions are to be listed." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/SharedGalleryImageVersionList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Get a gallery.": { + "$ref": "./examples/ListSharedGalleryImageVersions.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/locations/{location}/sharedGalleries/{galleryUniqueName}/images/{galleryImageName}/versions": { + "get": { + "tags": [ + "SharedGalleryImageVersions" + ], + "operationId": "SharedGalleryImageVersions_ListWithRg", + "description": "List shared gallery image verions by subscription id or tenant id.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/LocationNameParamter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "galleryUniqueName", + "in": "path", + "required": true, + "type": "string", + "description": "The unique name of the Shared Gallery." + }, + { + "name": "galleryImageName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Shared Image Gallery Image Definition from which the Image Versions are to be listed." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/SharedGalleryImageVersionList" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Get a gallery.": { + "$ref": "./examples/ListSharedGalleryImageVersionsWithResourceGroup.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries/{galleryUniqueName}": { + "get": { + "tags": [ + "SharedGalleries" + ], + "operationId": "SharedGalleries_Get", + "description": "Get a shared gallery by subscription id or tenant id.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/LocationNameParamter" + }, + { + "name": "galleryUniqueName", + "in": "path", + "required": true, + "type": "string", + "description": "The unique name of the Shared Gallery." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/SharedGallery" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Get a gallery.": { + "$ref": "./examples/GetASharedGallery.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries/{galleryUniqueName}/images/{galleryImageName}": { + "get": { + "tags": [ + "SharedGalleryImages" + ], + "operationId": "SharedGalleryImages_Get", + "description": "Get a shared gallery image by subscription id or tenant id.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/LocationNameParamter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "galleryUniqueName", + "in": "path", + "required": true, + "type": "string", + "description": "The unique name of the Shared Gallery." + }, + { + "name": "galleryImageName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Shared Image Gallery Image Definition from which the Image Versions are to be listed." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/GalleryImage" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Get a gallery.": { + "$ref": "./examples/GetASharedGalleryImage.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/locations/{location}/sharedGalleries/{galleryUniqueName}/images/{galleryImageName}": { + "get": { + "tags": [ + "SharedGalleryImages" + ], + "operationId": "SharedGalleryImages_GetWithRg", + "description": "Get a shared gallery image by subscription id or tenant id and resource group.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/LocationNameParamter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "galleryUniqueName", + "in": "path", + "required": true, + "type": "string", + "description": "The unique name of the Shared Gallery." + }, + { + "name": "galleryImageName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Shared Image Gallery Image Definition from which the Image Versions are to be listed." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/GalleryImage" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Get a gallery.": { + "$ref": "./examples/GetASharedGalleryImageWithResourceGroup.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries/{galleryUniqueName}/images/{galleryImageName}/verions/{galleryImageVersionName}": { + "get": { + "tags": [ + "SharedGalleryImageVersions" + ], + "operationId": "SharedGalleryImageVersions_Get", + "description": "Get a shared gallery image verion by subscription id or tenant id.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/LocationNameParamter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "galleryUniqueName", + "in": "path", + "required": true, + "type": "string", + "description": "The unique name of the Shared Gallery." + }, + { + "name": "galleryImageName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Shared Image Gallery Image Definition from which the Image Versions are to be listed." + }, + { + "name": "galleryImageVersionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the gallery Image Version to be created. Needs to follow semantic version name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. Format: .." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/SharedGalleryImageVersion" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Get a gallery.": { + "$ref": "./examples/GetASharedGalleryImageVersion.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/locations/{location}/sharedGalleries/{galleryUniqueName}/images/{galleryImageName}/verions/{galleryImageVersionName}": { + "get": { + "tags": [ + "SharedGalleryImageVersions" + ], + "operationId": "SharedGalleryImageVersions_GetWithRg", + "description": "Get a shared gallery image verion by subscription id or tenant id with resource group.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/LocationNameParamter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "galleryUniqueName", + "in": "path", + "required": true, + "type": "string", + "description": "The unique name of the Shared Gallery." + }, + { + "name": "galleryImageName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Shared Image Gallery Image Definition from which the Image Versions are to be listed." + }, + { + "name": "galleryImageVersionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the gallery Image Version to be created. Needs to follow semantic version name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. Format: .." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/SharedGalleryImageVersion" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Get a gallery.": { + "$ref": "./examples/GetASharedGalleryImageVersionWithResourceGroup.json" + } + } + } + } + }, + "definitions": { + "Resource": { + "description": "The Resource model definition.", + "properties": { + "id": { + "readOnly": true, + "type": "string", + "description": "Resource Id" + }, + "name": { + "readOnly": true, + "type": "string", + "description": "Resource name" + }, + "location": { + "readOnly": true, + "type": "string", + "description": "Resource location" + }, + "type": { + "readOnly": true, + "type": "string", + "description": "Resource type" + } + }, + "x-ms-azure-resource": true + }, + "SharedGalleryList": { + "description": "The List Shared Galleries operation response.", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/SharedGallery" + }, + "description": "A list of shared galleries." + }, + "nextLink": { + "type": "string", + "description": "The uri to fetch the next page of shared galleries. Call ListNext() with this to fetch the next page of shared galleries." + } + }, + "required": [ + "value" + ] + }, + "SharedGallery": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/GalleryProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "description": "Specifies information about the Shared Image Gallery that you want to create or update." + }, + "GalleryProperties": { + "properties": { + "sharingProfile": { + "$ref": "#/definitions/SharingProfile" + } + }, + "description": "Describes the properties of a Shared Image Gallery." + }, + "SharingProfile": { + "properties": { + "sharedSubscriptionIds": { + "type": "array", + "items": { + "type": "string" + }, + "description": "A list of subscription ids the gallery is aimed to be shared to." + }, + "sharedTenantIds": { + "type": "array", + "items": { + "type": "string" + }, + "description": "A list of tenant ids the gallery is aimed to be shared to." + } + }, + "description": "Describes the sharing profile of a shared gallery." + }, + "SharedGalleryImageList": { + "description": "The List Shared Gallery Images operation response.", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/GalleryImage" + }, + "description": "A list of shared gallery images." + }, + "nextLink": { + "type": "string", + "description": "The uri to fetch the next page of shared gallery images. Call ListNext() with this to fetch the next page of shared gallery images." + } + }, + "required": [ + "value" + ] + }, + "GalleryImage": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/GalleryImageProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "description": "Specifies information about the gallery Image Definition that you want to create or update." + }, + "GalleryImageProperties": { + "properties": { + "osType": { + "type": "string", + "description": "This property allows you to specify the type of the OS that is included in the disk when creating a VM from a managed image.

Possible values are:

**Windows**

**Linux**", + "enum": [ + "Windows", + "Linux" + ], + "x-ms-enum": { + "name": "OperatingSystemTypes", + "modelAsString": false + } + }, + "osState": { + "type": "string", + "description": "This property allows the user to specify whether the virtual machines created under this image are 'Generalized' or 'Specialized'.", + "enum": [ + "Generalized", + "Specialized" + ], + "x-ms-enum": { + "name": "OperatingSystemStateTypes", + "modelAsString": false + } + }, + "endOfLifeDate": { + "type": "string", + "format": "date-time", + "description": "The end of life date of the gallery Image Definition. This property can be used for decommissioning purposes. This property is updatable." + }, + "identifier": { + "$ref": "#/definitions/GalleryImageIdentifier" + }, + "recommended": { + "$ref": "#/definitions/RecommendedMachineConfiguration" + }, + "disallowed": { + "$ref": "#/definitions/Disallowed" + }, + "hyperVGeneration": { + "type": "string", + "description": "The hypervisor generation of the Virtual Machine. Applicable to OS disks only.", + "enum": [ + "V1", + "V2" + ], + "x-ms-enum": { + "name": "HyperVGeneration", + "modelAsString": false + } + }, + "purchasePlan": { + "$ref": "#/definitions/ImagePurchasePlan" + } + }, + "required": [ + "osType", + "osState", + "identifier" + ], + "description": "Describes the properties of a gallery Image Definition." + }, + "GalleryImageIdentifier": { + "properties": { + "publisher": { + "type": "string", + "description": "The name of the gallery Image Definition publisher." + }, + "offer": { + "type": "string", + "description": "The name of the gallery Image Definition offer." + }, + "sku": { + "type": "string", + "description": "The name of the gallery Image Definition SKU." + } + }, + "required": [ + "publisher", + "offer", + "sku" + ], + "description": "This is the gallery Image Definition identifier." + }, + "RecommendedMachineConfiguration": { + "properties": { + "vCPUs": { + "$ref": "#/definitions/ResourceRange" + }, + "memory": { + "$ref": "#/definitions/ResourceRange" + } + }, + "description": "The properties describe the recommended machine configuration for this Image Definition. These properties are updatable." + }, + "ResourceRange": { + "properties": { + "min": { + "type": "integer", + "format": "int32", + "description": "The minimum number of the resource." + }, + "max": { + "type": "integer", + "format": "int32", + "description": "The maximum number of the resource." + } + }, + "description": "Describes the resource range." + }, + "Disallowed": { + "properties": { + "diskTypes": { + "type": "array", + "items": { + "type": "string" + }, + "description": "A list of disk types." + } + }, + "description": "Describes the disallowed disk types." + }, + "ImagePurchasePlan": { + "properties": { + "name": { + "type": "string", + "description": "The plan ID." + }, + "publisher": { + "type": "string", + "description": "The publisher ID." + }, + "product": { + "type": "string", + "description": "The product ID." + } + }, + "description": "Describes the gallery Image Definition purchase plan. This is used by marketplace images." + }, + "SharedGalleryImageVersionList": { + "description": "The List Shared Gallery Image verions operation response.", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/SharedGalleryImageVersion" + }, + "description": "A list of shared gallery images versions." + }, + "nextLink": { + "type": "string", + "description": "The uri to fetch the next page of shared gallery image versions. Call ListNext() with this to fetch the next page of shared gallery image versions." + } + }, + "required": [ + "value" + ] + }, + "SharedGalleryImageVersion": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/GalleryImageVersionProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "description": "Specifies information about the gallery Image Version that you want to create or update." + }, + "GalleryImageVersionProperties": { + "properties": { + "publishedDate": { + "type": "string", + "format": "date-time", + "description": "The published date of the gallery Image Version Definition. This property can be used for decommissioning purposes. This property is updatable." + }, + "endOfLifeDate": { + "type": "string", + "format": "date-time", + "description": "The end of life date of the gallery Image Version Definition. This property can be used for decommissioning purposes. This property is updatable." + } + }, + "description": "Describes the properties of a gallery Image Version." + }, + "SharedGalleryOperationListResult": { + "properties": { + "value": { + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/definitions/SharedGalleryOperationValue" + }, + "description": "The list of shared gallery operations" + } + }, + "description": "The List Shared Gallery Operation operation response." + }, + "SharedGalleryOperationValue": { + "properties": { + "origin": { + "type": "string", + "readOnly": true, + "description": "The origin of the shared gallery operation." + }, + "name": { + "type": "string", + "readOnly": true, + "description": "The name of the shared gallery operation." + }, + "display": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/SharedGalleryOperationValueDisplay" + } + }, + "description": "Describes the properties of a Shared Gallery Operation value." + }, + "SharedGalleryOperationValueDisplay": { + "properties": { + "operation": { + "type": "string", + "readOnly": true, + "description": "The display name of the shared gallery operation." + }, + "resource": { + "type": "string", + "readOnly": true, + "description": "The display name of the resource the operation applies to." + }, + "description": { + "type": "string", + "readOnly": true, + "description": "The description of the operation." + }, + "provider": { + "type": "string", + "readOnly": true, + "description": "The resource provider for the operation." + } + }, + "description": "Describes the properties of a Shared Gallery Operation Value Display." + }, + "CloudError": { + "x-ms-external": true, + "properties": { + "error": { + "$ref": "#/definitions/ApiError" + } + }, + "description": "An error response from the Compute service." + }, + "ApiError": { + "properties": { + "details": { + "type": "array", + "items": { + "$ref": "#/definitions/ApiErrorBase" + }, + "description": "The Api error details" + }, + "innererror": { + "$ref": "#/definitions/InnerError", + "description": "The Api inner error" + }, + "code": { + "type": "string", + "description": "The error code." + }, + "target": { + "type": "string", + "description": "The target of the particular error." + }, + "message": { + "type": "string", + "description": "The error message." + } + }, + "description": "Api error." + }, + "ApiErrorBase": { + "properties": { + "code": { + "type": "string", + "description": "The error code." + }, + "target": { + "type": "string", + "description": "The target of the particular error." + }, + "message": { + "type": "string", + "description": "The error message." + } + }, + "description": "Api error base." + }, + "InnerError": { + "properties": { + "exceptiontype": { + "type": "string", + "description": "The exception type." + }, + "errordetail": { + "type": "string", + "description": "The internal error message or exception dump." + } + }, + "description": "Inner error details." + } + }, + "parameters": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call." + }, + "ResourceGroupNameParameter": { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "description": "The name of the caller's resource group." + }, + "LocationNameParamter": { + "name": "location", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "description": "Resource location." + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "Client Api Version." + } + } +} From c7bd94415a4ea9904376db6853b50bbae0e3993b Mon Sep 17 00:00:00 2001 From: Kang Sun Date: Mon, 17 Aug 2020 21:11:53 -0700 Subject: [PATCH 07/47] update --- .../stable/2020-09-30/gallery.json | 30 +++++++++---------- .../compute/resource-manager/readme.md | 3 ++ 2 files changed, 18 insertions(+), 15 deletions(-) diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/gallery.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/gallery.json index f6f9b0cb93ed..a4338e89f4b1 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/gallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/gallery.json @@ -37,10 +37,10 @@ "/providers/Microsoft.Compute/operations": { "get": { "tags": [ - "SharedImageGalleryOperations" + "ComputeOperations" ], "operationId": "Operations_List", - "description": "Gets a list of Shared Image Gallery operations.", + "description": "Gets a list of compute operations.", "parameters": [ { "$ref": "#/parameters/ApiVersionParameter" @@ -50,7 +50,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/SharedImageGalleryOperationListResult" + "$ref": "#/definitions/ComputeOperationListResult" } } }, @@ -2653,44 +2653,44 @@ ], "description": "The List Gallery Application version operation response." }, - "SharedImageGalleryOperationListResult": { + "ComputeOperationListResult": { "properties": { "value": { "type": "array", "readOnly": true, "items": { - "$ref": "#/definitions/SharedImageGalleryOperationValue" + "$ref": "#/definitions/ComputeOperationValue" }, - "description": "The list of shared image gallery operations" + "description": "The list of compute operations" } }, - "description": "The List Shared Image Gallery Operation operation response." + "description": "The List Compute Operation operation response." }, - "SharedImageGalleryOperationValue": { + "ComputeOperationValue": { "properties": { "origin": { "type": "string", "readOnly": true, - "description": "The origin of the shared image gallery operation." + "description": "The origin of the compute operation." }, "name": { "type": "string", "readOnly": true, - "description": "The name of the shared image gallery operation." + "description": "The name of the compute operation." }, "display": { "x-ms-client-flatten": true, - "$ref": "#/definitions/SharedImageGalleryOperationValueDisplay" + "$ref": "#/definitions/ComputeOperationValueDisplay" } }, - "description": "Describes the properties of a Shared Image Gallery Operation value." + "description": "Describes the properties of a Compute Operation value." }, - "SharedImageGalleryOperationValueDisplay": { + "ComputeOperationValueDisplay": { "properties": { "operation": { "type": "string", "readOnly": true, - "description": "The display name of the shared image gallery operation." + "description": "The display name of the compute operation." }, "resource": { "type": "string", @@ -2708,7 +2708,7 @@ "description": "The resource provider for the operation." } }, - "description": "Describes the properties of a Shared Image Gallery Operation Value Display." + "description": "Describes the properties of a Compute Operation Value Display." }, "CloudError": { "x-ms-external": true, diff --git a/specification/compute/resource-manager/readme.md b/specification/compute/resource-manager/readme.md index ca6cbbb2fd50..9545a96442e3 100644 --- a/specification/compute/resource-manager/readme.md +++ b/specification/compute/resource-manager/readme.md @@ -221,6 +221,7 @@ input-file: - Microsoft.Compute/stable/2019-04-01/skus.json - Microsoft.Compute/stable/2020-05-01/disk.json - Microsoft.Compute/stable/2020-09-30/gallery.json +- Microsoft.Compute/stable/2020-09-30/sharedGallery.json - Microsoft.ContainerService/stable/2017-01-31/containerService.json ``` @@ -231,6 +232,7 @@ These settings apply only when `--tag=package-2020-09-30-only` is specified on t ``` yaml $(tag) == 'package-2020-09-30-only' input-file: - Microsoft.Compute/stable/2020-09-30/gallery.json +- Microsoft.Compute/stable/2020-09-30/sharedGallery.json ``` ### Tag: package-2020-06-01 @@ -840,6 +842,7 @@ require: $(this-folder)/../../../profiles/readme.md # all the input files across all versions input-file: + - $(this-folder)/Microsoft.Compute/stable/2020-09-30/sharedGallery.json - $(this-folder)/Microsoft.Compute/stable/2020-09-30/gallery.json - $(this-folder)/Microsoft.Compute/stable/2020-06-01/compute.json - $(this-folder)/Microsoft.Compute/stable/2020-06-01/runCommands.json From df04728caeb4f6b9208e5e7c941a1eac8d015253 Mon Sep 17 00:00:00 2001 From: Kang Sun Date: Mon, 17 Aug 2020 21:20:27 -0700 Subject: [PATCH 08/47] fix typo --- .../stable/2020-09-30/sharedGallery.json | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/sharedGallery.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/sharedGallery.json index 39f7d4b959f8..3aa92268ef89 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/sharedGallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/sharedGallery.json @@ -208,7 +208,7 @@ "SharedGalleryImageVersions" ], "operationId": "SharedGalleryImageVersions_List", - "description": "List shared gallery image verions by subscription id or tenant id.", + "description": "List shared gallery image versions by subscription id or tenant id.", "parameters": [ { "$ref": "#/parameters/SubscriptionIdParameter" @@ -264,7 +264,7 @@ "SharedGalleryImageVersions" ], "operationId": "SharedGalleryImageVersions_ListWithRg", - "description": "List shared gallery image verions by subscription id or tenant id.", + "description": "List shared gallery image versions by subscription id or tenant id.", "parameters": [ { "$ref": "#/parameters/SubscriptionIdParameter" @@ -472,13 +472,13 @@ } } }, - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries/{galleryUniqueName}/images/{galleryImageName}/verions/{galleryImageVersionName}": { + "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries/{galleryUniqueName}/images/{galleryImageName}/versions/{galleryImageVersionName}": { "get": { "tags": [ "SharedGalleryImageVersions" ], "operationId": "SharedGalleryImageVersions_Get", - "description": "Get a shared gallery image verion by subscription id or tenant id.", + "description": "Get a shared gallery image version by subscription id or tenant id.", "parameters": [ { "$ref": "#/parameters/SubscriptionIdParameter" @@ -532,13 +532,13 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/locations/{location}/sharedGalleries/{galleryUniqueName}/images/{galleryImageName}/verions/{galleryImageVersionName}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/locations/{location}/sharedGalleries/{galleryUniqueName}/images/{galleryImageName}/versions/{galleryImageVersionName}": { "get": { "tags": [ "SharedGalleryImageVersions" ], "operationId": "SharedGalleryImageVersions_GetWithRg", - "description": "Get a shared gallery image verion by subscription id or tenant id with resource group.", + "description": "Get a shared gallery image version by subscription id or tenant id with resource group.", "parameters": [ { "$ref": "#/parameters/SubscriptionIdParameter" @@ -857,7 +857,7 @@ "description": "Describes the gallery Image Definition purchase plan. This is used by marketplace images." }, "SharedGalleryImageVersionList": { - "description": "The List Shared Gallery Image verions operation response.", + "description": "The List Shared Gallery Image versions operation response.", "properties": { "value": { "type": "array", From 3984a1bb3e39a461246d078ee02be516f5256e35 Mon Sep 17 00:00:00 2001 From: Kang Sun Date: Mon, 17 Aug 2020 21:26:38 -0700 Subject: [PATCH 09/47] update --- .../stable/2020-09-30/gallery.json | 82 ------------------ .../stable/2020-09-30/sharedGallery.json | 84 +------------------ 2 files changed, 1 insertion(+), 165 deletions(-) diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/gallery.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/gallery.json index a4338e89f4b1..714bd51d1f44 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/gallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/gallery.json @@ -34,31 +34,6 @@ } }, "paths": { - "/providers/Microsoft.Compute/operations": { - "get": { - "tags": [ - "ComputeOperations" - ], - "operationId": "Operations_List", - "description": "Gets a list of compute operations.", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/ComputeOperationListResult" - } - } - }, - "x-ms-pageable": { - "nextLinkName": null - } - } - }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}": { "put": { "tags": [ @@ -2653,63 +2628,6 @@ ], "description": "The List Gallery Application version operation response." }, - "ComputeOperationListResult": { - "properties": { - "value": { - "type": "array", - "readOnly": true, - "items": { - "$ref": "#/definitions/ComputeOperationValue" - }, - "description": "The list of compute operations" - } - }, - "description": "The List Compute Operation operation response." - }, - "ComputeOperationValue": { - "properties": { - "origin": { - "type": "string", - "readOnly": true, - "description": "The origin of the compute operation." - }, - "name": { - "type": "string", - "readOnly": true, - "description": "The name of the compute operation." - }, - "display": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/ComputeOperationValueDisplay" - } - }, - "description": "Describes the properties of a Compute Operation value." - }, - "ComputeOperationValueDisplay": { - "properties": { - "operation": { - "type": "string", - "readOnly": true, - "description": "The display name of the compute operation." - }, - "resource": { - "type": "string", - "readOnly": true, - "description": "The display name of the resource the operation applies to." - }, - "description": { - "type": "string", - "readOnly": true, - "description": "The description of the operation." - }, - "provider": { - "type": "string", - "readOnly": true, - "description": "The resource provider for the operation." - } - }, - "description": "Describes the properties of a Compute Operation Value Display." - }, "CloudError": { "x-ms-external": true, "properties": { diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/sharedGallery.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/sharedGallery.json index 3aa92268ef89..577c92cc1f0e 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/sharedGallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/sharedGallery.json @@ -5,7 +5,7 @@ "description": "Shared Gallery Service Client.", "version": "2020-09-30" }, - "host": "pir.compute.azure.com", + "host": "management.azure.com", "schemes": [ "https" ], @@ -34,31 +34,6 @@ } }, "paths": { - "/providers/Microsoft.Compute/operations": { - "get": { - "tags": [ - "SharedGalleryOperations" - ], - "operationId": "Operations_List", - "description": "Gets a list of Shared Gallery operations.", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/SharedGalleryOperationListResult" - } - } - }, - "x-ms-pageable": { - "nextLinkName": null - } - } - }, "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries": { "get": { "tags": [ @@ -904,63 +879,6 @@ }, "description": "Describes the properties of a gallery Image Version." }, - "SharedGalleryOperationListResult": { - "properties": { - "value": { - "type": "array", - "readOnly": true, - "items": { - "$ref": "#/definitions/SharedGalleryOperationValue" - }, - "description": "The list of shared gallery operations" - } - }, - "description": "The List Shared Gallery Operation operation response." - }, - "SharedGalleryOperationValue": { - "properties": { - "origin": { - "type": "string", - "readOnly": true, - "description": "The origin of the shared gallery operation." - }, - "name": { - "type": "string", - "readOnly": true, - "description": "The name of the shared gallery operation." - }, - "display": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/SharedGalleryOperationValueDisplay" - } - }, - "description": "Describes the properties of a Shared Gallery Operation value." - }, - "SharedGalleryOperationValueDisplay": { - "properties": { - "operation": { - "type": "string", - "readOnly": true, - "description": "The display name of the shared gallery operation." - }, - "resource": { - "type": "string", - "readOnly": true, - "description": "The display name of the resource the operation applies to." - }, - "description": { - "type": "string", - "readOnly": true, - "description": "The description of the operation." - }, - "provider": { - "type": "string", - "readOnly": true, - "description": "The resource provider for the operation." - } - }, - "description": "Describes the properties of a Shared Gallery Operation Value Display." - }, "CloudError": { "x-ms-external": true, "properties": { From 1511e276d318fea8e033d7a33e9b99e48dd024c5 Mon Sep 17 00:00:00 2001 From: Kang Sun Date: Mon, 17 Aug 2020 22:11:02 -0700 Subject: [PATCH 10/47] update --- .../stable/2020-09-30/sharedGallery.json | 32 +++++++++---------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/sharedGallery.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/sharedGallery.json index 577c92cc1f0e..0a3706e23595 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/sharedGallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/sharedGallery.json @@ -374,7 +374,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/GalleryImage" + "$ref": "#/definitions/SharedGalleryImage" } }, "default": { @@ -430,7 +430,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/GalleryImage" + "$ref": "#/definitions/SharedGalleryImage" } }, "default": { @@ -572,7 +572,7 @@ } }, "definitions": { - "Resource": { + "PirResource": { "description": "The Resource model definition.", "properties": { "id": { @@ -621,25 +621,25 @@ "properties": { "properties": { "x-ms-client-flatten": true, - "$ref": "#/definitions/GalleryProperties" + "$ref": "#/definitions/SharedGalleryProperties" } }, "allOf": [ { - "$ref": "#/definitions/Resource" + "$ref": "#/definitions/PirResource" } ], "description": "Specifies information about the Shared Image Gallery that you want to create or update." }, - "GalleryProperties": { + "SharedGalleryProperties": { "properties": { "sharingProfile": { - "$ref": "#/definitions/SharingProfile" + "$ref": "#/definitions/SharedGallerySharingProfile" } }, "description": "Describes the properties of a Shared Image Gallery." }, - "SharingProfile": { + "SharedGallerySharingProfile": { "properties": { "sharedSubscriptionIds": { "type": "array", @@ -664,7 +664,7 @@ "value": { "type": "array", "items": { - "$ref": "#/definitions/GalleryImage" + "$ref": "#/definitions/SharedGalleryImage" }, "description": "A list of shared gallery images." }, @@ -677,21 +677,21 @@ "value" ] }, - "GalleryImage": { + "SharedGalleryImage": { "properties": { "properties": { "x-ms-client-flatten": true, - "$ref": "#/definitions/GalleryImageProperties" + "$ref": "#/definitions/SharedGalleryImageProperties" } }, "allOf": [ { - "$ref": "#/definitions/Resource" + "$ref": "#/definitions/PirResource" } ], "description": "Specifies information about the gallery Image Definition that you want to create or update." }, - "GalleryImageProperties": { + "SharedGalleryImageProperties": { "properties": { "osType": { "type": "string", @@ -854,17 +854,17 @@ "properties": { "properties": { "x-ms-client-flatten": true, - "$ref": "#/definitions/GalleryImageVersionProperties" + "$ref": "#/definitions/SharedGalleryImageVersionProperties" } }, "allOf": [ { - "$ref": "#/definitions/Resource" + "$ref": "#/definitions/PirResource" } ], "description": "Specifies information about the gallery Image Version that you want to create or update." }, - "GalleryImageVersionProperties": { + "SharedGalleryImageVersionProperties": { "properties": { "publishedDate": { "type": "string", From 6387f21824dd2c5d5ccfb81f0351664d75ff6ae4 Mon Sep 17 00:00:00 2001 From: Kang Sun Date: Mon, 17 Aug 2020 22:16:35 -0700 Subject: [PATCH 11/47] update --- .../Microsoft.Compute/stable/2020-09-30/sharedGallery.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/sharedGallery.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/sharedGallery.json index 0a3706e23595..10887a59b9f1 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/sharedGallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/sharedGallery.json @@ -961,7 +961,7 @@ "required": true, "type": "string", "x-ms-parameter-location": "method", - "description": "The name of the caller's resource group." + "description": "The name of the resource group." }, "LocationNameParamter": { "name": "location", From 102e7e64456d6d6761e4cbb1ca2d76fee337344f Mon Sep 17 00:00:00 2001 From: Kang Sun Date: Tue, 18 Aug 2020 12:11:58 -0700 Subject: [PATCH 12/47] chagne new api version to preview --- .../AddToSharingProfileInAGallery.json | 2 +- .../CreateOrUpdateASimpleGallery.json | 2 +- ...eateOrUpdateASimpleGalleryApplication.json | 2 +- ...pdateASimpleGalleryApplicationVersion.json | 2 +- .../CreateOrUpdateASimpleGalleryImage.json | 2 +- ...ateOrUpdateASimpleGalleryImageVersion.json | 2 +- ...leryImageVersionWithSnapshotsAsSource.json | 2 +- ...pdateASimpleGalleryWithSharingProfile.json | 2 +- .../examples/DeleteAGallery.json | 2 +- .../examples/DeleteAGalleryApplication.json | 2 +- .../DeleteAGalleryApplicationVersion.json | 2 +- .../examples/DeleteAGalleryImage.json | 2 +- .../examples/DeleteAGalleryImageVersion.json | 2 +- .../examples/GetAGallery.json | 2 +- .../examples/GetAGalleryApplication.json | 2 +- .../GetAGalleryApplicationVersion.json | 2 +- ...plicationVersionWithReplicationStatus.json | 2 +- .../examples/GetAGalleryImage.json | 2 +- .../examples/GetAGalleryImageVersion.json | 2 +- ...leryImageVersionWithReplicationStatus.json | 2 +- ...leryImageVersionWithSnapshotsAsSource.json | 2 +- .../GetAGalleryWithSelectPermissions.json | 2 +- .../examples/GetASharedGallery.json | 2 +- .../examples/GetASharedGalleryImage.json | 2 +- .../GetASharedGalleryImageVersion.json | 2 +- ...dGalleryImageVersionWithResourceGroup.json | 2 +- ...tASharedGalleryImageWithResourceGroup.json | 2 +- .../ListGalleriesInAResourceGroup.json | 2 +- .../ListGalleriesInASubscription.json | 2 +- ...licationVersionsInAGalleryApplication.json | 2 +- .../ListGalleryApplicationsInAGallery.json | 2 +- ...stGalleryImageVersionsInAGalleryImage.json | 2 +- .../examples/ListGalleryImagesInAGallery.json | 2 +- .../examples/ListSharedGalleries.json | 2 +- .../ListSharedGalleryImageVersions.json | 2 +- ...GalleryImageVersionsWithResourceGroup.json | 2 +- .../examples/ListSharedGalleryImages.json | 2 +- ...tSharedGalleryImagesWithResourceGroup.json | 2 +- .../ResetSharingProfileInAGallery.json | 2 +- .../examples/UpdateASimpleGallery.json | 2 +- .../UpdateASimpleGalleryApplication.json | 2 +- ...pdateASimpleGalleryApplicationVersion.json | 2 +- .../examples/UpdateASimpleGalleryImage.json | 2 +- .../UpdateASimpleGalleryImageVersion.json | 2 +- .../2020-09-30-preview}/gallery.json | 2 +- .../2020-09-30-preview}/sharedGallery.json | 24 +------------------ 46 files changed, 46 insertions(+), 68 deletions(-) rename specification/compute/resource-manager/Microsoft.Compute/{stable/2020-09-30 => preview/2020-09-30-preview}/examples/AddToSharingProfileInAGallery.json (96%) rename specification/compute/resource-manager/Microsoft.Compute/{stable/2020-09-30 => preview/2020-09-30-preview}/examples/CreateOrUpdateASimpleGallery.json (97%) rename specification/compute/resource-manager/Microsoft.Compute/{stable/2020-09-30 => preview/2020-09-30-preview}/examples/CreateOrUpdateASimpleGalleryApplication.json (98%) rename specification/compute/resource-manager/Microsoft.Compute/{stable/2020-09-30 => preview/2020-09-30-preview}/examples/CreateOrUpdateASimpleGalleryApplicationVersion.json (99%) rename specification/compute/resource-manager/Microsoft.Compute/{stable/2020-09-30 => preview/2020-09-30-preview}/examples/CreateOrUpdateASimpleGalleryImage.json (97%) rename specification/compute/resource-manager/Microsoft.Compute/{stable/2020-09-30 => preview/2020-09-30-preview}/examples/CreateOrUpdateASimpleGalleryImageVersion.json (99%) rename specification/compute/resource-manager/Microsoft.Compute/{stable/2020-09-30 => preview/2020-09-30-preview}/examples/CreateOrUpdateASimpleGalleryImageVersionWithSnapshotsAsSource.json (99%) rename specification/compute/resource-manager/Microsoft.Compute/{stable/2020-09-30 => preview/2020-09-30-preview}/examples/CreateOrUpdateASimpleGalleryWithSharingProfile.json (98%) rename specification/compute/resource-manager/Microsoft.Compute/{stable/2020-09-30 => preview/2020-09-30-preview}/examples/DeleteAGallery.json (83%) rename specification/compute/resource-manager/Microsoft.Compute/{stable/2020-09-30 => preview/2020-09-30-preview}/examples/DeleteAGalleryApplication.json (86%) rename specification/compute/resource-manager/Microsoft.Compute/{stable/2020-09-30 => preview/2020-09-30-preview}/examples/DeleteAGalleryApplicationVersion.json (88%) rename specification/compute/resource-manager/Microsoft.Compute/{stable/2020-09-30 => preview/2020-09-30-preview}/examples/DeleteAGalleryImage.json (86%) rename specification/compute/resource-manager/Microsoft.Compute/{stable/2020-09-30 => preview/2020-09-30-preview}/examples/DeleteAGalleryImageVersion.json (87%) rename specification/compute/resource-manager/Microsoft.Compute/{stable/2020-09-30 => preview/2020-09-30-preview}/examples/GetAGallery.json (92%) rename specification/compute/resource-manager/Microsoft.Compute/{stable/2020-09-30 => preview/2020-09-30-preview}/examples/GetAGalleryApplication.json (94%) rename specification/compute/resource-manager/Microsoft.Compute/{stable/2020-09-30 => preview/2020-09-30-preview}/examples/GetAGalleryApplicationVersion.json (97%) rename specification/compute/resource-manager/Microsoft.Compute/{stable/2020-09-30 => preview/2020-09-30-preview}/examples/GetAGalleryApplicationVersionWithReplicationStatus.json (97%) rename specification/compute/resource-manager/Microsoft.Compute/{stable/2020-09-30 => preview/2020-09-30-preview}/examples/GetAGalleryImage.json (94%) rename specification/compute/resource-manager/Microsoft.Compute/{stable/2020-09-30 => preview/2020-09-30-preview}/examples/GetAGalleryImageVersion.json (98%) rename specification/compute/resource-manager/Microsoft.Compute/{stable/2020-09-30 => preview/2020-09-30-preview}/examples/GetAGalleryImageVersionWithReplicationStatus.json (98%) rename specification/compute/resource-manager/Microsoft.Compute/{stable/2020-09-30 => preview/2020-09-30-preview}/examples/GetAGalleryImageVersionWithSnapshotsAsSource.json (98%) rename specification/compute/resource-manager/Microsoft.Compute/{stable/2020-09-30 => preview/2020-09-30-preview}/examples/GetAGalleryWithSelectPermissions.json (95%) rename specification/compute/resource-manager/Microsoft.Compute/{stable/2020-09-30 => preview/2020-09-30-preview}/examples/GetASharedGallery.json (90%) rename specification/compute/resource-manager/Microsoft.Compute/{stable/2020-09-30 => preview/2020-09-30-preview}/examples/GetASharedGalleryImage.json (94%) rename specification/compute/resource-manager/Microsoft.Compute/{stable/2020-09-30 => preview/2020-09-30-preview}/examples/GetASharedGalleryImageVersion.json (94%) rename specification/compute/resource-manager/Microsoft.Compute/{stable/2020-09-30 => preview/2020-09-30-preview}/examples/GetASharedGalleryImageVersionWithResourceGroup.json (94%) rename specification/compute/resource-manager/Microsoft.Compute/{stable/2020-09-30 => preview/2020-09-30-preview}/examples/GetASharedGalleryImageWithResourceGroup.json (95%) rename specification/compute/resource-manager/Microsoft.Compute/{stable/2020-09-30 => preview/2020-09-30-preview}/examples/ListGalleriesInAResourceGroup.json (95%) rename specification/compute/resource-manager/Microsoft.Compute/{stable/2020-09-30 => preview/2020-09-30-preview}/examples/ListGalleriesInASubscription.json (95%) rename specification/compute/resource-manager/Microsoft.Compute/{stable/2020-09-30 => preview/2020-09-30-preview}/examples/ListGalleryApplicationVersionsInAGalleryApplication.json (97%) rename specification/compute/resource-manager/Microsoft.Compute/{stable/2020-09-30 => preview/2020-09-30-preview}/examples/ListGalleryApplicationsInAGallery.json (96%) rename specification/compute/resource-manager/Microsoft.Compute/{stable/2020-09-30 => preview/2020-09-30-preview}/examples/ListGalleryImageVersionsInAGalleryImage.json (98%) rename specification/compute/resource-manager/Microsoft.Compute/{stable/2020-09-30 => preview/2020-09-30-preview}/examples/ListGalleryImagesInAGallery.json (96%) rename specification/compute/resource-manager/Microsoft.Compute/{stable/2020-09-30 => preview/2020-09-30-preview}/examples/ListSharedGalleries.json (93%) rename specification/compute/resource-manager/Microsoft.Compute/{stable/2020-09-30 => preview/2020-09-30-preview}/examples/ListSharedGalleryImageVersions.json (96%) rename specification/compute/resource-manager/Microsoft.Compute/{stable/2020-09-30 => preview/2020-09-30-preview}/examples/ListSharedGalleryImageVersionsWithResourceGroup.json (96%) rename specification/compute/resource-manager/Microsoft.Compute/{stable/2020-09-30 => preview/2020-09-30-preview}/examples/ListSharedGalleryImages.json (96%) rename specification/compute/resource-manager/Microsoft.Compute/{stable/2020-09-30 => preview/2020-09-30-preview}/examples/ListSharedGalleryImagesWithResourceGroup.json (96%) rename specification/compute/resource-manager/Microsoft.Compute/{stable/2020-09-30 => preview/2020-09-30-preview}/examples/ResetSharingProfileInAGallery.json (88%) rename specification/compute/resource-manager/Microsoft.Compute/{stable/2020-09-30 => preview/2020-09-30-preview}/examples/UpdateASimpleGallery.json (93%) rename specification/compute/resource-manager/Microsoft.Compute/{stable/2020-09-30 => preview/2020-09-30-preview}/examples/UpdateASimpleGalleryApplication.json (96%) rename specification/compute/resource-manager/Microsoft.Compute/{stable/2020-09-30 => preview/2020-09-30-preview}/examples/UpdateASimpleGalleryApplicationVersion.json (98%) rename specification/compute/resource-manager/Microsoft.Compute/{stable/2020-09-30 => preview/2020-09-30-preview}/examples/UpdateASimpleGalleryImage.json (95%) rename specification/compute/resource-manager/Microsoft.Compute/{stable/2020-09-30 => preview/2020-09-30-preview}/examples/UpdateASimpleGalleryImageVersion.json (98%) rename specification/compute/resource-manager/Microsoft.Compute/{stable/2020-09-30 => preview/2020-09-30-preview}/gallery.json (99%) rename specification/compute/resource-manager/Microsoft.Compute/{stable/2020-09-30 => preview/2020-09-30-preview}/sharedGallery.json (97%) diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/AddToSharingProfileInAGallery.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/AddToSharingProfileInAGallery.json similarity index 96% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/AddToSharingProfileInAGallery.json rename to specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/AddToSharingProfileInAGallery.json index 33790ed1a863..fe26b1ee53df 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/AddToSharingProfileInAGallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/AddToSharingProfileInAGallery.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "{subscription-id}", "resourceGroupName": "myResourceGroup", - "api-version": "2020-09-30", + "api-version": "2020-09-30-preview", "galleryName": "myGalleryName", "sharingUpdate": { "operationType": "Add", diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/CreateOrUpdateASimpleGallery.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/CreateOrUpdateASimpleGallery.json similarity index 97% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/CreateOrUpdateASimpleGallery.json rename to specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/CreateOrUpdateASimpleGallery.json index be3c726713ed..e8cb0ca530c2 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/CreateOrUpdateASimpleGallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/CreateOrUpdateASimpleGallery.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "{subscription-id}", "resourceGroupName": "myResourceGroup", - "api-version": "2020-09-30", + "api-version": "2020-09-30-preview", "galleryName": "myGalleryName", "gallery": { "location": "West US", diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/CreateOrUpdateASimpleGalleryApplication.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/CreateOrUpdateASimpleGalleryApplication.json similarity index 98% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/CreateOrUpdateASimpleGalleryApplication.json rename to specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/CreateOrUpdateASimpleGalleryApplication.json index d4f969d2d11e..7a90f037c406 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/CreateOrUpdateASimpleGalleryApplication.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/CreateOrUpdateASimpleGalleryApplication.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "{subscription-id}", "resourceGroupName": "myResourceGroup", - "api-version": "2020-09-30", + "api-version": "2020-09-30-preview", "galleryName": "myGalleryName", "galleryApplicationName": "myGalleryApplicationName", "galleryApplication": { diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/CreateOrUpdateASimpleGalleryApplicationVersion.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/CreateOrUpdateASimpleGalleryApplicationVersion.json similarity index 99% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/CreateOrUpdateASimpleGalleryApplicationVersion.json rename to specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/CreateOrUpdateASimpleGalleryApplicationVersion.json index 6942466a93b3..f8e1f36b3e04 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/CreateOrUpdateASimpleGalleryApplicationVersion.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/CreateOrUpdateASimpleGalleryApplicationVersion.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "{subscription-id}", "resourceGroupName": "myResourceGroup", - "api-version": "2020-09-30", + "api-version": "2020-09-30-preview", "galleryName": "myGalleryName", "galleryApplicationName": "myGalleryApplicationName", "galleryApplicationVersionName": "1.0.0", diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/CreateOrUpdateASimpleGalleryImage.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/CreateOrUpdateASimpleGalleryImage.json similarity index 97% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/CreateOrUpdateASimpleGalleryImage.json rename to specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/CreateOrUpdateASimpleGalleryImage.json index 13f9b61d3641..5315b87c8b4f 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/CreateOrUpdateASimpleGalleryImage.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/CreateOrUpdateASimpleGalleryImage.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "{subscription-id}", "resourceGroupName": "myResourceGroup", - "api-version": "2020-09-30", + "api-version": "2020-09-30-preview", "galleryName": "myGalleryName", "galleryImageName": "myGalleryImageName", "galleryImage": { diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/CreateOrUpdateASimpleGalleryImageVersion.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/CreateOrUpdateASimpleGalleryImageVersion.json similarity index 99% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/CreateOrUpdateASimpleGalleryImageVersion.json rename to specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/CreateOrUpdateASimpleGalleryImageVersion.json index a3353dfdd97e..9073d55289fc 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/CreateOrUpdateASimpleGalleryImageVersion.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/CreateOrUpdateASimpleGalleryImageVersion.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "{subscription-id}", "resourceGroupName": "myResourceGroup", - "api-version": "2020-09-30", + "api-version": "2020-09-30-preview", "galleryName": "myGalleryName", "galleryImageName": "myGalleryImageName", "galleryImageVersionName": "1.0.0", diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/CreateOrUpdateASimpleGalleryImageVersionWithSnapshotsAsSource.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/CreateOrUpdateASimpleGalleryImageVersionWithSnapshotsAsSource.json similarity index 99% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/CreateOrUpdateASimpleGalleryImageVersionWithSnapshotsAsSource.json rename to specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/CreateOrUpdateASimpleGalleryImageVersionWithSnapshotsAsSource.json index d3e4274210ce..d4fd881d7a72 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/CreateOrUpdateASimpleGalleryImageVersionWithSnapshotsAsSource.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/CreateOrUpdateASimpleGalleryImageVersionWithSnapshotsAsSource.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "{subscription-id}", "resourceGroupName": "myResourceGroup", - "api-version": "2020-09-30", + "api-version": "2020-09-30-preview", "galleryName": "myGalleryName", "galleryImageName": "myGalleryImageName", "galleryImageVersionName": "1.0.0", diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/CreateOrUpdateASimpleGalleryWithSharingProfile.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/CreateOrUpdateASimpleGalleryWithSharingProfile.json similarity index 98% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/CreateOrUpdateASimpleGalleryWithSharingProfile.json rename to specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/CreateOrUpdateASimpleGalleryWithSharingProfile.json index 0f94fdfd3f53..0ff71c5d4f0f 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/CreateOrUpdateASimpleGalleryWithSharingProfile.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/CreateOrUpdateASimpleGalleryWithSharingProfile.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "{subscription-id}", "resourceGroupName": "myResourceGroup", - "api-version": "2020-09-30", + "api-version": "2020-09-30-preview", "galleryName": "myGalleryName", "gallery": { "location": "West US", diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/DeleteAGallery.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/DeleteAGallery.json similarity index 83% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/DeleteAGallery.json rename to specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/DeleteAGallery.json index 2abe4517a561..78f0332b76f2 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/DeleteAGallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/DeleteAGallery.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "{subscription-id}", "resourceGroupName": "myResourceGroup", - "api-version": "2020-09-30", + "api-version": "2020-09-30-preview", "galleryName": "myGalleryName" }, "responses": { diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/DeleteAGalleryApplication.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/DeleteAGalleryApplication.json similarity index 86% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/DeleteAGalleryApplication.json rename to specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/DeleteAGalleryApplication.json index f1014e7b7f78..761fb7263b44 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/DeleteAGalleryApplication.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/DeleteAGalleryApplication.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "{subscription-id}", "resourceGroupName": "myResourceGroup", - "api-version": "2020-09-30", + "api-version": "2020-09-30-preview", "galleryName": "myGalleryName", "galleryApplicationName": "myGalleryApplicationName" }, diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/DeleteAGalleryApplicationVersion.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/DeleteAGalleryApplicationVersion.json similarity index 88% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/DeleteAGalleryApplicationVersion.json rename to specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/DeleteAGalleryApplicationVersion.json index e4a43f69b126..274b60e3f671 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/DeleteAGalleryApplicationVersion.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/DeleteAGalleryApplicationVersion.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "{subscription-id}", "resourceGroupName": "myResourceGroup", - "api-version": "2020-09-30", + "api-version": "2020-09-30-preview", "galleryName": "myGalleryName", "galleryApplicationName": "myGalleryApplicationName", "galleryApplicationVersionName": "1.0.0" diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/DeleteAGalleryImage.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/DeleteAGalleryImage.json similarity index 86% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/DeleteAGalleryImage.json rename to specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/DeleteAGalleryImage.json index 6d760641d7b4..55ed9c491b85 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/DeleteAGalleryImage.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/DeleteAGalleryImage.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "{subscription-id}", "resourceGroupName": "myResourceGroup", - "api-version": "2020-09-30", + "api-version": "2020-09-30-preview", "galleryName": "myGalleryName", "galleryImageName": "myGalleryImageName" }, diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/DeleteAGalleryImageVersion.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/DeleteAGalleryImageVersion.json similarity index 87% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/DeleteAGalleryImageVersion.json rename to specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/DeleteAGalleryImageVersion.json index 76001cffb9b2..f3dc0fc91735 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/DeleteAGalleryImageVersion.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/DeleteAGalleryImageVersion.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "{subscription-id}", "resourceGroupName": "myResourceGroup", - "api-version": "2020-09-30", + "api-version": "2020-09-30-preview", "galleryName": "myGalleryName", "galleryImageName": "myGalleryImageName", "galleryImageVersionName": "1.0.0" diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetAGallery.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/GetAGallery.json similarity index 92% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetAGallery.json rename to specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/GetAGallery.json index 7ef46189bfcc..1ef7d9475a6e 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetAGallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/GetAGallery.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "{subscription-id}", "resourceGroupName": "myResourceGroup", - "api-version": "2020-09-30", + "api-version": "2020-09-30-preview", "galleryName": "myGalleryName" }, "responses": { diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetAGalleryApplication.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/GetAGalleryApplication.json similarity index 94% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetAGalleryApplication.json rename to specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/GetAGalleryApplication.json index 37c4d1d42a00..c0e81f8ddc55 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetAGalleryApplication.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/GetAGalleryApplication.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "{subscription-id}", "resourceGroupName": "myResourceGroup", - "api-version": "2020-09-30", + "api-version": "2020-09-30-preview", "galleryName": "myGalleryName", "galleryApplicationName": "myGalleryApplicationName" }, diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetAGalleryApplicationVersion.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/GetAGalleryApplicationVersion.json similarity index 97% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetAGalleryApplicationVersion.json rename to specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/GetAGalleryApplicationVersion.json index ca16dd2d6f84..36bbab447941 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetAGalleryApplicationVersion.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/GetAGalleryApplicationVersion.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "{subscription-id}", "resourceGroupName": "myResourceGroup", - "api-version": "2020-09-30", + "api-version": "2020-09-30-preview", "galleryName": "myGalleryName", "galleryApplicationName": "myGalleryApplicationName", "galleryApplicationVersionName": "1.0.0" diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetAGalleryApplicationVersionWithReplicationStatus.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/GetAGalleryApplicationVersionWithReplicationStatus.json similarity index 97% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetAGalleryApplicationVersionWithReplicationStatus.json rename to specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/GetAGalleryApplicationVersionWithReplicationStatus.json index e3d246d4bf3e..d60e4a249486 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetAGalleryApplicationVersionWithReplicationStatus.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/GetAGalleryApplicationVersionWithReplicationStatus.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "{subscription-id}", "resourceGroupName": "myResourceGroup", - "api-version": "2020-09-30", + "api-version": "2020-09-30-preview", "galleryName": "myGalleryName", "galleryApplicationName": "myGalleryApplicationName", "galleryApplicationVersionName": "1.0.0", diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetAGalleryImage.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/GetAGalleryImage.json similarity index 94% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetAGalleryImage.json rename to specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/GetAGalleryImage.json index 8e4305e0148c..626afa307fa7 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetAGalleryImage.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/GetAGalleryImage.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "{subscription-id}", "resourceGroupName": "myResourceGroup", - "api-version": "2020-09-30", + "api-version": "2020-09-30-preview", "galleryName": "myGalleryName", "galleryImageName": "myGalleryImageName" }, diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetAGalleryImageVersion.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/GetAGalleryImageVersion.json similarity index 98% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetAGalleryImageVersion.json rename to specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/GetAGalleryImageVersion.json index c65d0cc43058..79d2cf9d1bca 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetAGalleryImageVersion.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/GetAGalleryImageVersion.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "{subscription-id}", "resourceGroupName": "myResourceGroup", - "api-version": "2020-09-30", + "api-version": "2020-09-30-preview", "galleryName": "myGalleryName", "galleryImageName": "myGalleryImageName", "galleryImageVersionName": "1.0.0" diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetAGalleryImageVersionWithReplicationStatus.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/GetAGalleryImageVersionWithReplicationStatus.json similarity index 98% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetAGalleryImageVersionWithReplicationStatus.json rename to specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/GetAGalleryImageVersionWithReplicationStatus.json index 7462407b0222..7df487734a4f 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetAGalleryImageVersionWithReplicationStatus.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/GetAGalleryImageVersionWithReplicationStatus.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "{subscription-id}", "resourceGroupName": "myResourceGroup", - "api-version": "2020-09-30", + "api-version": "2020-09-30-preview", "galleryName": "myGalleryName", "galleryImageName": "myGalleryImageName", "galleryImageVersionName": "1.0.0", diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetAGalleryImageVersionWithSnapshotsAsSource.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/GetAGalleryImageVersionWithSnapshotsAsSource.json similarity index 98% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetAGalleryImageVersionWithSnapshotsAsSource.json rename to specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/GetAGalleryImageVersionWithSnapshotsAsSource.json index a0184d882337..9a36c7d9d5d3 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetAGalleryImageVersionWithSnapshotsAsSource.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/GetAGalleryImageVersionWithSnapshotsAsSource.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "{subscription-id}", "resourceGroupName": "myResourceGroup", - "api-version": "2020-09-30", + "api-version": "2020-09-30-preview", "galleryName": "myGalleryName", "galleryImageName": "myGalleryImageName", "galleryImageVersionName": "1.0.0" diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetAGalleryWithSelectPermissions.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/GetAGalleryWithSelectPermissions.json similarity index 95% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetAGalleryWithSelectPermissions.json rename to specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/GetAGalleryWithSelectPermissions.json index b58ca89c0bc1..07e61070624c 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetAGalleryWithSelectPermissions.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/GetAGalleryWithSelectPermissions.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "{subscription-id}", "resourceGroupName": "myResourceGroup", - "api-version": "2020-09-30", + "api-version": "2020-09-30-preview", "galleryName": "myGalleryName", "$select": "Permissions" }, diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetASharedGallery.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/GetASharedGallery.json similarity index 90% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetASharedGallery.json rename to specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/GetASharedGallery.json index 95137d7a1265..fb47ae24d3dd 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetASharedGallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/GetASharedGallery.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "{subscription-id}", "location": "myLocation", - "api-version": "2020-09-30", + "api-version": "2020-09-30-preview", "galleryUniqueName": "galleryUniqueName" }, "responses": { diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetASharedGalleryImage.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/GetASharedGalleryImage.json similarity index 94% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetASharedGalleryImage.json rename to specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/GetASharedGalleryImage.json index a707ba2a2648..baec56244b27 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetASharedGalleryImage.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/GetASharedGalleryImage.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "{subscription-id}", "location": "myLocation", - "api-version": "2020-09-30", + "api-version": "2020-09-30-preview", "galleryUniqueName": "galleryUniqueName", "galleryImageName": "myGalleryImageName" }, diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetASharedGalleryImageVersion.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/GetASharedGalleryImageVersion.json similarity index 94% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetASharedGalleryImageVersion.json rename to specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/GetASharedGalleryImageVersion.json index 3215febd95dc..ab4bfdfa5af8 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetASharedGalleryImageVersion.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/GetASharedGalleryImageVersion.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "{subscription-id}", "location": "myLocation", - "api-version": "2020-09-30", + "api-version": "2020-09-30-preview", "galleryUniqueName": "galleryUniqueName", "galleryImageName": "myGalleryImageName", "galleryImageVersionName": "myGalleryImageVersionName" diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetASharedGalleryImageVersionWithResourceGroup.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/GetASharedGalleryImageVersionWithResourceGroup.json similarity index 94% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetASharedGalleryImageVersionWithResourceGroup.json rename to specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/GetASharedGalleryImageVersionWithResourceGroup.json index 4a0903b759b6..00d836b30dee 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetASharedGalleryImageVersionWithResourceGroup.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/GetASharedGalleryImageVersionWithResourceGroup.json @@ -3,7 +3,7 @@ "subscriptionId": "{subscription-id}", "resourceGroupName": "myResourceGroup", "location": "myLocation", - "api-version": "2020-09-30", + "api-version": "2020-09-30-preview", "galleryUniqueName": "galleryUniqueName", "galleryImageName": "myGalleryImageName", "galleryImageVersionName": "myGalleryImageVersionName" diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetASharedGalleryImageWithResourceGroup.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/GetASharedGalleryImageWithResourceGroup.json similarity index 95% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetASharedGalleryImageWithResourceGroup.json rename to specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/GetASharedGalleryImageWithResourceGroup.json index 4a0140433a9e..bb9bd55ab23c 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/GetASharedGalleryImageWithResourceGroup.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/GetASharedGalleryImageWithResourceGroup.json @@ -3,7 +3,7 @@ "subscriptionId": "{subscription-id}", "resourceGroupName": "myResourceGroup", "location": "myLocation", - "api-version": "2020-09-30", + "api-version": "2020-09-30-preview", "galleryUniqueName": "galleryUniqueName", "galleryImageName": "myGalleryImageName" }, diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/ListGalleriesInAResourceGroup.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/ListGalleriesInAResourceGroup.json similarity index 95% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/ListGalleriesInAResourceGroup.json rename to specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/ListGalleriesInAResourceGroup.json index 756c512dd1fe..2ecbcde52999 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/ListGalleriesInAResourceGroup.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/ListGalleriesInAResourceGroup.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "{subscription-id}", "resourceGroupName": "myResourceGroup", - "api-version": "2020-09-30" + "api-version": "2020-09-30-preview" }, "responses": { "200": { diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/ListGalleriesInASubscription.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/ListGalleriesInASubscription.json similarity index 95% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/ListGalleriesInASubscription.json rename to specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/ListGalleriesInASubscription.json index 280325678dd3..416a50d91b0e 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/ListGalleriesInASubscription.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/ListGalleriesInASubscription.json @@ -1,7 +1,7 @@ { "parameters": { "subscriptionId": "{subscription-id}", - "api-version": "2020-09-30" + "api-version": "2020-09-30-preview" }, "responses": { "200": { diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/ListGalleryApplicationVersionsInAGalleryApplication.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/ListGalleryApplicationVersionsInAGalleryApplication.json similarity index 97% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/ListGalleryApplicationVersionsInAGalleryApplication.json rename to specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/ListGalleryApplicationVersionsInAGalleryApplication.json index 0899c17bfafe..7003e0c46883 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/ListGalleryApplicationVersionsInAGalleryApplication.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/ListGalleryApplicationVersionsInAGalleryApplication.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "{subscription-id}", "resourceGroupName": "myResourceGroup", - "api-version": "2020-09-30", + "api-version": "2020-09-30-preview", "galleryName": "myGalleryName", "galleryApplicationName": "myGalleryApplicationName" }, diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/ListGalleryApplicationsInAGallery.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/ListGalleryApplicationsInAGallery.json similarity index 96% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/ListGalleryApplicationsInAGallery.json rename to specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/ListGalleryApplicationsInAGallery.json index d21b58c493ff..81d2d284cbf3 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/ListGalleryApplicationsInAGallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/ListGalleryApplicationsInAGallery.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "{subscription-id}", "resourceGroupName": "myResourceGroup", - "api-version": "2020-09-30", + "api-version": "2020-09-30-preview", "galleryName": "myGalleryName" }, "responses": { diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/ListGalleryImageVersionsInAGalleryImage.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/ListGalleryImageVersionsInAGalleryImage.json similarity index 98% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/ListGalleryImageVersionsInAGalleryImage.json rename to specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/ListGalleryImageVersionsInAGalleryImage.json index 499ad4e6366f..e067cc9ec7fc 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/ListGalleryImageVersionsInAGalleryImage.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/ListGalleryImageVersionsInAGalleryImage.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "{subscription-id}", "resourceGroupName": "myResourceGroup", - "api-version": "2020-09-30", + "api-version": "2020-09-30-preview", "galleryName": "myGalleryName", "galleryImageName": "myGalleryImageName" }, diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/ListGalleryImagesInAGallery.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/ListGalleryImagesInAGallery.json similarity index 96% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/ListGalleryImagesInAGallery.json rename to specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/ListGalleryImagesInAGallery.json index 570fc0e39b6f..e44b0d285a5a 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/ListGalleryImagesInAGallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/ListGalleryImagesInAGallery.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "{subscription-id}", "resourceGroupName": "myResourceGroup", - "api-version": "2020-09-30", + "api-version": "2020-09-30-preview", "galleryName": "myGalleryName" }, "responses": { diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/ListSharedGalleries.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/ListSharedGalleries.json similarity index 93% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/ListSharedGalleries.json rename to specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/ListSharedGalleries.json index a377ab59bf26..cae45346bad2 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/ListSharedGalleries.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/ListSharedGalleries.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "{subscription-id}", "location": "myLocation", - "api-version": "2020-09-30" + "api-version": "2020-09-30-preview" }, "responses": { "200": { diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/ListSharedGalleryImageVersions.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/ListSharedGalleryImageVersions.json similarity index 96% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/ListSharedGalleryImageVersions.json rename to specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/ListSharedGalleryImageVersions.json index 4dce5b631641..69890ab27cf3 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/ListSharedGalleryImageVersions.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/ListSharedGalleryImageVersions.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "{subscription-id}", "location": "myLocation", - "api-version": "2020-09-30", + "api-version": "2020-09-30-preview", "galleryUniqueName": "galleryUniqueName", "galleryImageName": "myGalleryImageName" }, diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/ListSharedGalleryImageVersionsWithResourceGroup.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/ListSharedGalleryImageVersionsWithResourceGroup.json similarity index 96% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/ListSharedGalleryImageVersionsWithResourceGroup.json rename to specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/ListSharedGalleryImageVersionsWithResourceGroup.json index 08c729bd6444..89462dd61a77 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/ListSharedGalleryImageVersionsWithResourceGroup.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/ListSharedGalleryImageVersionsWithResourceGroup.json @@ -3,7 +3,7 @@ "subscriptionId": "{subscription-id}", "resourceGroupName": "myResourceGroup", "location": "myLocation", - "api-version": "2020-09-30", + "api-version": "2020-09-30-preview", "galleryUniqueName": "galleryUniqueName", "galleryImageName": "myGalleryImageName" }, diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/ListSharedGalleryImages.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/ListSharedGalleryImages.json similarity index 96% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/ListSharedGalleryImages.json rename to specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/ListSharedGalleryImages.json index 5ad0d165aa94..7325c3b2f915 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/ListSharedGalleryImages.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/ListSharedGalleryImages.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "{subscription-id}", "location": "myLocation", - "api-version": "2020-09-30", + "api-version": "2020-09-30-preview", "galleryUniqueName": "galleryUniqueName" }, "responses": { diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/ListSharedGalleryImagesWithResourceGroup.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/ListSharedGalleryImagesWithResourceGroup.json similarity index 96% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/ListSharedGalleryImagesWithResourceGroup.json rename to specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/ListSharedGalleryImagesWithResourceGroup.json index 9cb9dc3a182c..05340805439f 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/ListSharedGalleryImagesWithResourceGroup.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/ListSharedGalleryImagesWithResourceGroup.json @@ -3,7 +3,7 @@ "subscriptionId": "{subscription-id}", "resourceGroupName": "myResourceGroup", "location": "myLocation", - "api-version": "2020-09-30", + "api-version": "2020-09-30-preview", "galleryUniqueName": "galleryUniqueName" }, "responses": { diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/ResetSharingProfileInAGallery.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/ResetSharingProfileInAGallery.json similarity index 88% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/ResetSharingProfileInAGallery.json rename to specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/ResetSharingProfileInAGallery.json index d8be7f85b7a3..f8338b244d38 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/ResetSharingProfileInAGallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/ResetSharingProfileInAGallery.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "{subscription-id}", "resourceGroupName": "myResourceGroup", - "api-version": "2020-09-30", + "api-version": "2020-09-30-preview", "galleryName": "myGalleryName", "sharingUpdate": { "operationType": "Reset" diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/UpdateASimpleGallery.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/UpdateASimpleGallery.json similarity index 93% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/UpdateASimpleGallery.json rename to specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/UpdateASimpleGallery.json index d3618117f15c..dfc23f82b83e 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/UpdateASimpleGallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/UpdateASimpleGallery.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "{subscription-id}", "resourceGroupName": "myResourceGroup", - "api-version": "2020-09-30", + "api-version": "2020-09-30-preview", "galleryName": "myGalleryName", "gallery": { "properties": { diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/UpdateASimpleGalleryApplication.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/UpdateASimpleGalleryApplication.json similarity index 96% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/UpdateASimpleGalleryApplication.json rename to specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/UpdateASimpleGalleryApplication.json index 0bb889c29a26..8a29e4b2fe98 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/UpdateASimpleGalleryApplication.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/UpdateASimpleGalleryApplication.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "{subscription-id}", "resourceGroupName": "myResourceGroup", - "api-version": "2020-09-30", + "api-version": "2020-09-30-preview", "galleryName": "myGalleryName", "galleryApplicationName": "myGalleryApplicationName", "galleryApplication": { diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/UpdateASimpleGalleryApplicationVersion.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/UpdateASimpleGalleryApplicationVersion.json similarity index 98% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/UpdateASimpleGalleryApplicationVersion.json rename to specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/UpdateASimpleGalleryApplicationVersion.json index 8d473b578024..609e4543b46e 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/UpdateASimpleGalleryApplicationVersion.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/UpdateASimpleGalleryApplicationVersion.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "{subscription-id}", "resourceGroupName": "myResourceGroup", - "api-version": "2020-09-30", + "api-version": "2020-09-30-preview", "galleryName": "myGalleryName", "galleryApplicationName": "myGalleryApplicationName", "galleryApplicationVersionName": "1.0.0", diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/UpdateASimpleGalleryImage.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/UpdateASimpleGalleryImage.json similarity index 95% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/UpdateASimpleGalleryImage.json rename to specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/UpdateASimpleGalleryImage.json index ebfd473f7e95..47d3b1eed86c 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/UpdateASimpleGalleryImage.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/UpdateASimpleGalleryImage.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "{subscription-id}", "resourceGroupName": "myResourceGroup", - "api-version": "2020-09-30", + "api-version": "2020-09-30-preview", "galleryName": "myGalleryName", "galleryImageName": "myGalleryImageName", "galleryImage": { diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/UpdateASimpleGalleryImageVersion.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/UpdateASimpleGalleryImageVersion.json similarity index 98% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/UpdateASimpleGalleryImageVersion.json rename to specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/UpdateASimpleGalleryImageVersion.json index 5cf4547abad1..7e24c964ba7f 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/examples/UpdateASimpleGalleryImageVersion.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/UpdateASimpleGalleryImageVersion.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "{subscription-id}", "resourceGroupName": "myResourceGroup", - "api-version": "2020-09-30", + "api-version": "2020-09-30-preview", "galleryName": "myGalleryName", "galleryImageName": "myGalleryImageName", "galleryImageVersionName": "1.0.0", diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/gallery.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/gallery.json similarity index 99% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/gallery.json rename to specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/gallery.json index 714bd51d1f44..d13692f5bb92 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/gallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/gallery.json @@ -3,7 +3,7 @@ "info": { "title": "SharedImageGalleryServiceClient", "description": "Shared Image Gallery Service Client.", - "version": "2020-09-30" + "version": "2020-09-30-preview" }, "host": "management.azure.com", "schemes": [ diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/sharedGallery.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/sharedGallery.json similarity index 97% rename from specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/sharedGallery.json rename to specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/sharedGallery.json index 10887a59b9f1..5163c4653512 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/sharedGallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/sharedGallery.json @@ -3,7 +3,7 @@ "info": { "title": "SharedGalleryServiceClient", "description": "Shared Gallery Service Client.", - "version": "2020-09-30" + "version": "2020-09-30-preview" }, "host": "management.azure.com", "schemes": [ @@ -633,31 +633,9 @@ }, "SharedGalleryProperties": { "properties": { - "sharingProfile": { - "$ref": "#/definitions/SharedGallerySharingProfile" - } }, "description": "Describes the properties of a Shared Image Gallery." }, - "SharedGallerySharingProfile": { - "properties": { - "sharedSubscriptionIds": { - "type": "array", - "items": { - "type": "string" - }, - "description": "A list of subscription ids the gallery is aimed to be shared to." - }, - "sharedTenantIds": { - "type": "array", - "items": { - "type": "string" - }, - "description": "A list of tenant ids the gallery is aimed to be shared to." - } - }, - "description": "Describes the sharing profile of a shared gallery." - }, "SharedGalleryImageList": { "description": "The List Shared Gallery Images operation response.", "properties": { From 02ee910eaf8555a537baabd2eba28cf8b722eda2 Mon Sep 17 00:00:00 2001 From: Kang Sun Date: Tue, 18 Aug 2020 12:15:23 -0700 Subject: [PATCH 13/47] update readme.md and nit --- .../2020-09-30-preview/sharedGallery.json | 16 ++++++------- .../compute/resource-manager/readme.md | 24 +++++++++---------- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/sharedGallery.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/sharedGallery.json index 5163c4653512..b6baed06d7c8 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/sharedGallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/sharedGallery.json @@ -206,7 +206,7 @@ "in": "path", "required": true, "type": "string", - "description": "The name of the Shared Image Gallery Image Definition from which the Image Versions are to be listed." + "description": "The name of the Shared Gallery Image Definition from which the Image Versions are to be listed." } ], "responses": { @@ -265,7 +265,7 @@ "in": "path", "required": true, "type": "string", - "description": "The name of the Shared Image Gallery Image Definition from which the Image Versions are to be listed." + "description": "The name of the Shared Gallery Image Definition from which the Image Versions are to be listed." } ], "responses": { @@ -367,7 +367,7 @@ "in": "path", "required": true, "type": "string", - "description": "The name of the Shared Image Gallery Image Definition from which the Image Versions are to be listed." + "description": "The name of the Shared Gallery Image Definition from which the Image Versions are to be listed." } ], "responses": { @@ -423,7 +423,7 @@ "in": "path", "required": true, "type": "string", - "description": "The name of the Shared Image Gallery Image Definition from which the Image Versions are to be listed." + "description": "The name of the Shared Gallery Image Definition from which the Image Versions are to be listed." } ], "responses": { @@ -476,7 +476,7 @@ "in": "path", "required": true, "type": "string", - "description": "The name of the Shared Image Gallery Image Definition from which the Image Versions are to be listed." + "description": "The name of the Shared Gallery Image Definition from which the Image Versions are to be listed." }, { "name": "galleryImageVersionName", @@ -539,7 +539,7 @@ "in": "path", "required": true, "type": "string", - "description": "The name of the Shared Image Gallery Image Definition from which the Image Versions are to be listed." + "description": "The name of the Shared Gallery Image Definition from which the Image Versions are to be listed." }, { "name": "galleryImageVersionName", @@ -629,12 +629,12 @@ "$ref": "#/definitions/PirResource" } ], - "description": "Specifies information about the Shared Image Gallery that you want to create or update." + "description": "Specifies information about the Shared Gallery that you want to create or update." }, "SharedGalleryProperties": { "properties": { }, - "description": "Describes the properties of a Shared Image Gallery." + "description": "Describes the properties of a Shared Gallery." }, "SharedGalleryImageList": { "description": "The List Shared Gallery Images operation response.", diff --git a/specification/compute/resource-manager/readme.md b/specification/compute/resource-manager/readme.md index 9545a96442e3..3c9b2c7bcd80 100644 --- a/specification/compute/resource-manager/readme.md +++ b/specification/compute/resource-manager/readme.md @@ -210,29 +210,29 @@ directive: ``` -### Tag: package-2020-09-30 +### Tag: package-2020-09-30-preview -These settings apply only when `--tag=package-2020-09-30` is specified on the command line. +These settings apply only when `--tag=package-2020-09-30-preview` is specified on the command line. -``` yaml $(tag) == 'package-2020-09-30' +``` yaml $(tag) == 'package-2020-09-30-preview' input-file: - Microsoft.Compute/stable/2020-06-01/compute.json - Microsoft.Compute/stable/2020-06-01/runCommands.json - Microsoft.Compute/stable/2019-04-01/skus.json - Microsoft.Compute/stable/2020-05-01/disk.json -- Microsoft.Compute/stable/2020-09-30/gallery.json -- Microsoft.Compute/stable/2020-09-30/sharedGallery.json +- Microsoft.Compute/preview/2020-09-30-preview/gallery.json +- Microsoft.Compute/preview/2020-09-30-preview/sharedGallery.json - Microsoft.ContainerService/stable/2017-01-31/containerService.json ``` -### Tag: package-2020-09-30-only +### Tag: package-2020-09-30-preview-only -These settings apply only when `--tag=package-2020-09-30-only` is specified on the command line. +These settings apply only when `--tag=package-2020-09-30-preview-only` is specified on the command line. -``` yaml $(tag) == 'package-2020-09-30-only' +``` yaml $(tag) == 'package-2020-09-30-preview-only' input-file: -- Microsoft.Compute/stable/2020-09-30/gallery.json -- Microsoft.Compute/stable/2020-09-30/sharedGallery.json +- Microsoft.Compute/preview/2020-09-30-preview/gallery.json +- Microsoft.Compute/preview/2020-09-30-preview/sharedGallery.json ``` ### Tag: package-2020-06-01 @@ -842,8 +842,8 @@ require: $(this-folder)/../../../profiles/readme.md # all the input files across all versions input-file: - - $(this-folder)/Microsoft.Compute/stable/2020-09-30/sharedGallery.json - - $(this-folder)/Microsoft.Compute/stable/2020-09-30/gallery.json + - $(this-folder)/Microsoft.Compute/preview/2020-09-30-preview/sharedGallery.json + - $(this-folder)/Microsoft.Compute/preview/2020-09-30-preview/gallery.json - $(this-folder)/Microsoft.Compute/stable/2020-06-01/compute.json - $(this-folder)/Microsoft.Compute/stable/2020-06-01/runCommands.json - $(this-folder)/Microsoft.Compute/stable/2019-04-01/skus.json From d7dd703d3b0c8011fee5c779d4cdf6998a68c5c1 Mon Sep 17 00:00:00 2001 From: Kang Sun Date: Tue, 18 Aug 2020 14:20:07 -0700 Subject: [PATCH 14/47] remove some required field and make groups readonly --- .../preview/2020-09-30-preview/gallery.json | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/gallery.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/gallery.json index d13692f5bb92..0b72b3c57742 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/gallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/gallery.json @@ -1766,16 +1766,14 @@ } }, "groups": { + "readOnly": true, "type": "array", "items": { "$ref": "#/definitions/SharingProfileGroup" }, "description": "A list of sharing profile groups." } - }, - "required": [ - "permissions" - ] + } }, "SharingProfileGroup": { "description": "Group of the gallery sharing profile", @@ -1799,11 +1797,7 @@ }, "description": "A list of subscription/tenant ids the gallery is aimed to be shared to." } - }, - "required": [ - "type", - "ids" - ] + } }, "GalleryApplication": { "properties": { From d06a615565f8195c095fc0c6328909148d1245bc Mon Sep 17 00:00:00 2001 From: Kang Sun Date: Tue, 18 Aug 2020 15:04:24 -0700 Subject: [PATCH 15/47] add swagger support for Grace's and Tim's work --- .../preview/2020-09-30-preview/gallery.json | 30 +++++++++++++++++++ .../2020-09-30-preview/sharedGallery.json | 26 ++++++++++++++++ 2 files changed, 56 insertions(+) diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/gallery.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/gallery.json index 0b72b3c57742..32f62a98e279 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/gallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/gallery.json @@ -2048,6 +2048,9 @@ "modelAsString": true } }, + "features": { + "$ref": "#/definitions/GalleryImageFeatures" + }, "endOfLifeDate": { "type": "string", "format": "date-time", @@ -2087,6 +2090,29 @@ ], "description": "Describes the properties of a gallery Image Definition." }, + "GalleryImageFeatures": { + "properties": { + "type": "array", + "items": { + "$ref": "#/definitions/GalleryImageFeature" + }, + "description": "A list of gallery image features." + }, + "description": "This is the list of gallery image features." + }, + "GalleryImageFeature": { + "properties": { + "name": { + "type": "string", + "description": "The name of the gallery Image feature." + }, + "value": { + "type": "string", + "description": "The value of the gallery Image feature." + } + }, + "description": "A feature for gallery image." + }, "GalleryImageIdentifier": { "properties": { "publisher": { @@ -2406,6 +2432,10 @@ "id": { "type": "string", "description": "The id of the gallery artifact version source. Can specify a disk uri, snapshot uri, or user image." + }, + "uri": { + "type": "string", + "description": "The uri of the gallery artifact version source. Can be a disk uri, snapshot uri, or user image." } }, "description": "The gallery artifact version source." diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/sharedGallery.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/sharedGallery.json index b6baed06d7c8..4491fc04455d 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/sharedGallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/sharedGallery.json @@ -721,6 +721,9 @@ "modelAsString": false } }, + "features": { + "$ref": "#/definitions/GalleryImageFeatures" + }, "purchasePlan": { "$ref": "#/definitions/ImagePurchasePlan" } @@ -732,6 +735,29 @@ ], "description": "Describes the properties of a gallery Image Definition." }, + "GalleryImageFeatures": { + "properties": { + "type": "array", + "items": { + "$ref": "#/definitions/GalleryImageFeature" + }, + "description": "A list of gallery image features." + }, + "description": "This is the list of gallery image features." + }, + "GalleryImageFeature": { + "properties": { + "name": { + "type": "string", + "description": "The name of the gallery Image feature." + }, + "value": { + "type": "string", + "description": "The value of the gallery Image feature." + } + }, + "description": "A feature for gallery image." + }, "GalleryImageIdentifier": { "properties": { "publisher": { From 33ac9346bd571463596fa227bfc55eb60249e279 Mon Sep 17 00:00:00 2001 From: Kang Sun Date: Tue, 18 Aug 2020 15:15:09 -0700 Subject: [PATCH 16/47] error fix --- .../preview/2020-09-30-preview/gallery.json | 16 +++++----------- .../2020-09-30-preview/sharedGallery.json | 16 +++++----------- 2 files changed, 10 insertions(+), 22 deletions(-) diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/gallery.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/gallery.json index 32f62a98e279..bcaca73c64d4 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/gallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/gallery.json @@ -2049,7 +2049,11 @@ } }, "features": { - "$ref": "#/definitions/GalleryImageFeatures" + "type": "array", + "items": { + "$ref": "#/definitions/GalleryImageFeature" + }, + "description": "A list of gallery image features." }, "endOfLifeDate": { "type": "string", @@ -2090,16 +2094,6 @@ ], "description": "Describes the properties of a gallery Image Definition." }, - "GalleryImageFeatures": { - "properties": { - "type": "array", - "items": { - "$ref": "#/definitions/GalleryImageFeature" - }, - "description": "A list of gallery image features." - }, - "description": "This is the list of gallery image features." - }, "GalleryImageFeature": { "properties": { "name": { diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/sharedGallery.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/sharedGallery.json index 4491fc04455d..bd59bcc72700 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/sharedGallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/sharedGallery.json @@ -722,7 +722,11 @@ } }, "features": { - "$ref": "#/definitions/GalleryImageFeatures" + "type": "array", + "items": { + "$ref": "#/definitions/GalleryImageFeature" + }, + "description": "A list of gallery image features." }, "purchasePlan": { "$ref": "#/definitions/ImagePurchasePlan" @@ -735,16 +739,6 @@ ], "description": "Describes the properties of a gallery Image Definition." }, - "GalleryImageFeatures": { - "properties": { - "type": "array", - "items": { - "$ref": "#/definitions/GalleryImageFeature" - }, - "description": "A list of gallery image features." - }, - "description": "This is the list of gallery image features." - }, "GalleryImageFeature": { "properties": { "name": { From d7caf621bd3343be996e593bfecf8f48bb5065eb Mon Sep 17 00:00:00 2001 From: Kang Sun Date: Tue, 18 Aug 2020 16:17:51 -0700 Subject: [PATCH 17/47] error fix --- ...pdateASimpleGalleryWithSharingProfile.json | 68 ++----------------- .../2020-09-30-preview/sharedGallery.json | 3 +- 2 files changed, 5 insertions(+), 66 deletions(-) diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/CreateOrUpdateASimpleGalleryWithSharingProfile.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/CreateOrUpdateASimpleGalleryWithSharingProfile.json index 0ff71c5d4f0f..287c5cf99df3 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/CreateOrUpdateASimpleGalleryWithSharingProfile.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/CreateOrUpdateASimpleGalleryWithSharingProfile.json @@ -9,22 +9,7 @@ "properties": { "description": "This is the gallery description.", "sharingProfile": { - "permissions": "Groups", - "groups": [ - { - "type": "Subscriptions", - "ids": [ - "34a4ab42-0d72-47d9-bd1a-aed207386dac", - "380fd389-260b-41aa-bad9-0a83108c370b" - ] - }, - { - "type": "AADTenants", - "ids": [ - "c24c76aa-8897-4027-9b03-8f7928b54ff6" - ] - } - ] + "permissions": "Groups" } } } @@ -39,22 +24,7 @@ }, "provisioningState": "Updating", "sharingProfile": { - "permissions": "Groups", - "groups": [ - { - "type": "Subscriptions", - "ids": [ - "34a4ab42-0d72-47d9-bd1a-aed207386dac", - "380fd389-260b-41aa-bad9-0a83108c370b" - ] - }, - { - "type": "AADTenants", - "ids": [ - "c24c76aa-8897-4027-9b03-8f7928b54ff6" - ] - } - ] + "permissions": "Groups" } }, "location": "West US", @@ -70,22 +40,7 @@ }, "provisioningState": "Creating", "sharingProfile": { - "permissions": "Groups", - "groups": [ - { - "type": "Subscriptions", - "ids": [ - "34a4ab42-0d72-47d9-bd1a-aed207386dac", - "380fd389-260b-41aa-bad9-0a83108c370b" - ] - }, - { - "type": "AADTenants", - "ids": [ - "c24c76aa-8897-4027-9b03-8f7928b54ff6" - ] - } - ] + "permissions": "Groups" } }, "location": "West US", @@ -101,22 +56,7 @@ }, "provisioningState": "Updating", "sharingProfile": { - "permissions": "Groups", - "groups": [ - { - "type": "Subscriptions", - "ids": [ - "34a4ab42-0d72-47d9-bd1a-aed207386dac", - "380fd389-260b-41aa-bad9-0a83108c370b" - ] - }, - { - "type": "AADTenants", - "ids": [ - "c24c76aa-8897-4027-9b03-8f7928b54ff6" - ] - } - ] + "permissions": "Groups" } }, "location": "West US", diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/sharedGallery.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/sharedGallery.json index bd59bcc72700..be1ac9a35f39 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/sharedGallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/sharedGallery.json @@ -632,8 +632,7 @@ "description": "Specifies information about the Shared Gallery that you want to create or update." }, "SharedGalleryProperties": { - "properties": { - }, + "properties": {}, "description": "Describes the properties of a Shared Gallery." }, "SharedGalleryImageList": { From b3d26ff850ed4ab611dc4b5ef4034438ca369bab Mon Sep 17 00:00:00 2001 From: Kang Sun Date: Wed, 19 Aug 2020 12:01:51 -0700 Subject: [PATCH 18/47] change api version name to 2020-09-30 withour 'preview' --- .../AddToSharingProfileInAGallery.json | 2 +- .../CreateOrUpdateASimpleGallery.json | 2 +- ...eateOrUpdateASimpleGalleryApplication.json | 2 +- ...pdateASimpleGalleryApplicationVersion.json | 2 +- .../CreateOrUpdateASimpleGalleryImage.json | 2 +- ...ateOrUpdateASimpleGalleryImageVersion.json | 2 +- ...leryImageVersionWithSnapshotsAsSource.json | 2 +- ...pdateASimpleGalleryWithSharingProfile.json | 2 +- .../examples/DeleteAGallery.json | 2 +- .../examples/DeleteAGalleryApplication.json | 2 +- .../DeleteAGalleryApplicationVersion.json | 2 +- .../examples/DeleteAGalleryImage.json | 2 +- .../examples/DeleteAGalleryImageVersion.json | 2 +- .../examples/GetAGallery.json | 2 +- .../examples/GetAGalleryApplication.json | 2 +- .../GetAGalleryApplicationVersion.json | 2 +- ...plicationVersionWithReplicationStatus.json | 2 +- .../examples/GetAGalleryImage.json | 2 +- .../examples/GetAGalleryImageVersion.json | 2 +- ...leryImageVersionWithReplicationStatus.json | 2 +- ...leryImageVersionWithSnapshotsAsSource.json | 2 +- .../GetAGalleryWithSelectPermissions.json | 2 +- .../examples/GetASharedGallery.json | 2 +- .../examples/GetASharedGalleryImage.json | 2 +- .../GetASharedGalleryImageVersion.json | 2 +- ...dGalleryImageVersionWithResourceGroup.json | 2 +- ...tASharedGalleryImageWithResourceGroup.json | 2 +- .../ListGalleriesInAResourceGroup.json | 2 +- .../ListGalleriesInASubscription.json | 2 +- ...licationVersionsInAGalleryApplication.json | 2 +- .../ListGalleryApplicationsInAGallery.json | 2 +- ...stGalleryImageVersionsInAGalleryImage.json | 2 +- .../examples/ListGalleryImagesInAGallery.json | 2 +- .../examples/ListSharedGalleries.json | 2 +- .../ListSharedGalleryImageVersions.json | 2 +- ...GalleryImageVersionsWithResourceGroup.json | 2 +- .../examples/ListSharedGalleryImages.json | 2 +- ...tSharedGalleryImagesWithResourceGroup.json | 2 +- .../ResetSharingProfileInAGallery.json | 2 +- .../examples/UpdateASimpleGallery.json | 2 +- .../UpdateASimpleGalleryApplication.json | 2 +- ...pdateASimpleGalleryApplicationVersion.json | 2 +- .../examples/UpdateASimpleGalleryImage.json | 2 +- .../UpdateASimpleGalleryImageVersion.json | 2 +- .../gallery.json | 2 +- .../sharedGallery.json | 2 +- .../compute/resource-manager/readme.md | 24 +++++++++---------- 47 files changed, 58 insertions(+), 58 deletions(-) rename specification/compute/resource-manager/Microsoft.Compute/preview/{2020-09-30-preview => 2020-09-30}/examples/AddToSharingProfileInAGallery.json (96%) rename specification/compute/resource-manager/Microsoft.Compute/preview/{2020-09-30-preview => 2020-09-30}/examples/CreateOrUpdateASimpleGallery.json (97%) rename specification/compute/resource-manager/Microsoft.Compute/preview/{2020-09-30-preview => 2020-09-30}/examples/CreateOrUpdateASimpleGalleryApplication.json (98%) rename specification/compute/resource-manager/Microsoft.Compute/preview/{2020-09-30-preview => 2020-09-30}/examples/CreateOrUpdateASimpleGalleryApplicationVersion.json (99%) rename specification/compute/resource-manager/Microsoft.Compute/preview/{2020-09-30-preview => 2020-09-30}/examples/CreateOrUpdateASimpleGalleryImage.json (97%) rename specification/compute/resource-manager/Microsoft.Compute/preview/{2020-09-30-preview => 2020-09-30}/examples/CreateOrUpdateASimpleGalleryImageVersion.json (99%) rename specification/compute/resource-manager/Microsoft.Compute/preview/{2020-09-30-preview => 2020-09-30}/examples/CreateOrUpdateASimpleGalleryImageVersionWithSnapshotsAsSource.json (99%) rename specification/compute/resource-manager/Microsoft.Compute/preview/{2020-09-30-preview => 2020-09-30}/examples/CreateOrUpdateASimpleGalleryWithSharingProfile.json (97%) rename specification/compute/resource-manager/Microsoft.Compute/preview/{2020-09-30-preview => 2020-09-30}/examples/DeleteAGallery.json (83%) rename specification/compute/resource-manager/Microsoft.Compute/preview/{2020-09-30-preview => 2020-09-30}/examples/DeleteAGalleryApplication.json (86%) rename specification/compute/resource-manager/Microsoft.Compute/preview/{2020-09-30-preview => 2020-09-30}/examples/DeleteAGalleryApplicationVersion.json (88%) rename specification/compute/resource-manager/Microsoft.Compute/preview/{2020-09-30-preview => 2020-09-30}/examples/DeleteAGalleryImage.json (86%) rename specification/compute/resource-manager/Microsoft.Compute/preview/{2020-09-30-preview => 2020-09-30}/examples/DeleteAGalleryImageVersion.json (87%) rename specification/compute/resource-manager/Microsoft.Compute/preview/{2020-09-30-preview => 2020-09-30}/examples/GetAGallery.json (92%) rename specification/compute/resource-manager/Microsoft.Compute/preview/{2020-09-30-preview => 2020-09-30}/examples/GetAGalleryApplication.json (94%) rename specification/compute/resource-manager/Microsoft.Compute/preview/{2020-09-30-preview => 2020-09-30}/examples/GetAGalleryApplicationVersion.json (97%) rename specification/compute/resource-manager/Microsoft.Compute/preview/{2020-09-30-preview => 2020-09-30}/examples/GetAGalleryApplicationVersionWithReplicationStatus.json (97%) rename specification/compute/resource-manager/Microsoft.Compute/preview/{2020-09-30-preview => 2020-09-30}/examples/GetAGalleryImage.json (94%) rename specification/compute/resource-manager/Microsoft.Compute/preview/{2020-09-30-preview => 2020-09-30}/examples/GetAGalleryImageVersion.json (98%) rename specification/compute/resource-manager/Microsoft.Compute/preview/{2020-09-30-preview => 2020-09-30}/examples/GetAGalleryImageVersionWithReplicationStatus.json (98%) rename specification/compute/resource-manager/Microsoft.Compute/preview/{2020-09-30-preview => 2020-09-30}/examples/GetAGalleryImageVersionWithSnapshotsAsSource.json (98%) rename specification/compute/resource-manager/Microsoft.Compute/preview/{2020-09-30-preview => 2020-09-30}/examples/GetAGalleryWithSelectPermissions.json (95%) rename specification/compute/resource-manager/Microsoft.Compute/preview/{2020-09-30-preview => 2020-09-30}/examples/GetASharedGallery.json (90%) rename specification/compute/resource-manager/Microsoft.Compute/preview/{2020-09-30-preview => 2020-09-30}/examples/GetASharedGalleryImage.json (94%) rename specification/compute/resource-manager/Microsoft.Compute/preview/{2020-09-30-preview => 2020-09-30}/examples/GetASharedGalleryImageVersion.json (94%) rename specification/compute/resource-manager/Microsoft.Compute/preview/{2020-09-30-preview => 2020-09-30}/examples/GetASharedGalleryImageVersionWithResourceGroup.json (94%) rename specification/compute/resource-manager/Microsoft.Compute/preview/{2020-09-30-preview => 2020-09-30}/examples/GetASharedGalleryImageWithResourceGroup.json (95%) rename specification/compute/resource-manager/Microsoft.Compute/preview/{2020-09-30-preview => 2020-09-30}/examples/ListGalleriesInAResourceGroup.json (95%) rename specification/compute/resource-manager/Microsoft.Compute/preview/{2020-09-30-preview => 2020-09-30}/examples/ListGalleriesInASubscription.json (95%) rename specification/compute/resource-manager/Microsoft.Compute/preview/{2020-09-30-preview => 2020-09-30}/examples/ListGalleryApplicationVersionsInAGalleryApplication.json (97%) rename specification/compute/resource-manager/Microsoft.Compute/preview/{2020-09-30-preview => 2020-09-30}/examples/ListGalleryApplicationsInAGallery.json (96%) rename specification/compute/resource-manager/Microsoft.Compute/preview/{2020-09-30-preview => 2020-09-30}/examples/ListGalleryImageVersionsInAGalleryImage.json (98%) rename specification/compute/resource-manager/Microsoft.Compute/preview/{2020-09-30-preview => 2020-09-30}/examples/ListGalleryImagesInAGallery.json (96%) rename specification/compute/resource-manager/Microsoft.Compute/preview/{2020-09-30-preview => 2020-09-30}/examples/ListSharedGalleries.json (93%) rename specification/compute/resource-manager/Microsoft.Compute/preview/{2020-09-30-preview => 2020-09-30}/examples/ListSharedGalleryImageVersions.json (96%) rename specification/compute/resource-manager/Microsoft.Compute/preview/{2020-09-30-preview => 2020-09-30}/examples/ListSharedGalleryImageVersionsWithResourceGroup.json (96%) rename specification/compute/resource-manager/Microsoft.Compute/preview/{2020-09-30-preview => 2020-09-30}/examples/ListSharedGalleryImages.json (96%) rename specification/compute/resource-manager/Microsoft.Compute/preview/{2020-09-30-preview => 2020-09-30}/examples/ListSharedGalleryImagesWithResourceGroup.json (96%) rename specification/compute/resource-manager/Microsoft.Compute/preview/{2020-09-30-preview => 2020-09-30}/examples/ResetSharingProfileInAGallery.json (88%) rename specification/compute/resource-manager/Microsoft.Compute/preview/{2020-09-30-preview => 2020-09-30}/examples/UpdateASimpleGallery.json (93%) rename specification/compute/resource-manager/Microsoft.Compute/preview/{2020-09-30-preview => 2020-09-30}/examples/UpdateASimpleGalleryApplication.json (96%) rename specification/compute/resource-manager/Microsoft.Compute/preview/{2020-09-30-preview => 2020-09-30}/examples/UpdateASimpleGalleryApplicationVersion.json (98%) rename specification/compute/resource-manager/Microsoft.Compute/preview/{2020-09-30-preview => 2020-09-30}/examples/UpdateASimpleGalleryImage.json (95%) rename specification/compute/resource-manager/Microsoft.Compute/preview/{2020-09-30-preview => 2020-09-30}/examples/UpdateASimpleGalleryImageVersion.json (98%) rename specification/compute/resource-manager/Microsoft.Compute/preview/{2020-09-30-preview => 2020-09-30}/gallery.json (99%) rename specification/compute/resource-manager/Microsoft.Compute/preview/{2020-09-30-preview => 2020-09-30}/sharedGallery.json (99%) diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/AddToSharingProfileInAGallery.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/AddToSharingProfileInAGallery.json similarity index 96% rename from specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/AddToSharingProfileInAGallery.json rename to specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/AddToSharingProfileInAGallery.json index fe26b1ee53df..33790ed1a863 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/AddToSharingProfileInAGallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/AddToSharingProfileInAGallery.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "{subscription-id}", "resourceGroupName": "myResourceGroup", - "api-version": "2020-09-30-preview", + "api-version": "2020-09-30", "galleryName": "myGalleryName", "sharingUpdate": { "operationType": "Add", diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/CreateOrUpdateASimpleGallery.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/CreateOrUpdateASimpleGallery.json similarity index 97% rename from specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/CreateOrUpdateASimpleGallery.json rename to specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/CreateOrUpdateASimpleGallery.json index e8cb0ca530c2..be3c726713ed 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/CreateOrUpdateASimpleGallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/CreateOrUpdateASimpleGallery.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "{subscription-id}", "resourceGroupName": "myResourceGroup", - "api-version": "2020-09-30-preview", + "api-version": "2020-09-30", "galleryName": "myGalleryName", "gallery": { "location": "West US", diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/CreateOrUpdateASimpleGalleryApplication.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/CreateOrUpdateASimpleGalleryApplication.json similarity index 98% rename from specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/CreateOrUpdateASimpleGalleryApplication.json rename to specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/CreateOrUpdateASimpleGalleryApplication.json index 7a90f037c406..d4f969d2d11e 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/CreateOrUpdateASimpleGalleryApplication.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/CreateOrUpdateASimpleGalleryApplication.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "{subscription-id}", "resourceGroupName": "myResourceGroup", - "api-version": "2020-09-30-preview", + "api-version": "2020-09-30", "galleryName": "myGalleryName", "galleryApplicationName": "myGalleryApplicationName", "galleryApplication": { diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/CreateOrUpdateASimpleGalleryApplicationVersion.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/CreateOrUpdateASimpleGalleryApplicationVersion.json similarity index 99% rename from specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/CreateOrUpdateASimpleGalleryApplicationVersion.json rename to specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/CreateOrUpdateASimpleGalleryApplicationVersion.json index f8e1f36b3e04..6942466a93b3 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/CreateOrUpdateASimpleGalleryApplicationVersion.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/CreateOrUpdateASimpleGalleryApplicationVersion.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "{subscription-id}", "resourceGroupName": "myResourceGroup", - "api-version": "2020-09-30-preview", + "api-version": "2020-09-30", "galleryName": "myGalleryName", "galleryApplicationName": "myGalleryApplicationName", "galleryApplicationVersionName": "1.0.0", diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/CreateOrUpdateASimpleGalleryImage.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/CreateOrUpdateASimpleGalleryImage.json similarity index 97% rename from specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/CreateOrUpdateASimpleGalleryImage.json rename to specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/CreateOrUpdateASimpleGalleryImage.json index 5315b87c8b4f..13f9b61d3641 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/CreateOrUpdateASimpleGalleryImage.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/CreateOrUpdateASimpleGalleryImage.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "{subscription-id}", "resourceGroupName": "myResourceGroup", - "api-version": "2020-09-30-preview", + "api-version": "2020-09-30", "galleryName": "myGalleryName", "galleryImageName": "myGalleryImageName", "galleryImage": { diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/CreateOrUpdateASimpleGalleryImageVersion.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/CreateOrUpdateASimpleGalleryImageVersion.json similarity index 99% rename from specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/CreateOrUpdateASimpleGalleryImageVersion.json rename to specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/CreateOrUpdateASimpleGalleryImageVersion.json index 9073d55289fc..a3353dfdd97e 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/CreateOrUpdateASimpleGalleryImageVersion.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/CreateOrUpdateASimpleGalleryImageVersion.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "{subscription-id}", "resourceGroupName": "myResourceGroup", - "api-version": "2020-09-30-preview", + "api-version": "2020-09-30", "galleryName": "myGalleryName", "galleryImageName": "myGalleryImageName", "galleryImageVersionName": "1.0.0", diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/CreateOrUpdateASimpleGalleryImageVersionWithSnapshotsAsSource.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/CreateOrUpdateASimpleGalleryImageVersionWithSnapshotsAsSource.json similarity index 99% rename from specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/CreateOrUpdateASimpleGalleryImageVersionWithSnapshotsAsSource.json rename to specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/CreateOrUpdateASimpleGalleryImageVersionWithSnapshotsAsSource.json index d4fd881d7a72..d3e4274210ce 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/CreateOrUpdateASimpleGalleryImageVersionWithSnapshotsAsSource.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/CreateOrUpdateASimpleGalleryImageVersionWithSnapshotsAsSource.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "{subscription-id}", "resourceGroupName": "myResourceGroup", - "api-version": "2020-09-30-preview", + "api-version": "2020-09-30", "galleryName": "myGalleryName", "galleryImageName": "myGalleryImageName", "galleryImageVersionName": "1.0.0", diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/CreateOrUpdateASimpleGalleryWithSharingProfile.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/CreateOrUpdateASimpleGalleryWithSharingProfile.json similarity index 97% rename from specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/CreateOrUpdateASimpleGalleryWithSharingProfile.json rename to specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/CreateOrUpdateASimpleGalleryWithSharingProfile.json index 287c5cf99df3..b9852f7f8548 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/CreateOrUpdateASimpleGalleryWithSharingProfile.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/CreateOrUpdateASimpleGalleryWithSharingProfile.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "{subscription-id}", "resourceGroupName": "myResourceGroup", - "api-version": "2020-09-30-preview", + "api-version": "2020-09-30", "galleryName": "myGalleryName", "gallery": { "location": "West US", diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/DeleteAGallery.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/DeleteAGallery.json similarity index 83% rename from specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/DeleteAGallery.json rename to specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/DeleteAGallery.json index 78f0332b76f2..2abe4517a561 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/DeleteAGallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/DeleteAGallery.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "{subscription-id}", "resourceGroupName": "myResourceGroup", - "api-version": "2020-09-30-preview", + "api-version": "2020-09-30", "galleryName": "myGalleryName" }, "responses": { diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/DeleteAGalleryApplication.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/DeleteAGalleryApplication.json similarity index 86% rename from specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/DeleteAGalleryApplication.json rename to specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/DeleteAGalleryApplication.json index 761fb7263b44..f1014e7b7f78 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/DeleteAGalleryApplication.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/DeleteAGalleryApplication.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "{subscription-id}", "resourceGroupName": "myResourceGroup", - "api-version": "2020-09-30-preview", + "api-version": "2020-09-30", "galleryName": "myGalleryName", "galleryApplicationName": "myGalleryApplicationName" }, diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/DeleteAGalleryApplicationVersion.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/DeleteAGalleryApplicationVersion.json similarity index 88% rename from specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/DeleteAGalleryApplicationVersion.json rename to specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/DeleteAGalleryApplicationVersion.json index 274b60e3f671..e4a43f69b126 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/DeleteAGalleryApplicationVersion.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/DeleteAGalleryApplicationVersion.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "{subscription-id}", "resourceGroupName": "myResourceGroup", - "api-version": "2020-09-30-preview", + "api-version": "2020-09-30", "galleryName": "myGalleryName", "galleryApplicationName": "myGalleryApplicationName", "galleryApplicationVersionName": "1.0.0" diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/DeleteAGalleryImage.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/DeleteAGalleryImage.json similarity index 86% rename from specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/DeleteAGalleryImage.json rename to specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/DeleteAGalleryImage.json index 55ed9c491b85..6d760641d7b4 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/DeleteAGalleryImage.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/DeleteAGalleryImage.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "{subscription-id}", "resourceGroupName": "myResourceGroup", - "api-version": "2020-09-30-preview", + "api-version": "2020-09-30", "galleryName": "myGalleryName", "galleryImageName": "myGalleryImageName" }, diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/DeleteAGalleryImageVersion.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/DeleteAGalleryImageVersion.json similarity index 87% rename from specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/DeleteAGalleryImageVersion.json rename to specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/DeleteAGalleryImageVersion.json index f3dc0fc91735..76001cffb9b2 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/DeleteAGalleryImageVersion.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/DeleteAGalleryImageVersion.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "{subscription-id}", "resourceGroupName": "myResourceGroup", - "api-version": "2020-09-30-preview", + "api-version": "2020-09-30", "galleryName": "myGalleryName", "galleryImageName": "myGalleryImageName", "galleryImageVersionName": "1.0.0" diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/GetAGallery.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/GetAGallery.json similarity index 92% rename from specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/GetAGallery.json rename to specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/GetAGallery.json index 1ef7d9475a6e..7ef46189bfcc 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/GetAGallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/GetAGallery.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "{subscription-id}", "resourceGroupName": "myResourceGroup", - "api-version": "2020-09-30-preview", + "api-version": "2020-09-30", "galleryName": "myGalleryName" }, "responses": { diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/GetAGalleryApplication.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/GetAGalleryApplication.json similarity index 94% rename from specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/GetAGalleryApplication.json rename to specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/GetAGalleryApplication.json index c0e81f8ddc55..37c4d1d42a00 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/GetAGalleryApplication.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/GetAGalleryApplication.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "{subscription-id}", "resourceGroupName": "myResourceGroup", - "api-version": "2020-09-30-preview", + "api-version": "2020-09-30", "galleryName": "myGalleryName", "galleryApplicationName": "myGalleryApplicationName" }, diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/GetAGalleryApplicationVersion.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/GetAGalleryApplicationVersion.json similarity index 97% rename from specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/GetAGalleryApplicationVersion.json rename to specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/GetAGalleryApplicationVersion.json index 36bbab447941..ca16dd2d6f84 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/GetAGalleryApplicationVersion.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/GetAGalleryApplicationVersion.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "{subscription-id}", "resourceGroupName": "myResourceGroup", - "api-version": "2020-09-30-preview", + "api-version": "2020-09-30", "galleryName": "myGalleryName", "galleryApplicationName": "myGalleryApplicationName", "galleryApplicationVersionName": "1.0.0" diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/GetAGalleryApplicationVersionWithReplicationStatus.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/GetAGalleryApplicationVersionWithReplicationStatus.json similarity index 97% rename from specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/GetAGalleryApplicationVersionWithReplicationStatus.json rename to specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/GetAGalleryApplicationVersionWithReplicationStatus.json index d60e4a249486..e3d246d4bf3e 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/GetAGalleryApplicationVersionWithReplicationStatus.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/GetAGalleryApplicationVersionWithReplicationStatus.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "{subscription-id}", "resourceGroupName": "myResourceGroup", - "api-version": "2020-09-30-preview", + "api-version": "2020-09-30", "galleryName": "myGalleryName", "galleryApplicationName": "myGalleryApplicationName", "galleryApplicationVersionName": "1.0.0", diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/GetAGalleryImage.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/GetAGalleryImage.json similarity index 94% rename from specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/GetAGalleryImage.json rename to specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/GetAGalleryImage.json index 626afa307fa7..8e4305e0148c 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/GetAGalleryImage.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/GetAGalleryImage.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "{subscription-id}", "resourceGroupName": "myResourceGroup", - "api-version": "2020-09-30-preview", + "api-version": "2020-09-30", "galleryName": "myGalleryName", "galleryImageName": "myGalleryImageName" }, diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/GetAGalleryImageVersion.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/GetAGalleryImageVersion.json similarity index 98% rename from specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/GetAGalleryImageVersion.json rename to specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/GetAGalleryImageVersion.json index 79d2cf9d1bca..c65d0cc43058 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/GetAGalleryImageVersion.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/GetAGalleryImageVersion.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "{subscription-id}", "resourceGroupName": "myResourceGroup", - "api-version": "2020-09-30-preview", + "api-version": "2020-09-30", "galleryName": "myGalleryName", "galleryImageName": "myGalleryImageName", "galleryImageVersionName": "1.0.0" diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/GetAGalleryImageVersionWithReplicationStatus.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/GetAGalleryImageVersionWithReplicationStatus.json similarity index 98% rename from specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/GetAGalleryImageVersionWithReplicationStatus.json rename to specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/GetAGalleryImageVersionWithReplicationStatus.json index 7df487734a4f..7462407b0222 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/GetAGalleryImageVersionWithReplicationStatus.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/GetAGalleryImageVersionWithReplicationStatus.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "{subscription-id}", "resourceGroupName": "myResourceGroup", - "api-version": "2020-09-30-preview", + "api-version": "2020-09-30", "galleryName": "myGalleryName", "galleryImageName": "myGalleryImageName", "galleryImageVersionName": "1.0.0", diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/GetAGalleryImageVersionWithSnapshotsAsSource.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/GetAGalleryImageVersionWithSnapshotsAsSource.json similarity index 98% rename from specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/GetAGalleryImageVersionWithSnapshotsAsSource.json rename to specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/GetAGalleryImageVersionWithSnapshotsAsSource.json index 9a36c7d9d5d3..a0184d882337 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/GetAGalleryImageVersionWithSnapshotsAsSource.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/GetAGalleryImageVersionWithSnapshotsAsSource.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "{subscription-id}", "resourceGroupName": "myResourceGroup", - "api-version": "2020-09-30-preview", + "api-version": "2020-09-30", "galleryName": "myGalleryName", "galleryImageName": "myGalleryImageName", "galleryImageVersionName": "1.0.0" diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/GetAGalleryWithSelectPermissions.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/GetAGalleryWithSelectPermissions.json similarity index 95% rename from specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/GetAGalleryWithSelectPermissions.json rename to specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/GetAGalleryWithSelectPermissions.json index 07e61070624c..b58ca89c0bc1 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/GetAGalleryWithSelectPermissions.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/GetAGalleryWithSelectPermissions.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "{subscription-id}", "resourceGroupName": "myResourceGroup", - "api-version": "2020-09-30-preview", + "api-version": "2020-09-30", "galleryName": "myGalleryName", "$select": "Permissions" }, diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/GetASharedGallery.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/GetASharedGallery.json similarity index 90% rename from specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/GetASharedGallery.json rename to specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/GetASharedGallery.json index fb47ae24d3dd..95137d7a1265 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/GetASharedGallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/GetASharedGallery.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "{subscription-id}", "location": "myLocation", - "api-version": "2020-09-30-preview", + "api-version": "2020-09-30", "galleryUniqueName": "galleryUniqueName" }, "responses": { diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/GetASharedGalleryImage.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/GetASharedGalleryImage.json similarity index 94% rename from specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/GetASharedGalleryImage.json rename to specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/GetASharedGalleryImage.json index baec56244b27..a707ba2a2648 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/GetASharedGalleryImage.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/GetASharedGalleryImage.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "{subscription-id}", "location": "myLocation", - "api-version": "2020-09-30-preview", + "api-version": "2020-09-30", "galleryUniqueName": "galleryUniqueName", "galleryImageName": "myGalleryImageName" }, diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/GetASharedGalleryImageVersion.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/GetASharedGalleryImageVersion.json similarity index 94% rename from specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/GetASharedGalleryImageVersion.json rename to specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/GetASharedGalleryImageVersion.json index ab4bfdfa5af8..3215febd95dc 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/GetASharedGalleryImageVersion.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/GetASharedGalleryImageVersion.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "{subscription-id}", "location": "myLocation", - "api-version": "2020-09-30-preview", + "api-version": "2020-09-30", "galleryUniqueName": "galleryUniqueName", "galleryImageName": "myGalleryImageName", "galleryImageVersionName": "myGalleryImageVersionName" diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/GetASharedGalleryImageVersionWithResourceGroup.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/GetASharedGalleryImageVersionWithResourceGroup.json similarity index 94% rename from specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/GetASharedGalleryImageVersionWithResourceGroup.json rename to specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/GetASharedGalleryImageVersionWithResourceGroup.json index 00d836b30dee..4a0903b759b6 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/GetASharedGalleryImageVersionWithResourceGroup.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/GetASharedGalleryImageVersionWithResourceGroup.json @@ -3,7 +3,7 @@ "subscriptionId": "{subscription-id}", "resourceGroupName": "myResourceGroup", "location": "myLocation", - "api-version": "2020-09-30-preview", + "api-version": "2020-09-30", "galleryUniqueName": "galleryUniqueName", "galleryImageName": "myGalleryImageName", "galleryImageVersionName": "myGalleryImageVersionName" diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/GetASharedGalleryImageWithResourceGroup.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/GetASharedGalleryImageWithResourceGroup.json similarity index 95% rename from specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/GetASharedGalleryImageWithResourceGroup.json rename to specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/GetASharedGalleryImageWithResourceGroup.json index bb9bd55ab23c..4a0140433a9e 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/GetASharedGalleryImageWithResourceGroup.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/GetASharedGalleryImageWithResourceGroup.json @@ -3,7 +3,7 @@ "subscriptionId": "{subscription-id}", "resourceGroupName": "myResourceGroup", "location": "myLocation", - "api-version": "2020-09-30-preview", + "api-version": "2020-09-30", "galleryUniqueName": "galleryUniqueName", "galleryImageName": "myGalleryImageName" }, diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/ListGalleriesInAResourceGroup.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/ListGalleriesInAResourceGroup.json similarity index 95% rename from specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/ListGalleriesInAResourceGroup.json rename to specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/ListGalleriesInAResourceGroup.json index 2ecbcde52999..756c512dd1fe 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/ListGalleriesInAResourceGroup.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/ListGalleriesInAResourceGroup.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "{subscription-id}", "resourceGroupName": "myResourceGroup", - "api-version": "2020-09-30-preview" + "api-version": "2020-09-30" }, "responses": { "200": { diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/ListGalleriesInASubscription.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/ListGalleriesInASubscription.json similarity index 95% rename from specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/ListGalleriesInASubscription.json rename to specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/ListGalleriesInASubscription.json index 416a50d91b0e..280325678dd3 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/ListGalleriesInASubscription.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/ListGalleriesInASubscription.json @@ -1,7 +1,7 @@ { "parameters": { "subscriptionId": "{subscription-id}", - "api-version": "2020-09-30-preview" + "api-version": "2020-09-30" }, "responses": { "200": { diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/ListGalleryApplicationVersionsInAGalleryApplication.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/ListGalleryApplicationVersionsInAGalleryApplication.json similarity index 97% rename from specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/ListGalleryApplicationVersionsInAGalleryApplication.json rename to specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/ListGalleryApplicationVersionsInAGalleryApplication.json index 7003e0c46883..0899c17bfafe 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/ListGalleryApplicationVersionsInAGalleryApplication.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/ListGalleryApplicationVersionsInAGalleryApplication.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "{subscription-id}", "resourceGroupName": "myResourceGroup", - "api-version": "2020-09-30-preview", + "api-version": "2020-09-30", "galleryName": "myGalleryName", "galleryApplicationName": "myGalleryApplicationName" }, diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/ListGalleryApplicationsInAGallery.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/ListGalleryApplicationsInAGallery.json similarity index 96% rename from specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/ListGalleryApplicationsInAGallery.json rename to specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/ListGalleryApplicationsInAGallery.json index 81d2d284cbf3..d21b58c493ff 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/ListGalleryApplicationsInAGallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/ListGalleryApplicationsInAGallery.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "{subscription-id}", "resourceGroupName": "myResourceGroup", - "api-version": "2020-09-30-preview", + "api-version": "2020-09-30", "galleryName": "myGalleryName" }, "responses": { diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/ListGalleryImageVersionsInAGalleryImage.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/ListGalleryImageVersionsInAGalleryImage.json similarity index 98% rename from specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/ListGalleryImageVersionsInAGalleryImage.json rename to specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/ListGalleryImageVersionsInAGalleryImage.json index e067cc9ec7fc..499ad4e6366f 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/ListGalleryImageVersionsInAGalleryImage.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/ListGalleryImageVersionsInAGalleryImage.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "{subscription-id}", "resourceGroupName": "myResourceGroup", - "api-version": "2020-09-30-preview", + "api-version": "2020-09-30", "galleryName": "myGalleryName", "galleryImageName": "myGalleryImageName" }, diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/ListGalleryImagesInAGallery.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/ListGalleryImagesInAGallery.json similarity index 96% rename from specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/ListGalleryImagesInAGallery.json rename to specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/ListGalleryImagesInAGallery.json index e44b0d285a5a..570fc0e39b6f 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/ListGalleryImagesInAGallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/ListGalleryImagesInAGallery.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "{subscription-id}", "resourceGroupName": "myResourceGroup", - "api-version": "2020-09-30-preview", + "api-version": "2020-09-30", "galleryName": "myGalleryName" }, "responses": { diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/ListSharedGalleries.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/ListSharedGalleries.json similarity index 93% rename from specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/ListSharedGalleries.json rename to specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/ListSharedGalleries.json index cae45346bad2..a377ab59bf26 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/ListSharedGalleries.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/ListSharedGalleries.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "{subscription-id}", "location": "myLocation", - "api-version": "2020-09-30-preview" + "api-version": "2020-09-30" }, "responses": { "200": { diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/ListSharedGalleryImageVersions.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/ListSharedGalleryImageVersions.json similarity index 96% rename from specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/ListSharedGalleryImageVersions.json rename to specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/ListSharedGalleryImageVersions.json index 69890ab27cf3..4dce5b631641 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/ListSharedGalleryImageVersions.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/ListSharedGalleryImageVersions.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "{subscription-id}", "location": "myLocation", - "api-version": "2020-09-30-preview", + "api-version": "2020-09-30", "galleryUniqueName": "galleryUniqueName", "galleryImageName": "myGalleryImageName" }, diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/ListSharedGalleryImageVersionsWithResourceGroup.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/ListSharedGalleryImageVersionsWithResourceGroup.json similarity index 96% rename from specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/ListSharedGalleryImageVersionsWithResourceGroup.json rename to specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/ListSharedGalleryImageVersionsWithResourceGroup.json index 89462dd61a77..08c729bd6444 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/ListSharedGalleryImageVersionsWithResourceGroup.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/ListSharedGalleryImageVersionsWithResourceGroup.json @@ -3,7 +3,7 @@ "subscriptionId": "{subscription-id}", "resourceGroupName": "myResourceGroup", "location": "myLocation", - "api-version": "2020-09-30-preview", + "api-version": "2020-09-30", "galleryUniqueName": "galleryUniqueName", "galleryImageName": "myGalleryImageName" }, diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/ListSharedGalleryImages.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/ListSharedGalleryImages.json similarity index 96% rename from specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/ListSharedGalleryImages.json rename to specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/ListSharedGalleryImages.json index 7325c3b2f915..5ad0d165aa94 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/ListSharedGalleryImages.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/ListSharedGalleryImages.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "{subscription-id}", "location": "myLocation", - "api-version": "2020-09-30-preview", + "api-version": "2020-09-30", "galleryUniqueName": "galleryUniqueName" }, "responses": { diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/ListSharedGalleryImagesWithResourceGroup.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/ListSharedGalleryImagesWithResourceGroup.json similarity index 96% rename from specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/ListSharedGalleryImagesWithResourceGroup.json rename to specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/ListSharedGalleryImagesWithResourceGroup.json index 05340805439f..9cb9dc3a182c 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/ListSharedGalleryImagesWithResourceGroup.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/ListSharedGalleryImagesWithResourceGroup.json @@ -3,7 +3,7 @@ "subscriptionId": "{subscription-id}", "resourceGroupName": "myResourceGroup", "location": "myLocation", - "api-version": "2020-09-30-preview", + "api-version": "2020-09-30", "galleryUniqueName": "galleryUniqueName" }, "responses": { diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/ResetSharingProfileInAGallery.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/ResetSharingProfileInAGallery.json similarity index 88% rename from specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/ResetSharingProfileInAGallery.json rename to specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/ResetSharingProfileInAGallery.json index f8338b244d38..d8be7f85b7a3 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/ResetSharingProfileInAGallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/ResetSharingProfileInAGallery.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "{subscription-id}", "resourceGroupName": "myResourceGroup", - "api-version": "2020-09-30-preview", + "api-version": "2020-09-30", "galleryName": "myGalleryName", "sharingUpdate": { "operationType": "Reset" diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/UpdateASimpleGallery.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/UpdateASimpleGallery.json similarity index 93% rename from specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/UpdateASimpleGallery.json rename to specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/UpdateASimpleGallery.json index dfc23f82b83e..d3618117f15c 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/UpdateASimpleGallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/UpdateASimpleGallery.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "{subscription-id}", "resourceGroupName": "myResourceGroup", - "api-version": "2020-09-30-preview", + "api-version": "2020-09-30", "galleryName": "myGalleryName", "gallery": { "properties": { diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/UpdateASimpleGalleryApplication.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/UpdateASimpleGalleryApplication.json similarity index 96% rename from specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/UpdateASimpleGalleryApplication.json rename to specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/UpdateASimpleGalleryApplication.json index 8a29e4b2fe98..0bb889c29a26 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/UpdateASimpleGalleryApplication.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/UpdateASimpleGalleryApplication.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "{subscription-id}", "resourceGroupName": "myResourceGroup", - "api-version": "2020-09-30-preview", + "api-version": "2020-09-30", "galleryName": "myGalleryName", "galleryApplicationName": "myGalleryApplicationName", "galleryApplication": { diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/UpdateASimpleGalleryApplicationVersion.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/UpdateASimpleGalleryApplicationVersion.json similarity index 98% rename from specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/UpdateASimpleGalleryApplicationVersion.json rename to specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/UpdateASimpleGalleryApplicationVersion.json index 609e4543b46e..8d473b578024 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/UpdateASimpleGalleryApplicationVersion.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/UpdateASimpleGalleryApplicationVersion.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "{subscription-id}", "resourceGroupName": "myResourceGroup", - "api-version": "2020-09-30-preview", + "api-version": "2020-09-30", "galleryName": "myGalleryName", "galleryApplicationName": "myGalleryApplicationName", "galleryApplicationVersionName": "1.0.0", diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/UpdateASimpleGalleryImage.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/UpdateASimpleGalleryImage.json similarity index 95% rename from specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/UpdateASimpleGalleryImage.json rename to specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/UpdateASimpleGalleryImage.json index 47d3b1eed86c..ebfd473f7e95 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/UpdateASimpleGalleryImage.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/UpdateASimpleGalleryImage.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "{subscription-id}", "resourceGroupName": "myResourceGroup", - "api-version": "2020-09-30-preview", + "api-version": "2020-09-30", "galleryName": "myGalleryName", "galleryImageName": "myGalleryImageName", "galleryImage": { diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/UpdateASimpleGalleryImageVersion.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/UpdateASimpleGalleryImageVersion.json similarity index 98% rename from specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/UpdateASimpleGalleryImageVersion.json rename to specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/UpdateASimpleGalleryImageVersion.json index 7e24c964ba7f..5cf4547abad1 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/examples/UpdateASimpleGalleryImageVersion.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/UpdateASimpleGalleryImageVersion.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "{subscription-id}", "resourceGroupName": "myResourceGroup", - "api-version": "2020-09-30-preview", + "api-version": "2020-09-30", "galleryName": "myGalleryName", "galleryImageName": "myGalleryImageName", "galleryImageVersionName": "1.0.0", diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/gallery.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/gallery.json similarity index 99% rename from specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/gallery.json rename to specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/gallery.json index bcaca73c64d4..13939c0d2c61 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/gallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/gallery.json @@ -3,7 +3,7 @@ "info": { "title": "SharedImageGalleryServiceClient", "description": "Shared Image Gallery Service Client.", - "version": "2020-09-30-preview" + "version": "2020-09-30" }, "host": "management.azure.com", "schemes": [ diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/sharedGallery.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/sharedGallery.json similarity index 99% rename from specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/sharedGallery.json rename to specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/sharedGallery.json index be1ac9a35f39..a22d2dbac200 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30-preview/sharedGallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/sharedGallery.json @@ -3,7 +3,7 @@ "info": { "title": "SharedGalleryServiceClient", "description": "Shared Gallery Service Client.", - "version": "2020-09-30-preview" + "version": "2020-09-30" }, "host": "management.azure.com", "schemes": [ diff --git a/specification/compute/resource-manager/readme.md b/specification/compute/resource-manager/readme.md index 3c9b2c7bcd80..d415917a0f85 100644 --- a/specification/compute/resource-manager/readme.md +++ b/specification/compute/resource-manager/readme.md @@ -210,29 +210,29 @@ directive: ``` -### Tag: package-2020-09-30-preview +### Tag: package-2020-09-30 -These settings apply only when `--tag=package-2020-09-30-preview` is specified on the command line. +These settings apply only when `--tag=package-2020-09-30` is specified on the command line. -``` yaml $(tag) == 'package-2020-09-30-preview' +``` yaml $(tag) == 'package-2020-09-30' input-file: - Microsoft.Compute/stable/2020-06-01/compute.json - Microsoft.Compute/stable/2020-06-01/runCommands.json - Microsoft.Compute/stable/2019-04-01/skus.json - Microsoft.Compute/stable/2020-05-01/disk.json -- Microsoft.Compute/preview/2020-09-30-preview/gallery.json -- Microsoft.Compute/preview/2020-09-30-preview/sharedGallery.json +- Microsoft.Compute/preview/2020-09-30/gallery.json +- Microsoft.Compute/preview/2020-09-30/sharedGallery.json - Microsoft.ContainerService/stable/2017-01-31/containerService.json ``` -### Tag: package-2020-09-30-preview-only +### Tag: package-2020-09-30-only -These settings apply only when `--tag=package-2020-09-30-preview-only` is specified on the command line. +These settings apply only when `--tag=package-2020-09-30-only` is specified on the command line. -``` yaml $(tag) == 'package-2020-09-30-preview-only' +``` yaml $(tag) == 'package-2020-09-30-only' input-file: -- Microsoft.Compute/preview/2020-09-30-preview/gallery.json -- Microsoft.Compute/preview/2020-09-30-preview/sharedGallery.json +- Microsoft.Compute/preview/2020-09-30/gallery.json +- Microsoft.Compute/preview/2020-09-30/sharedGallery.json ``` ### Tag: package-2020-06-01 @@ -842,8 +842,8 @@ require: $(this-folder)/../../../profiles/readme.md # all the input files across all versions input-file: - - $(this-folder)/Microsoft.Compute/preview/2020-09-30-preview/sharedGallery.json - - $(this-folder)/Microsoft.Compute/preview/2020-09-30-preview/gallery.json + - $(this-folder)/Microsoft.Compute/preview/2020-09-30/sharedGallery.json + - $(this-folder)/Microsoft.Compute/preview/2020-09-30/gallery.json - $(this-folder)/Microsoft.Compute/stable/2020-06-01/compute.json - $(this-folder)/Microsoft.Compute/stable/2020-06-01/runCommands.json - $(this-folder)/Microsoft.Compute/stable/2019-04-01/skus.json From 9bc78e1ee83635627b77845470ca518b23bf0547 Mon Sep 17 00:00:00 2001 From: Kang Sun Date: Fri, 21 Aug 2020 22:04:37 -0700 Subject: [PATCH 19/47] update --- ...dateASimpleGalleryImageVersionWithVHD.json | 215 ++++++++++++++++++ .../preview/2020-09-30/gallery.json | 115 +++++----- .../preview/2020-09-30/sharedGallery.json | 113 ++++++--- 3 files changed, 361 insertions(+), 82 deletions(-) create mode 100644 specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/CreateOrUpdateASimpleGalleryImageVersionWithVHD.json diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/CreateOrUpdateASimpleGalleryImageVersionWithVHD.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/CreateOrUpdateASimpleGalleryImageVersionWithVHD.json new file mode 100644 index 000000000000..95e8512ba415 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/CreateOrUpdateASimpleGalleryImageVersionWithVHD.json @@ -0,0 +1,215 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2020-09-30", + "galleryName": "myGalleryName", + "galleryImageName": "myGalleryImageName", + "galleryImageVersionName": "1.0.0", + "galleryImageVersion": { + "location": "West US", + "properties": { + "publishingProfile": { + "targetRegions": [ + { + "name": "West US", + "regionalReplicaCount": 1, + "encryption": { + "osDiskImage": { + "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myDiskEncryptionSet" + }, + "dataDiskImages": [ + { + "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherDiskEncryptionSet", + "lun": 1 + } + ] + } + }, + { + "name": "East US", + "regionalReplicaCount": 2, + "storageAccountType": "Standard_ZRS" + } + ] + }, + "storageProfile": { + "source": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/vhd/{vhdName}", + "uri": "http://mystorageaccount.core.windows.net/mycontainer/myblob?sv=2015-04-05&st=2015-04-29T22%3A18%3A26Z&se=2055-04-30T02%3A23%3A26Z&sr=b&sp=r&sip=168.1.5.60-168.1.5.70&spr=https&sig=tesT" + } + } + } + } + }, + "responses": { + "200": { + "body": { + "properties": { + "publishingProfile": { + "targetRegions": [ + { + "name": "West US", + "regionalReplicaCount": 1, + "storageAccountType": "Standard_LRS", + "encryption": { + "osDiskImage": { + "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myDiskEncryptionSet" + }, + "dataDiskImages": [ + { + "lun": 1, + "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherDiskEncryptionSet" + } + ] + } + }, + { + "name": "East US", + "regionalReplicaCount": 2, + "storageAccountType": "Standard_ZRS" + } + ], + "replicaCount": 1, + "publishedDate": "2018-01-01T00:00:00Z", + "storageAccountType": "Standard_LRS" + }, + "storageProfile": { + "osDiskImage": { + "source": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/snapshots/{osSnapshotName}" + }, + "sizeInGB": 10, + "hostCaching": "ReadOnly" + }, + "dataDiskImages": [ + { + "source": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/snapshots/{diskSnapshotName}" + }, + "lun": 1, + "sizeInGB": 10, + "hostCaching": "None" + } + ] + }, + "provisioningState": "Updating" + }, + "location": "West US", + "name": "1.0.0" + } + }, + "201": { + "body": { + "properties": { + "publishingProfile": { + "targetRegions": [ + { + "name": "West US", + "regionalReplicaCount": 1, + "storageAccountType": "Standard_LRS", + "encryption": { + "osDiskImage": { + "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myDiskEncryptionSet" + }, + "dataDiskImages": [ + { + "lun": 1, + "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherDiskEncryptionSet" + } + ] + } + }, + { + "name": "East US", + "regionalReplicaCount": 2, + "storageAccountType": "Standard_ZRS" + } + ], + "replicaCount": 1, + "publishedDate": "2018-01-01T00:00:00Z", + "storageAccountType": "Standard_LRS" + }, + "storageProfile": { + "osDiskImage": { + "source": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/snapshots/{osSnapshotName}" + }, + "sizeInGB": 10, + "hostCaching": "ReadOnly" + }, + "dataDiskImages": [ + { + "source": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/snapshots/{diskSnapshotName}" + }, + "lun": 1, + "sizeInGB": 10, + "hostCaching": "None" + } + ] + }, + "provisioningState": "Creating" + }, + "location": "West US", + "name": "1.0.0" + } + }, + "202": { + "body": { + "properties": { + "publishingProfile": { + "targetRegions": [ + { + "name": "West US", + "regionalReplicaCount": 1, + "storageAccountType": "Standard_LRS", + "encryption": { + "osDiskImage": { + "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myDiskEncryptionSet" + }, + "dataDiskImages": [ + { + "lun": 1, + "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherDiskEncryptionSet" + } + ] + } + }, + { + "name": "East US", + "regionalReplicaCount": 2, + "storageAccountType": "Standard_ZRS" + } + ], + "replicaCount": 1, + "publishedDate": "2018-01-01T00:00:00Z", + "storageAccountType": "Standard_LRS" + }, + "storageProfile": { + "osDiskImage": { + "source": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/snapshots/{osSnapshotName}" + }, + "sizeInGB": 10, + "hostCaching": "ReadOnly" + }, + "dataDiskImages": [ + { + "source": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/snapshots/{diskSnapshotName}" + }, + "lun": 1, + "sizeInGB": 10, + "hostCaching": "None" + } + ] + }, + "provisioningState": "Updating" + }, + "location": "West US", + "name": "1.0.0" + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/gallery.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/gallery.json index 13939c0d2c61..111772db4fb4 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/gallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/gallery.json @@ -274,7 +274,7 @@ "GalleryImages" ], "operationId": "GalleryImages_CreateOrUpdate", - "description": "Create or update a gallery Image Definition.", + "description": "Create or update a gallery image definition.", "parameters": [ { "$ref": "#/parameters/SubscriptionIdParameter" @@ -294,7 +294,7 @@ "in": "path", "required": true, "type": "string", - "description": "The name of the gallery Image Definition to be created or updated. The allowed characters are alphabets and numbers with dots, dashes, and periods allowed in the middle. The maximum length is 80 characters." + "description": "The name of the gallery image definition to be created or updated. The allowed characters are alphabets and numbers with dots, dashes, and periods allowed in the middle. The maximum length is 80 characters." }, { "$ref": "#/parameters/ApiVersionParameter" @@ -347,7 +347,7 @@ "GalleryImages" ], "operationId": "GalleryImages_Update", - "description": "Update a gallery Image Definition.", + "description": "Update a gallery image definition.", "parameters": [ { "$ref": "#/parameters/SubscriptionIdParameter" @@ -367,7 +367,7 @@ "in": "path", "required": true, "type": "string", - "description": "The name of the gallery Image Definition to be updated. The allowed characters are alphabets and numbers with dots, dashes, and periods allowed in the middle. The maximum length is 80 characters." + "description": "The name of the gallery dmage definition to be updated. The allowed characters are alphabets and numbers with dots, dashes, and periods allowed in the middle. The maximum length is 80 characters." }, { "$ref": "#/parameters/ApiVersionParameter" @@ -408,7 +408,7 @@ "GalleryImages" ], "operationId": "GalleryImages_Get", - "description": "Retrieves information about a gallery Image Definition.", + "description": "Retrieves information about a gallery image definition.", "parameters": [ { "$ref": "#/parameters/SubscriptionIdParameter" @@ -428,7 +428,7 @@ "in": "path", "required": true, "type": "string", - "description": "The name of the gallery Image Definition to be retrieved." + "description": "The name of the gallery image definition to be retrieved." }, { "$ref": "#/parameters/ApiVersionParameter" @@ -479,7 +479,7 @@ "in": "path", "required": true, "type": "string", - "description": "The name of the gallery Image Definition to be deleted." + "description": "The name of the gallery image definition to be deleted." }, { "$ref": "#/parameters/ApiVersionParameter" @@ -516,7 +516,7 @@ "GalleryImageVersions" ], "operationId": "GalleryImageVersions_CreateOrUpdate", - "description": "Create or update a gallery Image Version.", + "description": "Create or update a gallery image version.", "parameters": [ { "$ref": "#/parameters/SubscriptionIdParameter" @@ -536,14 +536,14 @@ "in": "path", "required": true, "type": "string", - "description": "The name of the gallery Image Definition in which the Image Version is to be created." + "description": "The name of the gallery image definition in which the Image Version is to be created." }, { "name": "galleryImageVersionName", "in": "path", "required": true, "type": "string", - "description": "The name of the gallery Image Version to be created. Needs to follow semantic version name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. Format: .." + "description": "The name of the gallery image version to be created. Needs to follow semantic version name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. Format: .." }, { "$ref": "#/parameters/ApiVersionParameter" @@ -555,7 +555,7 @@ "schema": { "$ref": "#/definitions/GalleryImageVersion" }, - "description": "Parameters supplied to the create or update gallery Image Version operation." + "description": "Parameters supplied to the create or update gallery image version operation." } ], "responses": { @@ -591,6 +591,9 @@ }, "Create or update a simple Gallery Image Version using snapshots as a source.": { "$ref": "./examples/CreateOrUpdateASimpleGalleryImageVersionWithSnapshotsAsSource.json" + }, + "": { + "$ref": "./examples/CreateOrUpdateASimpleGalleryImageVersionWithVHD.json" } } }, @@ -599,7 +602,7 @@ "GalleryImageVersions" ], "operationId": "GalleryImageVersions_Update", - "description": "Update a gallery Image Version.", + "description": "Update a gallery image version.", "parameters": [ { "$ref": "#/parameters/SubscriptionIdParameter" @@ -619,14 +622,14 @@ "in": "path", "required": true, "type": "string", - "description": "The name of the gallery Image Definition in which the Image Version is to be updated." + "description": "The name of the gallery image definition in which the Image Version is to be updated." }, { "name": "galleryImageVersionName", "in": "path", "required": true, "type": "string", - "description": "The name of the gallery Image Version to be updated. Needs to follow semantic version name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. Format: .." + "description": "The name of the gallery image version to be updated. Needs to follow semantic version name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. Format: .." }, { "$ref": "#/parameters/ApiVersionParameter" @@ -638,7 +641,7 @@ "schema": { "$ref": "#/definitions/GalleryImageVersionUpdate" }, - "description": "Parameters supplied to the update gallery Image Version operation." + "description": "Parameters supplied to the update gallery image version operation." } ], "responses": { @@ -667,7 +670,7 @@ "GalleryImageVersions" ], "operationId": "GalleryImageVersions_Get", - "description": "Retrieves information about a gallery Image Version.", + "description": "Retrieves information about a gallery image version.", "parameters": [ { "$ref": "#/parameters/SubscriptionIdParameter" @@ -687,14 +690,14 @@ "in": "path", "required": true, "type": "string", - "description": "The name of the gallery Image Definition in which the Image Version resides." + "description": "The name of the gallery image definition in which the Image Version resides." }, { "name": "galleryImageVersionName", "in": "path", "required": true, "type": "string", - "description": "The name of the gallery Image Version to be retrieved." + "description": "The name of the gallery image version to be retrieved." }, { "name": "$expand", @@ -729,13 +732,13 @@ } }, "x-ms-examples": { - "Get a gallery Image Version.": { + "Get a gallery image version.": { "$ref": "./examples/GetAGalleryImageVersion.json" }, - "Get a gallery Image Version with replication status.": { + "Get a gallery image version with replication status.": { "$ref": "./examples/GetAGalleryImageVersionWithReplicationStatus.json" }, - "Get a gallery Image Version with snapshots as a source.": { + "Get a gallery image version with snapshots as a source.": { "$ref": "./examples/GetAGalleryImageVersionWithSnapshotsAsSource.json" } } @@ -745,7 +748,7 @@ "GalleryImageVersions" ], "operationId": "GalleryImageVersions_Delete", - "description": "Delete a gallery Image Version.", + "description": "Delete a gallery image version.", "parameters": [ { "$ref": "#/parameters/SubscriptionIdParameter" @@ -765,14 +768,14 @@ "in": "path", "required": true, "type": "string", - "description": "The name of the gallery Image Definition in which the Image Version resides." + "description": "The name of the gallery image definition in which the Image Version resides." }, { "name": "galleryImageVersionName", "in": "path", "required": true, "type": "string", - "description": "The name of the gallery Image Version to be deleted." + "description": "The name of the gallery image version to be deleted." }, { "$ref": "#/parameters/ApiVersionParameter" @@ -797,7 +800,7 @@ }, "x-ms-long-running-operation": true, "x-ms-examples": { - "Delete a gallery Image Version.": { + "Delete a gallery image version.": { "$ref": "./examples/DeleteAGalleryImageVersion.json" } } @@ -1419,7 +1422,7 @@ "GalleryImages" ], "operationId": "GalleryImages_ListByGallery", - "description": "List gallery Image Definitions in a gallery.", + "description": "List gallery image definitions in a gallery.", "parameters": [ { "$ref": "#/parameters/SubscriptionIdParameter" @@ -1468,7 +1471,7 @@ "GalleryImageVersions" ], "operationId": "GalleryImageVersions_ListByGalleryImage", - "description": "List gallery Image Versions in a gallery Image Definition.", + "description": "List gallery image versions in a gallery image definition.", "parameters": [ { "$ref": "#/parameters/SubscriptionIdParameter" @@ -1509,7 +1512,7 @@ } }, "x-ms-examples": { - "List gallery Image Versions in a gallery Image Definition.": { + "List gallery image versions in a gallery image definition.": { "$ref": "./examples/ListGalleryImageVersionsInAGalleryImage.json" } }, @@ -1923,7 +1926,7 @@ "required": [ "publishingProfile" ], - "description": "Describes the properties of a gallery Image Version." + "description": "Describes the properties of a gallery image version." }, "GalleryApplicationVersionPublishingProfile": { "properties": { @@ -1947,7 +1950,7 @@ "required": [ "source" ], - "description": "The publishing profile of a gallery Image Version." + "description": "The publishing profile of a gallery image version." }, "UserArtifactSource": { "properties": { @@ -1978,7 +1981,7 @@ "$ref": "#/definitions/Resource" } ], - "description": "Specifies information about the gallery Image Definition that you want to create or update." + "description": "Specifies information about the gallery image definition that you want to create or update." }, "GalleryImageUpdate": { "properties": { @@ -1992,17 +1995,17 @@ "$ref": "#/definitions/UpdateResourceDefinition" } ], - "description": "Specifies information about the gallery Image Definition that you want to update." + "description": "Specifies information about the gallery image definition that you want to update." }, "GalleryImageProperties": { "properties": { "description": { "type": "string", - "description": "The description of this gallery Image Definition resource. This property is updatable." + "description": "The description of this gallery image definition resource. This property is updatable." }, "eula": { "type": "string", - "description": "The Eula agreement for the gallery Image Definition." + "description": "The Eula agreement for the gallery image definition." }, "privacyStatementUri": { "type": "string", @@ -2058,7 +2061,7 @@ "endOfLifeDate": { "type": "string", "format": "date-time", - "description": "The end of life date of the gallery Image Definition. This property can be used for decommissioning purposes. This property is updatable." + "description": "The end of life date of the gallery image definition. This property can be used for decommissioning purposes. This property is updatable." }, "identifier": { "$ref": "#/definitions/GalleryImageIdentifier" @@ -2075,7 +2078,7 @@ "provisioningState": { "readOnly": true, "type": "string", - "title": "The current state of the gallery Image Definition.", + "title": "The current state of the gallery image definition.", "description": "The provisioning state, which only appears in the response.", "enum": [ "Creating", @@ -2092,17 +2095,17 @@ "osState", "identifier" ], - "description": "Describes the properties of a gallery Image Definition." + "description": "Describes the properties of a gallery image definition." }, "GalleryImageFeature": { "properties": { "name": { "type": "string", - "description": "The name of the gallery Image feature." + "description": "The name of the gallery image feature." }, "value": { "type": "string", - "description": "The value of the gallery Image feature." + "description": "The value of the gallery image feature." } }, "description": "A feature for gallery image." @@ -2111,15 +2114,15 @@ "properties": { "publisher": { "type": "string", - "description": "The name of the gallery Image Definition publisher." + "description": "The name of the gallery image definition publisher." }, "offer": { "type": "string", - "description": "The name of the gallery Image Definition offer." + "description": "The name of the gallery image definition offer." }, "sku": { "type": "string", - "description": "The name of the gallery Image Definition SKU." + "description": "The name of the gallery image definition SKU." } }, "required": [ @@ -2127,7 +2130,7 @@ "offer", "sku" ], - "description": "This is the gallery Image Definition identifier." + "description": "This is the gallery image definition identifier." }, "RecommendedMachineConfiguration": { "properties": { @@ -2182,7 +2185,7 @@ "description": "The product ID." } }, - "description": "Describes the gallery Image Definition purchase plan. This is used by marketplace images." + "description": "Describes the gallery image definition purchase plan. This is used by marketplace images." }, "GalleryImageVersion": { "properties": { @@ -2196,7 +2199,7 @@ "$ref": "#/definitions/Resource" } ], - "description": "Specifies information about the gallery Image Version that you want to create or update." + "description": "Specifies information about the gallery image version that you want to create or update." }, "GalleryImageVersionUpdate": { "properties": { @@ -2210,7 +2213,7 @@ "$ref": "#/definitions/UpdateResourceDefinition" } ], - "description": "Specifies information about the gallery Image Version that you want to update." + "description": "Specifies information about the gallery image version that you want to update." }, "GalleryImageVersionProperties": { "properties": { @@ -2220,7 +2223,7 @@ "provisioningState": { "readOnly": true, "type": "string", - "title": "The current state of the gallery Image Version.", + "title": "The current state of the gallery image version.", "description": "The provisioning state, which only appears in the response.", "enum": [ "Creating", @@ -2242,7 +2245,7 @@ "required": [ "storageProfile" ], - "description": "Describes the properties of a gallery Image Version." + "description": "Describes the properties of a gallery image version." }, "GalleryArtifactPublishingProfileBase": { "properties": { @@ -2266,12 +2269,12 @@ "readOnly": true, "type": "string", "format": "date-time", - "description": "The timestamp for when the gallery Image Version is published." + "description": "The timestamp for when the gallery image version is published." }, "endOfLifeDate": { "type": "string", "format": "date-time", - "description": "The end of life date of the gallery Image Version. This property can be used for decommissioning purposes. This property is updatable." + "description": "The end of life date of the gallery image version. This property can be used for decommissioning purposes. This property is updatable." }, "storageAccountType": { "type": "string", @@ -2401,7 +2404,7 @@ "$ref": "#/definitions/GalleryArtifactPublishingProfileBase" } ], - "description": "The publishing profile of a gallery Image Version." + "description": "The publishing profile of a gallery image Version." }, "GalleryImageVersionStorageProfile": { "properties": { @@ -2513,14 +2516,14 @@ "description": "This is a summary of replication status for each region." } }, - "description": "This is the replication status of the gallery Image Version." + "description": "This is the replication status of the gallery image version." }, "RegionalReplicationStatus": { "properties": { "region": { "readOnly": true, "type": "string", - "description": "The region to which the gallery Image Version is being replicated to." + "description": "The region to which the gallery image version is being replicated to." }, "state": { "readOnly": true, @@ -2581,7 +2584,7 @@ }, "nextLink": { "type": "string", - "description": "The uri to fetch the next page of Image Definitions in the Shared Image Gallery. Call ListNext() with this to fetch the next page of gallery Image Definitions." + "description": "The uri to fetch the next page of Image Definitions in the Shared Image Gallery. Call ListNext() with this to fetch the next page of gallery image definitions." } }, "required": [ @@ -2596,11 +2599,11 @@ "items": { "$ref": "#/definitions/GalleryImageVersion" }, - "description": "A list of gallery Image Versions." + "description": "A list of gallery image versions." }, "nextLink": { "type": "string", - "description": "The uri to fetch the next page of gallery Image Versions. Call ListNext() with this to fetch the next page of gallery Image Versions." + "description": "The uri to fetch the next page of gallery image versions. Call ListNext() with this to fetch the next page of gallery image versions." } }, "required": [ diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/sharedGallery.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/sharedGallery.json index a22d2dbac200..6524bbe596b0 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/sharedGallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/sharedGallery.json @@ -50,6 +50,20 @@ }, { "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "sharedTo", + "in": "query", + "required": false, + "type": "string", + "description": "The query parameter to decide what shared galleries to fetch when doing listing operations.", + "enum": [ + "tenant" + ], + "x-ms-enum": { + "name": "SharedToValues", + "modelAsString": true + } } ], "responses": { @@ -99,6 +113,20 @@ "required": true, "type": "string", "description": "The unique name of the Shared Gallery." + }, + { + "name": "sharedTo", + "in": "query", + "required": false, + "type": "string", + "description": "The query parameter to decide what shared galleries to fetch when doing listing operations.", + "enum": [ + "tenant" + ], + "x-ms-enum": { + "name": "SharedToValues", + "modelAsString": true + } } ], "responses": { @@ -151,6 +179,20 @@ "required": true, "type": "string", "description": "The unique name of the Shared Gallery." + }, + { + "name": "sharedTo", + "in": "query", + "required": false, + "type": "string", + "description": "The query parameter to decide what shared galleries to fetch when doing listing operations.", + "enum": [ + "tenant" + ], + "x-ms-enum": { + "name": "SharedToValues", + "modelAsString": true + } } ], "responses": { @@ -207,6 +249,20 @@ "required": true, "type": "string", "description": "The name of the Shared Gallery Image Definition from which the Image Versions are to be listed." + }, + { + "name": "sharedTo", + "in": "query", + "required": false, + "type": "string", + "description": "The query parameter to decide what shared galleries to fetch when doing listing operations.", + "enum": [ + "tenant" + ], + "x-ms-enum": { + "name": "SharedToValues", + "modelAsString": true + } } ], "responses": { @@ -266,6 +322,20 @@ "required": true, "type": "string", "description": "The name of the Shared Gallery Image Definition from which the Image Versions are to be listed." + }, + { + "name": "sharedTo", + "in": "query", + "required": false, + "type": "string", + "description": "The query parameter to decide what shared galleries to fetch when doing listing operations.", + "enum": [ + "tenant" + ], + "x-ms-enum": { + "name": "SharedToValues", + "modelAsString": true + } } ], "responses": { @@ -483,7 +553,7 @@ "in": "path", "required": true, "type": "string", - "description": "The name of the gallery Image Version to be created. Needs to follow semantic version name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. Format: .." + "description": "The name of the gallery image version to be created. Needs to follow semantic version name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. Format: .." } ], "responses": { @@ -546,7 +616,7 @@ "in": "path", "required": true, "type": "string", - "description": "The name of the gallery Image Version to be created. Needs to follow semantic version name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. Format: .." + "description": "The name of the gallery image version to be created. Needs to follow semantic version name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. Format: .." } ], "responses": { @@ -618,12 +688,7 @@ ] }, "SharedGallery": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/SharedGalleryProperties" - } - }, + "properties": {}, "allOf": [ { "$ref": "#/definitions/PirResource" @@ -631,10 +696,6 @@ ], "description": "Specifies information about the Shared Gallery that you want to create or update." }, - "SharedGalleryProperties": { - "properties": {}, - "description": "Describes the properties of a Shared Gallery." - }, "SharedGalleryImageList": { "description": "The List Shared Gallery Images operation response.", "properties": { @@ -666,7 +727,7 @@ "$ref": "#/definitions/PirResource" } ], - "description": "Specifies information about the gallery Image Definition that you want to create or update." + "description": "Specifies information about the gallery image definition that you want to create or update." }, "SharedGalleryImageProperties": { "properties": { @@ -697,7 +758,7 @@ "endOfLifeDate": { "type": "string", "format": "date-time", - "description": "The end of life date of the gallery Image Definition. This property can be used for decommissioning purposes. This property is updatable." + "description": "The end of life date of the gallery image definition. This property can be used for decommissioning purposes. This property is updatable." }, "identifier": { "$ref": "#/definitions/GalleryImageIdentifier" @@ -736,17 +797,17 @@ "osState", "identifier" ], - "description": "Describes the properties of a gallery Image Definition." + "description": "Describes the properties of a gallery image definition." }, "GalleryImageFeature": { "properties": { "name": { "type": "string", - "description": "The name of the gallery Image feature." + "description": "The name of the gallery image feature." }, "value": { "type": "string", - "description": "The value of the gallery Image feature." + "description": "The value of the gallery image feature." } }, "description": "A feature for gallery image." @@ -755,15 +816,15 @@ "properties": { "publisher": { "type": "string", - "description": "The name of the gallery Image Definition publisher." + "description": "The name of the gallery image definition publisher." }, "offer": { "type": "string", - "description": "The name of the gallery Image Definition offer." + "description": "The name of the gallery image definition offer." }, "sku": { "type": "string", - "description": "The name of the gallery Image Definition SKU." + "description": "The name of the gallery image definition SKU." } }, "required": [ @@ -771,7 +832,7 @@ "offer", "sku" ], - "description": "This is the gallery Image Definition identifier." + "description": "This is the gallery image definition identifier." }, "RecommendedMachineConfiguration": { "properties": { @@ -826,7 +887,7 @@ "description": "The product ID." } }, - "description": "Describes the gallery Image Definition purchase plan. This is used by marketplace images." + "description": "Describes the gallery image definition purchase plan. This is used by marketplace images." }, "SharedGalleryImageVersionList": { "description": "The List Shared Gallery Image versions operation response.", @@ -859,22 +920,22 @@ "$ref": "#/definitions/PirResource" } ], - "description": "Specifies information about the gallery Image Version that you want to create or update." + "description": "Specifies information about the gallery image version that you want to create or update." }, "SharedGalleryImageVersionProperties": { "properties": { "publishedDate": { "type": "string", "format": "date-time", - "description": "The published date of the gallery Image Version Definition. This property can be used for decommissioning purposes. This property is updatable." + "description": "The published date of the gallery image version Definition. This property can be used for decommissioning purposes. This property is updatable." }, "endOfLifeDate": { "type": "string", "format": "date-time", - "description": "The end of life date of the gallery Image Version Definition. This property can be used for decommissioning purposes. This property is updatable." + "description": "The end of life date of the gallery image version Definition. This property can be used for decommissioning purposes. This property is updatable." } }, - "description": "Describes the properties of a gallery Image Version." + "description": "Describes the properties of a gallery image version." }, "CloudError": { "x-ms-external": true, From eb105436b8d9bd421bb38fce9b44c740e21a4967 Mon Sep 17 00:00:00 2001 From: Kang Sun Date: Sat, 22 Aug 2020 13:51:27 -0700 Subject: [PATCH 20/47] fix typo --- .../Microsoft.Compute/preview/2020-09-30/gallery.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/gallery.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/gallery.json index 111772db4fb4..2912bbb5db6d 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/gallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/gallery.json @@ -367,7 +367,7 @@ "in": "path", "required": true, "type": "string", - "description": "The name of the gallery dmage definition to be updated. The allowed characters are alphabets and numbers with dots, dashes, and periods allowed in the middle. The maximum length is 80 characters." + "description": "The name of the gallery image definition to be updated. The allowed characters are alphabets and numbers with dots, dashes, and periods allowed in the middle. The maximum length is 80 characters." }, { "$ref": "#/parameters/ApiVersionParameter" From b752dbf4147eeffb8e0d09f8b120384ea1483426 Mon Sep 17 00:00:00 2001 From: Kang Sun Date: Wed, 26 Aug 2020 16:53:07 -0700 Subject: [PATCH 21/47] address pr comment --- .../AddToSharingProfileInAGallery.json | 20 ++++++ ...dateASimpleGalleryImageVersionWithVHD.json | 67 ++++--------------- ...etAGalleryImageVersionWithVhdAsSource.json | 55 +++++++++++++++ .../ResetSharingProfileInAGallery.json | 5 ++ .../preview/2020-09-30/gallery.json | 16 ++++- 5 files changed, 107 insertions(+), 56 deletions(-) create mode 100644 specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/GetAGalleryImageVersionWithVhdAsSource.json diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/AddToSharingProfileInAGallery.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/AddToSharingProfileInAGallery.json index 33790ed1a863..2b58d146d876 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/AddToSharingProfileInAGallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/AddToSharingProfileInAGallery.json @@ -24,6 +24,26 @@ } }, "responses": { + "200": { + "body": { + "operationType": "Add", + "groups": [ + { + "type": "Subscriptions", + "ids": [ + "34a4ab42-0d72-47d9-bd1a-aed207386dac", + "380fd389-260b-41aa-bad9-0a83108c370b" + ] + }, + { + "type": "AADTenants", + "ids": [ + "c24c76aa-8897-4027-9b03-8f7928b54ff6" + ] + } + ] + } + }, "202": { "body": { "operationType": "Add", diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/CreateOrUpdateASimpleGalleryImageVersionWithVHD.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/CreateOrUpdateASimpleGalleryImageVersionWithVHD.json index 95e8512ba415..e2b1b504c1ff 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/CreateOrUpdateASimpleGalleryImageVersionWithVHD.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/CreateOrUpdateASimpleGalleryImageVersionWithVHD.json @@ -35,8 +35,8 @@ }, "storageProfile": { "source": { - "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/vhd/{vhdName}", - "uri": "http://mystorageaccount.core.windows.net/mycontainer/myblob?sv=2015-04-05&st=2015-04-29T22%3A18%3A26Z&se=2055-04-30T02%3A23%3A26Z&sr=b&sp=r&sip=168.1.5.60-168.1.5.70&spr=https&sig=tesT" + "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Storage/storageAccounts/{storageAccount}", + "uri": "https://gallerysourcencus.blob.core.windows.net/myvhds/Windows-Server-2012-R2-20171216-en.us-128GB.vhd" } } } @@ -75,23 +75,10 @@ "storageAccountType": "Standard_LRS" }, "storageProfile": { - "osDiskImage": { - "source": { - "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/snapshots/{osSnapshotName}" - }, - "sizeInGB": 10, - "hostCaching": "ReadOnly" - }, - "dataDiskImages": [ - { - "source": { - "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/snapshots/{diskSnapshotName}" - }, - "lun": 1, - "sizeInGB": 10, - "hostCaching": "None" - } - ] + "source": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Storage/storageAccounts/{storageAccount}", + "uri": "https://gallerysourcencus.blob.core.windows.net/myvhds/Windows-Server-2012-R2-20171216-en.us-128GB.vhd" + } }, "provisioningState": "Updating" }, @@ -131,23 +118,10 @@ "storageAccountType": "Standard_LRS" }, "storageProfile": { - "osDiskImage": { - "source": { - "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/snapshots/{osSnapshotName}" - }, - "sizeInGB": 10, - "hostCaching": "ReadOnly" - }, - "dataDiskImages": [ - { - "source": { - "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/snapshots/{diskSnapshotName}" - }, - "lun": 1, - "sizeInGB": 10, - "hostCaching": "None" - } - ] + "source": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Storage/storageAccounts/{storageAccount}", + "uri": "https://gallerysourcencus.blob.core.windows.net/myvhds/Windows-Server-2012-R2-20171216-en.us-128GB.vhd" + } }, "provisioningState": "Creating" }, @@ -187,23 +161,10 @@ "storageAccountType": "Standard_LRS" }, "storageProfile": { - "osDiskImage": { - "source": { - "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/snapshots/{osSnapshotName}" - }, - "sizeInGB": 10, - "hostCaching": "ReadOnly" - }, - "dataDiskImages": [ - { - "source": { - "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/snapshots/{diskSnapshotName}" - }, - "lun": 1, - "sizeInGB": 10, - "hostCaching": "None" - } - ] + "source": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Storage/storageAccounts/{storageAccount}", + "uri": "https://gallerysourcencus.blob.core.windows.net/myvhds/Windows-Server-2012-R2-20171216-en.us-128GB.vhd" + } }, "provisioningState": "Updating" }, diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/GetAGalleryImageVersionWithVhdAsSource.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/GetAGalleryImageVersionWithVhdAsSource.json new file mode 100644 index 000000000000..d92d3c77540d --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/GetAGalleryImageVersionWithVhdAsSource.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "myResourceGroup", + "api-version": "2020-09-30", + "galleryName": "myGalleryName", + "galleryImageName": "myGalleryImageName", + "galleryImageVersionName": "1.0.0" + }, + "responses": { + "200": { + "body": { + "properties": { + "publishingProfile": { + "targetRegions": [ + { + "name": "West US", + "regionalReplicaCount": 1, + "storageAccountType": "Standard_LRS", + "encryption": { + "osDiskImage": { + "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myDiskEncryptionSet" + }, + "dataDiskImages": [ + { + "lun": 1, + "diskEncryptionSetId": "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myDiskEncryptionSet" + } + ] + } + }, + { + "name": "East US", + "regionalReplicaCount": 2, + "storageAccountType": "Standard_LRS" + } + ], + "replicaCount": 1, + "publishedDate": "2018-01-01T00:00:00Z", + "storageAccountType": "Standard_LRS" + }, + "storageProfile": { + "source": { + "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Storage/storageAccounts/{storageAccount}", + "uri": "https://gallerysourcencus.blob.core.windows.net/myvhds/Windows-Server-2012-R2-20171216-en.us-128GB.vhd" + } + }, + "provisioningState": "Succeeded" + }, + "location": "West US", + "name": "1.0.0" + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/ResetSharingProfileInAGallery.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/ResetSharingProfileInAGallery.json index d8be7f85b7a3..98c4a29b2a29 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/ResetSharingProfileInAGallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/ResetSharingProfileInAGallery.json @@ -9,6 +9,11 @@ } }, "responses": { + "200": { + "body": { + "operationType": "Reset" + } + }, "202": { "body": { "operationType": "Reset" diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/gallery.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/gallery.json index 2912bbb5db6d..4a55b2100eb6 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/gallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/gallery.json @@ -592,7 +592,7 @@ "Create or update a simple Gallery Image Version using snapshots as a source.": { "$ref": "./examples/CreateOrUpdateASimpleGalleryImageVersionWithSnapshotsAsSource.json" }, - "": { + "Create or update a simple Gallery Image Version using vhd as a source.": { "$ref": "./examples/CreateOrUpdateASimpleGalleryImageVersionWithVHD.json" } } @@ -740,6 +740,9 @@ }, "Get a gallery image version with snapshots as a source.": { "$ref": "./examples/GetAGalleryImageVersionWithSnapshotsAsSource.json" + }, + "Get a gallery image version with vhd as a source.": { + "$ref": "./examples/GetAGalleryImageVersionWithVhdAsSource.json" } } }, @@ -1661,6 +1664,12 @@ } ], "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/SharingUpdate" + } + }, "202": { "description": "Accepted", "schema": { @@ -1674,6 +1683,7 @@ } } }, + "x-ms-long-running-operation": true, "x-ms-examples": { "Add sharing id to the sharing profile of a gallery.": { "$ref": "./examples/AddToSharingProfileInAGallery.json" @@ -2428,11 +2438,11 @@ "properties": { "id": { "type": "string", - "description": "The id of the gallery artifact version source. Can specify a disk uri, snapshot uri, or user image." + "description": "The id of the gallery artifact version source. Can specify a disk uri, snapshot uri, user image or storage account resource." }, "uri": { "type": "string", - "description": "The uri of the gallery artifact version source. Can be a disk uri, snapshot uri, or user image." + "description": "The uri of the gallery artifact version source. Currently used to specify vhd/blob source." } }, "description": "The gallery artifact version source." From 4ee434681d7e15366059e84c7b12155c1e88919e Mon Sep 17 00:00:00 2001 From: Kang Sun Date: Thu, 27 Aug 2020 14:07:21 -0700 Subject: [PATCH 22/47] set modelAsString to true for gallery sharing-related enum --- .../Microsoft.Compute/preview/2020-09-30/gallery.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/gallery.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/gallery.json index 4a55b2100eb6..b5e64bcf9dde 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/gallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/gallery.json @@ -1775,7 +1775,7 @@ ], "x-ms-enum": { "name": "GallerySharingPermissionTypes", - "modelAsString": false + "modelAsString": true } }, "groups": { @@ -1800,7 +1800,7 @@ ], "x-ms-enum": { "name": "SharingProfileGroupTypes", - "modelAsString": false + "modelAsString": true } }, "ids": { @@ -2802,7 +2802,7 @@ ], "x-ms-enum": { "name": "SharingUpdateOperationTypes", - "modelAsString": false + "modelAsString": true } }, "groups": { From 5cb2d3d7874aa2f3a1b86a1b0aa53e42176e6d19 Mon Sep 17 00:00:00 2001 From: Kang Sun Date: Tue, 1 Sep 2020 18:07:53 -0700 Subject: [PATCH 23/47] update, fix merge --- specification/compute/resource-manager/readme.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/specification/compute/resource-manager/readme.md b/specification/compute/resource-manager/readme.md index 22d5f3611d82..e9d951cc78f9 100644 --- a/specification/compute/resource-manager/readme.md +++ b/specification/compute/resource-manager/readme.md @@ -877,8 +877,7 @@ input-file: - $(this-folder)/Microsoft.Compute/stable/2020-06-01/compute.json - $(this-folder)/Microsoft.Compute/stable/2020-06-01/runCommands.json - $(this-folder)/Microsoft.Compute/stable/2019-04-01/skus.json - - $(this-folder)/Microsoft.Compute/stable/2020-06-30/ - + - $(this-folder)/Microsoft.Compute/stable/2020-06-30/disk.json - $(this-folder)/Microsoft.Compute/stable/2019-12-01/gallery.json - $(this-folder)/Microsoft.ContainerService/stable/2017-01-31/containerService.json - $(this-folder)/Microsoft.Compute/stable/2020-05-01/disk.json From 24ba11fb8bc452557ea4a428aaeb5ed2cf265a89 Mon Sep 17 00:00:00 2001 From: Kang Sun Date: Tue, 1 Sep 2020 18:17:38 -0700 Subject: [PATCH 24/47] remove duplicate entry --- specification/compute/resource-manager/readme.md | 1 - 1 file changed, 1 deletion(-) diff --git a/specification/compute/resource-manager/readme.md b/specification/compute/resource-manager/readme.md index e9d951cc78f9..9480f7c084d3 100644 --- a/specification/compute/resource-manager/readme.md +++ b/specification/compute/resource-manager/readme.md @@ -873,7 +873,6 @@ require: $(this-folder)/../../../profiles/readme.md input-file: - $(this-folder)/Microsoft.Compute/preview/2020-09-30/sharedGallery.json - $(this-folder)/Microsoft.Compute/preview/2020-09-30/gallery.json - - $(this-folder)/Microsoft.Compute/stable/2020-06-30/disk.json - $(this-folder)/Microsoft.Compute/stable/2020-06-01/compute.json - $(this-folder)/Microsoft.Compute/stable/2020-06-01/runCommands.json - $(this-folder)/Microsoft.Compute/stable/2019-04-01/skus.json From d3f40cabf82e0c7cc65c06424f02a26332726053 Mon Sep 17 00:00:00 2001 From: Kang Sun Date: Thu, 3 Sep 2020 22:30:26 -0700 Subject: [PATCH 25/47] shared gallery, change id to identifier.uniqueId --- .../examples/GetASharedGallery.json | 6 +- .../examples/GetASharedGalleryImage.json | 4 +- .../GetASharedGalleryImageVersion.json | 4 +- ...dGalleryImageVersionWithResourceGroup.json | 24 -- ...tASharedGalleryImageWithResourceGroup.json | 29 -- .../examples/ListSharedGalleries.json | 4 +- .../ListSharedGalleryImageVersions.json | 4 +- ...GalleryImageVersionsWithResourceGroup.json | 28 -- .../examples/ListSharedGalleryImages.json | 4 +- ...tSharedGalleryImagesWithResourceGroup.json | 33 -- .../preview/2020-09-30/sharedGallery.json | 295 ++---------------- 11 files changed, 45 insertions(+), 390 deletions(-) delete mode 100644 specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/GetASharedGalleryImageVersionWithResourceGroup.json delete mode 100644 specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/GetASharedGalleryImageWithResourceGroup.json delete mode 100644 specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/ListSharedGalleryImageVersionsWithResourceGroup.json delete mode 100644 specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/ListSharedGalleryImagesWithResourceGroup.json diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/GetASharedGallery.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/GetASharedGallery.json index 95137d7a1265..9615b8456462 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/GetASharedGallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/GetASharedGallery.json @@ -8,9 +8,11 @@ "responses": { "200": { "body": { - "id": "/subscriptions/{subscription-id}/providers/Microsoft.Compute/sharedGalleries/galleryUniqueName", "location": "myLocation", - "name": "myGalleryName" + "name": "myGalleryName", + "identifier": { + "uniqueId": "/SharedGalleries/galleryUniqueName" + } } } } diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/GetASharedGalleryImage.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/GetASharedGalleryImage.json index a707ba2a2648..ab78ae46c4f0 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/GetASharedGalleryImage.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/GetASharedGalleryImage.json @@ -21,7 +21,9 @@ }, "location": "myLocation", "name": "myGalleryImageName", - "id": "/subscriptions/{subscription-id}/providers/Microsoft.Compute/sharedGalleries/galleryUniqueName/images/myGalleryImageName" + "identifier": { + "uniqueId": "/SharedGalleries/galleryUniqueName/Images/myGalleryImageName" + } } } } diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/GetASharedGalleryImageVersion.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/GetASharedGalleryImageVersion.json index 3215febd95dc..7e20e0f45d65 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/GetASharedGalleryImageVersion.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/GetASharedGalleryImageVersion.json @@ -16,7 +16,9 @@ }, "location": "myLocation", "name": "myGalleryImageVersionName", - "id": "/subscriptions/{subscription-id}/providers/Microsoft.Compute/sharedGalleries/galleryUniqueName/images/myGalleryImageName/versions/myGalleryImageVersionName" + "identifier": { + "uniqueId": "/SharedGalleries/galleryUniqueName/Images/myGalleryImageName/Versions/myGalleryImageVersionName" + } } } } diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/GetASharedGalleryImageVersionWithResourceGroup.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/GetASharedGalleryImageVersionWithResourceGroup.json deleted file mode 100644 index 4a0903b759b6..000000000000 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/GetASharedGalleryImageVersionWithResourceGroup.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "parameters": { - "subscriptionId": "{subscription-id}", - "resourceGroupName": "myResourceGroup", - "location": "myLocation", - "api-version": "2020-09-30", - "galleryUniqueName": "galleryUniqueName", - "galleryImageName": "myGalleryImageName", - "galleryImageVersionName": "myGalleryImageVersionName" - }, - "responses": { - "200": { - "body": { - "properties": { - "publishedDate": "2018-03-20T09:12:28Z", - "endOfLifeDate": "2022-03-20T09:12:28Z" - }, - "location": "myLocation", - "name": "myGalleryImageVersionName", - "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/sharedGalleries/galleryUniqueName/images/myGalleryImageName/versions/myGalleryImageVersionName" - } - } - } -} diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/GetASharedGalleryImageWithResourceGroup.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/GetASharedGalleryImageWithResourceGroup.json deleted file mode 100644 index 4a0140433a9e..000000000000 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/GetASharedGalleryImageWithResourceGroup.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "parameters": { - "subscriptionId": "{subscription-id}", - "resourceGroupName": "myResourceGroup", - "location": "myLocation", - "api-version": "2020-09-30", - "galleryUniqueName": "galleryUniqueName", - "galleryImageName": "myGalleryImageName" - }, - "responses": { - "200": { - "body": { - "properties": { - "osType": "Windows", - "osState": "Generalized", - "hyperVGeneration": "V1", - "identifier": { - "publisher": "myPublisherName", - "offer": "myOfferName", - "sku": "mySkuName" - } - }, - "location": "myLocation", - "name": "myGalleryImageName", - "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/sharedGalleries/galleryUniqueName/images/myGalleryImageName" - } - } - } -} diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/ListSharedGalleries.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/ListSharedGalleries.json index a377ab59bf26..baebdfed7d93 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/ListSharedGalleries.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/ListSharedGalleries.json @@ -11,7 +11,9 @@ { "location": "myLocation", "name": "galleryUniqueName", - "id": "/subscriptions/{subscription-id}/providers/Microsoft.Compute/sharedGalleries/galleryUniqueName" + "identifier": { + "uniqueId": "/SharedGalleries/galleryUniqueName" + } } ], "nextLink": "http://svchost:99/subscriptions/{subscriptionId}/providers/Microsoft.Compute/sharedGalleries?$skiptoken={token}/Subscriptions/{subscriptionId}/galleries/galleryUniqueName" diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/ListSharedGalleryImageVersions.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/ListSharedGalleryImageVersions.json index 4dce5b631641..95baa0b1144f 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/ListSharedGalleryImageVersions.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/ListSharedGalleryImageVersions.json @@ -17,7 +17,9 @@ }, "location": "myLocation", "name": "myGalleryImageVersionName", - "id": "/subscriptions/{subscription-id}/providers/Microsoft.Compute/sharedGalleries/galleryUniqueName/images/myGalleryImageName/versions/myGalleryImageVersionName" + "identifier": { + "uniqueId": "/SharedGalleries/galleryUniqueName/Images/myGalleryImageName/Versions/myGalleryImageVersionName" + } } ], "nextLink": "http://svchost:99/subscriptions/{subscription-Id}/providers/Microsoft.Compute/sharedGalleries/galleryUniqueName/images/myGalleryImageName/versions?$skiptoken={token}/Subscriptions/{subscription-Id}/galleries/galleryUniqueName/images/myGalleryImageName/versions/myGalleryImageVersionName" diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/ListSharedGalleryImageVersionsWithResourceGroup.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/ListSharedGalleryImageVersionsWithResourceGroup.json deleted file mode 100644 index 08c729bd6444..000000000000 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/ListSharedGalleryImageVersionsWithResourceGroup.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "parameters": { - "subscriptionId": "{subscription-id}", - "resourceGroupName": "myResourceGroup", - "location": "myLocation", - "api-version": "2020-09-30", - "galleryUniqueName": "galleryUniqueName", - "galleryImageName": "myGalleryImageName" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "properties": { - "publishedDate": "2018-03-20T09:12:28Z", - "endOfLifeDate": "2022-03-20T09:12:28Z" - }, - "location": "myLocation", - "name": "myGalleryImageVersionName", - "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/sharedGalleries/galleryUniqueName/images/myGalleryImageName/versions/myGalleryImageVersionName" - } - ], - "nextLink": "http://svchost:99/subscriptions/{subscription-Id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/sharedGalleries/galleryUniqueName/images/myGalleryImageName/versions?$skiptoken={token}/Subscriptions/{subscription-Id}/resourceGroups/myResourceGroup/galleries/galleryUniqueName/images/myGalleryImageName/versions/myGalleryImageVersionName" - } - } - } -} diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/ListSharedGalleryImages.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/ListSharedGalleryImages.json index 5ad0d165aa94..47a2b4ac926a 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/ListSharedGalleryImages.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/ListSharedGalleryImages.json @@ -22,7 +22,9 @@ }, "location": "myLocation", "name": "myGalleryImageName", - "id": "/subscriptions/{subscription-id}/providers/Microsoft.Compute/sharedGalleries/galleryUniqueName/images/myGalleryImageName" + "identifier": { + "uniqueId": "/SharedGalleries/galleryUniqueName/Images/myGalleryImageName" + } } ], "nextLink": "http://svchost:99/subscriptions/{subscription-Id}/providers/Microsoft.Compute/sharedGalleries/galleryUniqueName/images?$skiptoken={token}/Subscriptions/{subscription-Id}/galleries/galleryUniqueName/images/myGalleryImageName" diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/ListSharedGalleryImagesWithResourceGroup.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/ListSharedGalleryImagesWithResourceGroup.json deleted file mode 100644 index 9cb9dc3a182c..000000000000 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/examples/ListSharedGalleryImagesWithResourceGroup.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "parameters": { - "subscriptionId": "{subscription-id}", - "resourceGroupName": "myResourceGroup", - "location": "myLocation", - "api-version": "2020-09-30", - "galleryUniqueName": "galleryUniqueName" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "properties": { - "osType": "Windows", - "osState": "Generalized", - "hyperVGeneration": "V1", - "identifier": { - "publisher": "myPublisherName", - "offer": "myOfferName", - "sku": "mySkuName" - } - }, - "location": "myLocation", - "name": "myGalleryImageName", - "id": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/sharedGalleries/galleryUniqueName/images/myGalleryImageName" - } - ], - "nextLink": "http://svchost:99/subscriptions/{subscription-Id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/sharedGalleries/galleryUniqueName/images?$skiptoken={token}/Subscriptions/{subscription-Id}/resourceGroups/myResourceGroup/galleries/galleryUniqueName/images/myGalleryImageName" - } - } - } -} diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/sharedGallery.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/sharedGallery.json index 6524bbe596b0..7e46a0de5092 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/sharedGallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/sharedGallery.json @@ -153,72 +153,6 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/locations/{location}/sharedGalleries/{galleryUniqueName}/images": { - "get": { - "tags": [ - "SharedGalleryImages" - ], - "operationId": "SharedGalleryImages_ListWithRg", - "description": "List shared gallery images by subscription id or tenant id and resource group.", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/LocationNameParamter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "name": "galleryUniqueName", - "in": "path", - "required": true, - "type": "string", - "description": "The unique name of the Shared Gallery." - }, - { - "name": "sharedTo", - "in": "query", - "required": false, - "type": "string", - "description": "The query parameter to decide what shared galleries to fetch when doing listing operations.", - "enum": [ - "tenant" - ], - "x-ms-enum": { - "name": "SharedToValues", - "modelAsString": true - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/SharedGalleryImageList" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-examples": { - "Get a gallery.": { - "$ref": "./examples/ListSharedGalleryImagesWithResourceGroup.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries/{galleryUniqueName}/images/{galleryImageName}/versions": { "get": { "tags": [ @@ -289,79 +223,6 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/locations/{location}/sharedGalleries/{galleryUniqueName}/images/{galleryImageName}/versions": { - "get": { - "tags": [ - "SharedGalleryImageVersions" - ], - "operationId": "SharedGalleryImageVersions_ListWithRg", - "description": "List shared gallery image versions by subscription id or tenant id.", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/LocationNameParamter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "name": "galleryUniqueName", - "in": "path", - "required": true, - "type": "string", - "description": "The unique name of the Shared Gallery." - }, - { - "name": "galleryImageName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the Shared Gallery Image Definition from which the Image Versions are to be listed." - }, - { - "name": "sharedTo", - "in": "query", - "required": false, - "type": "string", - "description": "The query parameter to decide what shared galleries to fetch when doing listing operations.", - "enum": [ - "tenant" - ], - "x-ms-enum": { - "name": "SharedToValues", - "modelAsString": true - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/SharedGalleryImageVersionList" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-examples": { - "Get a gallery.": { - "$ref": "./examples/ListSharedGalleryImageVersionsWithResourceGroup.json" - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries/{galleryUniqueName}": { "get": { "tags": [ @@ -461,62 +322,6 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/locations/{location}/sharedGalleries/{galleryUniqueName}/images/{galleryImageName}": { - "get": { - "tags": [ - "SharedGalleryImages" - ], - "operationId": "SharedGalleryImages_GetWithRg", - "description": "Get a shared gallery image by subscription id or tenant id and resource group.", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/LocationNameParamter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "name": "galleryUniqueName", - "in": "path", - "required": true, - "type": "string", - "description": "The unique name of the Shared Gallery." - }, - { - "name": "galleryImageName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the Shared Gallery Image Definition from which the Image Versions are to be listed." - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/SharedGalleryImage" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-examples": { - "Get a gallery.": { - "$ref": "./examples/GetASharedGalleryImageWithResourceGroup.json" - } - } - } - }, "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries/{galleryUniqueName}/images/{galleryImageName}/versions/{galleryImageVersionName}": { "get": { "tags": [ @@ -576,69 +381,6 @@ } } } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/locations/{location}/sharedGalleries/{galleryUniqueName}/images/{galleryImageName}/versions/{galleryImageVersionName}": { - "get": { - "tags": [ - "SharedGalleryImageVersions" - ], - "operationId": "SharedGalleryImageVersions_GetWithRg", - "description": "Get a shared gallery image version by subscription id or tenant id with resource group.", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/LocationNameParamter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "name": "galleryUniqueName", - "in": "path", - "required": true, - "type": "string", - "description": "The unique name of the Shared Gallery." - }, - { - "name": "galleryImageName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the Shared Gallery Image Definition from which the Image Versions are to be listed." - }, - { - "name": "galleryImageVersionName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the gallery image version to be created. Needs to follow semantic version name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. Format: .." - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/SharedGalleryImageVersion" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-examples": { - "Get a gallery.": { - "$ref": "./examples/GetASharedGalleryImageVersionWithResourceGroup.json" - } - } - } } }, "definitions": { @@ -668,6 +410,29 @@ }, "x-ms-azure-resource": true }, + "PirSharedGalleryResource": { + "properties": { + "identifier": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/SharedGalleryIdentifier" + } + }, + "allOf": [ + { + "$ref": "#/definitions/PirResource" + } + ], + "description": "Base information about the shared gallery resource in pir." + }, + "SharedGalleryIdentifier": { + "properties": { + "uniqueId": { + "type": "string", + "description": "The unqie id of this shared gallery." + } + }, + "description": "Indentifier information of shared gallery." + }, "SharedGalleryList": { "description": "The List Shared Galleries operation response.", "properties": { @@ -691,7 +456,7 @@ "properties": {}, "allOf": [ { - "$ref": "#/definitions/PirResource" + "$ref": "#/definitions/PirSharedGalleryResource" } ], "description": "Specifies information about the Shared Gallery that you want to create or update." @@ -724,7 +489,7 @@ }, "allOf": [ { - "$ref": "#/definitions/PirResource" + "$ref": "#/definitions/PirSharedGalleryResource" } ], "description": "Specifies information about the gallery image definition that you want to create or update." @@ -917,7 +682,7 @@ }, "allOf": [ { - "$ref": "#/definitions/PirResource" + "$ref": "#/definitions/PirSharedGalleryResource" } ], "description": "Specifies information about the gallery image version that you want to create or update." @@ -1013,14 +778,6 @@ "type": "string", "description": "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call." }, - "ResourceGroupNameParameter": { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "x-ms-parameter-location": "method", - "description": "The name of the resource group." - }, "LocationNameParamter": { "name": "location", "in": "path", From 0f7b05fd081543806ae0c691bb0b2aa6abc0afb6 Mon Sep 17 00:00:00 2001 From: Kang Sun Date: Thu, 3 Sep 2020 22:40:18 -0700 Subject: [PATCH 26/47] fix typo --- .../Microsoft.Compute/preview/2020-09-30/sharedGallery.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/sharedGallery.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/sharedGallery.json index 7e46a0de5092..16762ff9384b 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/sharedGallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/sharedGallery.json @@ -428,10 +428,10 @@ "properties": { "uniqueId": { "type": "string", - "description": "The unqie id of this shared gallery." + "description": "The unique id of this shared gallery." } }, - "description": "Indentifier information of shared gallery." + "description": "The identifier information of shared gallery." }, "SharedGalleryList": { "description": "The List Shared Galleries operation response.", From 052e0d43e7bd52ab63a62e2efb1abee3c79d2c41 Mon Sep 17 00:00:00 2001 From: Kang Sun Date: Thu, 3 Sep 2020 23:37:30 -0700 Subject: [PATCH 27/47] update, remove x-ms-azure-resource for shared gallery --- .../preview/2020-09-30/sharedGallery.json | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/sharedGallery.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/sharedGallery.json index 16762ff9384b..c3d8a76c77d1 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/sharedGallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/sharedGallery.json @@ -387,11 +387,6 @@ "PirResource": { "description": "The Resource model definition.", "properties": { - "id": { - "readOnly": true, - "type": "string", - "description": "Resource Id" - }, "name": { "readOnly": true, "type": "string", @@ -401,14 +396,8 @@ "readOnly": true, "type": "string", "description": "Resource location" - }, - "type": { - "readOnly": true, - "type": "string", - "description": "Resource type" } - }, - "x-ms-azure-resource": true + } }, "PirSharedGalleryResource": { "properties": { From 3b598b752f2b38310bc54c8c735d038ec7dcce9a Mon Sep 17 00:00:00 2001 From: Kang Sun Date: Thu, 8 Oct 2020 14:09:49 -0700 Subject: [PATCH 28/47] change name of Permissions to avoid SDK code build error --- .../Microsoft.Compute/preview/2020-09-30/gallery.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/gallery.json b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/gallery.json index b5e64bcf9dde..dde1fc496454 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/gallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/preview/2020-09-30/gallery.json @@ -191,7 +191,7 @@ "Permissions" ], "x-ms-enum": { - "name": "Permissions", + "name": "SelectPermissions", "modelAsString": true } } From 5db8c6ac90fe9fda66b093f5bebcfc3b1490f421 Mon Sep 17 00:00:00 2001 From: Kang Sun Date: Fri, 8 Jan 2021 18:14:22 -0800 Subject: [PATCH 29/47] update --- specification/compute/resource-manager/readme.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/specification/compute/resource-manager/readme.md b/specification/compute/resource-manager/readme.md index 50d1157cac0e..99963307965a 100644 --- a/specification/compute/resource-manager/readme.md +++ b/specification/compute/resource-manager/readme.md @@ -219,8 +219,7 @@ input-file: - Microsoft.Compute/stable/2020-06-01/runCommands.json - Microsoft.Compute/stable/2019-04-01/skus.json - Microsoft.Compute/stable/2020-06-30/disk.json -- Microsoft.Compute/preview/2020-09-30/gallery.json -- Microsoft.Compute/preview/2020-09-30/sharedGallery.json +- Microsoft.Compute/stable/2019-12-01/gallery.json - Microsoft.ContainerService/stable/2017-01-31/containerService.json - Microsoft.Compute/preview/2020-10-01-preview/cloudService.json ``` @@ -237,7 +236,7 @@ input-file: ### Tag: package-2020-09-30 These settings apply only when `--tag=package-2020-09-30` is specified on the command line. -``` yaml $(tag) == 'package-2020-06-30' +``` yaml $(tag) == 'package-2020-09-30' input-file: - Microsoft.Compute/stable/2020-06-01/compute.json - Microsoft.Compute/stable/2020-06-01/runCommands.json @@ -248,13 +247,14 @@ input-file: - Microsoft.ContainerService/stable/2017-01-31/containerService.json ``` -### Tag: package-2020-06-30-only +### Tag: package-2020-09-30-only -These settings apply only when `--tag=package-2020-06-30-only` is specified on the command line. +These settings apply only when `--tag=package-2020-09-30-only` is specified on the command line. -``` yaml $(tag) == 'package-2020-06-30-only' +``` yaml $(tag) == 'package-2020-09-30-only' input-file: -- Microsoft.Compute/stable/2020-06-30/disk.json +- Microsoft.Compute/preview/2020-09-30/gallery.json +- Microsoft.Compute/preview/2020-09-30/sharedGallery.json ``` ### Tag: package-2020-06-30 @@ -808,4 +808,4 @@ input-file: ## AzureResourceSchema -See configuration in [readme.azureresourceschema.md](./readme.azureresourceschema.md) +See configuration in [readme.azureresourceschema.md](./readme.azureresourceschema.md) \ No newline at end of file From 0dae5c6ebbc5037e25d0fb3c754345d3e5f48e6d Mon Sep 17 00:00:00 2001 From: Kang Sun Date: Fri, 8 Jan 2021 18:15:18 -0800 Subject: [PATCH 30/47] add new line --- specification/compute/resource-manager/readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/compute/resource-manager/readme.md b/specification/compute/resource-manager/readme.md index 99963307965a..c7004202a954 100644 --- a/specification/compute/resource-manager/readme.md +++ b/specification/compute/resource-manager/readme.md @@ -808,4 +808,4 @@ input-file: ## AzureResourceSchema -See configuration in [readme.azureresourceschema.md](./readme.azureresourceschema.md) \ No newline at end of file +See configuration in [readme.azureresourceschema.md](./readme.azureresourceschema.md) From 096e67d9fb7e0c0f963aef7159e3a3bded7e0854 Mon Sep 17 00:00:00 2001 From: Kang Sun Date: Mon, 19 Apr 2021 20:49:20 -0700 Subject: [PATCH 31/47] correct reset --- .../Microsoft.Compute/stable/2020-09-30/gallery.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/gallery.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/gallery.json index d1cfed5ba1c3..a7f62fe83b20 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/gallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/gallery.json @@ -2828,7 +2828,7 @@ "enum": [ "Add", "Remove", - "Reset" + "ResetToPrivate" ], "x-ms-enum": { "name": "SharingUpdateOperationTypes", From 48e315ccdd2f6fa4e11eec2b7709530b7cbf1041 Mon Sep 17 00:00:00 2001 From: Kang Sun Date: Fri, 23 Jul 2021 14:17:46 -0700 Subject: [PATCH 32/47] update --- .../Microsoft.Compute/stable/2020-09-30/gallery.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/gallery.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/gallery.json index a7f62fe83b20..d1cfed5ba1c3 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/gallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2020-09-30/gallery.json @@ -2828,7 +2828,7 @@ "enum": [ "Add", "Remove", - "ResetToPrivate" + "Reset" ], "x-ms-enum": { "name": "SharingUpdateOperationTypes", From dc5918bc268d701269145a11ffad24cab65431a1 Mon Sep 17 00:00:00 2001 From: Kang Sun Date: Tue, 14 Sep 2021 17:30:29 -0700 Subject: [PATCH 33/47] community gallery --- .../stable/2021-07-01/communityGallery.json | 540 ++++++++++++++++++ .../GetACommunityGallery.json | 19 + .../GetACommunityGalleryImage.json | 30 + .../GetACommunityGalleryImageVersion.json | 25 + .../compute/resource-manager/readme.md | 1 + 5 files changed, 615 insertions(+) create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/communityGallery.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/examples/communityGallery/GetACommunityGallery.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/examples/communityGallery/GetACommunityGalleryImage.json create mode 100644 specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/examples/communityGallery/GetACommunityGalleryImageVersion.json diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/communityGallery.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/communityGallery.json new file mode 100644 index 000000000000..f44c34e0e29f --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/communityGallery.json @@ -0,0 +1,540 @@ +{ + "swagger": "2.0", + "info": { + "title": "CommunityGalleryServiceClient", + "description": "Community Gallery Service Client.", + "version": "2021-07-01" + }, + "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": { + "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/communityGalleries/{publicGalleryName}": { + "get": { + "tags": [ + "CommunityGalleries" + ], + "operationId": "CommunityGalleries_Get", + "description": "Get a community gallery by gallery public name.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/LocationNameParameter" + }, + { + "name": "publicGalleryName", + "in": "path", + "required": true, + "type": "string", + "description": "The public name of the Community Gallery." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/CommunityGallery" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Get a gallery.": { + "$ref": "./examples/communityGallery/GetACommunityGallery.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/communityGalleries/{publicGalleryName}/images/{galleryImageName}": { + "get": { + "tags": [ + "CommunityGalleryImages" + ], + "operationId": "CommunityGalleryImages_Get", + "description": "Get a community gallery image.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/LocationNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "publicGalleryName", + "in": "path", + "required": true, + "type": "string", + "description": "The public name of the Community Gallery." + }, + { + "name": "galleryImageName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Community Gallery Image Definition." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/CommunityGalleryImage" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Get a gallery.": { + "$ref": "./examples/communityGallery/GetACommunityGalleryImage.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/communityGalleries/{publicGalleryName}/images/{galleryImageName}/versions/{galleryImageVersionName}": { + "get": { + "tags": [ + "CommunityGalleryImageVersions" + ], + "operationId": "CommunityGalleryImageVersions_Get", + "description": "Get a community gallery image version.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/LocationNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "name": "publicGalleryName", + "in": "path", + "required": true, + "type": "string", + "description": "The public name of the Community Gallery." + }, + { + "name": "galleryImageName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Community Gallery Image Definition." + }, + { + "name": "galleryImageVersionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the gallery image version to be created. Needs to follow semantic version name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. Format: .." + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/CommunityGalleryImageVersion" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + }, + "x-ms-examples": { + "Get a gallery.": { + "$ref": "./examples/communityGallery/GetACommunityGalleryImageVersion.json" + } + } + } + } + }, + "definitions": { + "PirResource": { + "description": "The Resource model definition.", + "properties": { + "name": { + "readOnly": true, + "type": "string", + "description": "Resource name" + }, + "location": { + "readOnly": true, + "type": "string", + "description": "Resource location" + } + } + }, + "PirCommunityGalleryResource": { + "properties": { + "identifier": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/CommunityGalleryIdentifier" + } + }, + "allOf": [ + { + "$ref": "#/definitions/PirResource" + } + ], + "description": "Base information about the community gallery resource in pir." + }, + "CommunityGalleryIdentifier": { + "properties": { + "uniqueId": { + "type": "string", + "description": "The unique id of this community gallery." + } + }, + "description": "The identifier information of community gallery." + }, + "CommunityGallery": { + "properties": {}, + "allOf": [ + { + "$ref": "#/definitions/PirCommunityGalleryResource" + } + ], + "description": "Specifies information about the Community Gallery that you want to create or update." + }, + "CommunityGalleryImage": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/CommunityGalleryImageProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/PirCommunityGalleryResource" + } + ], + "description": "Specifies information about the gallery image definition that you want to create or update." + }, + "CommunityGalleryImageProperties": { + "properties": { + "osType": { + "type": "string", + "description": "This property allows you to specify the type of the OS that is included in the disk when creating a VM from a managed image.

Possible values are:

**Windows**

**Linux**", + "enum": [ + "Windows", + "Linux" + ], + "x-ms-enum": { + "name": "OperatingSystemTypes", + "modelAsString": false + } + }, + "osState": { + "type": "string", + "description": "This property allows the user to specify whether the virtual machines created under this image are 'Generalized' or 'Specialized'.", + "enum": [ + "Generalized", + "Specialized" + ], + "x-ms-enum": { + "name": "OperatingSystemStateTypes", + "modelAsString": false + } + }, + "endOfLifeDate": { + "type": "string", + "format": "date-time", + "description": "The end of life date of the gallery image definition. This property can be used for decommissioning purposes. This property is updatable." + }, + "identifier": { + "$ref": "#/definitions/GalleryImageIdentifier" + }, + "recommended": { + "$ref": "#/definitions/RecommendedMachineConfiguration" + }, + "disallowed": { + "$ref": "#/definitions/Disallowed" + }, + "hyperVGeneration": { + "type": "string", + "description": "The hypervisor generation of the Virtual Machine. Applicable to OS disks only.", + "enum": [ + "V1", + "V2" + ], + "x-ms-enum": { + "name": "HyperVGeneration", + "modelAsString": true + } + }, + "features": { + "type": "array", + "items": { + "$ref": "#/definitions/GalleryImageFeature" + }, + "description": "A list of gallery image features." + }, + "purchasePlan": { + "$ref": "#/definitions/ImagePurchasePlan" + } + }, + "required": [ + "osType", + "osState", + "identifier" + ], + "description": "Describes the properties of a gallery image definition." + }, + "GalleryImageFeature": { + "properties": { + "name": { + "type": "string", + "description": "The name of the gallery image feature." + }, + "value": { + "type": "string", + "description": "The value of the gallery image feature." + } + }, + "description": "A feature for gallery image." + }, + "GalleryImageIdentifier": { + "properties": { + "publisher": { + "type": "string", + "description": "The name of the gallery image definition publisher." + }, + "offer": { + "type": "string", + "description": "The name of the gallery image definition offer." + }, + "sku": { + "type": "string", + "description": "The name of the gallery image definition SKU." + } + }, + "required": [ + "publisher", + "offer", + "sku" + ], + "description": "This is the gallery image definition identifier." + }, + "RecommendedMachineConfiguration": { + "properties": { + "vCPUs": { + "$ref": "#/definitions/ResourceRange" + }, + "memory": { + "$ref": "#/definitions/ResourceRange" + } + }, + "description": "The properties describe the recommended machine configuration for this Image Definition. These properties are updatable." + }, + "ResourceRange": { + "properties": { + "min": { + "type": "integer", + "format": "int32", + "description": "The minimum number of the resource." + }, + "max": { + "type": "integer", + "format": "int32", + "description": "The maximum number of the resource." + } + }, + "description": "Describes the resource range." + }, + "Disallowed": { + "properties": { + "diskTypes": { + "type": "array", + "items": { + "type": "string" + }, + "description": "A list of disk types." + } + }, + "description": "Describes the disallowed disk types." + }, + "ImagePurchasePlan": { + "properties": { + "name": { + "type": "string", + "description": "The plan ID." + }, + "publisher": { + "type": "string", + "description": "The publisher ID." + }, + "product": { + "type": "string", + "description": "The product ID." + } + }, + "description": "Describes the gallery image definition purchase plan. This is used by marketplace images." + }, + "CommunityGalleryImageVersion": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/CommunityGalleryImageVersionProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/PirCommunityGalleryResource" + } + ], + "description": "Specifies information about the gallery image version that you want to create or update." + }, + "CommunityGalleryImageVersionProperties": { + "properties": { + "publishedDate": { + "type": "string", + "format": "date-time", + "description": "The published date of the gallery image version Definition. This property can be used for decommissioning purposes. This property is updatable." + }, + "endOfLifeDate": { + "type": "string", + "format": "date-time", + "description": "The end of life date of the gallery image version Definition. This property can be used for decommissioning purposes. This property is updatable." + } + }, + "description": "Describes the properties of a gallery image version." + }, + "CloudError": { + "x-ms-external": true, + "properties": { + "error": { + "$ref": "#/definitions/ApiError" + } + }, + "description": "An error response from the Compute service." + }, + "ApiError": { + "properties": { + "details": { + "type": "array", + "items": { + "$ref": "#/definitions/ApiErrorBase" + }, + "description": "The Api error details" + }, + "innererror": { + "$ref": "#/definitions/InnerError", + "description": "The Api inner error" + }, + "code": { + "type": "string", + "description": "The error code." + }, + "target": { + "type": "string", + "description": "The target of the particular error." + }, + "message": { + "type": "string", + "description": "The error message." + } + }, + "description": "Api error." + }, + "ApiErrorBase": { + "properties": { + "code": { + "type": "string", + "description": "The error code." + }, + "target": { + "type": "string", + "description": "The target of the particular error." + }, + "message": { + "type": "string", + "description": "The error message." + } + }, + "description": "Api error base." + }, + "InnerError": { + "properties": { + "exceptiontype": { + "type": "string", + "description": "The exception type." + }, + "errordetail": { + "type": "string", + "description": "The internal error message or exception dump." + } + }, + "description": "Inner error details." + } + }, + "parameters": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call." + }, + "LocationNameParameter": { + "name": "location", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "description": "Resource location." + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "Client Api Version." + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/examples/communityGallery/GetACommunityGallery.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/examples/communityGallery/GetACommunityGallery.json new file mode 100644 index 000000000000..14dcb71ce404 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/examples/communityGallery/GetACommunityGallery.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "location": "myLocation", + "api-version": "2021-07-01", + "publicGalleryName": "publicGalleryName" + }, + "responses": { + "200": { + "body": { + "location": "myLocation", + "name": "myGalleryName", + "identifier": { + "uniqueId": "/CommunityGalleries/publicGalleryName" + } + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/examples/communityGallery/GetACommunityGalleryImage.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/examples/communityGallery/GetACommunityGalleryImage.json new file mode 100644 index 000000000000..46da40cde891 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/examples/communityGallery/GetACommunityGalleryImage.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "location": "myLocation", + "api-version": "2021-07-01", + "publicGalleryName": "publicGalleryName", + "galleryImageName": "myGalleryImageName" + }, + "responses": { + "200": { + "body": { + "properties": { + "osType": "Windows", + "osState": "Generalized", + "hyperVGeneration": "V1", + "identifier": { + "publisher": "myPublisherName", + "offer": "myOfferName", + "sku": "mySkuName" + } + }, + "location": "myLocation", + "name": "myGalleryImageName", + "identifier": { + "uniqueId": "/CommunityGalleries/publicGalleryName/Images/myGalleryImageName" + } + } + } + } +} diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/examples/communityGallery/GetACommunityGalleryImageVersion.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/examples/communityGallery/GetACommunityGalleryImageVersion.json new file mode 100644 index 000000000000..c63f06386751 --- /dev/null +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/examples/communityGallery/GetACommunityGalleryImageVersion.json @@ -0,0 +1,25 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "location": "myLocation", + "api-version": "2021-07-01", + "publicGalleryName": "publicGalleryName", + "galleryImageName": "myGalleryImageName", + "galleryImageVersionName": "myGalleryImageVersionName" + }, + "responses": { + "200": { + "body": { + "properties": { + "publishedDate": "2018-03-20T09:12:28Z", + "endOfLifeDate": "2022-03-20T09:12:28Z" + }, + "location": "myLocation", + "name": "myGalleryImageVersionName", + "identifier": { + "uniqueId": "/CommunityGalleries/publicGalleryName/Images/myGalleryImageName/Versions/myGalleryImageVersionName" + } + } + } + } +} diff --git a/specification/compute/resource-manager/readme.md b/specification/compute/resource-manager/readme.md index fae2578a2f4b..47131acc3719 100644 --- a/specification/compute/resource-manager/readme.md +++ b/specification/compute/resource-manager/readme.md @@ -242,6 +242,7 @@ input-file: - Microsoft.Compute/stable/2021-04-01/disk.json - Microsoft.Compute/stable/2021-07-01/gallery.json - Microsoft.Compute/stable/2021-07-01/sharedGallery.json +- Microsoft.Compute/stable/2021-07-01/communityGallery.json - Microsoft.Compute/stable/2021-03-01/cloudService.json ``` From bc74a4b94a59860ff65c795a05e3432f0080e200 Mon Sep 17 00:00:00 2001 From: Kang Sun Date: Tue, 14 Sep 2021 18:30:27 -0700 Subject: [PATCH 34/47] save --- .../examples/communityGallery/GetACommunityGallery.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/examples/communityGallery/GetACommunityGallery.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/examples/communityGallery/GetACommunityGallery.json index 14dcb71ce404..2a42b5673a27 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/examples/communityGallery/GetACommunityGallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/examples/communityGallery/GetACommunityGallery.json @@ -9,7 +9,7 @@ "200": { "body": { "location": "myLocation", - "name": "myGalleryName", + "name": "publicGalleryName", "identifier": { "uniqueId": "/CommunityGalleries/publicGalleryName" } From 7a60adbfbdeb9873aec448c31efad16a195f96da Mon Sep 17 00:00:00 2001 From: Kang Sun Date: Tue, 14 Sep 2021 20:48:38 -0700 Subject: [PATCH 35/47] fix lint error --- .../stable/2021-07-01/communityGallery.json | 81 ++++++++++++------- 1 file changed, 51 insertions(+), 30 deletions(-) diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/communityGallery.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/communityGallery.json index f44c34e0e29f..b007e50ece15 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/communityGallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/communityGallery.json @@ -49,11 +49,10 @@ "$ref": "#/parameters/LocationNameParameter" }, { - "name": "publicGalleryName", - "in": "path", - "required": true, - "type": "string", - "description": "The public name of the Community Gallery." + "$ref": "#/parameters/PublicGalleryNameParameter" + }, + { + "$ref": "#/parameters/GalleryImageNameParameter" }, { "$ref": "#/parameters/ApiVersionParameter" @@ -98,18 +97,10 @@ "$ref": "#/parameters/ApiVersionParameter" }, { - "name": "publicGalleryName", - "in": "path", - "required": true, - "type": "string", - "description": "The public name of the Community Gallery." + "$ref": "#/parameters/PublicGalleryNameParameter" }, { - "name": "galleryImageName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the Community Gallery Image Definition." + "$ref": "#/parameters/GalleryImageNameParameter" } ], "responses": { @@ -151,25 +142,13 @@ "$ref": "#/parameters/ApiVersionParameter" }, { - "name": "publicGalleryName", - "in": "path", - "required": true, - "type": "string", - "description": "The public name of the Community Gallery." + "$ref": "#/parameters/PublicGalleryNameParameter" }, { - "name": "galleryImageName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the Community Gallery Image Definition." + "$ref": "#/parameters/GalleryImageNameParameter" }, { - "name": "galleryImageVersionName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the gallery image version to be created. Needs to follow semantic version name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. Format: .." + "$ref": "#/parameters/GalleryImageVersionNameParameter" } ], "responses": { @@ -196,6 +175,7 @@ }, "definitions": { "PirResource": { + "type": "object", "description": "The Resource model definition.", "properties": { "name": { @@ -211,6 +191,7 @@ } }, "PirCommunityGalleryResource": { + "type": "object", "properties": { "identifier": { "x-ms-client-flatten": true, @@ -225,6 +206,7 @@ "description": "Base information about the community gallery resource in pir." }, "CommunityGalleryIdentifier": { + "type": "object", "properties": { "uniqueId": { "type": "string", @@ -234,6 +216,7 @@ "description": "The identifier information of community gallery." }, "CommunityGallery": { + "type": "object", "properties": {}, "allOf": [ { @@ -243,6 +226,7 @@ "description": "Specifies information about the Community Gallery that you want to create or update." }, "CommunityGalleryImage": { + "type": "object", "properties": { "properties": { "x-ms-client-flatten": true, @@ -257,6 +241,7 @@ "description": "Specifies information about the gallery image definition that you want to create or update." }, "CommunityGalleryImageProperties": { + "type": "object", "properties": { "osType": { "type": "string", @@ -327,6 +312,7 @@ "description": "Describes the properties of a gallery image definition." }, "GalleryImageFeature": { + "type": "object", "properties": { "name": { "type": "string", @@ -340,6 +326,7 @@ "description": "A feature for gallery image." }, "GalleryImageIdentifier": { + "type": "object", "properties": { "publisher": { "type": "string", @@ -362,6 +349,7 @@ "description": "This is the gallery image definition identifier." }, "RecommendedMachineConfiguration": { + "type": "object", "properties": { "vCPUs": { "$ref": "#/definitions/ResourceRange" @@ -373,6 +361,7 @@ "description": "The properties describe the recommended machine configuration for this Image Definition. These properties are updatable." }, "ResourceRange": { + "type": "object", "properties": { "min": { "type": "integer", @@ -388,6 +377,7 @@ "description": "Describes the resource range." }, "Disallowed": { + "type": "object", "properties": { "diskTypes": { "type": "array", @@ -400,6 +390,7 @@ "description": "Describes the disallowed disk types." }, "ImagePurchasePlan": { + "type": "object", "properties": { "name": { "type": "string", @@ -417,6 +408,7 @@ "description": "Describes the gallery image definition purchase plan. This is used by marketplace images." }, "CommunityGalleryImageVersion": { + "type": "object", "properties": { "properties": { "x-ms-client-flatten": true, @@ -431,6 +423,7 @@ "description": "Specifies information about the gallery image version that you want to create or update." }, "CommunityGalleryImageVersionProperties": { + "type": "object", "properties": { "publishedDate": { "type": "string", @@ -446,6 +439,7 @@ "description": "Describes the properties of a gallery image version." }, "CloudError": { + "type": "object", "x-ms-external": true, "properties": { "error": { @@ -455,6 +449,7 @@ "description": "An error response from the Compute service." }, "ApiError": { + "type": "object", "properties": { "details": { "type": "array", @@ -483,6 +478,7 @@ "description": "Api error." }, "ApiErrorBase": { + "type": "object", "properties": { "code": { "type": "string", @@ -500,6 +496,7 @@ "description": "Api error base." }, "InnerError": { + "type": "object", "properties": { "exceptiontype": { "type": "string", @@ -529,6 +526,30 @@ "x-ms-parameter-location": "method", "description": "Resource location." }, + "PublicGalleryNameParameter": { + "name": "publicGalleryName", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "description": "The public name of the Community Gallery." + }, + "GalleryImageNameParameter": { + "name": "galleryImageName", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "description": "The name of the Community Gallery Image Definition." + }, + "GalleryImageVersionNameParameter": { + "name": "galleryImageVersionName", + "in": "path", + "required": true, + "type": "string", + "x-ms-parameter-location": "method", + "description": "The name of the gallery image version to be created. Needs to follow semantic version name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. Format: .." + }, "ApiVersionParameter": { "name": "api-version", "in": "query", From 61c875bc54d1cc6c49d9afec2f3e27161d73fab9 Mon Sep 17 00:00:00 2001 From: Kang Sun Date: Wed, 15 Sep 2021 10:44:31 -0700 Subject: [PATCH 36/47] fix nit --- .../Microsoft.Compute/stable/2021-07-01/communityGallery.json | 3 --- 1 file changed, 3 deletions(-) diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/communityGallery.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/communityGallery.json index b007e50ece15..71fdf82b662e 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/communityGallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/communityGallery.json @@ -51,9 +51,6 @@ { "$ref": "#/parameters/PublicGalleryNameParameter" }, - { - "$ref": "#/parameters/GalleryImageNameParameter" - }, { "$ref": "#/parameters/ApiVersionParameter" } From 94799b141e8f740b92dbf54c93e362a02bbb9b4a Mon Sep 17 00:00:00 2001 From: Kang Sun Date: Fri, 17 Sep 2021 12:48:04 -0700 Subject: [PATCH 37/47] update --- .../examples/communityGallery/GetACommunityGallery.json | 1 + .../examples/communityGallery/GetACommunityGalleryImage.json | 1 + .../communityGallery/GetACommunityGalleryImageVersion.json | 1 + 3 files changed, 3 insertions(+) diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/examples/communityGallery/GetACommunityGallery.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/examples/communityGallery/GetACommunityGallery.json index 2a42b5673a27..c0a9ec07342e 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/examples/communityGallery/GetACommunityGallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/examples/communityGallery/GetACommunityGallery.json @@ -10,6 +10,7 @@ "body": { "location": "myLocation", "name": "publicGalleryName", + "type": "Microsoft.Compute/CommunityGallery", "identifier": { "uniqueId": "/CommunityGalleries/publicGalleryName" } diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/examples/communityGallery/GetACommunityGalleryImage.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/examples/communityGallery/GetACommunityGalleryImage.json index 46da40cde891..0999ff06d872 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/examples/communityGallery/GetACommunityGalleryImage.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/examples/communityGallery/GetACommunityGalleryImage.json @@ -21,6 +21,7 @@ }, "location": "myLocation", "name": "myGalleryImageName", + "type": "Microsoft.Compute/CommunityGalleryImage", "identifier": { "uniqueId": "/CommunityGalleries/publicGalleryName/Images/myGalleryImageName" } diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/examples/communityGallery/GetACommunityGalleryImageVersion.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/examples/communityGallery/GetACommunityGalleryImageVersion.json index c63f06386751..57943e2c57e6 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/examples/communityGallery/GetACommunityGalleryImageVersion.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/examples/communityGallery/GetACommunityGalleryImageVersion.json @@ -16,6 +16,7 @@ }, "location": "myLocation", "name": "myGalleryImageVersionName", + "type": "Microsoft.Compute/CommunityGalleryImageVersion", "identifier": { "uniqueId": "/CommunityGalleries/publicGalleryName/Images/myGalleryImageName/Versions/myGalleryImageVersionName" } From d5db76084cb91071170030feb50ed96c43d9528a Mon Sep 17 00:00:00 2001 From: Kang Sun Date: Fri, 17 Sep 2021 15:19:42 -0700 Subject: [PATCH 38/47] update --- .../stable/2021-07-01/communityGallery.json | 5 +++++ .../examples/communityGallery/GetACommunityGallery.json | 2 +- .../examples/communityGallery/GetACommunityGalleryImage.json | 2 +- .../communityGallery/GetACommunityGalleryImageVersion.json | 2 +- 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/communityGallery.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/communityGallery.json index 71fdf82b662e..885187bde7c5 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/communityGallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/communityGallery.json @@ -184,6 +184,11 @@ "readOnly": true, "type": "string", "description": "Resource location" + }, + "type":{ + "readOnly": true, + "type": "string", + "description": "Resource type" } } }, diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/examples/communityGallery/GetACommunityGallery.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/examples/communityGallery/GetACommunityGallery.json index c0a9ec07342e..814f96cfbaf6 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/examples/communityGallery/GetACommunityGallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/examples/communityGallery/GetACommunityGallery.json @@ -10,7 +10,7 @@ "body": { "location": "myLocation", "name": "publicGalleryName", - "type": "Microsoft.Compute/CommunityGallery", + "type": "Microsoft.Compute/Locations/CommunityGallery", "identifier": { "uniqueId": "/CommunityGalleries/publicGalleryName" } diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/examples/communityGallery/GetACommunityGalleryImage.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/examples/communityGallery/GetACommunityGalleryImage.json index 0999ff06d872..d7ff0d54839a 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/examples/communityGallery/GetACommunityGalleryImage.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/examples/communityGallery/GetACommunityGalleryImage.json @@ -21,7 +21,7 @@ }, "location": "myLocation", "name": "myGalleryImageName", - "type": "Microsoft.Compute/CommunityGalleryImage", + "type": "Microsoft.Compute/Locations/CommunityGalleryImage", "identifier": { "uniqueId": "/CommunityGalleries/publicGalleryName/Images/myGalleryImageName" } diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/examples/communityGallery/GetACommunityGalleryImageVersion.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/examples/communityGallery/GetACommunityGalleryImageVersion.json index 57943e2c57e6..064bb8e3c6b2 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/examples/communityGallery/GetACommunityGalleryImageVersion.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/examples/communityGallery/GetACommunityGalleryImageVersion.json @@ -16,7 +16,7 @@ }, "location": "myLocation", "name": "myGalleryImageVersionName", - "type": "Microsoft.Compute/CommunityGalleryImageVersion", + "type": "Microsoft.Compute/Locations/CommunityGalleryImageVersion", "identifier": { "uniqueId": "/CommunityGalleries/publicGalleryName/Images/myGalleryImageName/Versions/myGalleryImageVersionName" } From 1fce2da526b443afe71b601a62598f191dc529cc Mon Sep 17 00:00:00 2001 From: Kang Sun Date: Mon, 20 Sep 2021 11:05:10 -0700 Subject: [PATCH 39/47] nit --- .../Microsoft.Compute/stable/2021-07-01/communityGallery.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/communityGallery.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/communityGallery.json index 885187bde7c5..a54cfdb896c7 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/communityGallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/communityGallery.json @@ -185,7 +185,7 @@ "type": "string", "description": "Resource location" }, - "type":{ + "type": { "readOnly": true, "type": "string", "description": "Resource type" From fc1fe7bf8290af01046f051fd2c29cfc2c207bc0 Mon Sep 17 00:00:00 2001 From: Kang Sun Date: Thu, 23 Sep 2021 11:00:57 -0700 Subject: [PATCH 40/47] update --- .../Microsoft.Compute/stable/2021-07-01/communityGallery.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/communityGallery.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/communityGallery.json index a54cfdb896c7..dab0356a3fb5 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/communityGallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/communityGallery.json @@ -550,7 +550,7 @@ "required": true, "type": "string", "x-ms-parameter-location": "method", - "description": "The name of the gallery image version to be created. Needs to follow semantic version name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. Format: .." + "description": "The name of the Community Gallery Image Version. Needs to follow semantic version name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. Format: .." }, "ApiVersionParameter": { "name": "api-version", From 72556cffcc5a100921a1443f6b5cb4063d406f9a Mon Sep 17 00:00:00 2001 From: Kang Sun Date: Thu, 23 Sep 2021 15:15:06 -0700 Subject: [PATCH 41/47] update --- .../stable/2021-07-01/communityGallery.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/communityGallery.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/communityGallery.json index dab0356a3fb5..8bc2ea8af2ac 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/communityGallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/communityGallery.json @@ -534,7 +534,7 @@ "required": true, "type": "string", "x-ms-parameter-location": "method", - "description": "The public name of the Community Gallery." + "description": "The public name of the community gallery." }, "GalleryImageNameParameter": { "name": "galleryImageName", @@ -542,7 +542,7 @@ "required": true, "type": "string", "x-ms-parameter-location": "method", - "description": "The name of the Community Gallery Image Definition." + "description": "The name of the community gallery image definition." }, "GalleryImageVersionNameParameter": { "name": "galleryImageVersionName", @@ -550,7 +550,7 @@ "required": true, "type": "string", "x-ms-parameter-location": "method", - "description": "The name of the Community Gallery Image Version. Needs to follow semantic version name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. Format: .." + "description": "The name of the community gallery image version. Needs to follow semantic version name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. Format: .." }, "ApiVersionParameter": { "name": "api-version", From 18c4f11e225405a91921223ebadf9efd6b7ca9cf Mon Sep 17 00:00:00 2001 From: Kang Sun Date: Thu, 23 Sep 2021 23:18:17 -0700 Subject: [PATCH 42/47] nit --- .../stable/2021-07-01/communityGallery.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/communityGallery.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/communityGallery.json index 8bc2ea8af2ac..61404ba99ba1 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/communityGallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/communityGallery.json @@ -456,12 +456,12 @@ "details": { "type": "array", "items": { - "$ref": "#/definitions/ApiErrorBase" + "$ref": "#/definitions/CommunityGalleryApiErrorBase" }, "description": "The Api error details" }, "innererror": { - "$ref": "#/definitions/InnerError", + "$ref": "#/definitions/CommunityGalleryInnerError", "description": "The Api inner error" }, "code": { @@ -479,7 +479,7 @@ }, "description": "Api error." }, - "ApiErrorBase": { + "CommunityGalleryApiErrorBase": { "type": "object", "properties": { "code": { @@ -497,7 +497,7 @@ }, "description": "Api error base." }, - "InnerError": { + "CommunityGalleryInnerError": { "type": "object", "properties": { "exceptiontype": { From 41088ac99a036f64d574664c86b4d67e64466655 Mon Sep 17 00:00:00 2001 From: Kang Sun Date: Fri, 24 Sep 2021 17:28:41 -0700 Subject: [PATCH 43/47] update --- .../stable/2021-07-01/communityGallery.json | 71 ------------------- 1 file changed, 71 deletions(-) diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/communityGallery.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/communityGallery.json index 61404ba99ba1..11ccf20b16dc 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/communityGallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/communityGallery.json @@ -439,77 +439,6 @@ } }, "description": "Describes the properties of a gallery image version." - }, - "CloudError": { - "type": "object", - "x-ms-external": true, - "properties": { - "error": { - "$ref": "#/definitions/ApiError" - } - }, - "description": "An error response from the Compute service." - }, - "ApiError": { - "type": "object", - "properties": { - "details": { - "type": "array", - "items": { - "$ref": "#/definitions/CommunityGalleryApiErrorBase" - }, - "description": "The Api error details" - }, - "innererror": { - "$ref": "#/definitions/CommunityGalleryInnerError", - "description": "The Api inner error" - }, - "code": { - "type": "string", - "description": "The error code." - }, - "target": { - "type": "string", - "description": "The target of the particular error." - }, - "message": { - "type": "string", - "description": "The error message." - } - }, - "description": "Api error." - }, - "CommunityGalleryApiErrorBase": { - "type": "object", - "properties": { - "code": { - "type": "string", - "description": "The error code." - }, - "target": { - "type": "string", - "description": "The target of the particular error." - }, - "message": { - "type": "string", - "description": "The error message." - } - }, - "description": "Api error base." - }, - "CommunityGalleryInnerError": { - "type": "object", - "properties": { - "exceptiontype": { - "type": "string", - "description": "The exception type." - }, - "errordetail": { - "type": "string", - "description": "The internal error message or exception dump." - } - }, - "description": "Inner error details." } }, "parameters": { From 2581acda01faad0815945f56ab733f35986b348f Mon Sep 17 00:00:00 2001 From: Kang Sun Date: Fri, 24 Sep 2021 18:22:49 -0700 Subject: [PATCH 44/47] udpate --- .../stable/2021-07-01/communityGallery.json | 77 ++++++++++++++++++- 1 file changed, 74 insertions(+), 3 deletions(-) diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/communityGallery.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/communityGallery.json index 11ccf20b16dc..34c3f721f835 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/communityGallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/communityGallery.json @@ -65,7 +65,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "#/definitions/CommunityGalleryCloudError" } } }, @@ -110,7 +110,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "#/definitions/CommunityGalleryCloudError" } } }, @@ -158,7 +158,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CloudError" + "$ref": "#/definitions/CommunityGalleryCloudError" } } }, @@ -439,6 +439,77 @@ } }, "description": "Describes the properties of a gallery image version." + }, + "CommunityGalleryCloudError": { + "type": "object", + "x-ms-external": true, + "properties": { + "error": { + "$ref": "#/definitions/CommunityGalleryApiError" + } + }, + "description": "An error response from the Compute service." + }, + "CommunityGalleryApiError": { + "type": "object", + "properties": { + "details": { + "type": "array", + "items": { + "$ref": "#/definitions/CommunityGalleryApiErrorBase" + }, + "description": "The Api error details" + }, + "innererror": { + "$ref": "#/definitions/CommunityGalleryInnerError", + "description": "The Api inner error" + }, + "code": { + "type": "string", + "description": "The error code." + }, + "target": { + "type": "string", + "description": "The target of the particular error." + }, + "message": { + "type": "string", + "description": "The error message." + } + }, + "description": "Api error." + }, + "CommunityGalleryApiErrorBase": { + "type": "object", + "properties": { + "code": { + "type": "string", + "description": "The error code." + }, + "target": { + "type": "string", + "description": "The target of the particular error." + }, + "message": { + "type": "string", + "description": "The error message." + } + }, + "description": "Api error base." + }, + "CommunityGalleryInnerError": { + "type": "object", + "properties": { + "exceptiontype": { + "type": "string", + "description": "The exception type." + }, + "errordetail": { + "type": "string", + "description": "The internal error message or exception dump." + } + }, + "description": "Inner error details." } }, "parameters": { From 4a9728a48388a7c71d97809b0e0e07c98d85aa7c Mon Sep 17 00:00:00 2001 From: Kang Sun Date: Sun, 26 Sep 2021 15:21:26 -0700 Subject: [PATCH 45/47] update --- .../stable/2021-07-01/communityGallery.json | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/communityGallery.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/communityGallery.json index 34c3f721f835..8bc2ea8af2ac 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/communityGallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/communityGallery.json @@ -65,7 +65,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CommunityGalleryCloudError" + "$ref": "#/definitions/CloudError" } } }, @@ -110,7 +110,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CommunityGalleryCloudError" + "$ref": "#/definitions/CloudError" } } }, @@ -158,7 +158,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/CommunityGalleryCloudError" + "$ref": "#/definitions/CloudError" } } }, @@ -440,28 +440,28 @@ }, "description": "Describes the properties of a gallery image version." }, - "CommunityGalleryCloudError": { + "CloudError": { "type": "object", "x-ms-external": true, "properties": { "error": { - "$ref": "#/definitions/CommunityGalleryApiError" + "$ref": "#/definitions/ApiError" } }, "description": "An error response from the Compute service." }, - "CommunityGalleryApiError": { + "ApiError": { "type": "object", "properties": { "details": { "type": "array", "items": { - "$ref": "#/definitions/CommunityGalleryApiErrorBase" + "$ref": "#/definitions/ApiErrorBase" }, "description": "The Api error details" }, "innererror": { - "$ref": "#/definitions/CommunityGalleryInnerError", + "$ref": "#/definitions/InnerError", "description": "The Api inner error" }, "code": { @@ -479,7 +479,7 @@ }, "description": "Api error." }, - "CommunityGalleryApiErrorBase": { + "ApiErrorBase": { "type": "object", "properties": { "code": { @@ -497,7 +497,7 @@ }, "description": "Api error base." }, - "CommunityGalleryInnerError": { + "InnerError": { "type": "object", "properties": { "exceptiontype": { From 4aeac50f57bb2663f167a5fae052614431dfd8bb Mon Sep 17 00:00:00 2001 From: Kang Sun Date: Tue, 28 Sep 2021 17:43:18 -0700 Subject: [PATCH 46/47] update --- .../stable/2021-07-01/communityGallery.json | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/communityGallery.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/communityGallery.json index 8bc2ea8af2ac..7e6601e1d6ec 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/communityGallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/communityGallery.json @@ -172,7 +172,6 @@ }, "definitions": { "PirResource": { - "type": "object", "description": "The Resource model definition.", "properties": { "name": { @@ -193,7 +192,6 @@ } }, "PirCommunityGalleryResource": { - "type": "object", "properties": { "identifier": { "x-ms-client-flatten": true, @@ -208,7 +206,6 @@ "description": "Base information about the community gallery resource in pir." }, "CommunityGalleryIdentifier": { - "type": "object", "properties": { "uniqueId": { "type": "string", @@ -218,7 +215,6 @@ "description": "The identifier information of community gallery." }, "CommunityGallery": { - "type": "object", "properties": {}, "allOf": [ { @@ -228,7 +224,6 @@ "description": "Specifies information about the Community Gallery that you want to create or update." }, "CommunityGalleryImage": { - "type": "object", "properties": { "properties": { "x-ms-client-flatten": true, @@ -243,7 +238,6 @@ "description": "Specifies information about the gallery image definition that you want to create or update." }, "CommunityGalleryImageProperties": { - "type": "object", "properties": { "osType": { "type": "string", @@ -314,7 +308,6 @@ "description": "Describes the properties of a gallery image definition." }, "GalleryImageFeature": { - "type": "object", "properties": { "name": { "type": "string", @@ -328,7 +321,6 @@ "description": "A feature for gallery image." }, "GalleryImageIdentifier": { - "type": "object", "properties": { "publisher": { "type": "string", @@ -351,7 +343,6 @@ "description": "This is the gallery image definition identifier." }, "RecommendedMachineConfiguration": { - "type": "object", "properties": { "vCPUs": { "$ref": "#/definitions/ResourceRange" @@ -363,7 +354,6 @@ "description": "The properties describe the recommended machine configuration for this Image Definition. These properties are updatable." }, "ResourceRange": { - "type": "object", "properties": { "min": { "type": "integer", @@ -379,7 +369,6 @@ "description": "Describes the resource range." }, "Disallowed": { - "type": "object", "properties": { "diskTypes": { "type": "array", @@ -392,7 +381,6 @@ "description": "Describes the disallowed disk types." }, "ImagePurchasePlan": { - "type": "object", "properties": { "name": { "type": "string", @@ -410,7 +398,6 @@ "description": "Describes the gallery image definition purchase plan. This is used by marketplace images." }, "CommunityGalleryImageVersion": { - "type": "object", "properties": { "properties": { "x-ms-client-flatten": true, @@ -425,7 +412,6 @@ "description": "Specifies information about the gallery image version that you want to create or update." }, "CommunityGalleryImageVersionProperties": { - "type": "object", "properties": { "publishedDate": { "type": "string", @@ -441,7 +427,6 @@ "description": "Describes the properties of a gallery image version." }, "CloudError": { - "type": "object", "x-ms-external": true, "properties": { "error": { @@ -451,7 +436,6 @@ "description": "An error response from the Compute service." }, "ApiError": { - "type": "object", "properties": { "details": { "type": "array", @@ -480,7 +464,6 @@ "description": "Api error." }, "ApiErrorBase": { - "type": "object", "properties": { "code": { "type": "string", @@ -498,7 +481,6 @@ "description": "Api error base." }, "InnerError": { - "type": "object", "properties": { "exceptiontype": { "type": "string", From 45fb473782037f0f7d0771fd0df8fd11ad48f700 Mon Sep 17 00:00:00 2001 From: Kang Sun Date: Tue, 28 Sep 2021 21:04:14 -0700 Subject: [PATCH 47/47] update, remove PirResource definition --- .../stable/2021-07-01/communityGallery.json | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/communityGallery.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/communityGallery.json index 7e6601e1d6ec..711cf2ecd43e 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/communityGallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2021-07-01/communityGallery.json @@ -171,8 +171,7 @@ } }, "definitions": { - "PirResource": { - "description": "The Resource model definition.", + "PirCommunityGalleryResource": { "properties": { "name": { "readOnly": true, @@ -188,21 +187,12 @@ "readOnly": true, "type": "string", "description": "Resource type" - } - } - }, - "PirCommunityGalleryResource": { - "properties": { + }, "identifier": { "x-ms-client-flatten": true, "$ref": "#/definitions/CommunityGalleryIdentifier" } }, - "allOf": [ - { - "$ref": "#/definitions/PirResource" - } - ], "description": "Base information about the community gallery resource in pir." }, "CommunityGalleryIdentifier": {