Class: Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::MongoDbDatabaseSettings

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/mongo_db_database_settings.rb

Overview

Describes how an individual MongoDB database should be migrated

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#collectionsHash{String => MongoDbCollectionSettings}

the source database to migrate to the target. The keys are the unqualified names of the collections.

Returns:



18
19
20
# File 'lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/mongo_db_database_settings.rb', line 18

def collections
  @collections
end

#target_rusInteger

target, or null to use the default, or 0 if throughput should not be provisioned for the database. This has no effect on non-CosmosDB targets.

Returns:

  • (Integer)

    The RUs that should be configured on a CosmosDB



24
25
26
# File 'lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/mongo_db_database_settings.rb', line 24

def target_rus
  @target_rus
end

Class Method Details

.mapperObject

Mapper for MongoDbDatabaseSettings class as Ruby Hash. This will be used for serialization/deserialization.



31
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
# File 'lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/mongo_db_database_settings.rb', line 31

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'MongoDbDatabaseSettings',
    type: {
      name: 'Composite',
      class_name: 'MongoDbDatabaseSettings',
      model_properties: {
        collections: {
          client_side_validation: true,
          required: true,
          serialized_name: 'collections',
          type: {
            name: 'Dictionary',
            value: {
                client_side_validation: true,
                required: false,
                serialized_name: 'MongoDbCollectionSettingsElementType',
                type: {
                  name: 'Composite',
                  class_name: 'MongoDbCollectionSettings'
                }
            }
          }
        },
        target_rus: {
          client_side_validation: true,
          required: false,
          serialized_name: 'targetRUs',
          type: {
            name: 'Number'
          }
        }
      }
    }
  }
end