Class: Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::MongoDbClusterInfo
- Inherits:
-
Object
- Object
- Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::MongoDbClusterInfo
- Includes:
- MsRestAzure
- Defined in:
- lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/mongo_db_cluster_info.rb
Overview
Describes a MongoDB data source
Instance Attribute Summary collapse
-
#databases ⇒ Array<MongoDbDatabaseInfo>
the cluster.
-
#supports_sharding ⇒ Boolean
Whether the cluster supports sharded collections.
-
#type ⇒ MongoDbClusterType
include: ‘BlobContainer’, ‘CosmosDb’, ‘MongoDb’.
-
#version ⇒ String
3.6.7).
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for MongoDbClusterInfo class as Ruby Hash.
Instance Attribute Details
#databases ⇒ Array<MongoDbDatabaseInfo>
the cluster
17 18 19 |
# File 'lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/mongo_db_cluster_info.rb', line 17 def databases @databases end |
#supports_sharding ⇒ Boolean
Returns Whether the cluster supports sharded collections.
20 21 22 |
# File 'lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/mongo_db_cluster_info.rb', line 20 def supports_sharding @supports_sharding end |
#type ⇒ MongoDbClusterType
include: ‘BlobContainer’, ‘CosmosDb’, ‘MongoDb’
24 25 26 |
# File 'lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/mongo_db_cluster_info.rb', line 24 def type @type end |
#version ⇒ String
3.6.7). Not used if Type is BlobContainer.
28 29 30 |
# File 'lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/mongo_db_cluster_info.rb', line 28 def version @version end |
Class Method Details
.mapper ⇒ Object
Mapper for MongoDbClusterInfo class as Ruby Hash. This will be used for serialization/deserialization.
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 86 87 88 |
# File 'lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/mongo_db_cluster_info.rb', line 35 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'MongoDbClusterInfo', type: { name: 'Composite', class_name: 'MongoDbClusterInfo', model_properties: { databases: { client_side_validation: true, required: true, serialized_name: 'databases', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'MongoDbDatabaseInfoElementType', type: { name: 'Composite', class_name: 'MongoDbDatabaseInfo' } } } }, supports_sharding: { client_side_validation: true, required: true, serialized_name: 'supportsSharding', type: { name: 'Boolean' } }, type: { client_side_validation: true, required: true, serialized_name: 'type', type: { name: 'String' } }, version: { client_side_validation: true, required: true, serialized_name: 'version', type: { name: 'String' } } } } } end |