Class: Google::Apis::ComputeV1::InterconnectApplicationAwareInterconnectBandwidthPercentage
- Inherits:
-
Object
- Object
- Google::Apis::ComputeV1::InterconnectApplicationAwareInterconnectBandwidthPercentage
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/compute_v1/classes.rb,
lib/google/apis/compute_v1/representations.rb,
lib/google/apis/compute_v1/representations.rb
Overview
Specify bandwidth percentages [1-100] for various traffic classes in BandwidthPercentagePolicy. The sum of all percentages must equal 100. All traffic classes must have a percentage value specified.
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.
28687 28688 28689 |
# File 'lib/google/apis/compute_v1/classes.rb', line 28687 def initialize(**args) update!(**args) end |
Instance Attribute Details
#percentage ⇒ Fixnum
Bandwidth percentage for a specific traffic class.
Corresponds to the JSON property percentage
28680 28681 28682 |
# File 'lib/google/apis/compute_v1/classes.rb', line 28680 def percentage @percentage end |
#traffic_class ⇒ String
TrafficClass whose bandwidth percentage is being specified.
Corresponds to the JSON property trafficClass
28685 28686 28687 |
# File 'lib/google/apis/compute_v1/classes.rb', line 28685 def traffic_class @traffic_class end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
28692 28693 28694 28695 |
# File 'lib/google/apis/compute_v1/classes.rb', line 28692 def update!(**args) @percentage = args[:percentage] if args.key?(:percentage) @traffic_class = args[:traffic_class] if args.key?(:traffic_class) end |