class Azure::Cosmosdb::Mgmt::V2020_04_01::Models::ThroughputSettingsResource

Cosmos DB resource throughput object. Either throughput is required or autoscaleSettings is required, but not both.

Attributes

autoscale_settings[RW]

@return [AutoscaleSettingsResource] Cosmos DB resource for autoscale settings. Either throughput is required or autoscaleSettings is required, but not both.

minimum_throughput[RW]

@return [String] The minimum throughput of the resource

offer_replace_pending[RW]

@return [String] The throughput replace is pending

throughput[RW]

@return [Integer] Value of the Cosmos DB resource throughput. Either throughput is required or autoscaleSettings is required, but not both.

Public Class Methods

mapper() click to toggle source

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

# File lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/throughput_settings_resource.rb, line 36
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'ThroughputSettingsResource',
    type: {
      name: 'Composite',
      class_name: 'ThroughputSettingsResource',
      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: 'AutoscaleSettingsResource'
          }
        },
        minimum_throughput: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'minimumThroughput',
          type: {
            name: 'String'
          }
        },
        offer_replace_pending: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'offerReplacePending',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end