Class: Google::Apis::PubsubliteV1::Capacity

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_secFixnum

Publish throughput capacity per partition in MiB/s. Must be >= 4 and <= 16. Corresponds to the JSON property publishMibPerSec

Returns:

  • (Fixnum)


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_secFixnum

Subscribe throughput capacity per partition in MiB/s. Must be >= 4 and <= 32. Corresponds to the JSON property subscribeMibPerSec

Returns:

  • (Fixnum)


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