View Source Kayrock.DescribeDelegationToken.V0.Response (kayrock v0.2.0)

Kayrock-generated response struct for Kafka describe_delegation_token v0 API messages

The schema of this API is

[
  error_code: :int16,
  token_details: {:array,
   [
     owner: [principal_type: :string, name: :string],
     issue_timestamp: :int64,
     expiry_timestamp: :int64,
     max_timestamp: :int64,
     token_id: :string,
     hmac: :bytes,
     renewers: {:array, [principal_type: :string, name: :string]}
   ]},
  throttle_time_ms: :int32
]

Summary

Types

t()

Response struct for the Kafka describe_delegation_token API v0

Functions

Returns the Kafka API key for this API

Returns the API version (0) implemented by this module

Deserialize data for this version of this API

Returns the schema of this message

Types

@type t() :: %Kayrock.DescribeDelegationToken.V0.Response{
  correlation_id: integer(),
  error_code: nil | integer(),
  throttle_time_ms: nil | integer(),
  token_details: [
    %{
      owner: %{principal_type: nil | binary(), name: nil | binary()},
      issue_timestamp: nil | integer(),
      expiry_timestamp: nil | integer(),
      max_timestamp: nil | integer(),
      token_id: nil | binary(),
      hmac: nil | bitstring(),
      renewers: [%{principal_type: nil | binary(), name: nil | binary()}]
    }
  ]
}

Response struct for the Kafka describe_delegation_token API v0

Functions

@spec api_key() :: integer()

Returns the Kafka API key for this API

@spec api_vsn() :: integer()

Returns the API version (0) implemented by this module

@spec deserialize(binary()) :: {t(), binary()}

Deserialize data for this version of this API

@spec schema() :: term()

Returns the schema of this message

See above.