Class: Google::Apis::BaremetalsolutionV2::NetworkUsage

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#networkGoogle::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_ipsArray<String>

All used IP addresses in this network. Corresponds to the JSON property usedIps

Returns:

  • (Array<String>)


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