Class: Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::OracleConnectionInfo

Inherits:
ConnectionInfo
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/oracle_connection_info.rb

Overview

Information for connecting to Oracle server

Instance Attribute Summary collapse

Attributes inherited from ConnectionInfo

#password, #user_name

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeOracleConnectionInfo

Returns a new instance of OracleConnectionInfo.



16
17
18
# File 'lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/oracle_connection_info.rb', line 16

def initialize
  @type = "OracleConnectionInfo"
end

Instance Attribute Details

#data_sourceString

Returns EZConnect or TNSName connection string.

Returns:

  • (String)

    EZConnect or TNSName connection string.



23
24
25
# File 'lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/oracle_connection_info.rb', line 23

def data_source
  @data_source
end

#typeObject

Returns the value of attribute type.



20
21
22
# File 'lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/oracle_connection_info.rb', line 20

def type
  @type
end

Class Method Details

.mapperObject

Mapper for OracleConnectionInfo class as Ruby Hash. This will be used for serialization/deserialization.



30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# File 'lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/oracle_connection_info.rb', line 30

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'OracleConnectionInfo',
    type: {
      name: 'Composite',
      class_name: 'OracleConnectionInfo',
      model_properties: {
        user_name: {
          client_side_validation: true,
          required: false,
          serialized_name: 'userName',
          type: {
            name: 'String'
          }
        },
        password: {
          client_side_validation: true,
          required: false,
          serialized_name: 'password',
          type: {
            name: 'String'
          }
        },
        type: {
          client_side_validation: true,
          required: true,
          serialized_name: 'type',
          type: {
            name: 'String'
          }
        },
        data_source: {
          client_side_validation: true,
          required: true,
          serialized_name: 'dataSource',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end