Class: Google::Apis::ComputeAlpha::InterconnectApplicationAwareInterconnectBandwidthPercentage
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::InterconnectApplicationAwareInterconnectBandwidthPercentage
- 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
Overview
Specify bandwidth percentages (0-100) for various traffic classes in BandwidthPercentagePolicy. The sum of all percentages must equal 100. It is valid to specify percentages for some classes and not for others. The others will be implicitly marked as 0.
Instance Attribute Summary collapse
-
#percentage ⇒ Fixnum
Bandwidth percentage for a specific traffic class.
-
#traffic_class ⇒ String
TrafficClass whose bandwidth percentage is being specified.
Instance Method Summary collapse
-
#initialize(**args) ⇒ InterconnectApplicationAwareInterconnectBandwidthPercentage
constructor
A new instance of InterconnectApplicationAwareInterconnectBandwidthPercentage.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ InterconnectApplicationAwareInterconnectBandwidthPercentage
Returns a new instance of InterconnectApplicationAwareInterconnectBandwidthPercentage.
22412 22413 22414 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 22412 def initialize(**args) update!(**args) end |
Instance Attribute Details
#percentage ⇒ Fixnum
Bandwidth percentage for a specific traffic class.
Corresponds to the JSON property percentage
22405 22406 22407 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 22405 def percentage @percentage end |
#traffic_class ⇒ String
TrafficClass whose bandwidth percentage is being specified.
Corresponds to the JSON property trafficClass
22410 22411 22412 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 22410 def traffic_class @traffic_class end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
22417 22418 22419 22420 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 22417 def update!(**args) @percentage = args[:percentage] if args.key?(:percentage) @traffic_class = args[:traffic_class] if args.key?(:traffic_class) end |