Class: Google::Apis::ComputeAlpha::VpnGatewayVpnGatewayInterface

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

Overview

A VPN gateway interface.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ VpnGatewayVpnGatewayInterface

Returns a new instance of VpnGatewayVpnGatewayInterface



27921
27922
27923
# File 'generated/google/apis/compute_alpha/classes.rb', line 27921

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)


27914
27915
27916
# File 'generated/google/apis/compute_alpha/classes.rb', line 27914

def id
  @id
end

#ip_addressString

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

Returns:

  • (String)


27919
27920
27921
# File 'generated/google/apis/compute_alpha/classes.rb', line 27919

def ip_address
  @ip_address
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



27926
27927
27928
27929
# File 'generated/google/apis/compute_alpha/classes.rb', line 27926

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