Class: Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::MongoDbObjectInfo

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

Overview

Describes a database or collection within a MongoDB data source

Direct Known Subclasses

MongoDbCollectionInfo, MongoDbDatabaseInfo

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#average_document_sizeInteger

is unknown

Returns:

  • (Integer)

    The average document size, or -1 if the average size



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

def average_document_size
  @average_document_size
end

#data_sizeInteger

size is unknown.

Returns:

  • (Integer)

    The estimated total data size, in bytes, or -1 if the



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

def data_size
  @data_size
end

#document_countInteger

document count is unknown

Returns:

  • (Integer)

    The estimated total number of documents, or -1 if the



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

def document_count
  @document_count
end

#nameString

Returns The unqualified name of the database or collection.

Returns:

  • (String)

    The unqualified name of the database or collection



28
29
30
# File 'lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/mongo_db_object_info.rb', line 28

def name
  @name
end

#qualified_nameString

a collection, this is the database-qualified name.

Returns:

  • (String)

    The qualified name of the database or collection. For



32
33
34
# File 'lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/mongo_db_object_info.rb', line 32

def qualified_name
  @qualified_name
end

Class Method Details

.mapperObject

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



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

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'MongoDbObjectInfo',
    type: {
      name: 'Composite',
      class_name: 'MongoDbObjectInfo',
      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'
          }
        }
      }
    }
  }
end