Class: Azure::DataMigration::Mgmt::V2018_04_19::Models::ConnectionInfo
- Inherits:
-
Object
- Object
- Azure::DataMigration::Mgmt::V2018_04_19::Models::ConnectionInfo
- 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
MiSqlConnectionInfo, MySqlConnectionInfo, PostgreSqlConnectionInfo, SqlConnectionInfo
Constant Summary collapse
- @@discriminatorMap =
Hash.new
Instance Attribute Summary collapse
-
#password ⇒ String
Password credential.
-
#type ⇒ Object
Returns the value of attribute type.
-
#user_name ⇒ String
User name.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for ConnectionInfo class as Ruby Hash.
Instance Method Summary collapse
-
#initialize ⇒ ConnectionInfo
constructor
A new instance of ConnectionInfo.
Constructor Details
#initialize ⇒ ConnectionInfo
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
#password ⇒ String
Returns 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 |
#type ⇒ Object
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_name ⇒ String
Returns 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
.mapper ⇒ Object
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 |