Class: Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::MongoDbDatabaseInfo

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

Overview

Describes a database within a MongoDB data source

Instance Attribute Summary collapse

Attributes inherited from MongoDbObjectInfo

#average_document_size, #data_size, #document_count, #name, #qualified_name

Class Method Summary collapse

Instance Attribute Details

#collectionsArray<MongoDbCollectionInfo>

in a MongoDB database

Returns:



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

def collections
  @collections
end

#supports_shardingBoolean

the migration task will enable sharding on the target if necessary.

Returns:

  • (Boolean)

    Whether the database has sharding enabled. Note that



21
22
23
# File 'lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/mongo_db_database_info.rb', line 21

def supports_sharding
  @supports_sharding
end

Class Method Details

.mapperObject

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



28
29
30
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
# File 'lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/mongo_db_database_info.rb', line 28

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'MongoDbDatabaseInfo',
    type: {
      name: 'Composite',
      class_name: 'MongoDbDatabaseInfo',
      model_properties: {
        average_document_size: {
          client_side_validation: true,
          required: true,
          serialized_name: 'averageDocumentSize',
          type: {
            name: 'Number'
          }
        },
        data_size: {
          client_side_validation: true,
          required: true,
          serialized_name: 'dataSize',
          type: {
            name: 'Number'
          }
        },
        document_count: {
          client_side_validation: true,
          required: true,
          serialized_name: 'documentCount',
          type: {
            name: 'Number'
          }
        },
        name: {
          client_side_validation: true,
          required: true,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        qualified_name: {
          client_side_validation: true,
          required: true,
          serialized_name: 'qualifiedName',
          type: {
            name: 'String'
          }
        },
        collections: {
          client_side_validation: true,
          required: true,
          serialized_name: 'collections',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'MongoDbCollectionInfoElementType',
                type: {
                  name: 'Composite',
                  class_name: 'MongoDbCollectionInfo'
                }
            }
          }
        },
        supports_sharding: {
          client_side_validation: true,
          required: true,
          serialized_name: 'supportsSharding',
          type: {
            name: 'Boolean'
          }
        }
      }
    }
  }
end