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

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.



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

def initialize
  @type = "ConnectionInfo"
end

Instance Attribute Details

#passwordString

Returns Password credential.

Returns:

  • (String)

    Password credential.



31
32
33
# File 'lib/2018-04-19/generated/azure_mgmt_data_migration/models/connection_info.rb', line 31

def password
  @password
end

#typeObject

Returns the value of attribute type.



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

def type
  @type
end

#user_nameString

Returns User name.

Returns:

  • (String)

    User name



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

def user_name
  @user_name
end

Class Method Details

.mapperObject

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



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

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'ConnectionInfo',
    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