-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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." | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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."? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. OK There was a problem hiding this comment. Choose a reason for hiding this commentThe 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"? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @singhkays, the original mail communicates the new name would be There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Also, what is the service end default value for this? There was a problem hiding this comment. Choose a reason for hiding this commentThe 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": { | ||
|
@@ -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", | ||
|
There was a problem hiding this comment.
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 theregion
as the property's prefix? Why not justreplicaCount
?There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK