Class: Azure::Cosmosdb::Mgmt::V2019_12_12::Models::MongoIndexOptions

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/mongo_index_options.rb

Overview

Cosmos DB MongoDB collection index options

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#expire_after_secondsInteger

Returns Expire after seconds.

Returns:

  • (Integer)

    Expire after seconds



16
17
18
# File 'lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/mongo_index_options.rb', line 16

def expire_after_seconds
  @expire_after_seconds
end

#uniqueBoolean

Returns Is unique or not.

Returns:

  • (Boolean)

    Is unique or not



19
20
21
# File 'lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/mongo_index_options.rb', line 19

def unique
  @unique
end

Class Method Details

.mapperObject

Mapper for MongoIndexOptions 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
# File 'lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/mongo_index_options.rb', line 26

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'MongoIndexOptions',
    type: {
      name: 'Composite',
      class_name: 'MongoIndexOptions',
      model_properties: {
        expire_after_seconds: {
          client_side_validation: true,
          required: false,
          serialized_name: 'expireAfterSeconds',
          type: {
            name: 'Number'
          }
        },
        unique: {
          client_side_validation: true,
          required: false,
          serialized_name: 'unique',
          type: {
            name: 'Boolean'
          }
        }
      }
    }
  }
end