Class: Google::Apis::ManagedkafkaV1::CapacityConfig
- Inherits:
-
Object
- Object
- Google::Apis::ManagedkafkaV1::CapacityConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/managedkafka_v1/classes.rb,
lib/google/apis/managedkafka_v1/representations.rb,
lib/google/apis/managedkafka_v1/representations.rb
Overview
A capacity configuration of a Kafka cluster.
Instance Attribute Summary collapse
-
#memory_bytes ⇒ Fixnum
Required.
-
#vcpu_count ⇒ Fixnum
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CapacityConfig
constructor
A new instance of CapacityConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CapacityConfig
Returns a new instance of CapacityConfig.
248 249 250 |
# File 'lib/google/apis/managedkafka_v1/classes.rb', line 248 def initialize(**args) update!(**args) end |
Instance Attribute Details
#memory_bytes ⇒ Fixnum
Required. The memory to provision for the cluster in bytes. The CPU:memory
ratio (vCPU:GiB) must be between 1:1 and 1:8. Minimum: 3221225472 (3 GiB).
Corresponds to the JSON property memoryBytes
241 242 243 |
# File 'lib/google/apis/managedkafka_v1/classes.rb', line 241 def memory_bytes @memory_bytes end |
#vcpu_count ⇒ Fixnum
Required. The number of vCPUs to provision for the cluster. Minimum: 3.
Corresponds to the JSON property vcpuCount
246 247 248 |
# File 'lib/google/apis/managedkafka_v1/classes.rb', line 246 def vcpu_count @vcpu_count end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
253 254 255 256 |
# File 'lib/google/apis/managedkafka_v1/classes.rb', line 253 def update!(**args) @memory_bytes = args[:memory_bytes] if args.key?(:memory_bytes) @vcpu_count = args[:vcpu_count] if args.key?(:vcpu_count) end |