class Google::Apis::NetworkmanagementV1::EndpointInfo

For display only. The specification of the endpoints for the test. EndpointInfo is derived from source and destination Endpoint and validated by the backend data plane model.

Attributes

destination_ip[RW]

Destination IP address. Corresponds to the JSON property `destinationIp` @return [String]

destination_network_uri[RW]

URI of the network where this packet is sent to. Corresponds to the JSON property `destinationNetworkUri` @return [String]

destination_port[RW]

Destination port. Only valid when protocol is TCP or UDP. Corresponds to the JSON property `destinationPort` @return [Fixnum]

protocol[RW]

IP protocol in string format, for example: “TCP”, “UDP”, “ICMP”. Corresponds to the JSON property `protocol` @return [String]

source_ip[RW]

Source IP address. Corresponds to the JSON property `sourceIp` @return [String]

source_network_uri[RW]

URI of the network where this packet originates from. Corresponds to the JSON property `sourceNetworkUri` @return [String]

source_port[RW]

Source port. Only valid when protocol is TCP or UDP. Corresponds to the JSON property `sourcePort` @return [Fixnum]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/networkmanagement_v1/classes.rb, line 517
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/networkmanagement_v1/classes.rb, line 522
def update!(**args)
  @destination_ip = args[:destination_ip] if args.key?(:destination_ip)
  @destination_network_uri = args[:destination_network_uri] if args.key?(:destination_network_uri)
  @destination_port = args[:destination_port] if args.key?(:destination_port)
  @protocol = args[:protocol] if args.key?(:protocol)
  @source_ip = args[:source_ip] if args.key?(:source_ip)
  @source_network_uri = args[:source_network_uri] if args.key?(:source_network_uri)
  @source_port = args[:source_port] if args.key?(:source_port)
end