Class: Google::Apis::StoragetransferV1::BandwidthLimit
- Inherits:
-
Object
- Object
- Google::Apis::StoragetransferV1::BandwidthLimit
- 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
-
#limit_mbps ⇒ Fixnum
Bandwidth rate in megabytes per second, distributed across all the agents in the pool.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BandwidthLimit
constructor
A new instance of BandwidthLimit.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_mbps ⇒ Fixnum
Bandwidth rate in megabytes per second, distributed across all the agents in
the pool.
Corresponds to the JSON property limitMbps
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 |