Class: Azure::DataMigration::Mgmt::V2018_04_19::Models::Quota

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2018-04-19/generated/azure_mgmt_data_migration/models/quota.rb

Overview

Describes a quota for or usage details about a resource

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#current_valueFloat

current value cannot be determined in the context of the request.

Returns:

  • (Float)

    The current value of the quota. If null or missing, the



17
18
19
# File 'lib/2018-04-19/generated/azure_mgmt_data_migration/models/quota.rb', line 17

def current_value
  @current_value
end

#idString

Returns The resource ID of the quota object.

Returns:

  • (String)

    The resource ID of the quota object



20
21
22
# File 'lib/2018-04-19/generated/azure_mgmt_data_migration/models/quota.rb', line 20

def id
  @id
end

#limitFloat

quota has no maximum, in which case it merely tracks usage.

Returns:

  • (Float)

    The maximum value of the quota. If null or missing, the



24
25
26
# File 'lib/2018-04-19/generated/azure_mgmt_data_migration/models/quota.rb', line 24

def limit
  @limit
end

#nameQuotaName

Returns The name of the quota.

Returns:



27
28
29
# File 'lib/2018-04-19/generated/azure_mgmt_data_migration/models/quota.rb', line 27

def name
  @name
end

#unitString

BytesPerSecond, etc.

Returns:

  • (String)

    The unit for the quota, such as Count, Bytes,



31
32
33
# File 'lib/2018-04-19/generated/azure_mgmt_data_migration/models/quota.rb', line 31

def unit
  @unit
end

Class Method Details

.mapperObject

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



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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# File 'lib/2018-04-19/generated/azure_mgmt_data_migration/models/quota.rb', line 38

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'Quota',
    type: {
      name: 'Composite',
      class_name: 'Quota',
      model_properties: {
        current_value: {
          client_side_validation: true,
          required: false,
          serialized_name: 'currentValue',
          type: {
            name: 'Double'
          }
        },
        id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'id',
          type: {
            name: 'String'
          }
        },
        limit: {
          client_side_validation: true,
          required: false,
          serialized_name: 'limit',
          type: {
            name: 'Double'
          }
        },
        name: {
          client_side_validation: true,
          required: false,
          serialized_name: 'name',
          type: {
            name: 'Composite',
            class_name: 'QuotaName'
          }
        },
        unit: {
          client_side_validation: true,
          required: false,
          serialized_name: 'unit',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end