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 \ V2Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description | 
data | 
        
          array
          Optional. Data for populating the Message object.  | 
      
↳ network | 
        
          string
          Optional. The name of the VPC that this VM instance is in. Format:   | 
      
↳ subnet | 
        
          string
          Optional. The name of the subnet that this VM instance is in. Format:   | 
      
↳ 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 | |
|---|---|
| Type | Description | 
string | 
        |
setNetwork
Optional. The name of the VPC that this VM instance is in.
Format:
projects/{project_id}/global/networks/{network_id}
| Parameter | |
|---|---|
| Name | Description | 
var | 
        
          string
           | 
      
| Returns | |
|---|---|
| Type | Description | 
$this | 
        |
getSubnet
Optional. The name of the subnet that this VM instance is in.
Format:
projects/{project_id}/regions/{region}/subnetworks/{subnetwork_id}
| Returns | |
|---|---|
| Type | Description | 
string | 
        |
setSubnet
Optional. The name of the subnet that this VM instance is in.
Format:
projects/{project_id}/regions/{region}/subnetworks/{subnetwork_id}
| Parameter | |
|---|---|
| Name | Description | 
var | 
        
          string
           | 
      
| Returns | |
|---|---|
| Type | Description | 
$this | 
        |
getNicType
Optional. The type of vNIC to be used on this interface. This may be gVNIC or VirtioNet.
| Returns | |
|---|---|
| Type | Description | 
int | 
        |
setNicType
Optional. The type of vNIC to be used on this interface. This may be gVNIC or VirtioNet.
| Parameter | |
|---|---|
| Name | Description | 
var | 
        
          int
           | 
      
| Returns | |
|---|---|
| Type | Description | 
$this | 
        |