Class: Google::Apis::BaremetalsolutionV2::Network
- Inherits:
-
Object
- Object
- Google::Apis::BaremetalsolutionV2::Network
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/baremetalsolution_v2/classes.rb,
lib/google/apis/baremetalsolution_v2/representations.rb,
lib/google/apis/baremetalsolution_v2/representations.rb
Overview
A Network.
Instance Attribute Summary collapse
-
#cidr ⇒ String
The cidr of the Network.
-
#gateway_ip ⇒ String
Output only.
-
#id ⇒ String
An identifier for the
Network
, generated by the backend. -
#ip_address ⇒ String
IP address configured.
-
#jumbo_frames_enabled ⇒ Boolean
(also: #jumbo_frames_enabled?)
Whether network uses standard frames or jumbo ones.
-
#labels ⇒ Hash<String,String>
Labels as key value pairs.
-
#mac_address ⇒ Array<String>
List of physical interfaces.
-
#mount_points ⇒ Array<Google::Apis::BaremetalsolutionV2::NetworkMountPoint>
Input only.
-
#name ⇒ String
Output only.
-
#pod ⇒ String
Immutable.
-
#reservations ⇒ Array<Google::Apis::BaremetalsolutionV2::NetworkAddressReservation>
List of IP address reservations in this network.
-
#services_cidr ⇒ String
IP range for reserved for services (e.g. NFS).
-
#state ⇒ String
The Network state.
-
#type ⇒ String
The type of this network.
-
#vlan_id ⇒ String
The vlan id of the Network.
-
#vrf ⇒ Google::Apis::BaremetalsolutionV2::Vrf
A network VRF.
-
#vrf_attachment ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Network
constructor
A new instance of Network.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Network
Returns a new instance of Network.
1283 1284 1285 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1283 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cidr ⇒ String
The cidr of the Network.
Corresponds to the JSON property cidr
1192 1193 1194 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1192 def cidr @cidr end |
#gateway_ip ⇒ String
Output only. Gateway ip address.
Corresponds to the JSON property gatewayIp
1197 1198 1199 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1197 def gateway_ip @gateway_ip end |
#id ⇒ String
An identifier for the Network
, generated by the backend.
Corresponds to the JSON property id
1202 1203 1204 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1202 def id @id end |
#ip_address ⇒ String
IP address configured.
Corresponds to the JSON property ipAddress
1207 1208 1209 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1207 def ip_address @ip_address end |
#jumbo_frames_enabled ⇒ Boolean Also known as: jumbo_frames_enabled?
Whether network uses standard frames or jumbo ones.
Corresponds to the JSON property jumboFramesEnabled
1212 1213 1214 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1212 def jumbo_frames_enabled @jumbo_frames_enabled end |
#labels ⇒ Hash<String,String>
Labels as key value pairs.
Corresponds to the JSON property labels
1218 1219 1220 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1218 def labels @labels end |
#mac_address ⇒ Array<String>
List of physical interfaces.
Corresponds to the JSON property macAddress
1223 1224 1225 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1223 def mac_address @mac_address end |
#mount_points ⇒ Array<Google::Apis::BaremetalsolutionV2::NetworkMountPoint>
Input only. List of mount points to attach the network to.
Corresponds to the JSON property mountPoints
1228 1229 1230 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1228 def mount_points @mount_points end |
#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`
Corresponds to the JSON property
name`
1236 1237 1238 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1236 def name @name end |
#pod ⇒ String
Immutable. Pod name. Pod is an independent part of infrastructure. Network can
only be connected to the assets (instances, nfsshares) allocated in the same
pod.
Corresponds to the JSON property pod
1243 1244 1245 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1243 def pod @pod end |
#reservations ⇒ Array<Google::Apis::BaremetalsolutionV2::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.
Corresponds to the JSON property reservations
1250 1251 1252 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1250 def reservations @reservations end |
#services_cidr ⇒ String
IP range for reserved for services (e.g. NFS).
Corresponds to the JSON property servicesCidr
1255 1256 1257 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1255 def services_cidr @services_cidr end |
#state ⇒ String
The Network state.
Corresponds to the JSON property state
1260 1261 1262 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1260 def state @state end |
#type ⇒ String
The type of this network.
Corresponds to the JSON property type
1265 1266 1267 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1265 def type @type end |
#vlan_id ⇒ String
The vlan id of the Network.
Corresponds to the JSON property vlanId
1270 1271 1272 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1270 def vlan_id @vlan_id end |
#vrf ⇒ Google::Apis::BaremetalsolutionV2::Vrf
A network VRF.
Corresponds to the JSON property vrf
1275 1276 1277 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1275 def vrf @vrf end |
#vrf_attachment ⇒ String
Optional. The name of a pre-existing Vrf that the network should be attached
to. Format is vrfs/
vrf`.
Corresponds to the JSON property
vrfAttachment`
1281 1282 1283 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1281 def @vrf_attachment end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1288 def update!(**args) @cidr = args[:cidr] if args.key?(:cidr) @gateway_ip = args[:gateway_ip] if args.key?(:gateway_ip) @id = args[:id] if args.key?(:id) @ip_address = args[:ip_address] if args.key?(:ip_address) @jumbo_frames_enabled = args[:jumbo_frames_enabled] if args.key?(:jumbo_frames_enabled) @labels = args[:labels] if args.key?(:labels) @mac_address = args[:mac_address] if args.key?(:mac_address) @mount_points = args[:mount_points] if args.key?(:mount_points) @name = args[:name] if args.key?(:name) @pod = args[:pod] if args.key?(:pod) @reservations = args[:reservations] if args.key?(:reservations) @services_cidr = args[:services_cidr] if args.key?(:services_cidr) @state = args[:state] if args.key?(:state) @type = args[:type] if args.key?(:type) @vlan_id = args[:vlan_id] if args.key?(:vlan_id) @vrf = args[:vrf] if args.key?(:vrf) @vrf_attachment = args[:vrf_attachment] if args.key?(:vrf_attachment) end |