Class: Google::Apis::StoragetransferV1::BandwidthLimit

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/storagetransfer_v1/classes.rb,
lib/google/apis/storagetransfer_v1/representations.rb,
lib/google/apis/storagetransfer_v1/representations.rb

Overview

Specifies a bandwidth limit for an agent pool.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BandwidthLimit

Returns a new instance of BandwidthLimit.



311
312
313
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 311

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

Instance Attribute Details

#limit_mbpsFixnum

Bandwidth rate in megabytes per second, distributed across all the agents in the pool. Corresponds to the JSON property limitMbps

Returns:

  • (Fixnum)


309
310
311
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 309

def limit_mbps
  @limit_mbps
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



316
317
318
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 316

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