Class: Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::MongoDbCollectionSettings

Inherits:
Object
  • Object
show all
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

Class Method Summary collapse

Instance Attribute Details

#can_deleteBoolean

collection in the course of performing a migration. The default is true.

Returns:

  • (Boolean)

    Whether the migrator is allowed to drop the target



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_keyMongoDbShardKeySetting



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_rusInteger

target, or null to use the default. This has no effect on non-CosmosDB targets.

Returns:

  • (Integer)

    The RUs that should be configured on a CosmosDB



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

.mapperObject

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