Class: Google::Apis::ManagedkafkaV1::RebalanceConfig

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

Defines rebalancing behavior of a Kafka cluster.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RebalanceConfig

Returns a new instance of RebalanceConfig.



1504
1505
1506
# File 'lib/google/apis/managedkafka_v1/classes.rb', line 1504

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#modeString

Optional. The rebalance behavior for the cluster. When not specified, defaults to NO_REBALANCE. Corresponds to the JSON property mode

Returns:

  • (String)


1502
1503
1504
# File 'lib/google/apis/managedkafka_v1/classes.rb', line 1502

def mode
  @mode
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1509
1510
1511
# File 'lib/google/apis/managedkafka_v1/classes.rb', line 1509

def update!(**args)
  @mode = args[:mode] if args.key?(:mode)
end