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.
-
#ip_address ⇒ String
IP address configured.
-
#mac_address ⇒ Array<String>
List of physical interfaces.
-
#name ⇒ String
Output only.
-
#network ⇒ String
Name of the network.
-
#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.
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.
364 365 366 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 364 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cidr ⇒ String
The cidr of the Network.
Corresponds to the JSON property cidr
317 318 319 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 317 def cidr @cidr end |
#ip_address ⇒ String
IP address configured.
Corresponds to the JSON property ipAddress
322 323 324 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 322 def ip_address @ip_address end |
#mac_address ⇒ Array<String>
List of physical interfaces.
Corresponds to the JSON property macAddress
327 328 329 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 327 def mac_address @mac_address 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`This field will contain the same value as field "network",
which will soon be deprecated. Please use this field to reference the name of
the network resource.
Corresponds to the JSON propertyname`
337 338 339 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 337 def name @name end |
#network ⇒ String
Name of the network.
Corresponds to the JSON property network
342 343 344 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 342 def network @network end |
#state ⇒ String
The Network state.
Corresponds to the JSON property state
347 348 349 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 347 def state @state end |
#type ⇒ String
The type of this network.
Corresponds to the JSON property type
352 353 354 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 352 def type @type end |
#vlan_id ⇒ String
The vlan id of the Network.
Corresponds to the JSON property vlanId
357 358 359 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 357 def vlan_id @vlan_id end |
#vrf ⇒ Google::Apis::BaremetalsolutionV2::Vrf
A network VRF.
Corresponds to the JSON property vrf
362 363 364 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 362 def vrf @vrf end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
369 370 371 372 373 374 375 376 377 378 379 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 369 def update!(**args) @cidr = args[:cidr] if args.key?(:cidr) @ip_address = args[:ip_address] if args.key?(:ip_address) @mac_address = args[:mac_address] if args.key?(:mac_address) @name = args[:name] if args.key?(:name) @network = args[:network] if args.key?(:network) @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) end |