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 \ V2Methods
__construct
Constructor.
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
↳ labels
↳ 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}
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}
var
string
$this
getId
An identifier for the Network
, generated by the backend.
string
setId
An identifier for the Network
, generated by the backend.
var
string
$this
getType
The type of this network.
int
setType
The type of this network.
var
int
$this
getIpAddress
IP address configured.
string
setIpAddress
IP address configured.
var
string
$this
getMacAddress
List of physical interfaces.
setMacAddress
List of physical interfaces.
var
string[]
$this
getState
The Network state.
int
setState
The Network state.
var
int
$this
getVlanId
The vlan id of the Network.
string
setVlanId
The vlan id of the Network.
var
string
$this
getCidr
The cidr of the Network.
string
setCidr
The cidr of the Network.
var
string
$this
getVrf
The vrf for the Network.
hasVrf
clearVrf
setVrf
The vrf for the Network.
$this
getLabels
Labels as key value pairs.
setLabels
Labels as key value pairs.
$this
getServicesCidr
IP range for reserved for services (e.g. NFS).
string
setServicesCidr
IP range for reserved for services (e.g. NFS).
var
string
$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.
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.
$this