Class: OCI::JmsUtils::Models::JavaMigrationAnalysisSummary

Inherits:
Object
  • Object
show all
Defined in:
lib/oci/jms_utils/models/java_migration_analysis_summary.rb

Overview

Summary information about a Java Migration Analysis.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ JavaMigrationAnalysisSummary

Initializes the object

Parameters:

  • attributes (Hash) (defaults to: {})

    Model attributes in the form of hash

Options Hash (attributes):



147
148
149
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
# File 'lib/oci/jms_utils/models/java_migration_analysis_summary.rb', line 147

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_nameString

[Required] Name of the analysis project.

Returns:

  • (String)


25
26
27
# File 'lib/oci/jms_utils/models/java_migration_analysis_summary.rb', line 25

def analysis_project_name
  @analysis_project_name
end

#analysis_result_filesArray<String>

[Required] The analysis application file names result in the Object Storage.

Returns:

  • (Array<String>)


49
50
51
# File 'lib/oci/jms_utils/models/java_migration_analysis_summary.rb', line 49

def analysis_result_files
  @analysis_result_files
end

#analysis_result_object_storage_pathString

[Required] Path to the Object Storage analysis application result.

Returns:

  • (String)


45
46
47
# File 'lib/oci/jms_utils/models/java_migration_analysis_summary.rb', line 45

def analysis_result_object_storage_path
  @analysis_result_object_storage_path
end

#bucket_nameString

[Required] Object storage bucket name.

Returns:

  • (String)


41
42
43
# File 'lib/oci/jms_utils/models/java_migration_analysis_summary.rb', line 41

def bucket_name
  @bucket_name
end

#compartment_idString

[Required] The OCID of the compartment.

Returns:

  • (String)


21
22
23
# File 'lib/oci/jms_utils/models/java_migration_analysis_summary.rb', line 21

def compartment_id
  @compartment_id
end

#created_byOCI::JmsUtils::Models::Principal

This attribute is required.



74
75
76
# File 'lib/oci/jms_utils/models/java_migration_analysis_summary.rb', line 74

def created_by
  @created_by
end

#idString

[Required] The OCID of the Java Migration Analysis.

Returns:

  • (String)


13
14
15
# File 'lib/oci/jms_utils/models/java_migration_analysis_summary.rb', line 13

def id
  @id
end

#input_applications_object_storage_pathsArray<String>

[Required] Object storage paths to the input files applications to be analysed.

Returns:

  • (Array<String>)


29
30
31
# File 'lib/oci/jms_utils/models/java_migration_analysis_summary.rb', line 29

def input_applications_object_storage_paths
  @input_applications_object_storage_paths
end

#metadataString

Additional info reserved for future use.

Returns:

  • (String)


78
79
80
# File 'lib/oci/jms_utils/models/java_migration_analysis_summary.rb', line 78

def 
  @metadata
end

#namespace_nameString

[Required] Object storage namespace.

Returns:

  • (String)


37
38
39
# File 'lib/oci/jms_utils/models/java_migration_analysis_summary.rb', line 37

def namespace_name
  @namespace_name
end

#target_jdk_versionString

[Required] Jdk Version of the Java Migration Analysis target.

Returns:

  • (String)


33
34
35
# File 'lib/oci/jms_utils/models/java_migration_analysis_summary.rb', line 33

def target_jdk_version
  @target_jdk_version
end

#time_createdDateTime

[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

Returns:

  • (DateTime)


56
57
58
# File 'lib/oci/jms_utils/models/java_migration_analysis_summary.rb', line 56

def time_created
  @time_created
end

#time_finishedDateTime

[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

Returns:

  • (DateTime)


70
71
72
# File 'lib/oci/jms_utils/models/java_migration_analysis_summary.rb', line 70

def time_finished
  @time_finished
end

#time_startedDateTime

[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

Returns:

  • (DateTime)


63
64
65
# File 'lib/oci/jms_utils/models/java_migration_analysis_summary.rb', line 63

def time_started
  @time_started
end

#work_request_idString

[Required] The OCID of the Work Request.

Returns:

  • (String)


17
18
19
# File 'lib/oci/jms_utils/models/java_migration_analysis_summary.rb', line 17

def work_request_id
  @work_request_id
end

Class Method Details

.attribute_mapObject

Attribute mapping from ruby-style variable name to JSON key.



81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
# File 'lib/oci/jms_utils/models/java_migration_analysis_summary.rb', line 81

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_typesObject

Attribute type mapping.



104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
# File 'lib/oci/jms_utils/models/java_migration_analysis_summary.rb', line 104

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.

Parameters:

  • other (Object)

    the other object to be compared



243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
# File 'lib/oci/jms_utils/models/java_migration_analysis_summary.rb', line 243

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

Parameters:

  • attributes (Hash)

    Model attributes in the form of hash

Returns:

  • (Object)

    Returns the model itself



287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
# File 'lib/oci/jms_utils/models/java_migration_analysis_summary.rb', line 287

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

Parameters:

  • other (Object)

    the other object to be compared

Returns:

  • (Boolean)

See Also:

  • `==` method


267
268
269
# File 'lib/oci/jms_utils/models/java_migration_analysis_summary.rb', line 267

def eql?(other)
  self == other
end

#hashFixnum

Calculates hash code according to all attributes.

Returns:

  • (Fixnum)

    Hash code



276
277
278
# File 'lib/oci/jms_utils/models/java_migration_analysis_summary.rb', line 276

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_hashHash

Returns the object in the form of hash

Returns:

  • (Hash)

    Returns the object in the form of hash



320
321
322
323
324
325
326
327
328
329
# File 'lib/oci/jms_utils/models/java_migration_analysis_summary.rb', line 320

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_sString

Returns the string representation of the object

Returns:

  • (String)

    String presentation of the object



314
315
316
# File 'lib/oci/jms_utils/models/java_migration_analysis_summary.rb', line 314

def to_s
  to_hash.to_s
end