From bb19a13db316a5815804bfe7cae6144e2d88920a Mon Sep 17 00:00:00 2001 From: vanbasten2323 Date: Fri, 31 Aug 2018 15:13:51 -0700 Subject: [PATCH] Added the replica count API change to Shared Image Gallery swagger file. (#3757) * Added the replica count change. * Updated the examples. --- ...ateOrUpdateASimpleGalleryImageVersion.json | 50 ++++++++++++++++--- .../examples/GetAGalleryImageVersion.json | 24 +++++++-- ...leryImageVersionWithReplicationStatus.json | 24 +++++++-- ...stGalleryImageVersionsInAGalleryImage.json | 13 ++++- .../stable/2018-06-01/gallery.json | 35 +++++++------ 5 files changed, 117 insertions(+), 29 deletions(-) diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-06-01/examples/CreateOrUpdateASimpleGalleryImageVersion.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-06-01/examples/CreateOrUpdateASimpleGalleryImageVersion.json index 9988f4935959..cf58d1823b0d 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-06-01/examples/CreateOrUpdateASimpleGalleryImageVersion.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-06-01/examples/CreateOrUpdateASimpleGalleryImageVersion.json @@ -10,7 +10,16 @@ "location": "West US", "properties": { "publishingProfile": { - "regions": ["West US", "East US"], + "targetRegions": [ + { + "name": "West US", + "regionalReplicaCount": 1 + }, + { + "name": "East US", + "regionalReplicaCount": 2 + } + ], "source": { "managedImage": { "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}" @@ -25,13 +34,22 @@ "body": { "properties": { "publishingProfile": { - "regions": ["West US", "East US"], + "targetRegions": [ + { + "name": "West US", + "regionalReplicaCount": 1 + }, + { + "name": "East US", + "regionalReplicaCount": 2 + } + ], "source": { "managedImage": { "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}" } }, - "scaleTier": "S30", + "replicaCount": 1, "publishedDate": "2018-01-01T00:00:00Z" }, "provisioningState": "Updating" @@ -44,13 +62,22 @@ "body": { "properties": { "publishingProfile": { - "regions": ["West US", "East US"], + "targetRegions": [ + { + "name": "West US", + "regionalReplicaCount": 1 + }, + { + "name": "East US", + "regionalReplicaCount": 2 + } + ], "source": { "managedImage": { "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}" } }, - "scaleTier": "S30", + "replicaCount": 1, "publishedDate": "2018-01-01T00:00:00Z" }, "provisioningState": "Creating" @@ -63,13 +90,22 @@ "body": { "properties": { "publishingProfile": { - "regions": ["West US", "East US"], + "targetRegions": [ + { + "name": "West US", + "regionalReplicaCount": 1 + }, + { + "name": "East US", + "regionalReplicaCount": 2 + } + ], "source": { "managedImage": { "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}" } }, - "scaleTier": "S30", + "replicaCount": 1, "publishedDate": "2018-01-01T00:00:00Z" }, "provisioningState": "Updating" diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-06-01/examples/GetAGalleryImageVersion.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-06-01/examples/GetAGalleryImageVersion.json index 0fc671a0152d..90582b3e1cfd 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-06-01/examples/GetAGalleryImageVersion.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-06-01/examples/GetAGalleryImageVersion.json @@ -10,7 +10,16 @@ "location": "West US", "properties": { "publishingProfile": { - "regions": ["West US", "East US"], + "targetRegions": [ + { + "name": "West US", + "regionalReplicaCount": 1 + }, + { + "name": "East US", + "regionalReplicaCount": 2 + } + ], "source": { "managedImage": { "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}" @@ -25,13 +34,22 @@ "body": { "properties": { "publishingProfile": { - "regions": ["West US", "East US"], + "targetRegions": [ + { + "name": "West US", + "regionalReplicaCount": 1 + }, + { + "name": "East US", + "regionalReplicaCount": 2 + } + ], "source": { "managedImage": { "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}" } }, - "scaleTier": "S30", + "replicaCount": 1, "publishedDate": "2018-01-01T00:00:00Z" }, "storageProfile": { diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-06-01/examples/GetAGalleryImageVersionWithReplicationStatus.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-06-01/examples/GetAGalleryImageVersionWithReplicationStatus.json index 672759b68213..db91ba2e4443 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-06-01/examples/GetAGalleryImageVersionWithReplicationStatus.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-06-01/examples/GetAGalleryImageVersionWithReplicationStatus.json @@ -10,7 +10,16 @@ "location": "West US", "properties": { "publishingProfile": { - "regions": ["West US", "East US"], + "targetRegions": [ + { + "name": "West US", + "regionalReplicaCount": 1 + }, + { + "name": "East US", + "regionalReplicaCount": 2 + } + ], "source": { "managedImage": { "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}" @@ -26,13 +35,22 @@ "body": { "properties": { "publishingProfile": { - "regions": ["West US", "East US"], + "targetRegions": [ + { + "name": "West US", + "regionalReplicaCount": 1 + }, + { + "name": "East US", + "regionalReplicaCount": 2 + } + ], "source": { "managedImage": { "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}" } }, - "scaleTier": "S30", + "replicaCount": 1, "publishedDate": "2018-01-01T00:00:00Z" }, "storageProfile": { diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-06-01/examples/ListGalleryImageVersionsInAGalleryImage.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-06-01/examples/ListGalleryImageVersionsInAGalleryImage.json index 918cdf6b69db..636d6a1b135e 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-06-01/examples/ListGalleryImageVersionsInAGalleryImage.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-06-01/examples/ListGalleryImageVersionsInAGalleryImage.json @@ -13,13 +13,22 @@ { "properties": { "publishingProfile": { - "regions": ["West US", "East US"], + "targetRegions": [ + { + "name": "West US", + "regionalReplicaCount": 1 + }, + { + "name": "East US", + "regionalReplicaCount": 2 + } + ], "source": { "managedImage": { "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}" } }, - "scaleTier": "S30", + "replicaCount": 1, "publishedDate": "2018-01-01T00:00:00Z" }, "storageProfile": { diff --git a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-06-01/gallery.json b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-06-01/gallery.json index 5053d9647b64..2ad463df365d 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/stable/2018-06-01/gallery.json +++ b/specification/compute/resource-manager/Microsoft.Compute/stable/2018-06-01/gallery.json @@ -1053,12 +1053,12 @@ }, "GalleryArtifactPublishingProfileBase": { "properties": { - "regions": { + "targetRegions": { "type": "array", "items": { - "type": "string" + "$ref": "#/definitions/TargetRegion" }, - "description": "The regions where the artifact is going to be published." + "description": "The target regions where the artifact is going to be published." }, "source": { "$ref": "#/definitions/GalleryArtifactSource" @@ -1069,6 +1069,20 @@ ], "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": "This is the number of source blob copies in this specific region." + } + }, + "description": "Describes the target region information." + }, "GalleryArtifactSource": { "properties": { "managedImage": { @@ -1094,17 +1108,10 @@ }, "GalleryImageVersionPublishingProfile": { "properties": { - "scaleTier": { - "type": "string", - "description": "The scale tier of the gallery image version. Valid values are 'S30' and 'S100'", - "enum": [ - "S30", - "S100" - ], - "x-ms-enum": { - "name": "ScaleTier", - "modelAsString": true - } + "replicaCount": { + "type": "integer", + "format": "int32", + "description": "This is the number of source blob copies in a region." }, "excludeFromLatest": { "type": "boolean",