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.



401
402
403
# File 'lib/google/apis/networkmanagement_v1beta1/classes.rb', line 401

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

Instance Attribute Details

#causeString

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

Returns:

  • (String)


394
395
396
# File 'lib/google/apis/networkmanagement_v1beta1/classes.rb', line 394

def cause
  @cause
end

#resource_uriString

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

Returns:

  • (String)


399
400
401
# File 'lib/google/apis/networkmanagement_v1beta1/classes.rb', line 399

def resource_uri
  @resource_uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



406
407
408
409
# File 'lib/google/apis/networkmanagement_v1beta1/classes.rb', line 406

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