Google Cloud Bare Metal Solution V2 Client - Class Network (0.3.2)

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

A Network.

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

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 resource name of this Network . Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names . Format: projects/{project}/locations/{location}/networks/{network}

↳ id
string

An identifier for the Network , generated by the backend.

↳ type
int

The type of this network.

↳ ip_address
string

IP address configured.

↳ mac_address
array

List of physical interfaces.

↳ state
int

The Network state.

↳ vlan_id
string

The vlan id of the Network.

↳ cidr
string

The cidr of the Network.

↳ vrf
Google\Cloud\BareMetalSolution\V2\VRF

The vrf for the Network.

↳ labels
array| Google\Protobuf\Internal\MapField

Labels as key value pairs.

↳ services_cidr
string

IP range for reserved for services (e.g. NFS).

↳ reservations
array< Google\Cloud\BareMetalSolution\V2\NetworkAddressReservation >

List of IP address reservations in this network. When updating this field, an error will be generated if a reservation conflicts with an IP address already allocated to a physical server.

getName

Output only. The resource name of this Network .

Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names . Format: projects/{project}/locations/{location}/networks/{network}

Returns
Type
Description
string

setName

Output only. The resource name of this Network .

Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names . Format: projects/{project}/locations/{location}/networks/{network}

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getId

An identifier for the Network , generated by the backend.

Returns
Type
Description
string

setId

An identifier for the Network , generated by the backend.

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getType

The type of this network.

Returns
Type
Description
int

setType

The type of this network.

Parameter
Name
Description
var
int
Returns
Type
Description
$this

getIpAddress

IP address configured.

Returns
Type
Description
string

setIpAddress

IP address configured.

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getMacAddress

List of physical interfaces.

Returns
Type
Description

setMacAddress

List of physical interfaces.

Parameter
Name
Description
var
string[]
Returns
Type
Description
$this

getState

The Network state.

Returns
Type
Description
int

setState

The Network state.

Parameter
Name
Description
var
int
Returns
Type
Description
$this

getVlanId

The vlan id of the Network.

Returns
Type
Description
string

setVlanId

The vlan id of the Network.

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getCidr

The cidr of the Network.

Returns
Type
Description
string

setCidr

The cidr of the Network.

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getVrf

The vrf for the Network.

Returns
Type
Description

hasVrf

clearVrf

setVrf

The vrf for the Network.

Parameter
Name
Description
Returns
Type
Description
$this

getLabels

Labels as key value pairs.

Returns
Type
Description

setLabels

Labels as key value pairs.

Parameter
Name
Description
Returns
Type
Description
$this

getServicesCidr

IP range for reserved for services (e.g. NFS).

Returns
Type
Description
string

setServicesCidr

IP range for reserved for services (e.g. NFS).

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getReservations

List of IP address reservations in this network.

When updating this field, an error will be generated if a reservation conflicts with an IP address already allocated to a physical server.

Returns
Type
Description

setReservations

List of IP address reservations in this network.

When updating this field, an error will be generated if a reservation conflicts with an IP address already allocated to a physical server.

Parameter
Name
Description
Returns
Type
Description
$this
Create a Mobile Website
View Site in Mobile | Classic
Share by: