Sha256: 53a842258c0ad5c924cb7e4e430b994d54a37c7f21b3f860a5acc85f29e5891c

Contents?: true

Size: 1.44 KB

Versions: 11

Compression:

Stored size: 1.44 KB

Contents

# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.

module Azure::Cosmosdb::Mgmt::V2015_04_08
  module Models
    #
    # Cosmos DB MongoDB collection index options
    #
    class MongoIndexOptions

      include MsRestAzure

      # @return [Integer] Expire after seconds
      attr_accessor :expire_after_seconds

      # @return [Boolean] Is unique or not
      attr_accessor :unique


      #
      # Mapper for MongoIndexOptions class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      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
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
azure_mgmt_cosmosdb-0.24.1 lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/mongo_index_options.rb
azure_mgmt_cosmosdb-0.24.0 lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/mongo_index_options.rb
azure_mgmt_cosmosdb-0.23.1 lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/mongo_index_options.rb
azure_mgmt_cosmosdb-0.22.0 lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/mongo_index_options.rb
azure_mgmt_cosmosdb-0.21.2 lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/mongo_index_options.rb
azure_mgmt_cosmosdb-0.21.1 lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/mongo_index_options.rb
azure_mgmt_cosmosdb-0.21.0 lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/mongo_index_options.rb
azure_mgmt_cosmosdb-0.20.0 lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/mongo_index_options.rb
azure_mgmt_cosmosdb-0.19.0 lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/mongo_index_options.rb
azure_mgmt_cosmosdb-0.18.0 lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/mongo_index_options.rb
azure_mgmt_cosmosdb-0.17.0 lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/mongo_index_options.rb