Class: Google::Apis::NetworkmanagementV1beta1::ForwardingRuleInfo

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

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.



999
1000
1001
# File 'lib/google/apis/networkmanagement_v1beta1/classes.rb', line 999

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

Instance Attribute Details

#display_nameString

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

Returns:

  • (String)


967
968
969
# File 'lib/google/apis/networkmanagement_v1beta1/classes.rb', line 967

def display_name
  @display_name
end

#matched_port_rangeString

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

Returns:

  • (String)


972
973
974
# File 'lib/google/apis/networkmanagement_v1beta1/classes.rb', line 972

def matched_port_range
  @matched_port_range
end

#matched_protocolString

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

Returns:

  • (String)


977
978
979
# File 'lib/google/apis/networkmanagement_v1beta1/classes.rb', line 977

def matched_protocol
  @matched_protocol
end

#network_uriString

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

Returns:

  • (String)


982
983
984
# File 'lib/google/apis/networkmanagement_v1beta1/classes.rb', line 982

def network_uri
  @network_uri
end

#targetString

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

Returns:

  • (String)


987
988
989
# File 'lib/google/apis/networkmanagement_v1beta1/classes.rb', line 987

def target
  @target
end

#uriString

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

Returns:

  • (String)


992
993
994
# File 'lib/google/apis/networkmanagement_v1beta1/classes.rb', line 992

def uri
  @uri
end

#vipString

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

Returns:

  • (String)


997
998
999
# File 'lib/google/apis/networkmanagement_v1beta1/classes.rb', line 997

def vip
  @vip
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1004
1005
1006
1007
1008
1009
1010
1011
1012
# File 'lib/google/apis/networkmanagement_v1beta1/classes.rb', line 1004

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