Class: Google::Apis::NetworkmanagementV1beta1::DropInfo

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

Details of the final state "drop" and associated resource.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DropInfo

Returns a new instance of DropInfo.



718
719
720
# File 'lib/google/apis/networkmanagement_v1beta1/classes.rb', line 718

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

Instance Attribute Details

#causeString

Cause that the packet is dropped. Corresponds to the JSON property cause

Returns:

  • (String)


686
687
688
# File 'lib/google/apis/networkmanagement_v1beta1/classes.rb', line 686

def cause
  @cause
end

#destination_geolocation_codeString

Geolocation (region code) of the destination IP address (if relevant). Corresponds to the JSON property destinationGeolocationCode

Returns:

  • (String)


691
692
693
# File 'lib/google/apis/networkmanagement_v1beta1/classes.rb', line 691

def destination_geolocation_code
  @destination_geolocation_code
end

#destination_ipString

Destination IP address of the dropped packet (if relevant). Corresponds to the JSON property destinationIp

Returns:

  • (String)


696
697
698
# File 'lib/google/apis/networkmanagement_v1beta1/classes.rb', line 696

def destination_ip
  @destination_ip
end

#regionString

Region of the dropped packet (if relevant). Corresponds to the JSON property region

Returns:

  • (String)


701
702
703
# File 'lib/google/apis/networkmanagement_v1beta1/classes.rb', line 701

def region
  @region
end

#resource_uriString

URI of the resource that caused the drop. Corresponds to the JSON property resourceUri

Returns:

  • (String)


706
707
708
# File 'lib/google/apis/networkmanagement_v1beta1/classes.rb', line 706

def resource_uri
  @resource_uri
end

#source_geolocation_codeString

Geolocation (region code) of the source IP address (if relevant). Corresponds to the JSON property sourceGeolocationCode

Returns:

  • (String)


711
712
713
# File 'lib/google/apis/networkmanagement_v1beta1/classes.rb', line 711

def source_geolocation_code
  @source_geolocation_code
end

#source_ipString

Source IP address of the dropped packet (if relevant). Corresponds to the JSON property sourceIp

Returns:

  • (String)


716
717
718
# File 'lib/google/apis/networkmanagement_v1beta1/classes.rb', line 716

def source_ip
  @source_ip
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



723
724
725
726
727
728
729
730
731
# File 'lib/google/apis/networkmanagement_v1beta1/classes.rb', line 723

def update!(**args)
  @cause = args[:cause] if args.key?(:cause)
  @destination_geolocation_code = args[:destination_geolocation_code] if args.key?(:destination_geolocation_code)
  @destination_ip = args[:destination_ip] if args.key?(:destination_ip)
  @region = args[:region] if args.key?(:region)
  @resource_uri = args[:resource_uri] if args.key?(:resource_uri)
  @source_geolocation_code = args[:source_geolocation_code] if args.key?(:source_geolocation_code)
  @source_ip = args[:source_ip] if args.key?(:source_ip)
end