Class: Azure::Cosmosdb::Mgmt::V2015_04_08::Models::ThroughputResource

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/throughput_resource.rb

Overview

Cosmos DB resource throughput object

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#throughputInteger

Returns Value of the Cosmos DB resource throughput.

Returns:

  • (Integer)

    Value of the Cosmos DB resource throughput



16
17
18
# File 'lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/throughput_resource.rb', line 16

def throughput
  @throughput
end

Class Method Details

.mapperObject

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



23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# File 'lib/2015-04-08/generated/azure_mgmt_cosmosdb/models/throughput_resource.rb', line 23

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'ThroughputResource',
    type: {
      name: 'Composite',
      class_name: 'ThroughputResource',
      model_properties: {
        throughput: {
          client_side_validation: true,
          required: true,
          serialized_name: 'throughput',
          type: {
            name: 'Number'
          }
        }
      }
    }
  }
end