Google Cloud Bare Metal Solution V2 Client - Class NetworkConfig (1.0.1)

Reference documentation and code samples for the Google Cloud Bare Metal Solution V2 Client class NetworkConfig.

Configuration parameters for a new network.

Generated from protobuf message google.cloud.baremetalsolution.v2.NetworkConfig

Namespace

Google \ Cloud \ BareMetalSolution \ V2

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ name string

Output only. The name of the network config.

↳ id string

A transient unique identifier to identify a volume within an ProvisioningConfig request.

↳ type int

The type of this network, either Client or Private.

↳ bandwidth int

Interconnect bandwidth. Set only when type is CLIENT.

↳ vlan_attachments array<NetworkConfig\IntakeVlanAttachment>

List of VLAN attachments. As of now there are always 2 attachments, but it is going to change in the future (multi vlan).

↳ cidr string

CIDR range of the network.

↳ service_cidr int

Service CIDR, if any.

↳ user_note string

User note field, it can be used by customers to add additional information for the BMS Ops team .

↳ gcp_service string

The GCP service of the network. Available gcp_service are in https://cloud.google.com/bare-metal/docs/bms-planning.

↳ vlan_same_project bool

Whether the VLAN attachment pair is located in the same project.

↳ jumbo_frames_enabled bool

The JumboFramesEnabled option for customer to set.

getName

Output only. The name of the network config.

Returns
Type Description
string

setName

Output only. The name of the network config.

Parameter
Name Description
var string
Returns
Type Description
$this

getId

A transient unique identifier to identify a volume within an ProvisioningConfig request.

Returns
Type Description
string

setId

A transient unique identifier to identify a volume within an ProvisioningConfig request.

Parameter
Name Description
var string
Returns
Type Description
$this

getType

The type of this network, either Client or Private.

Returns
Type Description
int

setType

The type of this network, either Client or Private.

Parameter
Name Description
var int
Returns
Type Description
$this

getBandwidth

Interconnect bandwidth. Set only when type is CLIENT.

Returns
Type Description
int

setBandwidth

Interconnect bandwidth. Set only when type is CLIENT.

Parameter
Name Description
var int
Returns
Type Description
$this

getVlanAttachments

List of VLAN attachments. As of now there are always 2 attachments, but it is going to change in the future (multi vlan).

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setVlanAttachments

List of VLAN attachments. As of now there are always 2 attachments, but it is going to change in the future (multi vlan).

Parameter
Name Description
var array<NetworkConfig\IntakeVlanAttachment>
Returns
Type Description
$this

getCidr

CIDR range of the network.

Returns
Type Description
string

setCidr

CIDR range of the network.

Parameter
Name Description
var string
Returns
Type Description
$this

getServiceCidr

Service CIDR, if any.

Returns
Type Description
int

setServiceCidr

Service CIDR, if any.

Parameter
Name Description
var int
Returns
Type Description
$this

getUserNote

User note field, it can be used by customers to add additional information for the BMS Ops team .

Returns
Type Description
string

setUserNote

User note field, it can be used by customers to add additional information for the BMS Ops team .

Parameter
Name Description
var string
Returns
Type Description
$this

getGcpService

The GCP service of the network. Available gcp_service are in https://cloud.google.com/bare-metal/docs/bms-planning.

Returns
Type Description
string

setGcpService

The GCP service of the network. Available gcp_service are in https://cloud.google.com/bare-metal/docs/bms-planning.

Parameter
Name Description
var string
Returns
Type Description
$this

getVlanSameProject

Whether the VLAN attachment pair is located in the same project.

Returns
Type Description
bool

setVlanSameProject

Whether the VLAN attachment pair is located in the same project.

Parameter
Name Description
var bool
Returns
Type Description
$this

getJumboFramesEnabled

The JumboFramesEnabled option for customer to set.

Returns
Type Description
bool

setJumboFramesEnabled

The JumboFramesEnabled option for customer to set.

Parameter
Name Description
var bool
Returns
Type Description
$this