Class: Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::MongoDbConnectionInfo
- Inherits:
-
ConnectionInfo
- Object
- ConnectionInfo
- Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::MongoDbConnectionInfo
- Includes:
- MsRestAzure
- Defined in:
- lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/mongo_db_connection_info.rb
Overview
Describes a connection to a MongoDB data source
Instance Attribute Summary collapse
-
#connection_string ⇒ String
user name and password can be specified here or in the userName and password properties.
-
#type ⇒ Object
Returns the value of attribute type.
Attributes inherited from ConnectionInfo
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for MongoDbConnectionInfo class as Ruby Hash.
Instance Method Summary collapse
-
#initialize ⇒ MongoDbConnectionInfo
constructor
A new instance of MongoDbConnectionInfo.
Constructor Details
#initialize ⇒ MongoDbConnectionInfo
Returns a new instance of MongoDbConnectionInfo.
16 17 18 |
# File 'lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/mongo_db_connection_info.rb', line 16 def initialize @type = "MongoDbConnectionInfo" end |
Instance Attribute Details
#connection_string ⇒ String
user name and password can be specified here or in the userName and password properties
25 26 27 |
# File 'lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/mongo_db_connection_info.rb', line 25 def connection_string @connection_string end |
#type ⇒ Object
Returns the value of attribute type.
20 21 22 |
# File 'lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/mongo_db_connection_info.rb', line 20 def type @type end |
Class Method Details
.mapper ⇒ Object
Mapper for MongoDbConnectionInfo class as Ruby Hash. This will be used for serialization/deserialization.
32 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 |
# File 'lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/mongo_db_connection_info.rb', line 32 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'MongoDbConnectionInfo', type: { name: 'Composite', class_name: 'MongoDbConnectionInfo', 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' } }, connection_string: { client_side_validation: true, required: true, serialized_name: 'connectionString', type: { name: 'String' } } } } } end |