Class: OCI::DatabaseManagement::Models::ManagedMySqlDatabaseHighAvailabilityMemberCollection
- Inherits:
-
Object
- Object
- OCI::DatabaseManagement::Models::ManagedMySqlDatabaseHighAvailabilityMemberCollection
- Defined in:
- lib/oci/database_management/models/managed_my_sql_database_high_availability_member_collection.rb
Overview
Information pertaining to high availability of a MySQL server. MySQL support within OCI Database Management service has been deprecated as of January 29, 2026.
Instance Attribute Summary collapse
-
#flow_control ⇒ String
The mode used for flow control.
-
#group_auto_increment ⇒ Integer
The interval between successive values for auto-incremented columns for transactions that execute on this server instance.
-
#group_name ⇒ String
The name of the group to which this server instance belongs.
-
#items ⇒ Array<OCI::DatabaseManagement::Models::ManagedMySqlDatabaseHighAvailabilityMemberSummary>
[Required] A list of MySqlHighAvailabilityMember records.
-
#member_role ⇒ String
The role of this server as a group replication member.
-
#member_state ⇒ String
The state of this server as a group replication member.
-
#single_primary_mode ⇒ String
Indicates if the replication group is running in single-primary mode.
- #status_summary ⇒ OCI::DatabaseManagement::Models::MySqlHighAvailabilityStatusSummary
-
#transactions_in_gtid_executed ⇒ Integer
The number of transactions that were replicated within the cluster.
-
#view_id ⇒ String
The current view identifier for this group.
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 = {}) ⇒ ManagedMySqlDatabaseHighAvailabilityMemberCollection
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 = {}) ⇒ ManagedMySqlDatabaseHighAvailabilityMemberCollection
Initializes the object
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 |
# File 'lib/oci/database_management/models/managed_my_sql_database_high_availability_member_collection.rb', line 102 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.group_name = attributes[:'groupName'] if attributes[:'groupName'] raise 'You cannot provide both :groupName and :group_name' if attributes.key?(:'groupName') && attributes.key?(:'group_name') self.group_name = attributes[:'group_name'] if attributes[:'group_name'] self.single_primary_mode = attributes[:'singlePrimaryMode'] if attributes[:'singlePrimaryMode'] raise 'You cannot provide both :singlePrimaryMode and :single_primary_mode' if attributes.key?(:'singlePrimaryMode') && attributes.key?(:'single_primary_mode') self.single_primary_mode = attributes[:'single_primary_mode'] if attributes[:'single_primary_mode'] self.group_auto_increment = attributes[:'groupAutoIncrement'] if attributes[:'groupAutoIncrement'] raise 'You cannot provide both :groupAutoIncrement and :group_auto_increment' if attributes.key?(:'groupAutoIncrement') && attributes.key?(:'group_auto_increment') self.group_auto_increment = attributes[:'group_auto_increment'] if attributes[:'group_auto_increment'] self.flow_control = attributes[:'flowControl'] if attributes[:'flowControl'] raise 'You cannot provide both :flowControl and :flow_control' if attributes.key?(:'flowControl') && attributes.key?(:'flow_control') self.flow_control = attributes[:'flow_control'] if attributes[:'flow_control'] self.member_state = attributes[:'memberState'] if attributes[:'memberState'] raise 'You cannot provide both :memberState and :member_state' if attributes.key?(:'memberState') && attributes.key?(:'member_state') self.member_state = attributes[:'member_state'] if attributes[:'member_state'] self.member_role = attributes[:'memberRole'] if attributes[:'memberRole'] raise 'You cannot provide both :memberRole and :member_role' if attributes.key?(:'memberRole') && attributes.key?(:'member_role') self.member_role = attributes[:'member_role'] if attributes[:'member_role'] self.view_id = attributes[:'viewId'] if attributes[:'viewId'] raise 'You cannot provide both :viewId and :view_id' if attributes.key?(:'viewId') && attributes.key?(:'view_id') self.view_id = attributes[:'view_id'] if attributes[:'view_id'] self.transactions_in_gtid_executed = attributes[:'transactionsInGtidExecuted'] if attributes[:'transactionsInGtidExecuted'] raise 'You cannot provide both :transactionsInGtidExecuted and :transactions_in_gtid_executed' if attributes.key?(:'transactionsInGtidExecuted') && attributes.key?(:'transactions_in_gtid_executed') self.transactions_in_gtid_executed = attributes[:'transactions_in_gtid_executed'] if attributes[:'transactions_in_gtid_executed'] self.items = attributes[:'items'] if attributes[:'items'] self.status_summary = attributes[:'statusSummary'] if attributes[:'statusSummary'] raise 'You cannot provide both :statusSummary and :status_summary' if attributes.key?(:'statusSummary') && attributes.key?(:'status_summary') self.status_summary = attributes[:'status_summary'] if attributes[:'status_summary'] end |
Instance Attribute Details
#flow_control ⇒ String
The mode used for flow control.
25 26 27 |
# File 'lib/oci/database_management/models/managed_my_sql_database_high_availability_member_collection.rb', line 25 def flow_control @flow_control end |
#group_auto_increment ⇒ Integer
The interval between successive values for auto-incremented columns for transactions that execute on this server instance.
21 22 23 |
# File 'lib/oci/database_management/models/managed_my_sql_database_high_availability_member_collection.rb', line 21 def group_auto_increment @group_auto_increment end |
#group_name ⇒ String
The name of the group to which this server instance belongs.
13 14 15 |
# File 'lib/oci/database_management/models/managed_my_sql_database_high_availability_member_collection.rb', line 13 def group_name @group_name end |
#items ⇒ Array<OCI::DatabaseManagement::Models::ManagedMySqlDatabaseHighAvailabilityMemberSummary>
[Required] A list of MySqlHighAvailabilityMember records.
45 46 47 |
# File 'lib/oci/database_management/models/managed_my_sql_database_high_availability_member_collection.rb', line 45 def items @items end |
#member_role ⇒ String
The role of this server as a group replication member.
33 34 35 |
# File 'lib/oci/database_management/models/managed_my_sql_database_high_availability_member_collection.rb', line 33 def member_role @member_role end |
#member_state ⇒ String
The state of this server as a group replication member.
29 30 31 |
# File 'lib/oci/database_management/models/managed_my_sql_database_high_availability_member_collection.rb', line 29 def member_state @member_state end |
#single_primary_mode ⇒ String
Indicates if the replication group is running in single-primary mode.
17 18 19 |
# File 'lib/oci/database_management/models/managed_my_sql_database_high_availability_member_collection.rb', line 17 def single_primary_mode @single_primary_mode end |
#status_summary ⇒ OCI::DatabaseManagement::Models::MySqlHighAvailabilityStatusSummary
48 49 50 |
# File 'lib/oci/database_management/models/managed_my_sql_database_high_availability_member_collection.rb', line 48 def status_summary @status_summary end |
#transactions_in_gtid_executed ⇒ Integer
The number of transactions that were replicated within the cluster.
41 42 43 |
# File 'lib/oci/database_management/models/managed_my_sql_database_high_availability_member_collection.rb', line 41 def transactions_in_gtid_executed @transactions_in_gtid_executed end |
#view_id ⇒ String
The current view identifier for this group.
37 38 39 |
# File 'lib/oci/database_management/models/managed_my_sql_database_high_availability_member_collection.rb', line 37 def view_id @view_id end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 |
# File 'lib/oci/database_management/models/managed_my_sql_database_high_availability_member_collection.rb', line 51 def self.attribute_map { # rubocop:disable Style/SymbolLiteral 'group_name': :'groupName', 'single_primary_mode': :'singlePrimaryMode', 'group_auto_increment': :'groupAutoIncrement', 'flow_control': :'flowControl', 'member_state': :'memberState', 'member_role': :'memberRole', 'view_id': :'viewId', 'transactions_in_gtid_executed': :'transactionsInGtidExecuted', 'items': :'items', 'status_summary': :'statusSummary' # rubocop:enable Style/SymbolLiteral } end |
.swagger_types ⇒ Object
Attribute type mapping.
69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 |
# File 'lib/oci/database_management/models/managed_my_sql_database_high_availability_member_collection.rb', line 69 def self.swagger_types { # rubocop:disable Style/SymbolLiteral 'group_name': :'String', 'single_primary_mode': :'String', 'group_auto_increment': :'Integer', 'flow_control': :'String', 'member_state': :'String', 'member_role': :'String', 'view_id': :'String', 'transactions_in_gtid_executed': :'Integer', 'items': :'Array<OCI::DatabaseManagement::Models::ManagedMySqlDatabaseHighAvailabilityMemberSummary>', 'status_summary': :'OCI::DatabaseManagement::Models::MySqlHighAvailabilityStatusSummary' # rubocop:enable Style/SymbolLiteral } end |
Instance Method Details
#==(other) ⇒ Object
Checks equality by comparing each attribute.
172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 |
# File 'lib/oci/database_management/models/managed_my_sql_database_high_availability_member_collection.rb', line 172 def ==(other) return true if equal?(other) self.class == other.class && group_name == other.group_name && single_primary_mode == other.single_primary_mode && group_auto_increment == other.group_auto_increment && flow_control == other.flow_control && member_state == other.member_state && member_role == other.member_role && view_id == other.view_id && transactions_in_gtid_executed == other.transactions_in_gtid_executed && items == other.items && status_summary == other.status_summary end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 |
# File 'lib/oci/database_management/models/managed_my_sql_database_high_availability_member_collection.rb', line 211 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
191 192 193 |
# File 'lib/oci/database_management/models/managed_my_sql_database_high_availability_member_collection.rb', line 191 def eql?(other) self == other end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
200 201 202 |
# File 'lib/oci/database_management/models/managed_my_sql_database_high_availability_member_collection.rb', line 200 def hash [group_name, single_primary_mode, group_auto_increment, flow_control, member_state, member_role, view_id, transactions_in_gtid_executed, items, status_summary].hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
244 245 246 247 248 249 250 251 252 253 |
# File 'lib/oci/database_management/models/managed_my_sql_database_high_availability_member_collection.rb', line 244 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
238 239 240 |
# File 'lib/oci/database_management/models/managed_my_sql_database_high_availability_member_collection.rb', line 238 def to_s to_hash.to_s end |