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.
1345 1346 1347 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1345 def initialize(**args) update!(**args) end |
Instance Attribute Details
#network ⇒ Google::Apis::BaremetalsolutionV2::Network
A Network.
Corresponds to the JSON property network
1338 1339 1340 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1338 def network @network end |
#used_ips ⇒ Array<String>
All used IP addresses in this network.
Corresponds to the JSON property usedIps
1343 1344 1345 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1343 def used_ips @used_ips end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1350 1351 1352 1353 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1350 def update!(**args) @network = args[:network] if args.key?(:network) @used_ips = args[:used_ips] if args.key?(:used_ips) end |