Class: Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::ConnectionInfo
- Inherits:
-
Object
- Object
- Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::ConnectionInfo
- Includes:
- MsRestAzure
- Defined in:
- lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/connection_info.rb
Overview
Defines the connection properties of a server
Direct Known Subclasses
MiSqlConnectionInfo, MongoDbConnectionInfo, MySqlConnectionInfo, OracleConnectionInfo, 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.
23 24 25 |
# File 'lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/connection_info.rb', line 23 def initialize @type = "ConnectionInfo" end |
Instance Attribute Details
#password ⇒ String
Returns Password credential.
33 34 35 |
# File 'lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/connection_info.rb', line 33 def password @password end |
#type ⇒ Object
Returns the value of attribute type.
27 28 29 |
# File 'lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/connection_info.rb', line 27 def type @type end |
#user_name ⇒ String
Returns User name.
30 31 32 |
# File 'lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/connection_info.rb', line 30 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.
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 |
# File 'lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/connection_info.rb', line 40 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 |