Reference documentation and code samples for the Notebooks V2 API class Google::Cloud::Notebooks::V2::NetworkInterface.
The definition of a network interface resource attached to a VM.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#network
def network() -> ::String
Returns
-
(::String) — Optional. The name of the VPC that this VM instance is in.
Format:
projects/{project_id}/global/networks/{network_id}
#network=
def network=(value) -> ::String
Parameter
-
value (::String) — Optional. The name of the VPC that this VM instance is in.
Format:
projects/{project_id}/global/networks/{network_id}
Returns
-
(::String) — Optional. The name of the VPC that this VM instance is in.
Format:
projects/{project_id}/global/networks/{network_id}
#nic_type
def nic_type() -> ::Google::Cloud::Notebooks::V2::NetworkInterface::NicType
Returns
- (::Google::Cloud::Notebooks::V2::NetworkInterface::NicType) — Optional. The type of vNIC to be used on this interface. This may be gVNIC or VirtioNet.
#nic_type=
def nic_type=(value) -> ::Google::Cloud::Notebooks::V2::NetworkInterface::NicType
Parameter
- value (::Google::Cloud::Notebooks::V2::NetworkInterface::NicType) — Optional. The type of vNIC to be used on this interface. This may be gVNIC or VirtioNet.
Returns
- (::Google::Cloud::Notebooks::V2::NetworkInterface::NicType) — Optional. The type of vNIC to be used on this interface. This may be gVNIC or VirtioNet.
#subnet
def subnet() -> ::String
Returns
-
(::String) — Optional. The name of the subnet that this VM instance is in.
Format:
projects/{project_id}/regions/{region}/subnetworks/{subnetwork_id}
#subnet=
def subnet=(value) -> ::String
Parameter
-
value (::String) — Optional. The name of the subnet that this VM instance is in.
Format:
projects/{project_id}/regions/{region}/subnetworks/{subnetwork_id}
Returns
-
(::String) — Optional. The name of the subnet that this VM instance is in.
Format:
projects/{project_id}/regions/{region}/subnetworks/{subnetwork_id}