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.



1520
1521
1522
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1520

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

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

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

Returns:

  • (Array<String>)


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