Class: Google::Apis::ComputeAlpha::NetworkPolicyTrafficClassificationRuleAction

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_modeString

The traffic class that should be applied to the matching packet. Corresponds to the JSON property dscpMode

Returns:

  • (String)


39356
39357
39358
# File 'lib/google/apis/compute_alpha/classes.rb', line 39356

def dscp_mode
  @dscp_mode
end

#dscp_valueFixnum

Custom DSCP value from 0-63 range. Corresponds to the JSON property dscpValue

Returns:

  • (Fixnum)


39361
39362
39363
# File 'lib/google/apis/compute_alpha/classes.rb', line 39361

def dscp_value
  @dscp_value
end

#field_typeString

The field type could be one of: TRAFFIC_CLASS or DSCP. Corresponds to the JSON property fieldType

Returns:

  • (String)


39366
39367
39368
# File 'lib/google/apis/compute_alpha/classes.rb', line 39366

def field_type
  @field_type
end

#field_valueFixnum

For field_type = TRAFFIC_CLASS: 1 to 6. For field_type = DSCP: 0 to 63. Corresponds to the JSON property fieldValue

Returns:

  • (Fixnum)


39371
39372
39373
# File 'lib/google/apis/compute_alpha/classes.rb', line 39371

def field_value
  @field_value
end

#traffic_classString

The traffic class that should be applied to the matching packet. Corresponds to the JSON property trafficClass

Returns:

  • (String)


39376
39377
39378
# File 'lib/google/apis/compute_alpha/classes.rb', line 39376

def traffic_class
  @traffic_class
end

#typeString

Always "apply_traffic_classification" for traffic classification rules. Corresponds to the JSON property type

Returns:

  • (String)


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