Class: Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::MongoDbCollectionSettings
- Inherits:
-
Object
- Object
- Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::MongoDbCollectionSettings
- Includes:
- MsRestAzure
- Defined in:
- lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/mongo_db_collection_settings.rb
Overview
Describes how an individual MongoDB collection should be migrated
Instance Attribute Summary collapse
-
#can_delete ⇒ Boolean
collection in the course of performing a migration.
- #shard_key ⇒ MongoDbShardKeySetting
-
#target_rus ⇒ Integer
target, or null to use the default.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for MongoDbCollectionSettings class as Ruby Hash.
Instance Attribute Details
#can_delete ⇒ Boolean
collection in the course of performing a migration. The default is true.
18 19 20 |
# File 'lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/mongo_db_collection_settings.rb', line 18 def can_delete @can_delete end |
#shard_key ⇒ MongoDbShardKeySetting
21 22 23 |
# File 'lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/mongo_db_collection_settings.rb', line 21 def shard_key @shard_key end |
#target_rus ⇒ Integer
target, or null to use the default. This has no effect on non-CosmosDB targets.
26 27 28 |
# File 'lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/mongo_db_collection_settings.rb', line 26 def target_rus @target_rus end |
Class Method Details
.mapper ⇒ Object
Mapper for MongoDbCollectionSettings 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 |
# File 'lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/mongo_db_collection_settings.rb', line 33 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'MongoDbCollectionSettings', type: { name: 'Composite', class_name: 'MongoDbCollectionSettings', model_properties: { can_delete: { client_side_validation: true, required: false, serialized_name: 'canDelete', type: { name: 'Boolean' } }, shard_key: { client_side_validation: true, required: false, serialized_name: 'shardKey', type: { name: 'Composite', class_name: 'MongoDbShardKeySetting' } }, target_rus: { client_side_validation: true, required: false, serialized_name: 'targetRUs', type: { name: 'Number' } } } } } end |