Class: Azure::Cosmosdb::Mgmt::V2019_12_12::Models::ProvisionedThroughputSettingsResource

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

Overview

Cosmos DB provisioned throughput settings object

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#auto_upgrade_policyAutoUpgradePolicyResource

policy

Returns:



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

def auto_upgrade_policy
  @auto_upgrade_policy
end

#max_throughputInteger

to.

Returns:

  • (Integer)

    Represents maximum throughput container can scale up



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

def max_throughput
  @max_throughput
end

#target_max_throughputInteger

scale up to once offer is no longer in pending state.

Returns:

  • (Integer)

    Represents target maximum throughput container can



25
26
27
# File 'lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/provisioned_throughput_settings_resource.rb', line 25

def target_max_throughput
  @target_max_throughput
end

Class Method Details

.mapperObject

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



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
58
59
60
61
62
63
64
65
66
67
68
69
70
# File 'lib/2019-12-12/generated/azure_mgmt_cosmosdb/models/provisioned_throughput_settings_resource.rb', line 32

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'ProvisionedThroughputSettingsResource',
    type: {
      name: 'Composite',
      class_name: 'ProvisionedThroughputSettingsResource',
      model_properties: {
        max_throughput: {
          client_side_validation: true,
          required: true,
          serialized_name: 'maxThroughput',
          type: {
            name: 'Number'
          }
        },
        auto_upgrade_policy: {
          client_side_validation: true,
          required: false,
          serialized_name: 'autoUpgradePolicy',
          type: {
            name: 'Composite',
            class_name: 'AutoUpgradePolicyResource'
          }
        },
        target_max_throughput: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'targetMaxThroughput',
          type: {
            name: 'Number'
          }
        }
      }
    }
  }
end