Class: OCI::DatabaseMigration::Models::MigrationPhaseSummary
- Inherits:
-
Object
- Object
- OCI::DatabaseMigration::Models::MigrationPhaseSummary
- Defined in:
- lib/oci/database_migration/models/migration_phase_summary.rb
Overview
Migration Phase Summary of details.
Constant Summary collapse
- NAME_ENUM =
[ NAME_ODMS_VALIDATE_TGT = 'ODMS_VALIDATE_TGT'.freeze, NAME_ODMS_VALIDATE_SRC = 'ODMS_VALIDATE_SRC'.freeze, NAME_ODMS_VALIDATE_PREMIGRATION_ADVISOR = 'ODMS_VALIDATE_PREMIGRATION_ADVISOR'.freeze, NAME_ODMS_VALIDATE_GG_HUB = 'ODMS_VALIDATE_GG_HUB'.freeze, NAME_ODMS_VALIDATE_GG_SERVICE = 'ODMS_VALIDATE_GG_SERVICE'.freeze, NAME_ODMS_VALIDATE_DATAPUMP_SETTINGS = 'ODMS_VALIDATE_DATAPUMP_SETTINGS'.freeze, NAME_ODMS_VALIDATE_DATAPUMP_SETTINGS_SRC = 'ODMS_VALIDATE_DATAPUMP_SETTINGS_SRC'.freeze, NAME_ODMS_VALIDATE_DATAPUMP_SETTINGS_TGT = 'ODMS_VALIDATE_DATAPUMP_SETTINGS_TGT'.freeze, NAME_ODMS_VALIDATE_DATAPUMP_SRC = 'ODMS_VALIDATE_DATAPUMP_SRC'.freeze, NAME_ODMS_VALIDATE_DATAPUMP_ESTIMATE_SRC = 'ODMS_VALIDATE_DATAPUMP_ESTIMATE_SRC'.freeze, NAME_ODMS_INITIALIZE_GGS = 'ODMS_INITIALIZE_GGS'.freeze, NAME_ODMS_VALIDATE = 'ODMS_VALIDATE'.freeze, NAME_ODMS_PREPARE = 'ODMS_PREPARE'.freeze, NAME_ODMS_INITIAL_LOAD_EXPORT = 'ODMS_INITIAL_LOAD_EXPORT'.freeze, NAME_ODMS_DATA_UPLOAD = 'ODMS_DATA_UPLOAD'.freeze, NAME_ODMS_INITIAL_LOAD_IMPORT = 'ODMS_INITIAL_LOAD_IMPORT'.freeze, NAME_ODMS_POST_INITIAL_LOAD = 'ODMS_POST_INITIAL_LOAD'.freeze, NAME_ODMS_PREPARE_REPLICATION_TARGET = 'ODMS_PREPARE_REPLICATION_TARGET'.freeze, NAME_ODMS_MONITOR_REPLICATION_LAG = 'ODMS_MONITOR_REPLICATION_LAG'.freeze, NAME_ODMS_SWITCHOVER = 'ODMS_SWITCHOVER'.freeze, NAME_ODMS_CLEANUP = 'ODMS_CLEANUP'.freeze, NAME_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze
- RECOMMENDED_ACTION_ENUM =
[ RECOMMENDED_ACTION_WAIT = 'WAIT'.freeze, RECOMMENDED_ACTION_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze
Instance Attribute Summary collapse
-
#name ⇒ String
[Required] ODMS Job phase name.
-
#recommended_action ⇒ String
Action recommended for this phase.
-
#supported_actions ⇒ Array<OCI::DatabaseMigration::Models::OdmsPhaseActions>
[Required] Array of actions for the corresponding phase.
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 = {}) ⇒ MigrationPhaseSummary
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 = {}) ⇒ MigrationPhaseSummary
Initializes the object
89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 |
# File 'lib/oci/database_migration/models/migration_phase_summary.rb', line 89 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.name = attributes[:'name'] if attributes[:'name'] self.recommended_action = attributes[:'recommendedAction'] if attributes[:'recommendedAction'] raise 'You cannot provide both :recommendedAction and :recommended_action' if attributes.key?(:'recommendedAction') && attributes.key?(:'recommended_action') self.recommended_action = attributes[:'recommended_action'] if attributes[:'recommended_action'] self.supported_actions = attributes[:'supportedActions'] if attributes[:'supportedActions'] raise 'You cannot provide both :supportedActions and :supported_actions' if attributes.key?(:'supportedActions') && attributes.key?(:'supported_actions') self.supported_actions = attributes[:'supported_actions'] if attributes[:'supported_actions'] end |
Instance Attribute Details
#name ⇒ String
[Required] ODMS Job phase name
46 47 48 |
# File 'lib/oci/database_migration/models/migration_phase_summary.rb', line 46 def name @name end |
#recommended_action ⇒ String
Action recommended for this phase. If not included in the response, there is no recommended action for the phase.
51 52 53 |
# File 'lib/oci/database_migration/models/migration_phase_summary.rb', line 51 def recommended_action @recommended_action end |
#supported_actions ⇒ Array<OCI::DatabaseMigration::Models::OdmsPhaseActions>
[Required] Array of actions for the corresponding phase. Empty array would indicate there is no supported action for the phase.
56 57 58 |
# File 'lib/oci/database_migration/models/migration_phase_summary.rb', line 56 def supported_actions @supported_actions end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
59 60 61 62 63 64 65 66 67 |
# File 'lib/oci/database_migration/models/migration_phase_summary.rb', line 59 def self.attribute_map { # rubocop:disable Style/SymbolLiteral 'name': :'name', 'recommended_action': :'recommendedAction', 'supported_actions': :'supportedActions' # rubocop:enable Style/SymbolLiteral } end |
.swagger_types ⇒ Object
Attribute type mapping.
70 71 72 73 74 75 76 77 78 |
# File 'lib/oci/database_migration/models/migration_phase_summary.rb', line 70 def self.swagger_types { # rubocop:disable Style/SymbolLiteral 'name': :'String', 'recommended_action': :'String', 'supported_actions': :'Array<OCI::DatabaseMigration::Models::OdmsPhaseActions>' # rubocop:enable Style/SymbolLiteral } end |
Instance Method Details
#==(other) ⇒ Object
Checks equality by comparing each attribute.
143 144 145 146 147 148 149 150 |
# File 'lib/oci/database_migration/models/migration_phase_summary.rb', line 143 def ==(other) return true if equal?(other) self.class == other.class && name == other.name && recommended_action == other.recommended_action && supported_actions == other.supported_actions end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 |
# File 'lib/oci/database_migration/models/migration_phase_summary.rb', line 175 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
155 156 157 |
# File 'lib/oci/database_migration/models/migration_phase_summary.rb', line 155 def eql?(other) self == other end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
164 165 166 |
# File 'lib/oci/database_migration/models/migration_phase_summary.rb', line 164 def hash [name, recommended_action, supported_actions].hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
208 209 210 211 212 213 214 215 216 217 |
# File 'lib/oci/database_migration/models/migration_phase_summary.rb', line 208 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
202 203 204 |
# File 'lib/oci/database_migration/models/migration_phase_summary.rb', line 202 def to_s to_hash.to_s end |