Class: Azure::Network::Mgmt::V2018_08_01::Models::VirtualNetworkUsage

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2018-08-01/generated/azure_mgmt_network/models/virtual_network_usage.rb

Overview

Usage details for subnet.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#current_valueFloat

Returns Indicates number of IPs used from the Subnet.

Returns:

  • (Float)

    Indicates number of IPs used from the Subnet.


16
17
18
# File 'lib/2018-08-01/generated/azure_mgmt_network/models/virtual_network_usage.rb', line 16

def current_value
  @current_value
end

#idString

Returns Subnet identifier.

Returns:

  • (String)

    Subnet identifier.


19
20
21
# File 'lib/2018-08-01/generated/azure_mgmt_network/models/virtual_network_usage.rb', line 19

def id
  @id
end

#limitFloat

Returns Indicates the size of the subnet.

Returns:

  • (Float)

    Indicates the size of the subnet.


22
23
24
# File 'lib/2018-08-01/generated/azure_mgmt_network/models/virtual_network_usage.rb', line 22

def limit
  @limit
end

#nameVirtualNetworkUsageName

localized value for usage.

Returns:


26
27
28
# File 'lib/2018-08-01/generated/azure_mgmt_network/models/virtual_network_usage.rb', line 26

def name
  @name
end

#unitString

Returns Usage units. Returns 'Count'.

Returns:

  • (String)

    Usage units. Returns 'Count'


29
30
31
# File 'lib/2018-08-01/generated/azure_mgmt_network/models/virtual_network_usage.rb', line 29

def unit
  @unit
end

Class Method Details

.mapperObject

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


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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# File 'lib/2018-08-01/generated/azure_mgmt_network/models/virtual_network_usage.rb', line 36

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