Class: Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::MongoDbClusterInfo

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

Overview

Describes a MongoDB data source

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#databasesArray<MongoDbDatabaseInfo>

the cluster

Returns:



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

def databases
  @databases
end

#supports_shardingBoolean

Returns Whether the cluster supports sharded collections.

Returns:

  • (Boolean)

    Whether the cluster supports sharded collections



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

def supports_sharding
  @supports_sharding
end

#typeMongoDbClusterType

include: ‘BlobContainer’, ‘CosmosDb’, ‘MongoDb’

Returns:



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

def type
  @type
end

#versionString

3.6.7). Not used if Type is BlobContainer.

Returns:

  • (String)

    The version of the data source in the form x.y.z (e.g.



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

def version
  @version
end

Class Method Details

.mapperObject

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



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

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'MongoDbClusterInfo',
    type: {
      name: 'Composite',
      class_name: 'MongoDbClusterInfo',
      model_properties: {
        databases: {
          client_side_validation: true,
          required: true,
          serialized_name: 'databases',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'MongoDbDatabaseInfoElementType',
                type: {
                  name: 'Composite',
                  class_name: 'MongoDbDatabaseInfo'
                }
            }
          }
        },
        supports_sharding: {
          client_side_validation: true,
          required: true,
          serialized_name: 'supportsSharding',
          type: {
            name: 'Boolean'
          }
        },
        type: {
          client_side_validation: true,
          required: true,
          serialized_name: 'type',
          type: {
            name: 'String'
          }
        },
        version: {
          client_side_validation: true,
          required: true,
          serialized_name: 'version',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end