Class: Azure::ARM::SQL::Models::ReplicationLink

Inherits:
SubResource
  • Object
show all
Includes:
MsRest::JSONable, MsRestAzure
Defined in:
lib/generated/azure_mgmt_sql/models/replication_link.rb

Overview

Represents a database replication link.

Instance Attribute Summary collapse

Attributes inherited from SubResource

#name

Class Method Summary collapse

Instance Attribute Details

#is_termination_allowedBoolean

allowed. Currently always returns true.

Returns:

  • (Boolean)

    Legacy value indicating whether termination is



25
26
27
# File 'lib/generated/azure_mgmt_sql/models/replication_link.rb', line 25

def is_termination_allowed
  @is_termination_allowed
end

#locationString

rule.

Returns:

  • (String)

    Location of the server that contains this firewall



18
19
20
# File 'lib/generated/azure_mgmt_sql/models/replication_link.rb', line 18

def location
  @location
end

#partner_databaseString

Returns The name of the partner database.

Returns:

  • (String)

    The name of the partner database.



34
35
36
# File 'lib/generated/azure_mgmt_sql/models/replication_link.rb', line 34

def partner_database
  @partner_database
end

#partner_locationString

Returns The Azure Region of the partner database.

Returns:

  • (String)

    The Azure Region of the partner database.



37
38
39
# File 'lib/generated/azure_mgmt_sql/models/replication_link.rb', line 37

def partner_location
  @partner_location
end

#partner_roleReplicationRole

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

Returns:



47
48
49
# File 'lib/generated/azure_mgmt_sql/models/replication_link.rb', line 47

def partner_role
  @partner_role
end

#partner_serverString

Returns The name of the server hosting the partner database.

Returns:

  • (String)

    The name of the server hosting the partner database.



31
32
33
# File 'lib/generated/azure_mgmt_sql/models/replication_link.rb', line 31

def partner_server
  @partner_server
end

#percent_completeInteger

replication link.

Returns:

  • (Integer)

    The percentage of seeding complete for the



54
55
56
# File 'lib/generated/azure_mgmt_sql/models/replication_link.rb', line 54

def percent_complete
  @percent_complete
end

#replication_modeString

Returns Replication mode of this replication link.

Returns:

  • (String)

    Replication mode of this replication link.



28
29
30
# File 'lib/generated/azure_mgmt_sql/models/replication_link.rb', line 28

def replication_mode
  @replication_mode
end

#replication_stateReplicationState

link. Possible values include: ‘PENDING’, ‘SEEDING’, ‘CATCH_UP’, ‘SUSPENDED’

Returns:



59
60
61
# File 'lib/generated/azure_mgmt_sql/models/replication_link.rb', line 59

def replication_state
  @replication_state
end

#roleReplicationRole

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

Returns:



42
43
44
# File 'lib/generated/azure_mgmt_sql/models/replication_link.rb', line 42

def role
  @role
end

#start_timeDateTime

Returns The start time for the replication link.

Returns:

  • (DateTime)

    The start time for the replication link.



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

def start_time
  @start_time
end

#typeString

Returns Type of resource this is.

Returns:

  • (String)

    Type of resource this is.



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

def type
  @type
end

Class Method Details

.mapperObject

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



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
# File 'lib/generated/azure_mgmt_sql/models/replication_link.rb', line 66

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