| | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 2 | | // Licensed under the MIT License. |
| | 3 | |
|
| | 4 | | // <auto-generated/> |
| | 5 | |
|
| | 6 | | #nullable disable |
| | 7 | |
|
| | 8 | | using System; |
| | 9 | |
|
| | 10 | | namespace Azure.ResourceManager.Storage.Models |
| | 11 | | { |
| | 12 | | /// <summary> The replication policy rule between two containers. </summary> |
| | 13 | | public partial class ObjectReplicationPolicyRule |
| | 14 | | { |
| | 15 | | /// <summary> Initializes a new instance of ObjectReplicationPolicyRule. </summary> |
| | 16 | | /// <param name="sourceContainer"> Required. Source container name. </param> |
| | 17 | | /// <param name="destinationContainer"> Required. Destination container name. </param> |
| 8 | 18 | | public ObjectReplicationPolicyRule(string sourceContainer, string destinationContainer) |
| | 19 | | { |
| 8 | 20 | | if (sourceContainer == null) |
| | 21 | | { |
| 0 | 22 | | throw new ArgumentNullException(nameof(sourceContainer)); |
| | 23 | | } |
| 8 | 24 | | if (destinationContainer == null) |
| | 25 | | { |
| 0 | 26 | | throw new ArgumentNullException(nameof(destinationContainer)); |
| | 27 | | } |
| | 28 | |
|
| 8 | 29 | | SourceContainer = sourceContainer; |
| 8 | 30 | | DestinationContainer = destinationContainer; |
| 8 | 31 | | } |
| | 32 | |
|
| | 33 | | /// <summary> Initializes a new instance of ObjectReplicationPolicyRule. </summary> |
| | 34 | | /// <param name="ruleId"> Rule Id is auto-generated for each new rule on destination account. It is required for |
| | 35 | | /// <param name="sourceContainer"> Required. Source container name. </param> |
| | 36 | | /// <param name="destinationContainer"> Required. Destination container name. </param> |
| | 37 | | /// <param name="filters"> Optional. An object that defines the filter set. </param> |
| 48 | 38 | | internal ObjectReplicationPolicyRule(string ruleId, string sourceContainer, string destinationContainer, ObjectR |
| | 39 | | { |
| 48 | 40 | | RuleId = ruleId; |
| 48 | 41 | | SourceContainer = sourceContainer; |
| 48 | 42 | | DestinationContainer = destinationContainer; |
| 48 | 43 | | Filters = filters; |
| 48 | 44 | | } |
| | 45 | |
|
| | 46 | | /// <summary> Rule Id is auto-generated for each new rule on destination account. It is required for put policy |
| 112 | 47 | | public string RuleId { get; set; } |
| | 48 | | /// <summary> Required. Source container name. </summary> |
| 136 | 49 | | public string SourceContainer { get; set; } |
| | 50 | | /// <summary> Required. Destination container name. </summary> |
| 136 | 51 | | public string DestinationContainer { get; set; } |
| | 52 | | /// <summary> Optional. An object that defines the filter set. </summary> |
| 268 | 53 | | public ObjectReplicationPolicyFilter Filters { get; set; } |
| | 54 | | } |
| | 55 | | } |