Google Cloud Notebooks V2 Client - Class NetworkInterface (0.6.2)

Reference documentation and code samples for the Google Cloud Notebooks V2 Client class NetworkInterface.

The definition of a network interface resource attached to a VM.

Generated from protobuf message google.cloud.notebooks.v2.NetworkInterface

Namespace

Google \ Cloud \ Notebooks \ V2

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ network string

Optional. The name of the VPC that this VM instance is in. Format: projects/{project_id}/global/networks/{network_id}

↳ subnet string

Optional. The name of the subnet that this VM instance is in. Format: projects/{project_id}/regions/{region}/subnetworks/{subnetwork_id}

↳ nic_type int

Optional. The type of vNIC to be used on this interface. This may be gVNIC or VirtioNet.

getNetwork

Optional. The name of the VPC that this VM instance is in.

Format: projects/{project_id}/global/networks/{network_id}

Returns
TypeDescription
string

setNetwork

Optional. The name of the VPC that this VM instance is in.

Format: projects/{project_id}/global/networks/{network_id}

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getSubnet

Optional. The name of the subnet that this VM instance is in.

Format: projects/{project_id}/regions/{region}/subnetworks/{subnetwork_id}

Returns
TypeDescription
string

setSubnet

Optional. The name of the subnet that this VM instance is in.

Format: projects/{project_id}/regions/{region}/subnetworks/{subnetwork_id}

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getNicType

Optional. The type of vNIC to be used on this interface. This may be gVNIC or VirtioNet.

Returns
TypeDescription
int

setNicType

Optional. The type of vNIC to be used on this interface. This may be gVNIC or VirtioNet.

Parameter
NameDescription
var int
Returns
TypeDescription
$this