Reference documentation and code samples for the Google Cloud Bare Metal Solution V2 Client class NetworkAddress.
A network.
Generated from protobuf message google.cloud.baremetalsolution.v2.InstanceConfig.NetworkAddress
Namespace
Google \ Cloud \ BareMetalSolution \ V2 \ InstanceConfigMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ network_id |
string
Id of the network to use, within the same ProvisioningConfig request. |
↳ address |
string
IPv4 address to be assigned to the server. |
↳ existing_network_id |
string
Name of the existing network to use. |
getNetworkId
Id of the network to use, within the same ProvisioningConfig request.
| Returns | |
|---|---|
| Type | Description |
string |
|
setNetworkId
Id of the network to use, within the same ProvisioningConfig request.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getAddress
IPv4 address to be assigned to the server.
| Returns | |
|---|---|
| Type | Description |
string |
|
setAddress
IPv4 address to be assigned to the server.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getExistingNetworkId
Name of the existing network to use.
| Returns | |
|---|---|
| Type | Description |
string |
|
setExistingNetworkId
Name of the existing network to use.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|