Class: Azure::Storage::Mgmt::V2021_01_01::Models::ObjectReplicationPolicyRule
- Inherits:
-
Object
- Object
- Azure::Storage::Mgmt::V2021_01_01::Models::ObjectReplicationPolicyRule
- Includes:
- MsRestAzure
- Defined in:
- lib/2021-01-01/generated/azure_mgmt_storage/models/object_replication_policy_rule.rb
Overview
The replication policy rule between two containers.
Instance Attribute Summary collapse
-
#destination_container ⇒ String
Required.
-
#filters ⇒ ObjectReplicationPolicyFilter
defines the filter set.
-
#rule_id ⇒ String
destination account.
-
#source_container ⇒ String
Required.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for ObjectReplicationPolicyRule class as Ruby Hash.
Instance Attribute Details
#destination_container ⇒ String
Returns Required. Destination container name.
23 24 25 |
# File 'lib/2021-01-01/generated/azure_mgmt_storage/models/object_replication_policy_rule.rb', line 23 def destination_container @destination_container end |
#filters ⇒ ObjectReplicationPolicyFilter
defines the filter set.
27 28 29 |
# File 'lib/2021-01-01/generated/azure_mgmt_storage/models/object_replication_policy_rule.rb', line 27 def filters @filters end |
#rule_id ⇒ String
destination account. It is required for put policy on source account.
17 18 19 |
# File 'lib/2021-01-01/generated/azure_mgmt_storage/models/object_replication_policy_rule.rb', line 17 def rule_id @rule_id end |
#source_container ⇒ String
Returns Required. Source container name.
20 21 22 |
# File 'lib/2021-01-01/generated/azure_mgmt_storage/models/object_replication_policy_rule.rb', line 20 def source_container @source_container end |
Class Method Details
.mapper ⇒ Object
Mapper for ObjectReplicationPolicyRule class as Ruby Hash. This will be used for serialization/deserialization.
34 35 36 37 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 |
# File 'lib/2021-01-01/generated/azure_mgmt_storage/models/object_replication_policy_rule.rb', line 34 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'ObjectReplicationPolicyRule', type: { name: 'Composite', class_name: 'ObjectReplicationPolicyRule', model_properties: { rule_id: { client_side_validation: true, required: false, serialized_name: 'ruleId', type: { name: 'String' } }, source_container: { client_side_validation: true, required: true, serialized_name: 'sourceContainer', type: { name: 'String' } }, destination_container: { client_side_validation: true, required: true, serialized_name: 'destinationContainer', type: { name: 'String' } }, filters: { client_side_validation: true, required: false, serialized_name: 'filters', type: { name: 'Composite', class_name: 'ObjectReplicationPolicyFilter' } } } } } end |