Class: Rdkafka::Admin::DescribeAclReport

Inherits:
Object
  • Object
show all
Defined in:
lib/rdkafka/admin/describe_acl_report.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(acls:, acls_count:) ⇒ DescribeAclReport

Returns a new instance of DescribeAclReport.



11
12
13
14
15
16
17
18
19
20
21
# File 'lib/rdkafka/admin/describe_acl_report.rb', line 11

def initialize(acls:, acls_count:)
  @acls=[]

  if acls != FFI::Pointer::NULL
    acl_binding_result_pointers  = acls.read_array_of_pointer(acls_count)
    (1..acls_count).map do |acl_index|
      acl_binding_result = AclBindingResult.new(acl_binding_result_pointers[acl_index - 1])
      @acls << acl_binding_result
    end
  end
end

Instance Attribute Details

#aclsRdkafka::Bindings::AclBindingResult (readonly)

acls that exists in the cluster for the resource_type, resource_name and pattern_type filters provided in the request.

Returns:

  • (Rdkafka::Bindings::AclBindingResult)

    array of matching acls.



9
10
11
# File 'lib/rdkafka/admin/describe_acl_report.rb', line 9

def acls
  @acls
end