Class: Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::MongoDbShardKeyInfo
- Inherits:
-
Object
- Object
- Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::MongoDbShardKeyInfo
- Includes:
- MsRestAzure
- Defined in:
- lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/mongo_db_shard_key_info.rb
Overview
Describes a MongoDB shard key
Instance Attribute Summary collapse
-
#fields ⇒ Array<MongoDbShardKeyField>
The fields within the shard key.
-
#is_unique ⇒ Boolean
Whether the shard key is unique.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for MongoDbShardKeyInfo class as Ruby Hash.
Instance Attribute Details
#fields ⇒ Array<MongoDbShardKeyField>
Returns The fields within the shard key.
16 17 18 |
# File 'lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/mongo_db_shard_key_info.rb', line 16 def fields @fields end |
#is_unique ⇒ Boolean
Returns Whether the shard key is unique.
19 20 21 |
# File 'lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/mongo_db_shard_key_info.rb', line 19 def is_unique @is_unique end |
Class Method Details
.mapper ⇒ Object
Mapper for MongoDbShardKeyInfo class as Ruby Hash. This will be used for serialization/deserialization.
26 27 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 |
# File 'lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/mongo_db_shard_key_info.rb', line 26 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'MongoDbShardKeyInfo', type: { name: 'Composite', class_name: 'MongoDbShardKeyInfo', model_properties: { fields: { client_side_validation: true, required: true, serialized_name: 'fields', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'MongoDbShardKeyFieldElementType', type: { name: 'Composite', class_name: 'MongoDbShardKeyField' } } } }, is_unique: { client_side_validation: true, required: true, serialized_name: 'isUnique', type: { name: 'Boolean' } } } } } end |