Class: Azure::Storage::Mgmt::V2021_01_01::Models::ObjectReplicationPolicyRule

Inherits:
Object
  • Object
show all
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

Class Method Summary collapse

Instance Attribute Details

#destination_containerString

Returns Required. Destination container name.

Returns:

  • (String)

    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

#filtersObjectReplicationPolicyFilter

defines the filter set.

Returns:



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_idString

destination account. It is required for put policy on source account.

Returns:

  • (String)

    Rule Id is auto-generated for each new rule on



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_containerString

Returns Required. Source container name.

Returns:

  • (String)

    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

.mapperObject

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