Class: Azure::Cosmosdb::Mgmt::V2020_03_01::Models::OptionsResource

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/options_resource.rb

Overview

Cosmos DB options resource object

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#throughputInteger

ThroughputSetting resource when retrieving offer details.

Returns:

  • (Integer)

    Value of the Cosmos DB resource throughput. Use the



17
18
19
# File 'lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/options_resource.rb', line 17

def throughput
  @throughput
end

Class Method Details

.mapperObject

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



24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# File 'lib/2020-03-01/generated/azure_mgmt_cosmosdb/models/options_resource.rb', line 24

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'
          }
        }
      }
    }
  }
end