Class: Google::Apis::BaremetalsolutionV2::NetworkMountPoint

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

Mount point for a network.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ NetworkMountPoint

Returns a new instance of NetworkMountPoint.



1316
1317
1318
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1316

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

Instance Attribute Details

#default_gatewayBoolean Also known as: default_gateway?

Network should be a default gateway. Corresponds to the JSON property defaultGateway

Returns:

  • (Boolean)


1298
1299
1300
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1298

def default_gateway
  @default_gateway
end

#instanceString

Instance to attach network to. Corresponds to the JSON property instance

Returns:

  • (String)


1304
1305
1306
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1304

def instance
  @instance
end

#ip_addressString

Ip address of the server. Corresponds to the JSON property ipAddress

Returns:

  • (String)


1309
1310
1311
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1309

def ip_address
  @ip_address
end

#logical_interfaceString

Logical interface to detach from. Corresponds to the JSON property logicalInterface

Returns:

  • (String)


1314
1315
1316
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1314

def logical_interface
  @logical_interface
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1321
1322
1323
1324
1325
1326
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1321

def update!(**args)
  @default_gateway = args[:default_gateway] if args.key?(:default_gateway)
  @instance = args[:instance] if args.key?(:instance)
  @ip_address = args[:ip_address] if args.key?(:ip_address)
  @logical_interface = args[:logical_interface] if args.key?(:logical_interface)
end