Class: OCI::Jms::Models::JavaMigrationAnalysisResultSummary
- Inherits:
-
Object
- Object
- OCI::Jms::Models::JavaMigrationAnalysisResultSummary
- Defined in:
- lib/oci/jms/models/java_migration_analysis_result_summary.rb
Overview
Summary of a Java migration analysis result. The output of the analysis is stored in the Object Storage object.
Constant Summary collapse
- APPLICATION_EXECUTION_TYPE_ENUM =
[ APPLICATION_EXECUTION_TYPE_INSTALLED = 'INSTALLED'.freeze, APPLICATION_EXECUTION_TYPE_DEPLOYED = 'DEPLOYED'.freeze, APPLICATION_EXECUTION_TYPE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze
Instance Attribute Summary collapse
-
#application_execution_type ⇒ String
[Required] Execution type of the application for an application type, such as WAR and EAR, that is deployed or installed.
-
#application_key ⇒ String
The unique key that identifies the application.
-
#application_name ⇒ String
[Required] The name of the application for which the Java migration analysis was performed.
-
#application_path ⇒ String
[Required] The installation path of the application for which the Java migration analysis was performed.
-
#bucket_name ⇒ String
[Required] The name of the object storage bucket that contains the results of the migration analysis.
-
#fleet_id ⇒ String
[Required] The fleet OCID.
-
#host_name ⇒ String
The hostname of the managed instance that hosts the application for which the Java migration analysis was performed.
-
#id ⇒ String
[Required] The OCID of the migration analysis report.
-
#managed_instance_id ⇒ String
The managed instance OCID.
-
#metadata ⇒ String
[Required] Additional info reserved for future use.
-
#namespace ⇒ String
[Required] The object storage namespace that contains the results of the migration analysis.
-
#object_list ⇒ Array<String>
[Required] The names of the object storage objects that contain the results of the migration analysis.
-
#object_storage_upload_dir_path ⇒ String
[Required] The directory path of the object storage bucket that contains the results of the migration analysis.
-
#source_jdk_version ⇒ String
[Required] The source JDK version of the application that's currently running.
-
#target_jdk_version ⇒ String
[Required] The target JDK version of the application to be migrated.
-
#time_created ⇒ DateTime
The time the result is compiled.
-
#work_request_id ⇒ String
The OCID of the work request of this analysis.
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 = {}) ⇒ JavaMigrationAnalysisResultSummary
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 = {}) ⇒ JavaMigrationAnalysisResultSummary
Initializes the object
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 187 188 189 190 191 192 193 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 |
# File 'lib/oci/jms/models/java_migration_analysis_result_summary.rb', line 159 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.id = attributes[:'id'] if attributes[:'id'] self.work_request_id = attributes[:'workRequestId'] if attributes[:'workRequestId'] raise 'You cannot provide both :workRequestId and :work_request_id' if attributes.key?(:'workRequestId') && attributes.key?(:'work_request_id') self.work_request_id = attributes[:'work_request_id'] if attributes[:'work_request_id'] self.fleet_id = attributes[:'fleetId'] if attributes[:'fleetId'] raise 'You cannot provide both :fleetId and :fleet_id' if attributes.key?(:'fleetId') && attributes.key?(:'fleet_id') self.fleet_id = attributes[:'fleet_id'] if attributes[:'fleet_id'] self.application_key = attributes[:'applicationKey'] if attributes[:'applicationKey'] raise 'You cannot provide both :applicationKey and :application_key' if attributes.key?(:'applicationKey') && attributes.key?(:'application_key') self.application_key = attributes[:'application_key'] if attributes[:'application_key'] self.application_name = attributes[:'applicationName'] if attributes[:'applicationName'] raise 'You cannot provide both :applicationName and :application_name' if attributes.key?(:'applicationName') && attributes.key?(:'application_name') self.application_name = attributes[:'application_name'] if attributes[:'application_name'] self.application_path = attributes[:'applicationPath'] if attributes[:'applicationPath'] raise 'You cannot provide both :applicationPath and :application_path' if attributes.key?(:'applicationPath') && attributes.key?(:'application_path') self.application_path = attributes[:'application_path'] if attributes[:'application_path'] self.application_execution_type = attributes[:'applicationExecutionType'] if attributes[:'applicationExecutionType'] raise 'You cannot provide both :applicationExecutionType and :application_execution_type' if attributes.key?(:'applicationExecutionType') && attributes.key?(:'application_execution_type') self.application_execution_type = attributes[:'application_execution_type'] if attributes[:'application_execution_type'] self.source_jdk_version = attributes[:'sourceJdkVersion'] if attributes[:'sourceJdkVersion'] raise 'You cannot provide both :sourceJdkVersion and :source_jdk_version' if attributes.key?(:'sourceJdkVersion') && attributes.key?(:'source_jdk_version') self.source_jdk_version = attributes[:'source_jdk_version'] if attributes[:'source_jdk_version'] self.target_jdk_version = attributes[:'targetJdkVersion'] if attributes[:'targetJdkVersion'] raise 'You cannot provide both :targetJdkVersion and :target_jdk_version' if attributes.key?(:'targetJdkVersion') && attributes.key?(:'target_jdk_version') self.target_jdk_version = attributes[:'target_jdk_version'] if attributes[:'target_jdk_version'] self.managed_instance_id = attributes[:'managedInstanceId'] if attributes[:'managedInstanceId'] raise 'You cannot provide both :managedInstanceId and :managed_instance_id' if attributes.key?(:'managedInstanceId') && attributes.key?(:'managed_instance_id') self.managed_instance_id = attributes[:'managed_instance_id'] if attributes[:'managed_instance_id'] self.host_name = attributes[:'hostName'] if attributes[:'hostName'] raise 'You cannot provide both :hostName and :host_name' if attributes.key?(:'hostName') && attributes.key?(:'host_name') self.host_name = attributes[:'host_name'] if attributes[:'host_name'] self.time_created = attributes[:'timeCreated'] if attributes[:'timeCreated'] raise 'You cannot provide both :timeCreated and :time_created' if attributes.key?(:'timeCreated') && attributes.key?(:'time_created') self.time_created = attributes[:'time_created'] if attributes[:'time_created'] self.namespace = attributes[:'namespace'] if attributes[:'namespace'] self.bucket_name = attributes[:'bucketName'] if attributes[:'bucketName'] raise 'You cannot provide both :bucketName and :bucket_name' if attributes.key?(:'bucketName') && attributes.key?(:'bucket_name') self.bucket_name = attributes[:'bucket_name'] if attributes[:'bucket_name'] self.object_storage_upload_dir_path = attributes[:'objectStorageUploadDirPath'] if attributes[:'objectStorageUploadDirPath'] raise 'You cannot provide both :objectStorageUploadDirPath and :object_storage_upload_dir_path' if attributes.key?(:'objectStorageUploadDirPath') && attributes.key?(:'object_storage_upload_dir_path') self.object_storage_upload_dir_path = attributes[:'object_storage_upload_dir_path'] if attributes[:'object_storage_upload_dir_path'] self.object_list = attributes[:'objectList'] if attributes[:'objectList'] raise 'You cannot provide both :objectList and :object_list' if attributes.key?(:'objectList') && attributes.key?(:'object_list') self.object_list = attributes[:'object_list'] if attributes[:'object_list'] self. = attributes[:'metadata'] if attributes[:'metadata'] end |
Instance Attribute Details
#application_execution_type ⇒ String
[Required] Execution type of the application for an application type, such as WAR and EAR, that is deployed or installed.
44 45 46 |
# File 'lib/oci/jms/models/java_migration_analysis_result_summary.rb', line 44 def application_execution_type @application_execution_type end |
#application_key ⇒ String
The unique key that identifies the application.
32 33 34 |
# File 'lib/oci/jms/models/java_migration_analysis_result_summary.rb', line 32 def application_key @application_key end |
#application_name ⇒ String
[Required] The name of the application for which the Java migration analysis was performed.
36 37 38 |
# File 'lib/oci/jms/models/java_migration_analysis_result_summary.rb', line 36 def application_name @application_name end |
#application_path ⇒ String
[Required] The installation path of the application for which the Java migration analysis was performed.
40 41 42 |
# File 'lib/oci/jms/models/java_migration_analysis_result_summary.rb', line 40 def application_path @application_path end |
#bucket_name ⇒ String
[Required] The name of the object storage bucket that contains the results of the migration analysis.
72 73 74 |
# File 'lib/oci/jms/models/java_migration_analysis_result_summary.rb', line 72 def bucket_name @bucket_name end |
#fleet_id ⇒ String
[Required] The fleet OCID.
28 29 30 |
# File 'lib/oci/jms/models/java_migration_analysis_result_summary.rb', line 28 def fleet_id @fleet_id end |
#host_name ⇒ String
The hostname of the managed instance that hosts the application for which the Java migration analysis was performed.
60 61 62 |
# File 'lib/oci/jms/models/java_migration_analysis_result_summary.rb', line 60 def host_name @host_name end |
#id ⇒ String
[Required] The OCID of the migration analysis report.
20 21 22 |
# File 'lib/oci/jms/models/java_migration_analysis_result_summary.rb', line 20 def id @id end |
#managed_instance_id ⇒ String
The managed instance OCID.
56 57 58 |
# File 'lib/oci/jms/models/java_migration_analysis_result_summary.rb', line 56 def managed_instance_id @managed_instance_id end |
#metadata ⇒ String
[Required] Additional info reserved for future use.
84 85 86 |
# File 'lib/oci/jms/models/java_migration_analysis_result_summary.rb', line 84 def @metadata end |
#namespace ⇒ String
[Required] The object storage namespace that contains the results of the migration analysis.
68 69 70 |
# File 'lib/oci/jms/models/java_migration_analysis_result_summary.rb', line 68 def namespace @namespace end |
#object_list ⇒ Array<String>
[Required] The names of the object storage objects that contain the results of the migration analysis.
80 81 82 |
# File 'lib/oci/jms/models/java_migration_analysis_result_summary.rb', line 80 def object_list @object_list end |
#object_storage_upload_dir_path ⇒ String
[Required] The directory path of the object storage bucket that contains the results of the migration analysis.
76 77 78 |
# File 'lib/oci/jms/models/java_migration_analysis_result_summary.rb', line 76 def object_storage_upload_dir_path @object_storage_upload_dir_path end |
#source_jdk_version ⇒ String
[Required] The source JDK version of the application that's currently running.
48 49 50 |
# File 'lib/oci/jms/models/java_migration_analysis_result_summary.rb', line 48 def source_jdk_version @source_jdk_version end |
#target_jdk_version ⇒ String
[Required] The target JDK version of the application to be migrated.
52 53 54 |
# File 'lib/oci/jms/models/java_migration_analysis_result_summary.rb', line 52 def target_jdk_version @target_jdk_version end |
#time_created ⇒ DateTime
The time the result is compiled.
64 65 66 |
# File 'lib/oci/jms/models/java_migration_analysis_result_summary.rb', line 64 def time_created @time_created end |
#work_request_id ⇒ String
The OCID of the work request of this analysis.
24 25 26 |
# File 'lib/oci/jms/models/java_migration_analysis_result_summary.rb', line 24 def work_request_id @work_request_id end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 |
# File 'lib/oci/jms/models/java_migration_analysis_result_summary.rb', line 87 def self.attribute_map { # rubocop:disable Style/SymbolLiteral 'id': :'id', 'work_request_id': :'workRequestId', 'fleet_id': :'fleetId', 'application_key': :'applicationKey', 'application_name': :'applicationName', 'application_path': :'applicationPath', 'application_execution_type': :'applicationExecutionType', 'source_jdk_version': :'sourceJdkVersion', 'target_jdk_version': :'targetJdkVersion', 'managed_instance_id': :'managedInstanceId', 'host_name': :'hostName', 'time_created': :'timeCreated', 'namespace': :'namespace', 'bucket_name': :'bucketName', 'object_storage_upload_dir_path': :'objectStorageUploadDirPath', 'object_list': :'objectList', 'metadata': :'metadata' # rubocop:enable Style/SymbolLiteral } end |
.swagger_types ⇒ Object
Attribute type mapping.
112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 |
# File 'lib/oci/jms/models/java_migration_analysis_result_summary.rb', line 112 def self.swagger_types { # rubocop:disable Style/SymbolLiteral 'id': :'String', 'work_request_id': :'String', 'fleet_id': :'String', 'application_key': :'String', 'application_name': :'String', 'application_path': :'String', 'application_execution_type': :'String', 'source_jdk_version': :'String', 'target_jdk_version': :'String', 'managed_instance_id': :'String', 'host_name': :'String', 'time_created': :'DateTime', 'namespace': :'String', 'bucket_name': :'String', 'object_storage_upload_dir_path': :'String', 'object_list': :'Array<String>', 'metadata': :'String' # rubocop:enable Style/SymbolLiteral } end |
Instance Method Details
#==(other) ⇒ Object
Checks equality by comparing each attribute.
276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 |
# File 'lib/oci/jms/models/java_migration_analysis_result_summary.rb', line 276 def ==(other) return true if equal?(other) self.class == other.class && id == other.id && work_request_id == other.work_request_id && fleet_id == other.fleet_id && application_key == other.application_key && application_name == other.application_name && application_path == other.application_path && application_execution_type == other.application_execution_type && source_jdk_version == other.source_jdk_version && target_jdk_version == other.target_jdk_version && managed_instance_id == other.managed_instance_id && host_name == other.host_name && time_created == other.time_created && namespace == other.namespace && bucket_name == other.bucket_name && object_storage_upload_dir_path == other.object_storage_upload_dir_path && object_list == other.object_list && == other. end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 |
# File 'lib/oci/jms/models/java_migration_analysis_result_summary.rb', line 322 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
302 303 304 |
# File 'lib/oci/jms/models/java_migration_analysis_result_summary.rb', line 302 def eql?(other) self == other end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
311 312 313 |
# File 'lib/oci/jms/models/java_migration_analysis_result_summary.rb', line 311 def hash [id, work_request_id, fleet_id, application_key, application_name, application_path, application_execution_type, source_jdk_version, target_jdk_version, managed_instance_id, host_name, time_created, namespace, bucket_name, object_storage_upload_dir_path, object_list, ].hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
355 356 357 358 359 360 361 362 363 364 |
# File 'lib/oci/jms/models/java_migration_analysis_result_summary.rb', line 355 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
349 350 351 |
# File 'lib/oci/jms/models/java_migration_analysis_result_summary.rb', line 349 def to_s to_hash.to_s end |