# 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::V2020_04_01 module Models # # Cosmos DB options resource object # class OptionsResource include MsRestAzure # @return [Integer] Value of the Cosmos DB resource throughput or # autoscaleSettings. Use the ThroughputSetting resource when retrieving # offer details. attr_accessor :throughput # @return [AutoscaleSettings] Specifies the Autoscale settings. attr_accessor :autoscale_settings # # Mapper for OptionsResource class as Ruby Hash. # This will be used for serialization/deserialization. # def self.mapper() { client_side_validation: true, required: false, serialized_name: 'OptionsResource', type: { name: 'Composite', class_name: 'OptionsResource', model_properties: { throughput: { client_side_validation: true, required: false, serialized_name: 'throughput', type: { name: 'Number' } }, autoscale_settings: { client_side_validation: true, required: false, serialized_name: 'autoscaleSettings', type: { name: 'Composite', class_name: 'AutoscaleSettings' } } } } } end end end end