Reference documentation and code samples for the Bare Metal Solution V2 API class Google::Cloud::BareMetalSolution::V2::LogicalInterface::LogicalNetworkInterface.
Each logical network interface is effectively a network and IP pair.
Inherits
Object
Extended By
Google::Protobuf::MessageExts::ClassMethods
Includes
Google::Protobuf::MessageExts
Methods
#default_gateway
defdefault_gateway()->::Boolean
Returns
(::Boolean) — Whether this interface is the default gateway for the instance. Only
one interface can be the default gateway for the instance.
#default_gateway=
defdefault_gateway=(value)->::Boolean
Parameter
value (::Boolean) — Whether this interface is the default gateway for the instance. Only
one interface can be the default gateway for the instance.
Returns
(::Boolean) — Whether this interface is the default gateway for the instance. Only
one interface can be the default gateway for the instance.
#id
defid()->::String
Returns
(::String) — An identifier for the Network, generated by the backend.
#id=
defid=(value)->::String
Parameter
value (::String) — An identifier for the Network, generated by the backend.
Returns
(::String) — An identifier for the Network, generated by the backend.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-09 UTC."],[],[],null,["# Bare Metal Solution V2 API - Class Google::Cloud::BareMetalSolution::V2::LogicalInterface::LogicalNetworkInterface (v1.1.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.1.0 (latest)](/ruby/docs/reference/google-cloud-bare_metal_solution-v2/latest/Google-Cloud-BareMetalSolution-V2-LogicalInterface-LogicalNetworkInterface)\n- [1.0.1](/ruby/docs/reference/google-cloud-bare_metal_solution-v2/1.0.1/Google-Cloud-BareMetalSolution-V2-LogicalInterface-LogicalNetworkInterface)\n- [0.10.0](/ruby/docs/reference/google-cloud-bare_metal_solution-v2/0.10.0/Google-Cloud-BareMetalSolution-V2-LogicalInterface-LogicalNetworkInterface)\n- [0.9.0](/ruby/docs/reference/google-cloud-bare_metal_solution-v2/0.9.0/Google-Cloud-BareMetalSolution-V2-LogicalInterface-LogicalNetworkInterface)\n- [0.8.1](/ruby/docs/reference/google-cloud-bare_metal_solution-v2/0.8.1/Google-Cloud-BareMetalSolution-V2-LogicalInterface-LogicalNetworkInterface)\n- [0.7.2](/ruby/docs/reference/google-cloud-bare_metal_solution-v2/0.7.2/Google-Cloud-BareMetalSolution-V2-LogicalInterface-LogicalNetworkInterface)\n- [0.6.0](/ruby/docs/reference/google-cloud-bare_metal_solution-v2/0.6.0/Google-Cloud-BareMetalSolution-V2-LogicalInterface-LogicalNetworkInterface)\n- [0.5.1](/ruby/docs/reference/google-cloud-bare_metal_solution-v2/0.5.1/Google-Cloud-BareMetalSolution-V2-LogicalInterface-LogicalNetworkInterface)\n- [0.4.1](/ruby/docs/reference/google-cloud-bare_metal_solution-v2/0.4.1/Google-Cloud-BareMetalSolution-V2-LogicalInterface-LogicalNetworkInterface)\n- [0.3.0](/ruby/docs/reference/google-cloud-bare_metal_solution-v2/0.3.0/Google-Cloud-BareMetalSolution-V2-LogicalInterface-LogicalNetworkInterface)\n- [0.2.0](/ruby/docs/reference/google-cloud-bare_metal_solution-v2/0.2.0/Google-Cloud-BareMetalSolution-V2-LogicalInterface-LogicalNetworkInterface)\n- [0.1.0](/ruby/docs/reference/google-cloud-bare_metal_solution-v2/0.1.0/Google-Cloud-BareMetalSolution-V2-LogicalInterface-LogicalNetworkInterface) \nReference documentation and code samples for the Bare Metal Solution V2 API class Google::Cloud::BareMetalSolution::V2::LogicalInterface::LogicalNetworkInterface.\n\nEach logical network interface is effectively a network and IP pair. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #default_gateway\n\n def default_gateway() -\u003e ::Boolean\n\n**Returns**\n\n- (::Boolean) --- Whether this interface is the default gateway for the instance. Only one interface can be the default gateway for the instance.\n\n### #default_gateway=\n\n def default_gateway=(value) -\u003e ::Boolean\n\n**Parameter**\n\n- **value** (::Boolean) --- Whether this interface is the default gateway for the instance. Only one interface can be the default gateway for the instance. \n**Returns**\n\n- (::Boolean) --- Whether this interface is the default gateway for the instance. Only one interface can be the default gateway for the instance.\n\n### #id\n\n def id() -\u003e ::String\n\n**Returns**\n\n- (::String) --- An identifier for the `Network`, generated by the backend.\n\n### #id=\n\n def id=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- An identifier for the `Network`, generated by the backend. \n**Returns**\n\n- (::String) --- An identifier for the `Network`, generated by the backend.\n\n### #ip_address\n\n def ip_address() -\u003e ::String\n\n**Returns**\n\n- (::String) --- IP address in the network\n\n### #ip_address=\n\n def ip_address=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- IP address in the network \n**Returns**\n\n- (::String) --- IP address in the network\n\n### #network\n\n def network() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Name of the network\n\n### #network=\n\n def network=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Name of the network \n**Returns**\n\n- (::String) --- Name of the network\n\n### #network_type\n\n def network_type() -\u003e ::Google::Cloud::BareMetalSolution::V2::Network::Type\n\n**Returns**\n\n- ([::Google::Cloud::BareMetalSolution::V2::Network::Type](./Google-Cloud-BareMetalSolution-V2-Network-Type)) --- Type of network.\n\n### #network_type=\n\n def network_type=(value) -\u003e ::Google::Cloud::BareMetalSolution::V2::Network::Type\n\n**Parameter**\n\n- **value** ([::Google::Cloud::BareMetalSolution::V2::Network::Type](./Google-Cloud-BareMetalSolution-V2-Network-Type)) --- Type of network. \n**Returns**\n\n- ([::Google::Cloud::BareMetalSolution::V2::Network::Type](./Google-Cloud-BareMetalSolution-V2-Network-Type)) --- Type of network."]]