Class: Google::Apis::BaremetalsolutionV2::Network

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Network

Returns a new instance of Network.



538
539
540
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 538

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#cidrString

The cidr of the Network. Corresponds to the JSON property cidr

Returns:

  • (String)


491
492
493
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 491

def cidr
  @cidr
end

#ip_addressString

IP address configured. Corresponds to the JSON property ipAddress

Returns:

  • (String)


496
497
498
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 496

def ip_address
  @ip_address
end

#mac_addressArray<String>

List of physical interfaces. Corresponds to the JSON property macAddress

Returns:

  • (Array<String>)


501
502
503
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 501

def mac_address
  @mac_address
end

#nameString

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`

Returns:

  • (String)


511
512
513
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 511

def name
  @name
end

#networkString

Name of the network. Corresponds to the JSON property network

Returns:

  • (String)


516
517
518
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 516

def network
  @network
end

#stateString

The Network state. Corresponds to the JSON property state

Returns:

  • (String)


521
522
523
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 521

def state
  @state
end

#typeString

The type of this network. Corresponds to the JSON property type

Returns:

  • (String)


526
527
528
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 526

def type
  @type
end

#vlan_idString

The vlan id of the Network. Corresponds to the JSON property vlanId

Returns:

  • (String)


531
532
533
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 531

def vlan_id
  @vlan_id
end

#vrfGoogle::Apis::BaremetalsolutionV2::Vrf

A network VRF. Corresponds to the JSON property vrf



536
537
538
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 536

def vrf
  @vrf
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



543
544
545
546
547
548
549
550
551
552
553
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 543

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