Packages

OpenAPI Client libary for Harness Feature Flags Erlang Server SDK

Current section

Files

Jump to
harness_ff_erlang_client_api src cfapi_target.erl
Raw

src/cfapi_target.erl

-module(cfapi_target).
-export([encode/1]).
-export_type([cfapi_target/0]).
-type cfapi_target() ::
#{ 'identifier' := binary(),
'account' := binary(),
'org' := binary(),
'environment' := binary(),
'project' := binary(),
'name' := binary(),
'anonymous' => boolean(),
'attributes' => maps:map(),
'createdAt' => integer(),
'segments' => list()
}.
encode(#{ 'identifier' := Identifier,
'account' := Account,
'org' := Org,
'environment' := Environment,
'project' := Project,
'name' := Name,
'anonymous' := Anonymous,
'attributes' := Attributes,
'createdAt' := CreatedAt,
'segments' := Segments
}) ->
#{ 'identifier' => Identifier,
'account' => Account,
'org' => Org,
'environment' => Environment,
'project' => Project,
'name' => Name,
'anonymous' => Anonymous,
'attributes' => Attributes,
'createdAt' => CreatedAt,
'segments' => Segments
}.