Skip to content

Commit

Permalink
Added the replica count API change to Shared Image Gallery swagger fi…
Browse files Browse the repository at this point in the history
…le. (#3757)

* Added the replica count change.

* Updated the examples.
  • Loading branch information
vanbasten2323 authored and jhendrixMSFT committed Aug 31, 2018
1 parent 2497692 commit bb19a13
Show file tree
Hide file tree
Showing 5 changed files with 117 additions and 29 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand All @@ -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"
Expand All @@ -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"
Expand All @@ -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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand All @@ -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": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand All @@ -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": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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": {
Expand All @@ -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",
Expand Down

0 comments on commit bb19a13

Please sign in to comment.