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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/pubsublite_v1/classes.rb,
generated/google/apis/pubsublite_v1/representations.rb,
generated/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.



39
40
41
# File 'generated/google/apis/pubsublite_v1/classes.rb', line 39

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)


32
33
34
# File 'generated/google/apis/pubsublite_v1/classes.rb', line 32

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)


37
38
39
# File 'generated/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 'generated/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