Class: OCI::JmsUtils::Models::JavaMigrationAnalysis
- Inherits:
-
Object
- Object
- OCI::JmsUtils::Models::JavaMigrationAnalysis
- Defined in:
- lib/oci/jms_utils/models/java_migration_analysis.rb
Overview
To use any of the API operations, you must be authorized by an IAM policy. If you're not authorized, talk to an administrator. If you're an administrator who needs to write policies to give users access, see Getting Started with Policies.
Instance Attribute Summary collapse
-
#analysis_project_name ⇒ String
[Required] Name of the analysis project.
-
#analysis_result_files ⇒ Array<String>
[Required] The analysis application file names result in the Object Storage.
-
#analysis_result_object_storage_path ⇒ String
[Required] Path to the Object Storage analysis application result.
-
#bucket_name ⇒ String
[Required] Object storage bucket name.
-
#compartment_id ⇒ String
[Required] The OCID of the compartment.
-
#created_by ⇒ OCI::JmsUtils::Models::Principal
This attribute is required.
-
#id ⇒ String
[Required] The OCID of the Java Migration Analysis.
-
#input_applications_object_storage_paths ⇒ Array<String>
[Required] Object storage paths to the input files applications to be analysed.
-
#metadata ⇒ String
Additional info reserved for future use.
-
#namespace_name ⇒ String
[Required] Object storage namespace.
-
#target_jdk_version ⇒ String
[Required] Jdk Version of the Java Migration Analysis target.
-
#time_created ⇒ DateTime
[Required] The date and time the Java Migration Analysis was created, in the format defined by RFC 3339.
-
#time_finished ⇒ DateTime
[Required] The date and time the Java Migration Analysis was finished, in the format defined by RFC 3339.
-
#time_started ⇒ DateTime
[Required] The date and time the Java Migration Analysis was started, in the format defined by RFC 3339.
-
#work_request_id ⇒ String
[Required] The OCID of the Work Request.
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 = {}) ⇒ JavaMigrationAnalysis
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 = {}) ⇒ JavaMigrationAnalysis
Initializes the object
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 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 |
# File 'lib/oci/jms_utils/models/java_migration_analysis.rb', line 150 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.compartment_id = attributes[:'compartmentId'] if attributes[:'compartmentId'] raise 'You cannot provide both :compartmentId and :compartment_id' if attributes.key?(:'compartmentId') && attributes.key?(:'compartment_id') self.compartment_id = attributes[:'compartment_id'] if attributes[:'compartment_id'] self.analysis_project_name = attributes[:'analysisProjectName'] if attributes[:'analysisProjectName'] raise 'You cannot provide both :analysisProjectName and :analysis_project_name' if attributes.key?(:'analysisProjectName') && attributes.key?(:'analysis_project_name') self.analysis_project_name = attributes[:'analysis_project_name'] if attributes[:'analysis_project_name'] self.input_applications_object_storage_paths = attributes[:'inputApplicationsObjectStoragePaths'] if attributes[:'inputApplicationsObjectStoragePaths'] raise 'You cannot provide both :inputApplicationsObjectStoragePaths and :input_applications_object_storage_paths' if attributes.key?(:'inputApplicationsObjectStoragePaths') && attributes.key?(:'input_applications_object_storage_paths') self.input_applications_object_storage_paths = attributes[:'input_applications_object_storage_paths'] if attributes[:'input_applications_object_storage_paths'] 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.namespace_name = attributes[:'namespaceName'] if attributes[:'namespaceName'] raise 'You cannot provide both :namespaceName and :namespace_name' if attributes.key?(:'namespaceName') && attributes.key?(:'namespace_name') self.namespace_name = attributes[:'namespace_name'] if attributes[:'namespace_name'] 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.analysis_result_object_storage_path = attributes[:'analysisResultObjectStoragePath'] if attributes[:'analysisResultObjectStoragePath'] raise 'You cannot provide both :analysisResultObjectStoragePath and :analysis_result_object_storage_path' if attributes.key?(:'analysisResultObjectStoragePath') && attributes.key?(:'analysis_result_object_storage_path') self.analysis_result_object_storage_path = attributes[:'analysis_result_object_storage_path'] if attributes[:'analysis_result_object_storage_path'] self.analysis_result_files = attributes[:'analysisResultFiles'] if attributes[:'analysisResultFiles'] raise 'You cannot provide both :analysisResultFiles and :analysis_result_files' if attributes.key?(:'analysisResultFiles') && attributes.key?(:'analysis_result_files') self.analysis_result_files = attributes[:'analysis_result_files'] if attributes[:'analysis_result_files'] 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.time_started = attributes[:'timeStarted'] if attributes[:'timeStarted'] raise 'You cannot provide both :timeStarted and :time_started' if attributes.key?(:'timeStarted') && attributes.key?(:'time_started') self.time_started = attributes[:'time_started'] if attributes[:'time_started'] self.time_finished = attributes[:'timeFinished'] if attributes[:'timeFinished'] raise 'You cannot provide both :timeFinished and :time_finished' if attributes.key?(:'timeFinished') && attributes.key?(:'time_finished') self.time_finished = attributes[:'time_finished'] if attributes[:'time_finished'] self.created_by = attributes[:'createdBy'] if attributes[:'createdBy'] raise 'You cannot provide both :createdBy and :created_by' if attributes.key?(:'createdBy') && attributes.key?(:'created_by') self.created_by = attributes[:'created_by'] if attributes[:'created_by'] self. = attributes[:'metadata'] if attributes[:'metadata'] end |
Instance Attribute Details
#analysis_project_name ⇒ String
[Required] Name of the analysis project.
28 29 30 |
# File 'lib/oci/jms_utils/models/java_migration_analysis.rb', line 28 def analysis_project_name @analysis_project_name end |
#analysis_result_files ⇒ Array<String>
[Required] The analysis application file names result in the Object Storage.
52 53 54 |
# File 'lib/oci/jms_utils/models/java_migration_analysis.rb', line 52 def analysis_result_files @analysis_result_files end |
#analysis_result_object_storage_path ⇒ String
[Required] Path to the Object Storage analysis application result.
48 49 50 |
# File 'lib/oci/jms_utils/models/java_migration_analysis.rb', line 48 def analysis_result_object_storage_path @analysis_result_object_storage_path end |
#bucket_name ⇒ String
[Required] Object storage bucket name.
44 45 46 |
# File 'lib/oci/jms_utils/models/java_migration_analysis.rb', line 44 def bucket_name @bucket_name end |
#compartment_id ⇒ String
[Required] The OCID of the compartment.
24 25 26 |
# File 'lib/oci/jms_utils/models/java_migration_analysis.rb', line 24 def compartment_id @compartment_id end |
#created_by ⇒ OCI::JmsUtils::Models::Principal
This attribute is required.
77 78 79 |
# File 'lib/oci/jms_utils/models/java_migration_analysis.rb', line 77 def created_by @created_by end |
#id ⇒ String
[Required] The OCID of the Java Migration Analysis.
16 17 18 |
# File 'lib/oci/jms_utils/models/java_migration_analysis.rb', line 16 def id @id end |
#input_applications_object_storage_paths ⇒ Array<String>
[Required] Object storage paths to the input files applications to be analysed.
32 33 34 |
# File 'lib/oci/jms_utils/models/java_migration_analysis.rb', line 32 def input_applications_object_storage_paths @input_applications_object_storage_paths end |
#metadata ⇒ String
Additional info reserved for future use.
81 82 83 |
# File 'lib/oci/jms_utils/models/java_migration_analysis.rb', line 81 def @metadata end |
#namespace_name ⇒ String
[Required] Object storage namespace.
40 41 42 |
# File 'lib/oci/jms_utils/models/java_migration_analysis.rb', line 40 def namespace_name @namespace_name end |
#target_jdk_version ⇒ String
[Required] Jdk Version of the Java Migration Analysis target.
36 37 38 |
# File 'lib/oci/jms_utils/models/java_migration_analysis.rb', line 36 def target_jdk_version @target_jdk_version end |
#time_created ⇒ DateTime
[Required] The date and time the Java Migration Analysis was created, in the format defined by RFC 3339.
Example: 2016-08-25T21:10:29.600Z
59 60 61 |
# File 'lib/oci/jms_utils/models/java_migration_analysis.rb', line 59 def time_created @time_created end |
#time_finished ⇒ DateTime
[Required] The date and time the Java Migration Analysis was finished, in the format defined by RFC 3339.
Example: 2016-08-25T21:10:29.600Z
73 74 75 |
# File 'lib/oci/jms_utils/models/java_migration_analysis.rb', line 73 def time_finished @time_finished end |
#time_started ⇒ DateTime
[Required] The date and time the Java Migration Analysis was started, in the format defined by RFC 3339.
Example: 2016-08-25T21:10:29.600Z
66 67 68 |
# File 'lib/oci/jms_utils/models/java_migration_analysis.rb', line 66 def time_started @time_started end |
#work_request_id ⇒ String
[Required] The OCID of the Work Request.
20 21 22 |
# File 'lib/oci/jms_utils/models/java_migration_analysis.rb', line 20 def work_request_id @work_request_id end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 |
# File 'lib/oci/jms_utils/models/java_migration_analysis.rb', line 84 def self.attribute_map { # rubocop:disable Style/SymbolLiteral 'id': :'id', 'work_request_id': :'workRequestId', 'compartment_id': :'compartmentId', 'analysis_project_name': :'analysisProjectName', 'input_applications_object_storage_paths': :'inputApplicationsObjectStoragePaths', 'target_jdk_version': :'targetJdkVersion', 'namespace_name': :'namespaceName', 'bucket_name': :'bucketName', 'analysis_result_object_storage_path': :'analysisResultObjectStoragePath', 'analysis_result_files': :'analysisResultFiles', 'time_created': :'timeCreated', 'time_started': :'timeStarted', 'time_finished': :'timeFinished', 'created_by': :'createdBy', 'metadata': :'metadata' # rubocop:enable Style/SymbolLiteral } end |
.swagger_types ⇒ Object
Attribute type mapping.
107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 |
# File 'lib/oci/jms_utils/models/java_migration_analysis.rb', line 107 def self.swagger_types { # rubocop:disable Style/SymbolLiteral 'id': :'String', 'work_request_id': :'String', 'compartment_id': :'String', 'analysis_project_name': :'String', 'input_applications_object_storage_paths': :'Array<String>', 'target_jdk_version': :'String', 'namespace_name': :'String', 'bucket_name': :'String', 'analysis_result_object_storage_path': :'String', 'analysis_result_files': :'Array<String>', 'time_created': :'DateTime', 'time_started': :'DateTime', 'time_finished': :'DateTime', 'created_by': :'OCI::JmsUtils::Models::Principal', 'metadata': :'String' # rubocop:enable Style/SymbolLiteral } end |
Instance Method Details
#==(other) ⇒ Object
Checks equality by comparing each attribute.
246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 |
# File 'lib/oci/jms_utils/models/java_migration_analysis.rb', line 246 def ==(other) return true if equal?(other) self.class == other.class && id == other.id && work_request_id == other.work_request_id && compartment_id == other.compartment_id && analysis_project_name == other.analysis_project_name && input_applications_object_storage_paths == other.input_applications_object_storage_paths && target_jdk_version == other.target_jdk_version && namespace_name == other.namespace_name && bucket_name == other.bucket_name && analysis_result_object_storage_path == other.analysis_result_object_storage_path && analysis_result_files == other.analysis_result_files && time_created == other.time_created && time_started == other.time_started && time_finished == other.time_finished && created_by == other.created_by && == other. end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 |
# File 'lib/oci/jms_utils/models/java_migration_analysis.rb', line 290 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
270 271 272 |
# File 'lib/oci/jms_utils/models/java_migration_analysis.rb', line 270 def eql?(other) self == other end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
279 280 281 |
# File 'lib/oci/jms_utils/models/java_migration_analysis.rb', line 279 def hash [id, work_request_id, compartment_id, analysis_project_name, input_applications_object_storage_paths, target_jdk_version, namespace_name, bucket_name, analysis_result_object_storage_path, analysis_result_files, time_created, time_started, time_finished, created_by, ].hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
323 324 325 326 327 328 329 330 331 332 |
# File 'lib/oci/jms_utils/models/java_migration_analysis.rb', line 323 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
317 318 319 |
# File 'lib/oci/jms_utils/models/java_migration_analysis.rb', line 317 def to_s to_hash.to_s end |