Class: Google::Apis::ComputeAlpha::NetworkPolicyTrafficClassificationRuleAction
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::NetworkPolicyTrafficClassificationRuleAction
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/compute_alpha/classes.rb,
lib/google/apis/compute_alpha/representations.rb,
lib/google/apis/compute_alpha/representations.rb
Instance Attribute Summary collapse
-
#dscp_mode ⇒ String
The traffic class that should be applied to the matching packet.
-
#dscp_value ⇒ Fixnum
Custom DSCP value from 0-63 range.
-
#field_type ⇒ String
The field type could be one of: TRAFFIC_CLASS or DSCP.
-
#field_value ⇒ Fixnum
For field_type = TRAFFIC_CLASS: 1 to 6.
-
#traffic_class ⇒ String
The traffic class that should be applied to the matching packet.
-
#type ⇒ String
Always "apply_traffic_classification" for traffic classification rules.
Instance Method Summary collapse
-
#initialize(**args) ⇒ NetworkPolicyTrafficClassificationRuleAction
constructor
A new instance of NetworkPolicyTrafficClassificationRuleAction.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ NetworkPolicyTrafficClassificationRuleAction
Returns a new instance of NetworkPolicyTrafficClassificationRuleAction.
39383 39384 39385 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 39383 def initialize(**args) update!(**args) end |
Instance Attribute Details
#dscp_mode ⇒ String
The traffic class that should be applied to the matching packet.
Corresponds to the JSON property dscpMode
39356 39357 39358 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 39356 def dscp_mode @dscp_mode end |
#dscp_value ⇒ Fixnum
Custom DSCP value from 0-63 range.
Corresponds to the JSON property dscpValue
39361 39362 39363 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 39361 def dscp_value @dscp_value end |
#field_type ⇒ String
The field type could be one of: TRAFFIC_CLASS or DSCP.
Corresponds to the JSON property fieldType
39366 39367 39368 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 39366 def field_type @field_type end |
#field_value ⇒ Fixnum
For field_type = TRAFFIC_CLASS: 1 to 6. For field_type = DSCP: 0 to 63.
Corresponds to the JSON property fieldValue
39371 39372 39373 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 39371 def field_value @field_value end |
#traffic_class ⇒ String
The traffic class that should be applied to the matching packet.
Corresponds to the JSON property trafficClass
39376 39377 39378 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 39376 def traffic_class @traffic_class end |
#type ⇒ String
Always "apply_traffic_classification" for traffic classification rules.
Corresponds to the JSON property type
39381 39382 39383 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 39381 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
39388 39389 39390 39391 39392 39393 39394 39395 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 39388 def update!(**args) @dscp_mode = args[:dscp_mode] if args.key?(:dscp_mode) @dscp_value = args[:dscp_value] if args.key?(:dscp_value) @field_type = args[:field_type] if args.key?(:field_type) @field_value = args[:field_value] if args.key?(:field_value) @traffic_class = args[:traffic_class] if args.key?(:traffic_class) @type = args[:type] if args.key?(:type) end |