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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/networkmanagement_v1/classes.rb,
generated/google/apis/networkmanagement_v1/representations.rb,
generated/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.



332
333
334
# File 'generated/google/apis/networkmanagement_v1/classes.rb', line 332

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

Instance Attribute Details

#causeString

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

Returns:

  • (String)


325
326
327
# File 'generated/google/apis/networkmanagement_v1/classes.rb', line 325

def cause
  @cause
end

#resource_uriString

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

Returns:

  • (String)


330
331
332
# File 'generated/google/apis/networkmanagement_v1/classes.rb', line 330

def resource_uri
  @resource_uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



337
338
339
340
# File 'generated/google/apis/networkmanagement_v1/classes.rb', line 337

def update!(**args)
  @cause = args[:cause] if args.key?(:cause)
  @resource_uri = args[:resource_uri] if args.key?(:resource_uri)
end