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.



985
986
987
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 985

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

Instance Attribute Details

#resource_uri ⇒ String

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

Returns:

  • (String)


978
979
980
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 978

def resource_uri
  @resource_uri
end

#target ⇒ String

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

Returns:

  • (String)


983
984
985
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 983

def target
  @target
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



990
991
992
993
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 990

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