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.
-
#destination_ip ⇒ String
Destination IP address of the dropped packet (if relevant).
-
#region ⇒ String
Region of the dropped packet (if relevant).
-
#resource_uri ⇒ String
URI of the resource that caused the drop.
-
#source_ip ⇒ String
Source IP address of the dropped packet (if relevant).
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.
645 646 647 |
# File 'lib/google/apis/networkmanagement_v1beta1/classes.rb', line 645 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cause ⇒ String
Cause that the packet is dropped.
Corresponds to the JSON property cause
623 624 625 |
# File 'lib/google/apis/networkmanagement_v1beta1/classes.rb', line 623 def cause @cause end |
#destination_ip ⇒ String
Destination IP address of the dropped packet (if relevant).
Corresponds to the JSON property destinationIp
628 629 630 |
# File 'lib/google/apis/networkmanagement_v1beta1/classes.rb', line 628 def destination_ip @destination_ip end |
#region ⇒ String
Region of the dropped packet (if relevant).
Corresponds to the JSON property region
633 634 635 |
# File 'lib/google/apis/networkmanagement_v1beta1/classes.rb', line 633 def region @region end |
#resource_uri ⇒ String
URI of the resource that caused the drop.
Corresponds to the JSON property resourceUri
638 639 640 |
# File 'lib/google/apis/networkmanagement_v1beta1/classes.rb', line 638 def resource_uri @resource_uri end |
#source_ip ⇒ String
Source IP address of the dropped packet (if relevant).
Corresponds to the JSON property sourceIp
643 644 645 |
# File 'lib/google/apis/networkmanagement_v1beta1/classes.rb', line 643 def source_ip @source_ip end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
650 651 652 653 654 655 656 |
# File 'lib/google/apis/networkmanagement_v1beta1/classes.rb', line 650 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 |