Class: Google::Apis::ComputeV1::VpnGatewayVpnGatewayInterface

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/compute_v1/classes.rb,
lib/google/apis/compute_v1/representations.rb,
lib/google/apis/compute_v1/representations.rb

Overview

A VPN gateway interface.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ VpnGatewayVpnGatewayInterface

Returns a new instance of VpnGatewayVpnGatewayInterface.



35452
35453
35454
# File 'lib/google/apis/compute_v1/classes.rb', line 35452

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

Instance Attribute Details

#idFixnum

The numeric ID of this VPN gateway interface. Corresponds to the JSON property id

Returns:

  • (Fixnum)


35445
35446
35447
# File 'lib/google/apis/compute_v1/classes.rb', line 35445

def id
  @id
end

#ip_addressString

[Output Only] The external IP address for this VPN gateway interface. Corresponds to the JSON property ipAddress

Returns:

  • (String)


35450
35451
35452
# File 'lib/google/apis/compute_v1/classes.rb', line 35450

def ip_address
  @ip_address
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



35457
35458
35459
35460
# File 'lib/google/apis/compute_v1/classes.rb', line 35457

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