Reference documentation and code samples for the Bare Metal Solution V2 API class Google::Cloud::BareMetalSolution::V2::Network.
A Network.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#cidr
def cidr() -> ::String
Returns
- (::String) — The cidr of the Network.
#cidr=
def cidr=(value) -> ::String
Parameter
- value (::String) — The cidr of the Network.
Returns
- (::String) — The cidr of the Network.
#id
def id() -> ::String
Returns
-
(::String) — An identifier for the
Network
, generated by the backend.
#id=
def id=(value) -> ::String
Parameter
-
value (::String) — An identifier for the
Network
, generated by the backend.
Returns
-
(::String) — An identifier for the
Network
, generated by the backend.
#ip_address
def ip_address() -> ::String
Returns
- (::String) — IP address configured.
#ip_address=
def ip_address=(value) -> ::String
Parameter
- value (::String) — IP address configured.
Returns
- (::String) — IP address configured.
#labels
def labels() -> ::Google::Protobuf::Map{::String => ::String}
Returns
- (::Google::Protobuf::Map{::String => ::String}) — Labels as key value pairs.
#labels=
def labels=(value) -> ::Google::Protobuf::Map{::String => ::String}
Parameter
- value (::Google::Protobuf::Map{::String => ::String}) — Labels as key value pairs.
Returns
- (::Google::Protobuf::Map{::String => ::String}) — Labels as key value pairs.
#mac_address
def mac_address() -> ::Array<::String>
Returns
- (::Array<::String>) — List of physical interfaces.
#mac_address=
def mac_address=(value) -> ::Array<::String>
Parameter
- value (::Array<::String>) — List of physical interfaces.
Returns
- (::Array<::String>) — List of physical interfaces.
#name
def name() -> ::String
Returns
-
(::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}
#reservations
def reservations() -> ::Array<::Google::Cloud::BareMetalSolution::V2::NetworkAddressReservation>
Returns
- (::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.
#reservations=
def reservations=(value) -> ::Array<::Google::Cloud::BareMetalSolution::V2::NetworkAddressReservation>
Parameter
- value (::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.
Returns
- (::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.
#services_cidr
def services_cidr() -> ::String
Returns
- (::String) — IP range for reserved for services (e.g. NFS).
#services_cidr=
def services_cidr=(value) -> ::String
Parameter
- value (::String) — IP range for reserved for services (e.g. NFS).
Returns
- (::String) — IP range for reserved for services (e.g. NFS).
#state
def state() -> ::Google::Cloud::BareMetalSolution::V2::Network::State
Returns
- (::Google::Cloud::BareMetalSolution::V2::Network::State) — The Network state.
#state=
def state=(value) -> ::Google::Cloud::BareMetalSolution::V2::Network::State
Parameter
- value (::Google::Cloud::BareMetalSolution::V2::Network::State) — The Network state.
Returns
- (::Google::Cloud::BareMetalSolution::V2::Network::State) — The Network state.
#type
def type() -> ::Google::Cloud::BareMetalSolution::V2::Network::Type
Returns
- (::Google::Cloud::BareMetalSolution::V2::Network::Type) — The type of this network.
#type=
def type=(value) -> ::Google::Cloud::BareMetalSolution::V2::Network::Type
Parameter
- value (::Google::Cloud::BareMetalSolution::V2::Network::Type) — The type of this network.
Returns
- (::Google::Cloud::BareMetalSolution::V2::Network::Type) — The type of this network.
#vlan_id
def vlan_id() -> ::String
Returns
- (::String) — The vlan id of the Network.
#vlan_id=
def vlan_id=(value) -> ::String
Parameter
- value (::String) — The vlan id of the Network.
Returns
- (::String) — The vlan id of the Network.
#vrf
def vrf() -> ::Google::Cloud::BareMetalSolution::V2::VRF
Returns
- (::Google::Cloud::BareMetalSolution::V2::VRF) — The vrf for the Network.
#vrf=
def vrf=(value) -> ::Google::Cloud::BareMetalSolution::V2::VRF
Parameter
- value (::Google::Cloud::BareMetalSolution::V2::VRF) — The vrf for the Network.
Returns
- (::Google::Cloud::BareMetalSolution::V2::VRF) — The vrf for the Network.