Class: Google::Apis::ComputeBeta::VpnGatewayVpnGatewayInterface

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/compute_beta/classes.rb,
lib/google/apis/compute_beta/representations.rb,
lib/google/apis/compute_beta/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.



39470
39471
39472
# File 'lib/google/apis/compute_beta/classes.rb', line 39470

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)


39454
39455
39456
# File 'lib/google/apis/compute_beta/classes.rb', line 39454

def id
  @id
end

#interconnect_attachmentString

URL of the interconnect attachment resource. When the value of this field is present, the VPN Gateway will be used for IPsec-encrypted Cloud Interconnect; all Egress or Ingress traffic for this VPN Gateway interface will go through the specified interconnect attachment resource. Not currently available in all Interconnect locations. Corresponds to the JSON property interconnectAttachment

Returns:

  • (String)


39463
39464
39465
# File 'lib/google/apis/compute_beta/classes.rb', line 39463

def interconnect_attachment
  @interconnect_attachment
end

#ip_addressString

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

Returns:

  • (String)


39468
39469
39470
# File 'lib/google/apis/compute_beta/classes.rb', line 39468

def ip_address
  @ip_address
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



39475
39476
39477
39478
39479
# File 'lib/google/apis/compute_beta/classes.rb', line 39475

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