Class: OCI::Database::Models::DataGuardAssociationSummary
- Inherits:
-
Object
- Object
- OCI::Database::Models::DataGuardAssociationSummary
- Defined in:
- lib/oci/database/models/data_guard_association_summary.rb
Constant Summary collapse
- LIFECYCLE_STATE_ENUM =
[LIFECYCLE_STATE_PROVISIONING = 'PROVISIONING', LIFECYCLE_STATE_AVAILABLE = 'AVAILABLE', LIFECYCLE_STATE_UPDATING = 'UPDATING', LIFECYCLE_STATE_TERMINATING = 'TERMINATING', LIFECYCLE_STATE_TERMINATED = 'TERMINATED', LIFECYCLE_STATE_FAILED = 'FAILED', LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE']
- PEER_ROLE_ENUM =
[PEER_ROLE_PRIMARY = 'PRIMARY', PEER_ROLE_STANDBY = 'STANDBY', PEER_ROLE_DISABLED_STANDBY = 'DISABLED_STANDBY', PEER_ROLE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE']
- PROTECTION_MODE_ENUM =
[PROTECTION_MODE_MAXIMUM_AVAILABILITY = 'MAXIMUM_AVAILABILITY', PROTECTION_MODE_MAXIMUM_PERFORMANCE = 'MAXIMUM_PERFORMANCE', PROTECTION_MODE_MAXIMUM_PROTECTION = 'MAXIMUM_PROTECTION', PROTECTION_MODE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE']
- ROLE_ENUM =
[ROLE_PRIMARY = 'PRIMARY', ROLE_STANDBY = 'STANDBY', ROLE_DISABLED_STANDBY = 'DISABLED_STANDBY', ROLE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE']
- TRANSPORT_TYPE_ENUM =
[TRANSPORT_TYPE_SYNC = 'SYNC', TRANSPORT_TYPE_ASYNC = 'ASYNC', TRANSPORT_TYPE_FASTSYNC = 'FASTSYNC', TRANSPORT_TYPE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE']
Instance Attribute Summary collapse
-
#apply_lag ⇒ String
The lag time between updates to the primary database and application of the redo data on the standby database, as computed by the reporting database.
-
#apply_rate ⇒ String
The rate at which redo logs are synced between the associated databases.
-
#database_id ⇒ String
The [OCID](docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the reporting database.
-
#id ⇒ String
The [OCID](docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the Data Guard association.
-
#lifecycle_details ⇒ String
Additional information about the current lifecycleState, if available.
-
#lifecycle_state ⇒ String
The current state of the Data Guard association.
-
#peer_data_guard_association_id ⇒ String
The [OCID](docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the peer database’s Data Guard association.
-
#peer_database_id ⇒ String
The [OCID](docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the associated peer database.
-
#peer_db_home_id ⇒ String
The [OCID](docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the database home containing the associated peer database.
-
#peer_db_system_id ⇒ String
The [OCID](docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the DB System containing the associated peer database.
-
#peer_role ⇒ String
The role of the peer database in this Data Guard association.
-
#protection_mode ⇒ String
The protection mode of this Data Guard association.
-
#role ⇒ String
The role of the reporting database in this Data Guard association.
-
#time_created ⇒ DateTime
The date and time the Data Guard Association was created.
-
#transport_type ⇒ String
The redo transport type used by this Data Guard association.
Instance Method Summary collapse
-
#==(other_object) ⇒ Object
Checks equality by comparing each attribute.
-
#build_from_hash(attributes) ⇒ Object
Builds the object from hash.
- #eql?(other_object) ⇒ Boolean
-
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
-
#initialize(attributes = {}) ⇒ DataGuardAssociationSummary
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 = {}) ⇒ DataGuardAssociationSummary
Initializes the object
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 |
# File 'lib/oci/database/models/data_guard_association_summary.rb', line 120 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} if attributes[:'applyLag'] self.apply_lag = attributes[:'applyLag'] end if attributes[:'applyRate'] self.apply_rate = attributes[:'applyRate'] end if attributes[:'databaseId'] self.database_id = attributes[:'databaseId'] end if attributes[:'id'] self.id = attributes[:'id'] end if attributes[:'lifecycleDetails'] self.lifecycle_details = attributes[:'lifecycleDetails'] end if attributes[:'lifecycleState'] self.lifecycle_state = attributes[:'lifecycleState'] end if attributes[:'peerDataGuardAssociationId'] self.peer_data_guard_association_id = attributes[:'peerDataGuardAssociationId'] end if attributes[:'peerDatabaseId'] self.peer_database_id = attributes[:'peerDatabaseId'] end if attributes[:'peerDbHomeId'] self.peer_db_home_id = attributes[:'peerDbHomeId'] end if attributes[:'peerDbSystemId'] self.peer_db_system_id = attributes[:'peerDbSystemId'] end if attributes[:'peerRole'] self.peer_role = attributes[:'peerRole'] end if attributes[:'protectionMode'] self.protection_mode = attributes[:'protectionMode'] end if attributes[:'role'] self.role = attributes[:'role'] end if attributes[:'timeCreated'] self.time_created = attributes[:'timeCreated'] end if attributes[:'transportType'] self.transport_type = attributes[:'transportType'] end end |
Instance Attribute Details
#apply_lag ⇒ String
The lag time between updates to the primary database and application of the redo data on the standby database, as computed by the reporting database.
Example: ‘9 seconds`
46 47 48 |
# File 'lib/oci/database/models/data_guard_association_summary.rb', line 46 def apply_lag @apply_lag end |
#apply_rate ⇒ String
The rate at which redo logs are synced between the associated databases.
Example: ‘180 Mb per second`
53 54 55 |
# File 'lib/oci/database/models/data_guard_association_summary.rb', line 53 def apply_rate @apply_rate end |
#database_id ⇒ String
The [OCID](docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the reporting database.
57 58 59 |
# File 'lib/oci/database/models/data_guard_association_summary.rb', line 57 def database_id @database_id end |
#id ⇒ String
The [OCID](docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the Data Guard association.
61 62 63 |
# File 'lib/oci/database/models/data_guard_association_summary.rb', line 61 def id @id end |
#lifecycle_details ⇒ String
Additional information about the current lifecycleState, if available.
66 67 68 |
# File 'lib/oci/database/models/data_guard_association_summary.rb', line 66 def lifecycle_details @lifecycle_details end |
#lifecycle_state ⇒ String
The current state of the Data Guard association.
70 71 72 |
# File 'lib/oci/database/models/data_guard_association_summary.rb', line 70 def lifecycle_state @lifecycle_state end |
#peer_data_guard_association_id ⇒ String
The [OCID](docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the peer database’s Data Guard association.
74 75 76 |
# File 'lib/oci/database/models/data_guard_association_summary.rb', line 74 def peer_data_guard_association_id @peer_data_guard_association_id end |
#peer_database_id ⇒ String
The [OCID](docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the associated peer database.
78 79 80 |
# File 'lib/oci/database/models/data_guard_association_summary.rb', line 78 def peer_database_id @peer_database_id end |
#peer_db_home_id ⇒ String
The [OCID](docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the database home containing the associated peer database.
83 84 85 |
# File 'lib/oci/database/models/data_guard_association_summary.rb', line 83 def peer_db_home_id @peer_db_home_id end |
#peer_db_system_id ⇒ String
The [OCID](docs.us-phoenix-1.oraclecloud.com/Content/General/Concepts/identifiers.htm) of the DB System containing the associated peer database.
89 90 91 |
# File 'lib/oci/database/models/data_guard_association_summary.rb', line 89 def peer_db_system_id @peer_db_system_id end |
#peer_role ⇒ String
The role of the peer database in this Data Guard association.
93 94 95 |
# File 'lib/oci/database/models/data_guard_association_summary.rb', line 93 def peer_role @peer_role end |
#protection_mode ⇒ String
The protection mode of this Data Guard association. For more information, see [Oracle Data Guard Protection Modes](docs.oracle.com/database/122/SBYDB/oracle-data-guard-protection-modes.htm#SBYDB02000) in the Oracle Data Guard documentation.
100 101 102 |
# File 'lib/oci/database/models/data_guard_association_summary.rb', line 100 def protection_mode @protection_mode end |
#role ⇒ String
The role of the reporting database in this Data Guard association.
104 105 106 |
# File 'lib/oci/database/models/data_guard_association_summary.rb', line 104 def role @role end |
#time_created ⇒ DateTime
The date and time the Data Guard Association was created.
108 109 110 |
# File 'lib/oci/database/models/data_guard_association_summary.rb', line 108 def time_created @time_created end |
#transport_type ⇒ String
The redo transport type used by this Data Guard association. For more information, see [Redo Transport Services](docs.oracle.com/database/122/SBYDB/oracle-data-guard-redo-transport-services.htm#SBYDB00400) in the Oracle Data Guard documentation.
115 116 117 |
# File 'lib/oci/database/models/data_guard_association_summary.rb', line 115 def transport_type @transport_type end |
Instance Method Details
#==(other_object) ⇒ Object
Checks equality by comparing each attribute.
240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 |
# File 'lib/oci/database/models/data_guard_association_summary.rb', line 240 def ==(other_object) return true if self.equal?(other_object) self.class == other_object.class && apply_lag == other_object.apply_lag && apply_rate == other_object.apply_rate && database_id == other_object.database_id && id == other_object.id && lifecycle_details == other_object.lifecycle_details && lifecycle_state == other_object.lifecycle_state && peer_data_guard_association_id == other_object.peer_data_guard_association_id && peer_database_id == other_object.peer_database_id && peer_db_home_id == other_object.peer_db_home_id && peer_db_system_id == other_object.peer_db_system_id && peer_role == other_object.peer_role && protection_mode == other_object.protection_mode && role == other_object.role && time_created == other_object.time_created && transport_type == other_object.transport_type end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 |
# File 'lib/oci/database/models/data_guard_association_summary.rb', line 275 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) self.public_method("#{key}=").call(attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.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_object) ⇒ Boolean
262 263 264 |
# File 'lib/oci/database/models/data_guard_association_summary.rb', line 262 def eql?(other_object) self == other_object end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
268 269 270 |
# File 'lib/oci/database/models/data_guard_association_summary.rb', line 268 def hash [apply_lag, apply_rate, database_id, id, lifecycle_details, lifecycle_state, peer_data_guard_association_id, peer_database_id, peer_db_home_id, peer_db_system_id, peer_role, protection_mode, role, time_created, transport_type].hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
300 301 302 303 304 305 306 307 308 |
# File 'lib/oci/database/models/data_guard_association_summary.rb', line 300 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
294 295 296 |
# File 'lib/oci/database/models/data_guard_association_summary.rb', line 294 def to_s to_hash.to_s end |