Class: OCI::DatabaseMigration::Models::AssessorCheck
- Inherits:
-
Object
- Object
- OCI::DatabaseMigration::Models::AssessorCheck
- Defined in:
- lib/oci/database_migration/models/assessor_check.rb
Overview
Assessor Check
Constant Summary collapse
- ASSESSOR_CHECK_STATE_ENUM =
[ ASSESSOR_CHECK_STATE_PENDING_APPROVAL = 'PENDING_APPROVAL'.freeze, ASSESSOR_CHECK_STATE_PENDING_RESOLUTION = 'PENDING_RESOLUTION'.freeze, ASSESSOR_CHECK_STATE_PENDING_VALIDATION = 'PENDING_VALIDATION'.freeze, ASSESSOR_CHECK_STATE_NOT_ACKNOWLEDGED = 'NOT_ACKNOWLEDGED'.freeze, ASSESSOR_CHECK_STATE_APPROVED = 'APPROVED'.freeze, ASSESSOR_CHECK_STATE_ACKNOWLEDGED = 'ACKNOWLEDGED'.freeze, ASSESSOR_CHECK_STATE_VALIDATED = 'VALIDATED'.freeze, ASSESSOR_CHECK_STATE_PASSED = 'PASSED'.freeze, ASSESSOR_CHECK_STATE_PENDING = 'PENDING'.freeze, ASSESSOR_CHECK_STATE_STARTED = 'STARTED'.freeze, ASSESSOR_CHECK_STATE_COMPLETED = 'COMPLETED'.freeze, ASSESSOR_CHECK_STATE_FAILED = 'FAILED'.freeze, ASSESSOR_CHECK_STATE_SKIPPED = 'SKIPPED'.freeze, ASSESSOR_CHECK_STATE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze
Instance Attribute Summary collapse
-
#action ⇒ String
Fixing the issue.
-
#assessor_check_group ⇒ OCI::DatabaseMigration::Models::AssessorCheckGroup
This attribute is required.
-
#assessor_check_state ⇒ String
[Required] The current state of the Assessor Check.
- #check_action ⇒ OCI::DatabaseMigration::Models::AssessorCheckAction
-
#columns ⇒ Array<OCI::DatabaseMigration::Models::AdvisorReportCheckColumn>
Array of the column of the objects table.
-
#description ⇒ String
A user-friendly description.
-
#display_name ⇒ String
[Required] A user-friendly name.
-
#fixup_script_location ⇒ String
The path to the fixup script for this check.
-
#help_link_text ⇒ String
The Help link text.
-
#help_link_url ⇒ String
The Help URL.
-
#impact ⇒ String
Impact of the issue on data migration.
-
#is_exclusion_allowed ⇒ BOOLEAN
If false, objects cannot be excluded from migration.
-
#issue ⇒ String
Description of the issue.
-
#key ⇒ String
Pre-Migration u0441heck id.
- #log_location ⇒ OCI::DatabaseMigration::Models::LogLocationBucketDetails
- #metadata ⇒ OCI::DatabaseMigration::Models::ObjectMetadata
-
#name ⇒ String
[Required] The Name of the Check.
-
#object_count ⇒ Integer
Number of database objects to migrate.
-
#objects_display_name ⇒ String
The objects display name.
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 = {}) ⇒ AssessorCheck
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 = {}) ⇒ AssessorCheck
Initializes the object
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 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 |
# File 'lib/oci/database_migration/models/assessor_check.rb', line 194 def initialize(attributes = {}) return unless attributes.is_a?(Hash) self.name = attributes[:'name'] if attributes[:'name'] self.display_name = attributes[:'displayName'] if attributes[:'displayName'] raise 'You cannot provide both :displayName and :display_name' if attributes.key?(:'displayName') && attributes.key?(:'display_name') self.display_name = attributes[:'display_name'] if attributes[:'display_name'] self.description = attributes[:'description'] if attributes[:'description'] self.assessor_check_group = attributes[:'assessorCheckGroup'] if attributes[:'assessorCheckGroup'] raise 'You cannot provide both :assessorCheckGroup and :assessor_check_group' if attributes.key?(:'assessorCheckGroup') && attributes.key?(:'assessor_check_group') self.assessor_check_group = attributes[:'assessor_check_group'] if attributes[:'assessor_check_group'] self.help_link_url = attributes[:'helpLinkUrl'] if attributes[:'helpLinkUrl'] raise 'You cannot provide both :helpLinkUrl and :help_link_url' if attributes.key?(:'helpLinkUrl') && attributes.key?(:'help_link_url') self.help_link_url = attributes[:'help_link_url'] if attributes[:'help_link_url'] self.help_link_text = attributes[:'helpLinkText'] if attributes[:'helpLinkText'] raise 'You cannot provide both :helpLinkText and :help_link_text' if attributes.key?(:'helpLinkText') && attributes.key?(:'help_link_text') self.help_link_text = attributes[:'help_link_text'] if attributes[:'help_link_text'] self.assessor_check_state = attributes[:'assessorCheckState'] if attributes[:'assessorCheckState'] raise 'You cannot provide both :assessorCheckState and :assessor_check_state' if attributes.key?(:'assessorCheckState') && attributes.key?(:'assessor_check_state') self.assessor_check_state = attributes[:'assessor_check_state'] if attributes[:'assessor_check_state'] self.check_action = attributes[:'checkAction'] if attributes[:'checkAction'] raise 'You cannot provide both :checkAction and :check_action' if attributes.key?(:'checkAction') && attributes.key?(:'check_action') self.check_action = attributes[:'check_action'] if attributes[:'check_action'] self.key = attributes[:'key'] if attributes[:'key'] self.issue = attributes[:'issue'] if attributes[:'issue'] self.impact = attributes[:'impact'] if attributes[:'impact'] self.action = attributes[:'action'] if attributes[:'action'] self.fixup_script_location = attributes[:'fixupScriptLocation'] if attributes[:'fixupScriptLocation'] raise 'You cannot provide both :fixupScriptLocation and :fixup_script_location' if attributes.key?(:'fixupScriptLocation') && attributes.key?(:'fixup_script_location') self.fixup_script_location = attributes[:'fixup_script_location'] if attributes[:'fixup_script_location'] self.is_exclusion_allowed = attributes[:'isExclusionAllowed'] unless attributes[:'isExclusionAllowed'].nil? raise 'You cannot provide both :isExclusionAllowed and :is_exclusion_allowed' if attributes.key?(:'isExclusionAllowed') && attributes.key?(:'is_exclusion_allowed') self.is_exclusion_allowed = attributes[:'is_exclusion_allowed'] unless attributes[:'is_exclusion_allowed'].nil? self. = attributes[:'metadata'] if attributes[:'metadata'] self.columns = attributes[:'columns'] if attributes[:'columns'] self.object_count = attributes[:'objectCount'] if attributes[:'objectCount'] raise 'You cannot provide both :objectCount and :object_count' if attributes.key?(:'objectCount') && attributes.key?(:'object_count') self.object_count = attributes[:'object_count'] if attributes[:'object_count'] self.objects_display_name = attributes[:'objectsDisplayName'] if attributes[:'objectsDisplayName'] raise 'You cannot provide both :objectsDisplayName and :objects_display_name' if attributes.key?(:'objectsDisplayName') && attributes.key?(:'objects_display_name') self.objects_display_name = attributes[:'objects_display_name'] if attributes[:'objects_display_name'] 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'] end |
Instance Attribute Details
#action ⇒ String
Fixing the issue.
82 83 84 |
# File 'lib/oci/database_migration/models/assessor_check.rb', line 82 def action @action end |
#assessor_check_group ⇒ OCI::DatabaseMigration::Models::AssessorCheckGroup
This attribute is required.
47 48 49 |
# File 'lib/oci/database_migration/models/assessor_check.rb', line 47 def assessor_check_group @assessor_check_group end |
#assessor_check_state ⇒ String
[Required] The current state of the Assessor Check.
59 60 61 |
# File 'lib/oci/database_migration/models/assessor_check.rb', line 59 def assessor_check_state @assessor_check_state end |
#check_action ⇒ OCI::DatabaseMigration::Models::AssessorCheckAction
62 63 64 |
# File 'lib/oci/database_migration/models/assessor_check.rb', line 62 def check_action @check_action end |
#columns ⇒ Array<OCI::DatabaseMigration::Models::AdvisorReportCheckColumn>
Array of the column of the objects table.
100 101 102 |
# File 'lib/oci/database_migration/models/assessor_check.rb', line 100 def columns @columns end |
#description ⇒ String
A user-friendly description. Does not have to be unique, and it's changeable. Avoid entering confidential information.
43 44 45 |
# File 'lib/oci/database_migration/models/assessor_check.rb', line 43 def description @description end |
#display_name ⇒ String
[Required] A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
37 38 39 |
# File 'lib/oci/database_migration/models/assessor_check.rb', line 37 def display_name @display_name end |
#fixup_script_location ⇒ String
The path to the fixup script for this check.
87 88 89 |
# File 'lib/oci/database_migration/models/assessor_check.rb', line 87 def fixup_script_location @fixup_script_location end |
#help_link_text ⇒ String
The Help link text.
55 56 57 |
# File 'lib/oci/database_migration/models/assessor_check.rb', line 55 def help_link_text @help_link_text end |
#help_link_url ⇒ String
The Help URL.
51 52 53 |
# File 'lib/oci/database_migration/models/assessor_check.rb', line 51 def help_link_url @help_link_url end |
#impact ⇒ String
Impact of the issue on data migration.
77 78 79 |
# File 'lib/oci/database_migration/models/assessor_check.rb', line 77 def impact @impact end |
#is_exclusion_allowed ⇒ BOOLEAN
If false, objects cannot be excluded from migration.
92 93 94 |
# File 'lib/oci/database_migration/models/assessor_check.rb', line 92 def is_exclusion_allowed @is_exclusion_allowed end |
#issue ⇒ String
Description of the issue.
72 73 74 |
# File 'lib/oci/database_migration/models/assessor_check.rb', line 72 def issue @issue end |
#key ⇒ String
Pre-Migration u0441heck id.
67 68 69 |
# File 'lib/oci/database_migration/models/assessor_check.rb', line 67 def key @key end |
#log_location ⇒ OCI::DatabaseMigration::Models::LogLocationBucketDetails
113 114 115 |
# File 'lib/oci/database_migration/models/assessor_check.rb', line 113 def log_location @log_location end |
#metadata ⇒ OCI::DatabaseMigration::Models::ObjectMetadata
95 96 97 |
# File 'lib/oci/database_migration/models/assessor_check.rb', line 95 def @metadata end |
#name ⇒ String
[Required] The Name of the Check.
31 32 33 |
# File 'lib/oci/database_migration/models/assessor_check.rb', line 31 def name @name end |
#object_count ⇒ Integer
Number of database objects to migrate.
105 106 107 |
# File 'lib/oci/database_migration/models/assessor_check.rb', line 105 def object_count @object_count end |
#objects_display_name ⇒ String
The objects display name.
110 111 112 |
# File 'lib/oci/database_migration/models/assessor_check.rb', line 110 def objects_display_name @objects_display_name end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
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 |
# File 'lib/oci/database_migration/models/assessor_check.rb', line 116 def self.attribute_map { # rubocop:disable Style/SymbolLiteral 'name': :'name', 'display_name': :'displayName', 'description': :'description', 'assessor_check_group': :'assessorCheckGroup', 'help_link_url': :'helpLinkUrl', 'help_link_text': :'helpLinkText', 'assessor_check_state': :'assessorCheckState', 'check_action': :'checkAction', 'key': :'key', 'issue': :'issue', 'impact': :'impact', 'action': :'action', 'fixup_script_location': :'fixupScriptLocation', 'is_exclusion_allowed': :'isExclusionAllowed', 'metadata': :'metadata', 'columns': :'columns', 'object_count': :'objectCount', 'objects_display_name': :'objectsDisplayName', 'log_location': :'logLocation' # rubocop:enable Style/SymbolLiteral } end |
.swagger_types ⇒ Object
Attribute type mapping.
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 |
# File 'lib/oci/database_migration/models/assessor_check.rb', line 143 def self.swagger_types { # rubocop:disable Style/SymbolLiteral 'name': :'String', 'display_name': :'String', 'description': :'String', 'assessor_check_group': :'OCI::DatabaseMigration::Models::AssessorCheckGroup', 'help_link_url': :'String', 'help_link_text': :'String', 'assessor_check_state': :'String', 'check_action': :'OCI::DatabaseMigration::Models::AssessorCheckAction', 'key': :'String', 'issue': :'String', 'impact': :'String', 'action': :'String', 'fixup_script_location': :'String', 'is_exclusion_allowed': :'BOOLEAN', 'metadata': :'OCI::DatabaseMigration::Models::ObjectMetadata', 'columns': :'Array<OCI::DatabaseMigration::Models::AdvisorReportCheckColumn>', 'object_count': :'Integer', 'objects_display_name': :'String', 'log_location': :'OCI::DatabaseMigration::Models::LogLocationBucketDetails' # rubocop:enable Style/SymbolLiteral } end |
Instance Method Details
#==(other) ⇒ Object
Checks equality by comparing each attribute.
300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 |
# File 'lib/oci/database_migration/models/assessor_check.rb', line 300 def ==(other) return true if equal?(other) self.class == other.class && name == other.name && display_name == other.display_name && description == other.description && assessor_check_group == other.assessor_check_group && help_link_url == other.help_link_url && help_link_text == other.help_link_text && assessor_check_state == other.assessor_check_state && check_action == other.check_action && key == other.key && issue == other.issue && impact == other.impact && action == other.action && fixup_script_location == other.fixup_script_location && is_exclusion_allowed == other.is_exclusion_allowed && == other. && columns == other.columns && object_count == other.object_count && objects_display_name == other.objects_display_name && log_location == other.log_location end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 |
# File 'lib/oci/database_migration/models/assessor_check.rb', line 348 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
328 329 330 |
# File 'lib/oci/database_migration/models/assessor_check.rb', line 328 def eql?(other) self == other end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
337 338 339 |
# File 'lib/oci/database_migration/models/assessor_check.rb', line 337 def hash [name, display_name, description, assessor_check_group, help_link_url, help_link_text, assessor_check_state, check_action, key, issue, impact, action, fixup_script_location, is_exclusion_allowed, , columns, object_count, objects_display_name, log_location].hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
381 382 383 384 385 386 387 388 389 390 |
# File 'lib/oci/database_migration/models/assessor_check.rb', line 381 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
375 376 377 |
# File 'lib/oci/database_migration/models/assessor_check.rb', line 375 def to_s to_hash.to_s end |