Class: Google::Apis::ComputeV1::InterconnectApplicationAwareInterconnectBandwidthPercentage

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ InterconnectApplicationAwareInterconnectBandwidthPercentage

Returns a new instance of InterconnectApplicationAwareInterconnectBandwidthPercentage.



27943
27944
27945
# File 'lib/google/apis/compute_v1/classes.rb', line 27943

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)


27936
27937
27938
# File 'lib/google/apis/compute_v1/classes.rb', line 27936

def percentage
  @percentage
end

#traffic_classString

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

Returns:

  • (String)


27941
27942
27943
# File 'lib/google/apis/compute_v1/classes.rb', line 27941

def traffic_class
  @traffic_class
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



27948
27949
27950
27951
# File 'lib/google/apis/compute_v1/classes.rb', line 27948

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