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.
52 53 54 |
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 52 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
45 46 47 |
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 45 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
50 51 52 |
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 50 def subscribe_mib_per_sec @subscribe_mib_per_sec end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
57 58 59 60 |
# File 'lib/google/apis/pubsublite_v1/classes.rb', line 57 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 |