Class: Google::Apis::NetworkmanagementV1beta1::ForwardInfo

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

Overview

Details of the final state "forward" and associated resource.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ForwardInfo

Returns a new instance of ForwardInfo.



1338
1339
1340
# File 'lib/google/apis/networkmanagement_v1beta1/classes.rb', line 1338

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

Instance Attribute Details

#ip_addressString

IP address of the target (if applicable). Corresponds to the JSON property ipAddress

Returns:

  • (String)


1324
1325
1326
# File 'lib/google/apis/networkmanagement_v1beta1/classes.rb', line 1324

def ip_address
  @ip_address
end

#resource_uriString

URI of the resource that the packet is forwarded to. Format: * projects/ project_id/global/networks/network_id(VPC peering network) * `projects/` project_id`/regions/`region`/vpnGateways/`vpn_gateway_id (VPN gateway) Corresponds to the JSON property resourceUri

Returns:

  • (String)


1331
1332
1333
# File 'lib/google/apis/networkmanagement_v1beta1/classes.rb', line 1331

def resource_uri
  @resource_uri
end

#targetString

Target type where this packet is forwarded to. Corresponds to the JSON property target

Returns:

  • (String)


1336
1337
1338
# File 'lib/google/apis/networkmanagement_v1beta1/classes.rb', line 1336

def target
  @target
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1343
1344
1345
1346
1347
# File 'lib/google/apis/networkmanagement_v1beta1/classes.rb', line 1343

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