Class: OCI::DatabaseMigration::Models::PhaseStatus
- Inherits:
-
Object
- Object
- OCI::DatabaseMigration::Models::PhaseStatus
- Defined in:
- lib/oci/database_migration/models/phase_status.rb
Overview
Job phase status 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_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_FETCH_METADATA_SRC = 'ODMS_FETCH_METADATA_SRC'.freeze, NAME_ODMS_FETCH_METADATA_TGT = 'ODMS_FETCH_METADATA_TGT'.freeze, NAME_ODMS_VALIDATE = 'ODMS_VALIDATE'.freeze, NAME_ODMS_PREPARE = 'ODMS_PREPARE'.freeze, NAME_ODMS_INITIALIZE_REPLICATION_INFRASTRUCTURE = 'ODMS_INITIALIZE_REPLICATION_INFRASTRUCTURE'.freeze, NAME_ODMS_INITIAL_LOAD_EXPORT = 'ODMS_INITIAL_LOAD_EXPORT'.freeze, NAME_ODMS_DATA_UPLOAD = 'ODMS_DATA_UPLOAD'.freeze, NAME_ODMS_METADATA_TRANSFER = 'ODMS_METADATA_TRANSFER'.freeze, NAME_ODMS_INITIAL_LOAD_EXPORT_DATA_UPLOAD = 'ODMS_INITIAL_LOAD_EXPORT_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
- STATUS_ENUM =
[ STATUS_PENDING = 'PENDING'.freeze, STATUS_STARTED = 'STARTED'.freeze, STATUS_COMPLETED = 'COMPLETED'.freeze, STATUS_FAILED = 'FAILED'.freeze, STATUS_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze
- EDITABLE_PARAMETER_FILES_ENUM =
[ EDITABLE_PARAMETER_FILES_EXTRACT = 'EXTRACT'.freeze, EDITABLE_PARAMETER_FILES_REPLICAT = 'REPLICAT'.freeze, EDITABLE_PARAMETER_FILES_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze
Instance Attribute Summary collapse
-
#action ⇒ String
The text describing the action required to fix the issue.
-
#duration_in_ms ⇒ Integer
[Required] Duration of the phase in milliseconds.
-
#editable_parameter_files ⇒ Array<String>
Attribute that returns an array of names and types of GoldenGate configuration files that are available for read or update.
-
#extract ⇒ Array<OCI::DatabaseMigration::Models::PhaseExtractEntry>
Summary of phase status results.
-
#is_advisor_report_available ⇒ BOOLEAN
True if a Pre-Migration Advisor report is available for this phase.
-
#is_suspend_available ⇒ BOOLEAN
This is returned as true if the current phase can be suspended.
-
#issue ⇒ String
The text describing the root cause of the reported issue.
- #log_location ⇒ OCI::DatabaseMigration::Models::LogLocationBucketDetails
-
#name ⇒ String
[Required] Phase name.
-
#progress ⇒ Integer
Percent progress of job phase.
-
#status ⇒ String
[Required] Phase status.
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 = {}) ⇒ PhaseStatus
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 = {}) ⇒ PhaseStatus
Initializes the object
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 |
# File 'lib/oci/database_migration/models/phase_status.rb', line 163 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.status = attributes[:'status'] if attributes[:'status'] self.duration_in_ms = attributes[:'durationInMs'] if attributes[:'durationInMs'] raise 'You cannot provide both :durationInMs and :duration_in_ms' if attributes.key?(:'durationInMs') && attributes.key?(:'duration_in_ms') self.duration_in_ms = attributes[:'duration_in_ms'] if attributes[:'duration_in_ms'] self.is_advisor_report_available = attributes[:'isAdvisorReportAvailable'] unless attributes[:'isAdvisorReportAvailable'].nil? raise 'You cannot provide both :isAdvisorReportAvailable and :is_advisor_report_available' if attributes.key?(:'isAdvisorReportAvailable') && attributes.key?(:'is_advisor_report_available') self.is_advisor_report_available = attributes[:'is_advisor_report_available'] unless attributes[:'is_advisor_report_available'].nil? self.issue = attributes[:'issue'] if attributes[:'issue'] self.action = attributes[:'action'] if attributes[:'action'] self.extract = attributes[:'extract'] if attributes[:'extract'] self.log_location = attributes[:'logLocation'] if attributes[:'logLocation'] raise 'You cannot provide both :logLocation and :log_location' if attributes.key?(:'logLocation') && attributes.key?(:'log_location') self.log_location = attributes[:'log_location'] if attributes[:'log_location'] self.progress = attributes[:'progress'] if attributes[:'progress'] self.is_suspend_available = attributes[:'isSuspendAvailable'] unless attributes[:'isSuspendAvailable'].nil? raise 'You cannot provide both :isSuspendAvailable and :is_suspend_available' if attributes.key?(:'isSuspendAvailable') && attributes.key?(:'is_suspend_available') self.is_suspend_available = attributes[:'is_suspend_available'] unless attributes[:'is_suspend_available'].nil? self.editable_parameter_files = attributes[:'editableParameterFiles'] if attributes[:'editableParameterFiles'] raise 'You cannot provide both :editableParameterFiles and :editable_parameter_files' if attributes.key?(:'editableParameterFiles') && attributes.key?(:'editable_parameter_files') self.editable_parameter_files = attributes[:'editable_parameter_files'] if attributes[:'editable_parameter_files'] end |
Instance Attribute Details
#action ⇒ String
The text describing the action required to fix the issue
83 84 85 |
# File 'lib/oci/database_migration/models/phase_status.rb', line 83 def action @action end |
#duration_in_ms ⇒ Integer
[Required] Duration of the phase in milliseconds
68 69 70 |
# File 'lib/oci/database_migration/models/phase_status.rb', line 68 def duration_in_ms @duration_in_ms end |
#editable_parameter_files ⇒ Array<String>
Attribute that returns an array of names and types of GoldenGate configuration files that are available for read or update.
106 107 108 |
# File 'lib/oci/database_migration/models/phase_status.rb', line 106 def editable_parameter_files @editable_parameter_files end |
#extract ⇒ Array<OCI::DatabaseMigration::Models::PhaseExtractEntry>
Summary of phase status results.
88 89 90 |
# File 'lib/oci/database_migration/models/phase_status.rb', line 88 def extract @extract end |
#is_advisor_report_available ⇒ BOOLEAN
True if a Pre-Migration Advisor report is available for this phase. False or null if no report is available.
73 74 75 |
# File 'lib/oci/database_migration/models/phase_status.rb', line 73 def is_advisor_report_available @is_advisor_report_available end |
#is_suspend_available ⇒ BOOLEAN
This is returned as true if the current phase can be suspended.
101 102 103 |
# File 'lib/oci/database_migration/models/phase_status.rb', line 101 def is_suspend_available @is_suspend_available end |
#issue ⇒ String
The text describing the root cause of the reported issue
78 79 80 |
# File 'lib/oci/database_migration/models/phase_status.rb', line 78 def issue @issue end |
#log_location ⇒ OCI::DatabaseMigration::Models::LogLocationBucketDetails
91 92 93 |
# File 'lib/oci/database_migration/models/phase_status.rb', line 91 def log_location @log_location end |
#name ⇒ String
[Required] Phase name
58 59 60 |
# File 'lib/oci/database_migration/models/phase_status.rb', line 58 def name @name end |
#progress ⇒ Integer
Percent progress of job phase.
96 97 98 |
# File 'lib/oci/database_migration/models/phase_status.rb', line 96 def progress @progress end |
#status ⇒ String
[Required] Phase status
63 64 65 |
# File 'lib/oci/database_migration/models/phase_status.rb', line 63 def status @status end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 |
# File 'lib/oci/database_migration/models/phase_status.rb', line 109 def self.attribute_map { # rubocop:disable Style/SymbolLiteral 'name': :'name', 'status': :'status', 'duration_in_ms': :'durationInMs', 'is_advisor_report_available': :'isAdvisorReportAvailable', 'issue': :'issue', 'action': :'action', 'extract': :'extract', 'log_location': :'logLocation', 'progress': :'progress', 'is_suspend_available': :'isSuspendAvailable', 'editable_parameter_files': :'editableParameterFiles' # rubocop:enable Style/SymbolLiteral } end |
.swagger_types ⇒ Object
Attribute type mapping.
128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 |
# File 'lib/oci/database_migration/models/phase_status.rb', line 128 def self.swagger_types { # rubocop:disable Style/SymbolLiteral 'name': :'String', 'status': :'String', 'duration_in_ms': :'Integer', 'is_advisor_report_available': :'BOOLEAN', 'issue': :'String', 'action': :'String', 'extract': :'Array<OCI::DatabaseMigration::Models::PhaseExtractEntry>', 'log_location': :'OCI::DatabaseMigration::Models::LogLocationBucketDetails', 'progress': :'Integer', 'is_suspend_available': :'BOOLEAN', 'editable_parameter_files': :'Array<String>' # rubocop:enable Style/SymbolLiteral } end |
Instance Method Details
#==(other) ⇒ Object
Checks equality by comparing each attribute.
265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 |
# File 'lib/oci/database_migration/models/phase_status.rb', line 265 def ==(other) return true if equal?(other) self.class == other.class && name == other.name && status == other.status && duration_in_ms == other.duration_in_ms && is_advisor_report_available == other.is_advisor_report_available && issue == other.issue && action == other.action && extract == other.extract && log_location == other.log_location && progress == other.progress && is_suspend_available == other.is_suspend_available && editable_parameter_files == other.editable_parameter_files end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 |
# File 'lib/oci/database_migration/models/phase_status.rb', line 305 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
285 286 287 |
# File 'lib/oci/database_migration/models/phase_status.rb', line 285 def eql?(other) self == other end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
294 295 296 |
# File 'lib/oci/database_migration/models/phase_status.rb', line 294 def hash [name, status, duration_in_ms, is_advisor_report_available, issue, action, extract, log_location, progress, is_suspend_available, editable_parameter_files].hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
338 339 340 341 342 343 344 345 346 347 |
# File 'lib/oci/database_migration/models/phase_status.rb', line 338 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
332 333 334 |
# File 'lib/oci/database_migration/models/phase_status.rb', line 332 def to_s to_hash.to_s end |