Class: Google::Apis::BaremetalsolutionV2::NetworkUsage
- Inherits:
-
Object
- Object
- Google::Apis::BaremetalsolutionV2::NetworkUsage
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/baremetalsolution_v2/classes.rb,
lib/google/apis/baremetalsolution_v2/representations.rb,
lib/google/apis/baremetalsolution_v2/representations.rb
Overview
Network with all used IP addresses.
Instance Attribute Summary collapse
-
#network ⇒ Google::Apis::BaremetalsolutionV2::Network
A Network.
-
#used_ips ⇒ Array<String>
All used IP addresses in this network.
Instance Method Summary collapse
-
#initialize(**args) ⇒ NetworkUsage
constructor
A new instance of NetworkUsage.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ NetworkUsage
Returns a new instance of NetworkUsage.
1520 1521 1522 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1520 def initialize(**args) update!(**args) end |
Instance Attribute Details
#network ⇒ Google::Apis::BaremetalsolutionV2::Network
A Network.
Corresponds to the JSON property network
1513 1514 1515 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1513 def network @network end |
#used_ips ⇒ Array<String>
All used IP addresses in this network.
Corresponds to the JSON property usedIps
1518 1519 1520 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1518 def used_ips @used_ips end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1525 1526 1527 1528 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1525 def update!(**args) @network = args[:network] if args.key?(:network) @used_ips = args[:used_ips] if args.key?(:used_ips) end |