Class: Google::Apis::NetworkmanagementV1::DropInfo

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 "drop" and associated resource.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DropInfo

Returns a new instance of DropInfo.



607
608
609
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 607

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

Instance Attribute Details

#cause ⇒ String

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

Returns:

  • (String)


585
586
587
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 585

def cause
  @cause
end

#destination_ip ⇒ String

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

Returns:

  • (String)


590
591
592
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 590

def destination_ip
  @destination_ip
end

#region ⇒ String

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

Returns:

  • (String)


595
596
597
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 595

def region
  @region
end

#resource_uri ⇒ String

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

Returns:

  • (String)


600
601
602
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 600

def resource_uri
  @resource_uri
end

#source_ip ⇒ String

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

Returns:

  • (String)


605
606
607
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 605

def source_ip
  @source_ip
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



612
613
614
615
616
617
618
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 612

def update!(**args)
  @cause = args[:cause] if args.key?(:cause)
  @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_ip = args[:source_ip] if args.key?(:source_ip)
end