Skip to content

Conversation

@amnguye
Copy link
Member

@amnguye amnguye commented Jun 12, 2020

In ObjectReplication, replacing IDictionary<string, IDictionary<string, string> to IList, as per API View comment.

IList<ObjectReplicationPolicy> policy;
class ObjectReplicationPolicy
{
   string PolicyId;
   IList<ObjectReplicationRule> Rules;
}
class ObjectReplicationRule
{
  string ruleId;
  ObjectReplicationStatus status;
}
enum ObjectReplicationStatus
{
  Complete,
  Failed
}

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.

@amnguye amnguye marked this pull request as ready for review June 12, 2020 17:31
/// </summary>
public class ObjectReplicationPolicy
{
internal ObjectReplicationPolicy() { }
Copy link
Contributor

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.

Copy link
Member

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.

@kasobol-msft
Copy link
Contributor

Looks good (other than Factory thing).

Copy link
Member

@seanmcc-msft seanmcc-msft left a 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,
Copy link
Contributor

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.

@amnguye amnguye merged commit e8e06c0 into Azure:feature/storage/stg73base Jun 15, 2020
openapi-sdkautomation bot pushed a commit to AzureSDKAutomation/azure-sdk-for-net that referenced this pull request Feb 22, 2021
Default API version is now 2020-10-01 (Azure#12740)
@amnguye amnguye deleted the feature/storage/api-view-OR branch July 31, 2023 16:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants