Class: Google::Apis::ComputeAlpha::InterconnectApplicationAwareInterconnectBandwidthPercentage

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

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ InterconnectApplicationAwareInterconnectBandwidthPercentage

Returns a new instance of InterconnectApplicationAwareInterconnectBandwidthPercentage.



22396
22397
22398
# File 'lib/google/apis/compute_alpha/classes.rb', line 22396

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#percentageFixnum

Bandwidth percentage for a specific traffic class. Corresponds to the JSON property percentage

Returns:

  • (Fixnum)


22389
22390
22391
# File 'lib/google/apis/compute_alpha/classes.rb', line 22389

def percentage
  @percentage
end

#traffic_classString

TrafficClass whose bandwidth percentage is being specified. Corresponds to the JSON property trafficClass

Returns:

  • (String)


22394
22395
22396
# File 'lib/google/apis/compute_alpha/classes.rb', line 22394

def traffic_class
  @traffic_class
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



22401
22402
22403
22404
# File 'lib/google/apis/compute_alpha/classes.rb', line 22401

def update!(**args)
  @percentage = args[:percentage] if args.key?(:percentage)
  @traffic_class = args[:traffic_class] if args.key?(:traffic_class)
end