コード例 #1
0
        public ObjectReplicationPolicy ParseObjectReplicationPolicy()
        {
            ObjectReplicationPolicy policy = new ObjectReplicationPolicy()
            {
                SourceAccount      = this.SourceAccount,
                DestinationAccount = this.DestinationAccount,
                Rules = PSObjectReplicationPolicyRule.ParseObjectReplicationPolicyRules(this.Rules)
            };

            return(policy);
        }
コード例 #2
0
 public PSObjectReplicationPolicy(ObjectReplicationPolicy policy, string ResourceGroupName, string StorageAccountName)
 {
     this.ResourceGroupName  = ResourceGroupName;
     this.StorageAccountName = StorageAccountName;
     this.ResourceId         = policy.Id;
     this.Name               = policy.Name;
     this.Type               = policy.Type;
     this.PolicyId           = policy.PolicyId;
     this.EnabledTime        = policy.EnabledTime;
     this.SourceAccount      = policy.SourceAccount;
     this.DestinationAccount = policy.DestinationAccount;
     this.Rules              = PSObjectReplicationPolicyRule.GetPSObjectReplicationPolicyRules(policy.Rules);
 }