Class: Azure::Storage::Mgmt::V2021_01_01::Models::ObjectReplicationPolicy

Inherits:
Resource
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2021-01-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

Attributes inherited from Resource

#id, #name, #type

Class Method Summary collapse

Methods inherited from Resource

#resource_group

Instance Attribute Details

#destination_accountString

Returns Required. Destination account name.

Returns:

  • (String)

    Required. Destination account name.



27
28
29
# File 'lib/2021-01-01/generated/azure_mgmt_storage/models/object_replication_policy.rb', line 27

def 
  @destination_account
end

#enabled_timeDateTime

account.

Returns:

  • (DateTime)

    Indicates when the policy is enabled on the source



21
22
23
# File 'lib/2021-01-01/generated/azure_mgmt_storage/models/object_replication_policy.rb', line 21

def enabled_time
  @enabled_time
end

#policy_idString

Returns A unique id for object replication policy.

Returns:

  • (String)

    A unique id for object replication policy.



17
18
19
# File 'lib/2021-01-01/generated/azure_mgmt_storage/models/object_replication_policy.rb', line 17

def policy_id
  @policy_id
end

#rulesArray<ObjectReplicationPolicyRule>

replication rules.

Returns:



31
32
33
# File 'lib/2021-01-01/generated/azure_mgmt_storage/models/object_replication_policy.rb', line 31

def rules
  @rules
end

#source_accountString

Returns Required. Source account name.

Returns:

  • (String)

    Required. Source account name.



24
25
26
# File 'lib/2021-01-01/generated/azure_mgmt_storage/models/object_replication_policy.rb', line 24

def 
  @source_account
end

Class Method Details

.mapperObject

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/2021-01-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