Class: Google::Apis::ManagedkafkaV1::BrokerDetails

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

Details of a broker in the Kafka cluster.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BrokerDetails

Returns a new instance of BrokerDetails.



208
209
210
# File 'lib/google/apis/managedkafka_v1/classes.rb', line 208

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

Instance Attribute Details

#broker_indexFixnum

Output only. The index of the broker. Corresponds to the JSON property brokerIndex

Returns:

  • (Fixnum)


196
197
198
# File 'lib/google/apis/managedkafka_v1/classes.rb', line 196

def broker_index
  @broker_index
end

#node_idFixnum

Output only. The node id of the broker. Corresponds to the JSON property nodeId

Returns:

  • (Fixnum)


201
202
203
# File 'lib/google/apis/managedkafka_v1/classes.rb', line 201

def node_id
  @node_id
end

#rackString

Output only. The rack of the broker. Corresponds to the JSON property rack

Returns:

  • (String)


206
207
208
# File 'lib/google/apis/managedkafka_v1/classes.rb', line 206

def rack
  @rack
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



213
214
215
216
217
# File 'lib/google/apis/managedkafka_v1/classes.rb', line 213

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