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

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
NameDescription
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<Google\Cloud\BareMetalSolution\V2\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
TypeDescription
string

setName

Output only. The name of the network config.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getId

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

Returns
TypeDescription
string

setId

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getType

The type of this network, either Client or Private.

Returns
TypeDescription
int

setType

The type of this network, either Client or Private.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getBandwidth

Interconnect bandwidth. Set only when type is CLIENT.

Returns
TypeDescription
int

setBandwidth

Interconnect bandwidth. Set only when type is CLIENT.

Parameter
NameDescription
var int
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var array<Google\Cloud\BareMetalSolution\V2\NetworkConfig\IntakeVlanAttachment>
Returns
TypeDescription
$this

getCidr

CIDR range of the network.

Returns
TypeDescription
string

setCidr

CIDR range of the network.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getServiceCidr

Service CIDR, if any.

Returns
TypeDescription
int

setServiceCidr

Service CIDR, if any.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getUserNote

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

Returns
TypeDescription
string

setUserNote

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getGcpService

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

Returns
TypeDescription
string

setGcpService

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getVlanSameProject

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

Returns
TypeDescription
bool

setVlanSameProject

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

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getJumboFramesEnabled

The JumboFramesEnabled option for customer to set.

Returns
TypeDescription
bool

setJumboFramesEnabled

The JumboFramesEnabled option for customer to set.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this