Class: Azure::SQL::Mgmt::V2014_04_01::Models::ReplicationLink

Inherits:
ProxyResource show all
Includes:
MsRestAzure
Defined in:
lib/2014-04-01/generated/azure_mgmt_sql/models/replication_link.rb

Overview

Represents a database replication link.

Instance Attribute Summary collapse

Attributes inherited from Resource

#id, #name, #type

Class Method Summary collapse

Methods inherited from Resource

#resource_group

Instance Attribute Details

#is_termination_allowed ⇒ Boolean

allowed. Currently always returns true.

Returns:

  • (Boolean) —

    Legacy value indicating whether termination is



21
22
23
# File 'lib/2014-04-01/generated/azure_mgmt_sql/models/replication_link.rb', line 21

def is_termination_allowed
  @is_termination_allowed
end

#location ⇒ String

rule.

Returns:

  • (String) —

    Location of the server that contains this firewall



17
18
19
# File 'lib/2014-04-01/generated/azure_mgmt_sql/models/replication_link.rb', line 17

def location
  @location
end

#partner_database ⇒ String

Returns The name of the partner database.

Returns:

  • (String) —

    The name of the partner database.



30
31
32
# File 'lib/2014-04-01/generated/azure_mgmt_sql/models/replication_link.rb', line 30

def partner_database
  @partner_database
end

#partner_location ⇒ String

Returns The Azure Region of the partner database.

Returns:

  • (String) —

    The Azure Region of the partner database.



33
34
35
# File 'lib/2014-04-01/generated/azure_mgmt_sql/models/replication_link.rb', line 33

def partner_location
  @partner_location
end

#partner_role ⇒ ReplicationRole

replication link. Possible values include: 'Primary', 'Secondary', 'NonReadableSecondary', 'Source', 'Copy'

Returns:



43
44
45
# File 'lib/2014-04-01/generated/azure_mgmt_sql/models/replication_link.rb', line 43

def partner_role
  @partner_role
end

#partner_server ⇒ String

Returns The name of the server hosting the partner database.

Returns:

  • (String) —

    The name of the server hosting the partner database.



27
28
29
# File 'lib/2014-04-01/generated/azure_mgmt_sql/models/replication_link.rb', line 27

def partner_server
  @partner_server
end

#percent_complete ⇒ Integer

replication link.

Returns:

  • (Integer) —

    The percentage of seeding complete for the



50
51
52
# File 'lib/2014-04-01/generated/azure_mgmt_sql/models/replication_link.rb', line 50

def percent_complete
  @percent_complete
end

#replication_mode ⇒ String

Returns Replication mode of this replication link.

Returns:

  • (String) —

    Replication mode of this replication link.



24
25
26
# File 'lib/2014-04-01/generated/azure_mgmt_sql/models/replication_link.rb', line 24

def replication_mode
  @replication_mode
end

#replication_state ⇒ ReplicationState

link. Possible values include: 'PENDING', 'SEEDING', 'CATCH_UP', 'SUSPENDED'

Returns:



55
56
57
# File 'lib/2014-04-01/generated/azure_mgmt_sql/models/replication_link.rb', line 55

def replication_state
  @replication_state
end

#role ⇒ ReplicationRole

link. Possible values include: 'Primary', 'Secondary', 'NonReadableSecondary', 'Source', 'Copy'

Returns:



38
39
40
# File 'lib/2014-04-01/generated/azure_mgmt_sql/models/replication_link.rb', line 38

def role
  @role
end

#start_time ⇒ DateTime

Returns The start time for the replication link.

Returns:

  • (DateTime) —

    The start time for the replication link.



46
47
48
# File 'lib/2014-04-01/generated/azure_mgmt_sql/models/replication_link.rb', line 46

def start_time
  @start_time
end

Class Method Details

.mapper ⇒ Object

Mapper for ReplicationLink class as Ruby Hash. This will be used for serialization/deserialization.



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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
# File 'lib/2014-04-01/generated/azure_mgmt_sql/models/replication_link.rb', line 62

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'ReplicationLink',
    type: {
      name: 'Composite',
      class_name: 'ReplicationLink',
      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'
          }
        },
        location: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'location',
          type: {
            name: 'String'
          }
        },
        is_termination_allowed: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.isTerminationAllowed',
          type: {
            name: 'Boolean'
          }
        },
        replication_mode: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.replicationMode',
          type: {
            name: 'String'
          }
        },
        partner_server: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.partnerServer',
          type: {
            name: 'String'
          }
        },
        partner_database: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.partnerDatabase',
          type: {
            name: 'String'
          }
        },
        partner_location: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.partnerLocation',
          type: {
            name: 'String'
          }
        },
        role: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.role',
          type: {
            name: 'Enum',
            module: 'ReplicationRole'
          }
        },
        partner_role: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.partnerRole',
          type: {
            name: 'Enum',
            module: 'ReplicationRole'
          }
        },
        start_time: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.startTime',
          type: {
            name: 'DateTime'
          }
        },
        percent_complete: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.percentComplete',
          type: {
            name: 'Number'
          }
        },
        replication_state: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.replicationState',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end