Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Added the replica count API change to Shared Image Gallery swagger file. #3757

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the name of the region is called name, why the replica count still has the region as the property's prefix? Why not just replicaCount?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. Initially, we call it "replicaCount", the same as you suggested. Then we got some feedback from Kay Singh that it might be clearer to use "regionalReplicaCount". So we use this.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK

"type": "integer",
"format": "int32",
"description": "This is the number of source blob copies in this specific region."
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

source blob in the source region, or in the target region? Or target blob? Please consider revising the statement to make it clearer.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So it is the copies of the source blob in the target regions. Will this be better "This is the number of copies of the source blobs in this target region."?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vanbasten2323 what exactly is the "number of copies of the source blobs mean"?

Copy link
Contributor

@yugangw-msft yugangw-msft Sep 5, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@singhkays, the original mail communicates the new name would be scaleTier, so i am bit confused now. Can you guys offer some explanation, so i can communicate better to CLI users.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, what is the service end default value for this?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clarified in offline call

}
},
"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