Class: Google::Apis::ManagedkafkaV1::BrokerDetails
- Inherits:
-
Object
- Object
- Google::Apis::ManagedkafkaV1::BrokerDetails
- 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
-
#broker_index ⇒ Fixnum
Output only.
-
#node_id ⇒ Fixnum
Output only.
-
#rack ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BrokerDetails
constructor
A new instance of BrokerDetails.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_index ⇒ Fixnum
Output only. The index of the broker.
Corresponds to the JSON property brokerIndex
196 197 198 |
# File 'lib/google/apis/managedkafka_v1/classes.rb', line 196 def broker_index @broker_index end |
#node_id ⇒ Fixnum
Output only. The node id of the broker.
Corresponds to the JSON property nodeId
201 202 203 |
# File 'lib/google/apis/managedkafka_v1/classes.rb', line 201 def node_id @node_id end |
#rack ⇒ String
Output only. The rack of the broker.
Corresponds to the JSON property rack
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 |