class Azure::SQL::Mgmt::V2014_04_01::Models::DatabaseUsage

The database usages.

Attributes

current_value[RW]

@return [Float] The current value of the usage metric.

display_name[RW]

@return [String] The usage metric display name.

limit[RW]

@return [Float] The current limit of the usage metric.

name[RW]

@return [String] The name of the usage metric.

next_reset_time[RW]

@return [DateTime] The next reset time for the usage metric (ISO8601 format).

resource_name[RW]

@return [String] The name of the resource.

unit[RW]

@return [String] The units of the usage metric.

Private Class Methods

mapper() click to toggle source

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

# File lib/2014-04-01/generated/azure_mgmt_sql/models/database_usage.rb, line 42
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'DatabaseUsage',
    type: {
      name: 'Composite',
      class_name: 'DatabaseUsage',
      model_properties: {
        name: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        resource_name: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'resourceName',
          type: {
            name: 'String'
          }
        },
        display_name: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'displayName',
          type: {
            name: 'String'
          }
        },
        current_value: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'currentValue',
          type: {
            name: 'Double'
          }
        },
        limit: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'limit',
          type: {
            name: 'Double'
          }
        },
        unit: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'unit',
          type: {
            name: 'String'
          }
        },
        next_reset_time: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'nextResetTime',
          type: {
            name: 'DateTime'
          }
        }
      }
    }
  }
end