Class: OCI::Jms::Models::JavaMigrationAnalysisResult

Inherits:
Object
  • Object
show all
Defined in:
lib/oci/jms/models/java_migration_analysis_result.rb

Overview

Result of the Java migration analysis. The analysis result is stored in an Object Storage bucket.

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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ JavaMigrationAnalysisResult

Initializes the object

Parameters:

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

    Model attributes in the form of hash

Options Hash (attributes):

  • :id (String)

    The value to assign to the #id property

  • :work_request_id (String)

    The value to assign to the #work_request_id property

  • :fleet_id (String)

    The value to assign to the #fleet_id property

  • :application_key (String)

    The value to assign to the #application_key property

  • :application_name (String)

    The value to assign to the #application_name property

  • :application_path (String)

    The value to assign to the #application_path property

  • :application_execution_type (String)

    The value to assign to the #application_execution_type property

  • :source_jdk_version (String)

    The value to assign to the #source_jdk_version property

  • :target_jdk_version (String)

    The value to assign to the #target_jdk_version property

  • :managed_instance_id (String)

    The value to assign to the #managed_instance_id property

  • :host_name (String)

    The value to assign to the #host_name property

  • :time_created (DateTime)

    The value to assign to the #time_created property

  • :namespace (String)

    The value to assign to the #namespace property

  • :bucket_name (String)

    The value to assign to the #bucket_name property

  • :object_storage_upload_dir_path (String)

    The value to assign to the #object_storage_upload_dir_path property

  • :object_list (Array<String>)

    The value to assign to the #object_list property

  • :metadata (String)

    The value to assign to the #metadata property



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
# File 'lib/oci/jms/models/java_migration_analysis_result.rb', line 159

def initialize(attributes = {})
  return unless attributes.is_a?(Hash)

  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_typeString

[Required] Execution type of the application for an application type, such as WAR and EAR, that is deployed or installed.

Returns:

  • (String)


44
45
46
# File 'lib/oci/jms/models/java_migration_analysis_result.rb', line 44

def application_execution_type
  @application_execution_type
end

#application_keyString

The unique key that identifies the application.

Returns:

  • (String)


32
33
34
# File 'lib/oci/jms/models/java_migration_analysis_result.rb', line 32

def application_key
  @application_key
end

#application_nameString

[Required] The name of the application for which the Java migration analysis was performed.

Returns:

  • (String)


36
37
38
# File 'lib/oci/jms/models/java_migration_analysis_result.rb', line 36

def application_name
  @application_name
end

#application_pathString

[Required] The installation path of the application for which the Java migration analysis was performed.

Returns:

  • (String)


40
41
42
# File 'lib/oci/jms/models/java_migration_analysis_result.rb', line 40

def application_path
  @application_path
end

#bucket_nameString

[Required] The name of the object storage bucket that contains the results of the migration analysis.

Returns:

  • (String)


72
73
74
# File 'lib/oci/jms/models/java_migration_analysis_result.rb', line 72

def bucket_name
  @bucket_name
end

#fleet_idString

[Required] The fleet OCID.

Returns:

  • (String)


28
29
30
# File 'lib/oci/jms/models/java_migration_analysis_result.rb', line 28

def fleet_id
  @fleet_id
end

#host_nameString

The hostname of the managed instance that hosts the application for which the Java migration analysis was performed.

Returns:

  • (String)


60
61
62
# File 'lib/oci/jms/models/java_migration_analysis_result.rb', line 60

def host_name
  @host_name
end

#idString

[Required] The OCID of the migration analysis report.

Returns:

  • (String)


20
21
22
# File 'lib/oci/jms/models/java_migration_analysis_result.rb', line 20

def id
  @id
end

#managed_instance_idString

The managed instance OCID.

Returns:

  • (String)


56
57
58
# File 'lib/oci/jms/models/java_migration_analysis_result.rb', line 56

def managed_instance_id
  @managed_instance_id
end

#metadataString

[Required] Additional info reserved for future use.

Returns:

  • (String)


84
85
86
# File 'lib/oci/jms/models/java_migration_analysis_result.rb', line 84

def 
  @metadata
end

#namespaceString

[Required] The object storage namespace that contains the results of the migration analysis.

Returns:

  • (String)


68
69
70
# File 'lib/oci/jms/models/java_migration_analysis_result.rb', line 68

def namespace
  @namespace
end

#object_listArray<String>

[Required] The names of the object storage objects that contain the results of the migration analysis.

Returns:

  • (Array<String>)


80
81
82
# File 'lib/oci/jms/models/java_migration_analysis_result.rb', line 80

def object_list
  @object_list
end

#object_storage_upload_dir_pathString

[Required] The directory path of the object storage bucket that contains the results of the migration analysis.

Returns:

  • (String)


76
77
78
# File 'lib/oci/jms/models/java_migration_analysis_result.rb', line 76

def object_storage_upload_dir_path
  @object_storage_upload_dir_path
end

#source_jdk_versionString

[Required] The source JDK version of the application that's currently running.

Returns:

  • (String)


48
49
50
# File 'lib/oci/jms/models/java_migration_analysis_result.rb', line 48

def source_jdk_version
  @source_jdk_version
end

#target_jdk_versionString

[Required] The target JDK version of the application to be migrated.

Returns:

  • (String)


52
53
54
# File 'lib/oci/jms/models/java_migration_analysis_result.rb', line 52

def target_jdk_version
  @target_jdk_version
end

#time_createdDateTime

The time the result is compiled.

Returns:

  • (DateTime)


64
65
66
# File 'lib/oci/jms/models/java_migration_analysis_result.rb', line 64

def time_created
  @time_created
end

#work_request_idString

The OCID of the work request of this analysis.

Returns:

  • (String)


24
25
26
# File 'lib/oci/jms/models/java_migration_analysis_result.rb', line 24

def work_request_id
  @work_request_id
end

Class Method Details

.attribute_mapObject

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.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_typesObject

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.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.

Parameters:

  • other (Object)

    the other object to be compared



273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
# File 'lib/oci/jms/models/java_migration_analysis_result.rb', line 273

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

Parameters:

  • attributes (Hash)

    Model attributes in the form of hash

Returns:

  • (Object)

    Returns the model itself



319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
# File 'lib/oci/jms/models/java_migration_analysis_result.rb', line 319

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


299
300
301
# File 'lib/oci/jms/models/java_migration_analysis_result.rb', line 299

def eql?(other)
  self == other
end

#hashFixnum

Calculates hash code according to all attributes.

Returns:

  • (Fixnum)

    Hash code



308
309
310
# File 'lib/oci/jms/models/java_migration_analysis_result.rb', line 308

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_hashHash

Returns the object in the form of hash

Returns:

  • (Hash)

    Returns the object in the form of hash



352
353
354
355
356
357
358
359
360
361
# File 'lib/oci/jms/models/java_migration_analysis_result.rb', line 352

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



346
347
348
# File 'lib/oci/jms/models/java_migration_analysis_result.rb', line 346

def to_s
  to_hash.to_s
end