Class: Google::Apis::BaremetalsolutionV2::LogicalNetworkInterface
- Inherits:
-
Object
- Object
- Google::Apis::BaremetalsolutionV2::LogicalNetworkInterface
- 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
Each logical network interface is effectively a network and IP pair.
Instance Attribute Summary collapse
-
#default_gateway ⇒ Boolean
(also: #default_gateway?)
Whether this interface is the default gateway for the instance.
-
#id ⇒ String
An identifier for the
Network, generated by the backend. -
#ip_address ⇒ String
IP address in the network Corresponds to the JSON property
ipAddress. -
#network ⇒ String
Name of the network Corresponds to the JSON property
network. -
#network_type ⇒ String
Type of network.
Instance Method Summary collapse
-
#initialize(**args) ⇒ LogicalNetworkInterface
constructor
A new instance of LogicalNetworkInterface.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ LogicalNetworkInterface
Returns a new instance of LogicalNetworkInterface.
808 809 810 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 808 def initialize(**args) update!(**args) end |
Instance Attribute Details
#default_gateway ⇒ Boolean Also known as: default_gateway?
Whether this interface is the default gateway for the instance. Only one
interface can be the default gateway for the instance.
Corresponds to the JSON property defaultGateway
785 786 787 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 785 def default_gateway @default_gateway end |
#id ⇒ String
An identifier for the Network, generated by the backend.
Corresponds to the JSON property id
791 792 793 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 791 def id @id end |
#ip_address ⇒ String
IP address in the network
Corresponds to the JSON property ipAddress
796 797 798 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 796 def ip_address @ip_address end |
#network ⇒ String
Name of the network
Corresponds to the JSON property network
801 802 803 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 801 def network @network end |
#network_type ⇒ String
Type of network.
Corresponds to the JSON property networkType
806 807 808 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 806 def network_type @network_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
813 814 815 816 817 818 819 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 813 def update!(**args) @default_gateway = args[:default_gateway] if args.key?(:default_gateway) @id = args[:id] if args.key?(:id) @ip_address = args[:ip_address] if args.key?(:ip_address) @network = args[:network] if args.key?(:network) @network_type = args[:network_type] if args.key?(:network_type) end |