-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Changing OR object to a list of the proper OR class #12740
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
Changing OR object to a list of the proper OR class #12740
Conversation
| /// </summary> | ||
| public class ObjectReplicationPolicy | ||
| { | ||
| internal ObjectReplicationPolicy() { } |
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.
I think we have a SomethingFactory class where customers can create these for test purposes. We should add ORS entities there as well to factory method for the type enclosing them.
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.
@amnguye you can add methods to create ObjectReplicationPolicy and ObjectReplicationRule in the BlobsModelFactory.
|
Looks good (other than Factory thing). |
seanmcc-msft
left a comment
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.
Let's add the BlobModelFactory methods.
| BlobType blobType, | ||
| string versionId, | ||
| IDictionary<string, IDictionary<string, string>> objectReplicationSourceProperties, | ||
| IList<ObjectReplicationPolicy> objectReplicationSourceProperties, |
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.
We should also add this to BlobDownloadDetails's factory.
Default API version is now 2020-10-01 (Azure#12740)
In ObjectReplication, replacing IDictionary<string, IDictionary<string, string> to IList, as per API View comment.
This will allow the user to know what property of the source OR properties they are accessing as well as giving the room to add more properties in the future.