Class: Ksql::Api::Terminate

Inherits:
Object
  • Object
show all
Defined in:
lib/ksql/api/terminate.rb

Constant Summary collapse

Headers =
{ 'Accept' => 'application/json' }.freeze

Class Method Summary collapse

Class Method Details

.build(delete_topic_list = null, headers:) ⇒ Ksql::Connection::Request

Build the ksqlDB /ksql/terminate request

Parameters:

  • delete_topic_list (Array<String>) (defaults to: null)

    Kafka topic names or regular expressions

  • headers (Hash)

    Request headers

Returns:



16
17
18
19
20
21
22
23
# File 'lib/ksql/api/terminate.rb', line 16

def self.build(delete_topic_list = null, headers:)
  ::Ksql::Connection::Request.new(
    { deleteTopicList: delete_topic_list }.compact,
    '/ksql/terminate',
    Headers.merge(headers),
    :post
  )
end