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 the BandwidthLimit to describe the non-negative bandwidth rate in mbps for the agent pool.
Instance Attribute Summary collapse
-
#limit_mbps ⇒ Fixnum
Specifies bandwidth rate in mbps 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.
224 225 226 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 224 def initialize(**args) update!(**args) end |
Instance Attribute Details
#limit_mbps ⇒ Fixnum
Specifies bandwidth rate in mbps distributed across all the agents in the pool.
Corresponds to the JSON property limitMbps
222 223 224 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 222 def limit_mbps @limit_mbps end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
229 230 231 |
# File 'lib/google/apis/storagetransfer_v1/classes.rb', line 229 def update!(**args) @limit_mbps = args[:limit_mbps] if args.key?(:limit_mbps) end |