Class: Google::Apis::PubsubliteV1::Capacity
- Inherits:
-
Object
- Object
- Google::Apis::PubsubliteV1::Capacity
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/pubsublite_v1/classes.rb,
lib/google/apis/pubsublite_v1/representations.rb,
lib/google/apis/pubsublite_v1/representations.rb
Overview
The throughput capacity configuration for each partition.
Instance Attribute Summary collapse
-
#publish_mib_per_sec ⇒ Fixnum
Publish throughput capacity per partition in MiB/s.
-
#subscribe_mib_per_sec ⇒ Fixnum
Subscribe throughput capacity per partition in MiB/s.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Capacity
constructor
A new instance of Capacity.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Capacity
Returns a new instance of Capacity.
39 40 41 |
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 39 def initialize(**args) update!(**args) end |
Instance Attribute Details
#publish_mib_per_sec ⇒ Fixnum
Publish throughput capacity per partition in MiB/s. Must be >= 4 and <= 16.
Corresponds to the JSON property publishMibPerSec
32 33 34 |
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 32 def publish_mib_per_sec @publish_mib_per_sec end |
#subscribe_mib_per_sec ⇒ Fixnum
Subscribe throughput capacity per partition in MiB/s. Must be >= 4 and <= 32.
Corresponds to the JSON property subscribeMibPerSec
37 38 39 |
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 37 def subscribe_mib_per_sec @subscribe_mib_per_sec end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
44 45 46 47 |
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 44 def update!(**args) @publish_mib_per_sec = args[:publish_mib_per_sec] if args.key?(:publish_mib_per_sec) @subscribe_mib_per_sec = args[:subscribe_mib_per_sec] if args.key?(:subscribe_mib_per_sec) end |