Class: Azure::ARM::Network::Models::VirtualNetworkUsage
- Inherits:
-
Object
- Object
- Azure::ARM::Network::Models::VirtualNetworkUsage
- Includes:
- MsRest::JSONable, MsRestAzure
- Defined in:
- lib/generated/azure_mgmt_network/models/virtual_network_usage.rb
Overview
Usage details for subnet.
Instance Attribute Summary collapse
-
#current_value ⇒ Float
Indicates number of IPs used from the Subnet.
-
#id ⇒ String
Subnet identifier.
-
#limit ⇒ Float
Indicates the size of the subnet.
-
#name ⇒ VirtualNetworkUsageName
localized value for usage.
-
#unit ⇒ String
Usage units.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for VirtualNetworkUsage class as Ruby Hash.
Instance Attribute Details
#current_value ⇒ Float
Returns Indicates number of IPs used from the Subnet.
17 18 19 |
# File 'lib/generated/azure_mgmt_network/models/virtual_network_usage.rb', line 17 def current_value @current_value end |
#id ⇒ String
Returns Subnet identifier.
20 21 22 |
# File 'lib/generated/azure_mgmt_network/models/virtual_network_usage.rb', line 20 def id @id end |
#limit ⇒ Float
Returns Indicates the size of the subnet.
23 24 25 |
# File 'lib/generated/azure_mgmt_network/models/virtual_network_usage.rb', line 23 def limit @limit end |
#name ⇒ VirtualNetworkUsageName
localized value for usage.
27 28 29 |
# File 'lib/generated/azure_mgmt_network/models/virtual_network_usage.rb', line 27 def name @name end |
#unit ⇒ String
Returns Usage units. Returns ‘Count’.
30 31 32 |
# File 'lib/generated/azure_mgmt_network/models/virtual_network_usage.rb', line 30 def unit @unit end |
Class Method Details
.mapper ⇒ Object
Mapper for VirtualNetworkUsage class as Ruby Hash. This will be used for serialization/deserialization.
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 |
# File 'lib/generated/azure_mgmt_network/models/virtual_network_usage.rb', line 37 def self.mapper() { required: false, serialized_name: 'VirtualNetworkUsage', type: { name: 'Composite', class_name: 'VirtualNetworkUsage', model_properties: { current_value: { required: false, read_only: true, serialized_name: 'currentValue', type: { name: 'Double' } }, id: { required: false, read_only: true, serialized_name: 'id', type: { name: 'String' } }, limit: { required: false, read_only: true, serialized_name: 'limit', type: { name: 'Double' } }, name: { required: false, read_only: true, serialized_name: 'name', type: { name: 'Composite', class_name: 'VirtualNetworkUsageName' } }, unit: { required: false, read_only: true, serialized_name: 'unit', type: { name: 'String' } } } } } end |