class Azure::Storage::Mgmt::V2018_02_01::Models::Usage

Describes Storage Resource Usage.

Attributes

current_value[RW]

@return [Integer] Gets the current count of the allocated resources in the subscription.

limit[RW]

@return [Integer] Gets the maximum count of the resources that can be allocated in the subscription.

name[RW]

@return [UsageName] Gets the name of the type of usage.

unit[RW]

@return [UsageUnit] Gets the unit of measurement. Possible values include: 'Count', 'Bytes', 'Seconds', 'Percent', 'CountsPerSecond', 'BytesPerSecond'

Public Class Methods

mapper() click to toggle source

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

# File lib/2018-02-01/generated/azure_mgmt_storage/models/usage.rb, line 35
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'Usage',
    type: {
      name: 'Composite',
      class_name: 'Usage',
      model_properties: {
        unit: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'unit',
          type: {
            name: 'Enum',
            module: 'UsageUnit'
          }
        },
        current_value: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'currentValue',
          type: {
            name: 'Number'
          }
        },
        limit: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'limit',
          type: {
            name: 'Number'
          }
        },
        name: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'name',
          type: {
            name: 'Composite',
            class_name: 'UsageName'
          }
        }
      }
    }
  }
end