Class: Google::Apis::NetworkmanagementV1beta1::DropInfo
- Inherits:
-
Object
- Object
- Google::Apis::NetworkmanagementV1beta1::DropInfo
- 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
-
#cause ⇒ String
Cause that the packet is dropped.
-
#resource_uri ⇒ String
URI of the resource that caused the drop.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DropInfo
constructor
A new instance of DropInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DropInfo
Returns a new instance of DropInfo.
449 450 451 |
# File 'lib/google/apis/networkmanagement_v1beta1/classes.rb', line 449 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cause ⇒ String
Cause that the packet is dropped.
Corresponds to the JSON property cause
442 443 444 |
# File 'lib/google/apis/networkmanagement_v1beta1/classes.rb', line 442 def cause @cause end |
#resource_uri ⇒ String
URI of the resource that caused the drop.
Corresponds to the JSON property resourceUri
447 448 449 |
# File 'lib/google/apis/networkmanagement_v1beta1/classes.rb', line 447 def resource_uri @resource_uri end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
454 455 456 457 |
# File 'lib/google/apis/networkmanagement_v1beta1/classes.rb', line 454 def update!(**args) @cause = args[:cause] if args.key?(:cause) @resource_uri = args[:resource_uri] if args.key?(:resource_uri) end |