Class: Google::Apis::NetworkmanagementV1::ForwardInfo

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



1040
1041
1042
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 1040

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)


1028
1029
1030
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 1028

def ip_address
  @ip_address
end

#resource_uriString

URI of the resource that the packet is forwarded to. Corresponds to the JSON property resourceUri

Returns:

  • (String)


1033
1034
1035
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 1033

def resource_uri
  @resource_uri
end

#targetString

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

Returns:

  • (String)


1038
1039
1040
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 1038

def target
  @target
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1045
1046
1047
1048
1049
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 1045

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