Class: Google::Apis::BaremetalsolutionV2::LogicalNetworkInterface

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

Each logical network interface is effectively a network and IP pair.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LogicalNetworkInterface

Returns a new instance of LogicalNetworkInterface.



913
914
915
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 913

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

Instance Attribute Details

#default_gatewayBoolean Also known as: default_gateway?

Whether this interface is the default gateway for the instance. Only one interface can be the default gateway for the instance. Corresponds to the JSON property defaultGateway

Returns:

  • (Boolean)


890
891
892
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 890

def default_gateway
  @default_gateway
end

#idString

An identifier for the Network, generated by the backend. Corresponds to the JSON property id

Returns:

  • (String)


896
897
898
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 896

def id
  @id
end

#ip_addressString

IP address in the network Corresponds to the JSON property ipAddress

Returns:

  • (String)


901
902
903
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 901

def ip_address
  @ip_address
end

#networkString

Name of the network Corresponds to the JSON property network

Returns:

  • (String)


906
907
908
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 906

def network
  @network
end

#network_typeString

Type of network. Corresponds to the JSON property networkType

Returns:

  • (String)


911
912
913
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 911

def network_type
  @network_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



918
919
920
921
922
923
924
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 918

def update!(**args)
  @default_gateway = args[:default_gateway] if args.key?(:default_gateway)
  @id = args[:id] if args.key?(:id)
  @ip_address = args[:ip_address] if args.key?(:ip_address)
  @network = args[:network] if args.key?(:network)
  @network_type = args[:network_type] if args.key?(:network_type)
end