Method: OCI::ApplicationMigration::Models::ImportManifest#initialize

Defined in:
lib/oci/application_migration/models/import_manifest.rb

#initialize(attributes = {}) ⇒ ImportManifest

Initializes the object

Parameters:

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

    Model attributes in the form of hash

Options Hash (attributes):

  • :version (String)

    The value to assign to the #version property

  • :export_type (String)

    The value to assign to the #export_type property

  • :export_details (Object)

    The value to assign to the #export_details property

  • :timestamp (DateTime)

    The value to assign to the #timestamp property

  • :md5 (String)

    The value to assign to the #md5 property

  • :signature (String)

    The value to assign to the #signature property



74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
# File 'lib/oci/application_migration/models/import_manifest.rb', line 74

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.version = attributes[:'version'] if attributes[:'version']

  self.export_type = attributes[:'exportType'] if attributes[:'exportType']

  raise 'You cannot provide both :exportType and :export_type' if attributes.key?(:'exportType') && attributes.key?(:'export_type')

  self.export_type = attributes[:'export_type'] if attributes[:'export_type']

  self.export_details = attributes[:'exportDetails'] if attributes[:'exportDetails']

  raise 'You cannot provide both :exportDetails and :export_details' if attributes.key?(:'exportDetails') && attributes.key?(:'export_details')

  self.export_details = attributes[:'export_details'] if attributes[:'export_details']

  self.timestamp = attributes[:'timestamp'] if attributes[:'timestamp']

  self.md5 = attributes[:'md5'] if attributes[:'md5']

  self.signature = attributes[:'signature'] if attributes[:'signature']
end