Class: Google::Apis::NetworkmanagementV1::ForwardingRuleInfo

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

For display only. Metadata associated with a Compute Engine forwarding rule.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ForwardingRuleInfo

Returns a new instance of ForwardingRuleInfo.



1052
1053
1054
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 1052

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

Instance Attribute Details

#display_name ⇒ String

Name of a Compute Engine forwarding rule. Corresponds to the JSON property displayName

Returns:

  • (String)


1020
1021
1022
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 1020

def display_name
  @display_name
end

#matched_port_range ⇒ String

Port range defined in the forwarding rule that matches the test. Corresponds to the JSON property matchedPortRange

Returns:

  • (String)


1025
1026
1027
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 1025

def matched_port_range
  @matched_port_range
end

#matched_protocol ⇒ String

Protocol defined in the forwarding rule that matches the test. Corresponds to the JSON property matchedProtocol

Returns:

  • (String)


1030
1031
1032
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 1030

def matched_protocol
  @matched_protocol
end

#network_uri ⇒ String

Network URI. Only valid for Internal Load Balancer. Corresponds to the JSON property networkUri

Returns:

  • (String)


1035
1036
1037
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 1035

def network_uri
  @network_uri
end

#target ⇒ String

Target type of the forwarding rule. Corresponds to the JSON property target

Returns:

  • (String)


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

def target
  @target
end

#uri ⇒ String

URI of a Compute Engine forwarding rule. Corresponds to the JSON property uri

Returns:

  • (String)


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

def uri
  @uri
end

#vip ⇒ String

VIP of the forwarding rule. Corresponds to the JSON property vip

Returns:

  • (String)


1050
1051
1052
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 1050

def vip
  @vip
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1057
1058
1059
1060
1061
1062
1063
1064
1065
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 1057

def update!(**args)
  @display_name = args[:display_name] if args.key?(:display_name)
  @matched_port_range = args[:matched_port_range] if args.key?(:matched_port_range)
  @matched_protocol = args[:matched_protocol] if args.key?(:matched_protocol)
  @network_uri = args[:network_uri] if args.key?(:network_uri)
  @target = args[:target] if args.key?(:target)
  @uri = args[:uri] if args.key?(:uri)
  @vip = args[:vip] if args.key?(:vip)
end