Class: Azure::Cosmosdb::Mgmt::V2020_04_01::Models::OptionsResource

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2020-04-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

#autoscale_settingsAutoscaleSettings

Returns Specifies the Autoscale settings.

Returns:



21
22
23
# File 'lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/options_resource.rb', line 21

def autoscale_settings
  @autoscale_settings
end

#throughputInteger

autoscaleSettings. Use the ThroughputSetting resource when retrieving offer details.

Returns:

  • (Integer)

    Value of the Cosmos DB resource throughput or



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

def throughput
  @throughput
end

Class Method Details

.mapperObject

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



28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# File 'lib/2020-04-01/generated/azure_mgmt_cosmosdb/models/options_resource.rb', line 28

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