Class: Azure::DataMigration::Mgmt::V2018_04_19::Models::ConnectionInfo

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2018-04-19/generated/azure_mgmt_data_migration/models/connection_info.rb

Overview

Defines the connection properties of a server

Direct Known Subclasses

SqlConnectionInfo

Constant Summary collapse

@@discriminatorMap =
Hash.new

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConnectionInfo

Returns a new instance of ConnectionInfo.



18
19
20
# File 'lib/2018-04-19/generated/azure_mgmt_data_migration/models/connection_info.rb', line 18

def initialize
  @type = "Unknown"
end

Instance Attribute Details

#passwordString

Returns Password credential.

Returns:

  • (String)

    Password credential.



28
29
30
# File 'lib/2018-04-19/generated/azure_mgmt_data_migration/models/connection_info.rb', line 28

def password
  @password
end

#typeObject

Returns the value of attribute type.



22
23
24
# File 'lib/2018-04-19/generated/azure_mgmt_data_migration/models/connection_info.rb', line 22

def type
  @type
end

#user_nameString

Returns User name.

Returns:

  • (String)

    User name



25
26
27
# File 'lib/2018-04-19/generated/azure_mgmt_data_migration/models/connection_info.rb', line 25

def user_name
  @user_name
end

Class Method Details

.mapperObject

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



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
# File 'lib/2018-04-19/generated/azure_mgmt_data_migration/models/connection_info.rb', line 35

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'Unknown',
    type: {
      name: 'Composite',
      polymorphic_discriminator: 'type',
      uber_parent: 'ConnectionInfo',
      class_name: 'ConnectionInfo',
      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'
          }
        }
      }
    }
  }
end