Class: OCI::DatabaseManagement::Models::ManagedMySqlDatabaseGeneralReplicationInformation
- Inherits:
-
Object
- Object
- OCI::DatabaseManagement::Models::ManagedMySqlDatabaseGeneralReplicationInformation
- Defined in:
- lib/oci/database_management/models/managed_my_sql_database_general_replication_information.rb
Overview
General information about the replication of a MySQL server. MySQL support within OCI Database Management service has been deprecated as of January 29, 2026.
Constant Summary collapse
- READ_ONLY_ENUM =
[ READ_ONLY_ON = 'ON'.freeze, READ_ONLY_SUPER = 'SUPER'.freeze, READ_ONLY_OFF = 'OFF'.freeze, READ_ONLY_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze
Instance Attribute Summary collapse
-
#apply_status_summary ⇒ String
A summary of the current status of apply operations.
-
#binary_log_format ⇒ String
The binary logging format used by this server.
-
#binary_logging ⇒ String
The status of binary logging on this server.
-
#executed_gtid_set ⇒ String
The set of global transaction identifiers for transactions that have been executed on this source server.
-
#fetch_status_summary ⇒ String
A summary of the current status of fetch operations.
-
#gtid_mode ⇒ String
The Global Transaction Identifier (GTID) mode of this server.
-
#high_availability_member_state ⇒ String
The state of this server as a group replication member.
-
#host_name ⇒ String
This server's host name.
-
#inbound_replications_count ⇒ Integer
The number of sources this server is replicating from.
-
#instance_type ⇒ String
The type of the instance for example, Source, Replica, Primary Group Member, and Secondary Group Member.
-
#is_high_availability_enabled ⇒ BOOLEAN
Specifies if high availability is enabled on this server.
-
#outbound_replications_count ⇒ Integer
The number of replicas replicating from this server.
-
#port ⇒ Integer
The number of the port on which the server listens for TCP/IP connections.
-
#read_only ⇒ String
[Required] If the value is ON, the instance is configured as read_only.
-
#seconds_behind_source_max ⇒ Integer
The number of seconds the replica is behind the source.
-
#server_id ⇒ Integer
[Required] This server's ID.
-
#server_uuid ⇒ String
[Required] This server's Universally Unique Identifier (UUID).
Class Method Summary collapse
-
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
-
.swagger_types ⇒ Object
Attribute type mapping.
Instance Method Summary collapse
-
#==(other) ⇒ Object
Checks equality by comparing each attribute.
-
#build_from_hash(attributes) ⇒ Object
Builds the object from hash.
- #eql?(other) ⇒ Boolean
-
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
-
#initialize(attributes = {}) ⇒ ManagedMySqlDatabaseGeneralReplicationInformation
constructor
Initializes the object.
-
#to_hash ⇒ Hash
Returns the object in the form of hash.
-
#to_s ⇒ String
Returns the string representation of the object.
Constructor Details
#initialize(attributes = {}) ⇒ ManagedMySqlDatabaseGeneralReplicationInformation
Initializes the object
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 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 |
# File 'lib/oci/database_management/models/managed_my_sql_database_general_replication_information.rb', line 160 def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } self.instance_type = attributes[:'instanceType'] if attributes[:'instanceType'] raise 'You cannot provide both :instanceType and :instance_type' if attributes.key?(:'instanceType') && attributes.key?(:'instance_type') self.instance_type = attributes[:'instance_type'] if attributes[:'instance_type'] self.host_name = attributes[:'hostName'] if attributes[:'hostName'] raise 'You cannot provide both :hostName and :host_name' if attributes.key?(:'hostName') && attributes.key?(:'host_name') self.host_name = attributes[:'host_name'] if attributes[:'host_name'] self.port = attributes[:'port'] if attributes[:'port'] self.server_id = attributes[:'serverId'] if attributes[:'serverId'] raise 'You cannot provide both :serverId and :server_id' if attributes.key?(:'serverId') && attributes.key?(:'server_id') self.server_id = attributes[:'server_id'] if attributes[:'server_id'] self.server_uuid = attributes[:'serverUuid'] if attributes[:'serverUuid'] raise 'You cannot provide both :serverUuid and :server_uuid' if attributes.key?(:'serverUuid') && attributes.key?(:'server_uuid') self.server_uuid = attributes[:'server_uuid'] if attributes[:'server_uuid'] self.seconds_behind_source_max = attributes[:'secondsBehindSourceMax'] if attributes[:'secondsBehindSourceMax'] raise 'You cannot provide both :secondsBehindSourceMax and :seconds_behind_source_max' if attributes.key?(:'secondsBehindSourceMax') && attributes.key?(:'seconds_behind_source_max') self.seconds_behind_source_max = attributes[:'seconds_behind_source_max'] if attributes[:'seconds_behind_source_max'] self.fetch_status_summary = attributes[:'fetchStatusSummary'] if attributes[:'fetchStatusSummary'] raise 'You cannot provide both :fetchStatusSummary and :fetch_status_summary' if attributes.key?(:'fetchStatusSummary') && attributes.key?(:'fetch_status_summary') self.fetch_status_summary = attributes[:'fetch_status_summary'] if attributes[:'fetch_status_summary'] self.apply_status_summary = attributes[:'applyStatusSummary'] if attributes[:'applyStatusSummary'] raise 'You cannot provide both :applyStatusSummary and :apply_status_summary' if attributes.key?(:'applyStatusSummary') && attributes.key?(:'apply_status_summary') self.apply_status_summary = attributes[:'apply_status_summary'] if attributes[:'apply_status_summary'] self.is_high_availability_enabled = attributes[:'isHighAvailabilityEnabled'] unless attributes[:'isHighAvailabilityEnabled'].nil? raise 'You cannot provide both :isHighAvailabilityEnabled and :is_high_availability_enabled' if attributes.key?(:'isHighAvailabilityEnabled') && attributes.key?(:'is_high_availability_enabled') self.is_high_availability_enabled = attributes[:'is_high_availability_enabled'] unless attributes[:'is_high_availability_enabled'].nil? self.high_availability_member_state = attributes[:'highAvailabilityMemberState'] if attributes[:'highAvailabilityMemberState'] raise 'You cannot provide both :highAvailabilityMemberState and :high_availability_member_state' if attributes.key?(:'highAvailabilityMemberState') && attributes.key?(:'high_availability_member_state') self.high_availability_member_state = attributes[:'high_availability_member_state'] if attributes[:'high_availability_member_state'] self.inbound_replications_count = attributes[:'inboundReplicationsCount'] if attributes[:'inboundReplicationsCount'] raise 'You cannot provide both :inboundReplicationsCount and :inbound_replications_count' if attributes.key?(:'inboundReplicationsCount') && attributes.key?(:'inbound_replications_count') self.inbound_replications_count = attributes[:'inbound_replications_count'] if attributes[:'inbound_replications_count'] self.read_only = attributes[:'readOnly'] if attributes[:'readOnly'] raise 'You cannot provide both :readOnly and :read_only' if attributes.key?(:'readOnly') && attributes.key?(:'read_only') self.read_only = attributes[:'read_only'] if attributes[:'read_only'] self.gtid_mode = attributes[:'gtidMode'] if attributes[:'gtidMode'] raise 'You cannot provide both :gtidMode and :gtid_mode' if attributes.key?(:'gtidMode') && attributes.key?(:'gtid_mode') self.gtid_mode = attributes[:'gtid_mode'] if attributes[:'gtid_mode'] self.executed_gtid_set = attributes[:'executedGtidSet'] if attributes[:'executedGtidSet'] raise 'You cannot provide both :executedGtidSet and :executed_gtid_set' if attributes.key?(:'executedGtidSet') && attributes.key?(:'executed_gtid_set') self.executed_gtid_set = attributes[:'executed_gtid_set'] if attributes[:'executed_gtid_set'] self.binary_logging = attributes[:'binaryLogging'] if attributes[:'binaryLogging'] raise 'You cannot provide both :binaryLogging and :binary_logging' if attributes.key?(:'binaryLogging') && attributes.key?(:'binary_logging') self.binary_logging = attributes[:'binary_logging'] if attributes[:'binary_logging'] self.binary_log_format = attributes[:'binaryLogFormat'] if attributes[:'binaryLogFormat'] raise 'You cannot provide both :binaryLogFormat and :binary_log_format' if attributes.key?(:'binaryLogFormat') && attributes.key?(:'binary_log_format') self.binary_log_format = attributes[:'binary_log_format'] if attributes[:'binary_log_format'] self.outbound_replications_count = attributes[:'outboundReplicationsCount'] if attributes[:'outboundReplicationsCount'] raise 'You cannot provide both :outboundReplicationsCount and :outbound_replications_count' if attributes.key?(:'outboundReplicationsCount') && attributes.key?(:'outbound_replications_count') self.outbound_replications_count = attributes[:'outbound_replications_count'] if attributes[:'outbound_replications_count'] end |
Instance Attribute Details
#apply_status_summary ⇒ String
A summary of the current status of apply operations.
49 50 51 |
# File 'lib/oci/database_management/models/managed_my_sql_database_general_replication_information.rb', line 49 def apply_status_summary @apply_status_summary end |
#binary_log_format ⇒ String
The binary logging format used by this server.
81 82 83 |
# File 'lib/oci/database_management/models/managed_my_sql_database_general_replication_information.rb', line 81 def binary_log_format @binary_log_format end |
#binary_logging ⇒ String
The status of binary logging on this server.
77 78 79 |
# File 'lib/oci/database_management/models/managed_my_sql_database_general_replication_information.rb', line 77 def binary_logging @binary_logging end |
#executed_gtid_set ⇒ String
The set of global transaction identifiers for transactions that have been executed on this source server.
73 74 75 |
# File 'lib/oci/database_management/models/managed_my_sql_database_general_replication_information.rb', line 73 def executed_gtid_set @executed_gtid_set end |
#fetch_status_summary ⇒ String
A summary of the current status of fetch operations.
45 46 47 |
# File 'lib/oci/database_management/models/managed_my_sql_database_general_replication_information.rb', line 45 def fetch_status_summary @fetch_status_summary end |
#gtid_mode ⇒ String
The Global Transaction Identifier (GTID) mode of this server.
69 70 71 |
# File 'lib/oci/database_management/models/managed_my_sql_database_general_replication_information.rb', line 69 def gtid_mode @gtid_mode end |
#high_availability_member_state ⇒ String
The state of this server as a group replication member.
57 58 59 |
# File 'lib/oci/database_management/models/managed_my_sql_database_general_replication_information.rb', line 57 def high_availability_member_state @high_availability_member_state end |
#host_name ⇒ String
This server's host name.
25 26 27 |
# File 'lib/oci/database_management/models/managed_my_sql_database_general_replication_information.rb', line 25 def host_name @host_name end |
#inbound_replications_count ⇒ Integer
The number of sources this server is replicating from.
61 62 63 |
# File 'lib/oci/database_management/models/managed_my_sql_database_general_replication_information.rb', line 61 def inbound_replications_count @inbound_replications_count end |
#instance_type ⇒ String
The type of the instance for example, Source, Replica, Primary Group Member, and Secondary Group Member. If the instance is replicating from one or more sources and has one or more replicas, which means, it belongs to a replication chain, the instance type can be Replica/Source.
21 22 23 |
# File 'lib/oci/database_management/models/managed_my_sql_database_general_replication_information.rb', line 21 def instance_type @instance_type end |
#is_high_availability_enabled ⇒ BOOLEAN
Specifies if high availability is enabled on this server.
53 54 55 |
# File 'lib/oci/database_management/models/managed_my_sql_database_general_replication_information.rb', line 53 def is_high_availability_enabled @is_high_availability_enabled end |
#outbound_replications_count ⇒ Integer
The number of replicas replicating from this server.
85 86 87 |
# File 'lib/oci/database_management/models/managed_my_sql_database_general_replication_information.rb', line 85 def outbound_replications_count @outbound_replications_count end |
#port ⇒ Integer
The number of the port on which the server listens for TCP/IP connections.
29 30 31 |
# File 'lib/oci/database_management/models/managed_my_sql_database_general_replication_information.rb', line 29 def port @port end |
#read_only ⇒ String
[Required] If the value is ON, the instance is configured as read_only. If the value is SUPER, the instance is configured as super_read_only. If the value is OFF, the instance is neither read_only nor super_read_only.
65 66 67 |
# File 'lib/oci/database_management/models/managed_my_sql_database_general_replication_information.rb', line 65 def read_only @read_only end |
#seconds_behind_source_max ⇒ Integer
The number of seconds the replica is behind the source. When multiple sources are involved, this is the maximum value across all sources.
41 42 43 |
# File 'lib/oci/database_management/models/managed_my_sql_database_general_replication_information.rb', line 41 def seconds_behind_source_max @seconds_behind_source_max end |
#server_id ⇒ Integer
[Required] This server's ID.
33 34 35 |
# File 'lib/oci/database_management/models/managed_my_sql_database_general_replication_information.rb', line 33 def server_id @server_id end |
#server_uuid ⇒ String
[Required] This server's Universally Unique Identifier (UUID).
37 38 39 |
# File 'lib/oci/database_management/models/managed_my_sql_database_general_replication_information.rb', line 37 def server_uuid @server_uuid end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 |
# File 'lib/oci/database_management/models/managed_my_sql_database_general_replication_information.rb', line 88 def self.attribute_map { # rubocop:disable Style/SymbolLiteral 'instance_type': :'instanceType', 'host_name': :'hostName', 'port': :'port', 'server_id': :'serverId', 'server_uuid': :'serverUuid', 'seconds_behind_source_max': :'secondsBehindSourceMax', 'fetch_status_summary': :'fetchStatusSummary', 'apply_status_summary': :'applyStatusSummary', 'is_high_availability_enabled': :'isHighAvailabilityEnabled', 'high_availability_member_state': :'highAvailabilityMemberState', 'inbound_replications_count': :'inboundReplicationsCount', 'read_only': :'readOnly', 'gtid_mode': :'gtidMode', 'executed_gtid_set': :'executedGtidSet', 'binary_logging': :'binaryLogging', 'binary_log_format': :'binaryLogFormat', 'outbound_replications_count': :'outboundReplicationsCount' # rubocop:enable Style/SymbolLiteral } end |
.swagger_types ⇒ Object
Attribute type mapping.
113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 |
# File 'lib/oci/database_management/models/managed_my_sql_database_general_replication_information.rb', line 113 def self.swagger_types { # rubocop:disable Style/SymbolLiteral 'instance_type': :'String', 'host_name': :'String', 'port': :'Integer', 'server_id': :'Integer', 'server_uuid': :'String', 'seconds_behind_source_max': :'Integer', 'fetch_status_summary': :'String', 'apply_status_summary': :'String', 'is_high_availability_enabled': :'BOOLEAN', 'high_availability_member_state': :'String', 'inbound_replications_count': :'Integer', 'read_only': :'String', 'gtid_mode': :'String', 'executed_gtid_set': :'String', 'binary_logging': :'String', 'binary_log_format': :'String', 'outbound_replications_count': :'Integer' # rubocop:enable Style/SymbolLiteral } end |
Instance Method Details
#==(other) ⇒ Object
Checks equality by comparing each attribute.
285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 |
# File 'lib/oci/database_management/models/managed_my_sql_database_general_replication_information.rb', line 285 def ==(other) return true if equal?(other) self.class == other.class && instance_type == other.instance_type && host_name == other.host_name && port == other.port && server_id == other.server_id && server_uuid == other.server_uuid && seconds_behind_source_max == other.seconds_behind_source_max && fetch_status_summary == other.fetch_status_summary && apply_status_summary == other.apply_status_summary && is_high_availability_enabled == other.is_high_availability_enabled && high_availability_member_state == other.high_availability_member_state && inbound_replications_count == other.inbound_replications_count && read_only == other.read_only && gtid_mode == other.gtid_mode && executed_gtid_set == other.executed_gtid_set && binary_logging == other.binary_logging && binary_log_format == other.binary_log_format && outbound_replications_count == other.outbound_replications_count end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 |
# File 'lib/oci/database_management/models/managed_my_sql_database_general_replication_information.rb', line 331 def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /^Array<(.*)>/i # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) public_method("#{key}=").call( attributes[self.class.attribute_map[key]] .map { |v| OCI::Internal::Util.convert_to_type(Regexp.last_match(1), v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? public_method("#{key}=").call( OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]) ) end # or else data not found in attributes(hash), not an issue as the data can be optional end self end |
#eql?(other) ⇒ Boolean
311 312 313 |
# File 'lib/oci/database_management/models/managed_my_sql_database_general_replication_information.rb', line 311 def eql?(other) self == other end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
320 321 322 |
# File 'lib/oci/database_management/models/managed_my_sql_database_general_replication_information.rb', line 320 def hash [instance_type, host_name, port, server_id, server_uuid, seconds_behind_source_max, fetch_status_summary, apply_status_summary, is_high_availability_enabled, high_availability_member_state, inbound_replications_count, read_only, gtid_mode, executed_gtid_set, binary_logging, binary_log_format, outbound_replications_count].hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
364 365 366 367 368 369 370 371 372 373 |
# File 'lib/oci/database_management/models/managed_my_sql_database_general_replication_information.rb', line 364 def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = public_method(attr).call next if value.nil? && !instance_variable_defined?("@#{attr}") hash[param] = _to_hash(value) end hash end |
#to_s ⇒ String
Returns the string representation of the object
358 359 360 |
# File 'lib/oci/database_management/models/managed_my_sql_database_general_replication_information.rb', line 358 def to_s to_hash.to_s end |