Class: Azure::Cosmosdb::Mgmt::V2019_12_12::Models::ThroughputPolicyResource

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/throughput_policy_resource.rb

Overview

Cosmos DB resource throughput policy

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#increment_percentInteger

increase every time throughput policy kicks in.

Returns:

  • (Integer)

    Represents the percentage by which throughput can



21
22
23
# File 'lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/throughput_policy_resource.rb', line 21

def increment_percent
  @increment_percent
end

#is_enabledBoolean

not

Returns:

  • (Boolean)

    Determines whether the ThroughputPolicy is active or



17
18
19
# File 'lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/throughput_policy_resource.rb', line 17

def is_enabled
  @is_enabled
end

Class Method Details

.mapperObject

Mapper for ThroughputPolicyResource 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
# File 'lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/throughput_policy_resource.rb', line 28

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'ThroughputPolicyResource',
    type: {
      name: 'Composite',
      class_name: 'ThroughputPolicyResource',
      model_properties: {
        is_enabled: {
          client_side_validation: true,
          required: false,
          serialized_name: 'isEnabled',
          type: {
            name: 'Boolean'
          }
        },
        increment_percent: {
          client_side_validation: true,
          required: false,
          serialized_name: 'incrementPercent',
          type: {
            name: 'Number'
          }
        }
      }
    }
  }
end