Class: Azure::Storage::Mgmt::V2019_06_01::Models::ObjectReplicationPolicy
- Inherits:
-
Resource
- Object
- Resource
- Azure::Storage::Mgmt::V2019_06_01::Models::ObjectReplicationPolicy
- Includes:
- MsRestAzure
- Defined in:
- lib/2019-06-01/generated/azure_mgmt_storage/models/object_replication_policy.rb
Overview
The replication policy between two storage accounts. Multiple rules can be defined in one policy.
Instance Attribute Summary collapse
-
#destination_account ⇒ String
Required.
-
#enabled_time ⇒ DateTime
account.
-
#policy_id ⇒ String
A unique id for object replication policy.
-
#rules ⇒ Array<ObjectReplicationPolicyRule>
replication rules.
-
#source_account ⇒ String
Required.
Attributes inherited from Resource
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for ObjectReplicationPolicy class as Ruby Hash.
Methods inherited from Resource
Instance Attribute Details
#destination_account ⇒ String
Returns Required. Destination account name.
27 28 29 |
# File 'lib/2019-06-01/generated/azure_mgmt_storage/models/object_replication_policy.rb', line 27 def destination_account @destination_account end |
#enabled_time ⇒ DateTime
account.
21 22 23 |
# File 'lib/2019-06-01/generated/azure_mgmt_storage/models/object_replication_policy.rb', line 21 def enabled_time @enabled_time end |
#policy_id ⇒ String
Returns A unique id for object replication policy.
17 18 19 |
# File 'lib/2019-06-01/generated/azure_mgmt_storage/models/object_replication_policy.rb', line 17 def policy_id @policy_id end |
#rules ⇒ Array<ObjectReplicationPolicyRule>
replication rules.
31 32 33 |
# File 'lib/2019-06-01/generated/azure_mgmt_storage/models/object_replication_policy.rb', line 31 def rules @rules end |
#source_account ⇒ String
Returns Required. Source account name.
24 25 26 |
# File 'lib/2019-06-01/generated/azure_mgmt_storage/models/object_replication_policy.rb', line 24 def source_account @source_account end |
Class Method Details
.mapper ⇒ Object
Mapper for ObjectReplicationPolicy class as Ruby Hash. This will be used for serialization/deserialization.
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 |
# File 'lib/2019-06-01/generated/azure_mgmt_storage/models/object_replication_policy.rb', line 38 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'ObjectReplicationPolicy', type: { name: 'Composite', class_name: 'ObjectReplicationPolicy', model_properties: { id: { client_side_validation: true, required: false, read_only: true, serialized_name: 'id', type: { name: 'String' } }, name: { client_side_validation: true, required: false, read_only: true, serialized_name: 'name', type: { name: 'String' } }, type: { client_side_validation: true, required: false, read_only: true, serialized_name: 'type', type: { name: 'String' } }, policy_id: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.policyId', type: { name: 'String' } }, enabled_time: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.enabledTime', type: { name: 'DateTime' } }, source_account: { client_side_validation: true, required: true, serialized_name: 'properties.sourceAccount', type: { name: 'String' } }, destination_account: { client_side_validation: true, required: true, serialized_name: 'properties.destinationAccount', type: { name: 'String' } }, rules: { client_side_validation: true, required: false, serialized_name: 'properties.rules', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'ObjectReplicationPolicyRuleElementType', type: { name: 'Composite', class_name: 'ObjectReplicationPolicyRule' } } } } } } } end |