Class: Azure::DataMigration::Mgmt::V2018_04_19::Models::MySqlConnectionInfo

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

Overview

Information for connecting to MySQL server

Instance Attribute Summary collapse

Attributes inherited from ConnectionInfo

#password, #user_name

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeMySqlConnectionInfo

Returns a new instance of MySqlConnectionInfo.



16
17
18
# File 'lib/2018-04-19/generated/azure_mgmt_data_migration/models/my_sql_connection_info.rb', line 16

def initialize
  @type = "MySqlConnectionInfo"
end

Instance Attribute Details

#portInteger

Returns Port for Server.

Returns:

  • (Integer)

    Port for Server



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

def port
  @port
end

#server_nameString

Returns Name of the server.

Returns:

  • (String)

    Name of the server



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

def server_name
  @server_name
end

#typeObject

Returns the value of attribute type.



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

def type
  @type
end

Class Method Details

.mapperObject

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



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
75
76
77
78
79
80
81
82
83
84
85
# File 'lib/2018-04-19/generated/azure_mgmt_data_migration/models/my_sql_connection_info.rb', line 33

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'MySqlConnectionInfo',
    type: {
      name: 'Composite',
      class_name: 'MySqlConnectionInfo',
      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'
          }
        },
        server_name: {
          client_side_validation: true,
          required: true,
          serialized_name: 'serverName',
          type: {
            name: 'String'
          }
        },
        port: {
          client_side_validation: true,
          required: true,
          serialized_name: 'port',
          type: {
            name: 'Number'
          }
        }
      }
    }
  }
end