ExDoppler.ProjectRoles (ExDoppler v1.0.0)
View SourceModule for interacting with ExDoppler.ProjectRole
๐ Resources
- ๐ Doppler docs
- ๐ Doppler API docs
- ๐ฌ Contact the maintainer (he's happy to help!)
Summary
Functions
Creates a new ExDoppler.ProjectRole
, given a name and list of permissions
Same as create_project_role/1
but won't wrap a successful response in {:ok, response}
Retrieves a ExDoppler.ProjectRole
Same as get_project_role/1
but won't wrap a successful response in {:ok, response}
Same as list_project_roles/1
but won't wrap a successful response in {:ok, response}
Functions
Creates a new ExDoppler.ProjectRole
, given a name and list of permissions
๐ท๏ธ Params
- name: Role name (e.g
"viewer_but_different"
) - permissions: List of permissions given to the role. See Doppler Docs
โคต๏ธ Returns
โ On Success
{:ok, %ExDoppler.ProjectRole{...}}
โ On Failure
{:err, err}
๐ Resources
- ๐ Doppler API docs
- ๐ฌ Contact the maintainer (he's happy to help!)
Same as create_project_role/1
but won't wrap a successful response in {:ok, response}
Retrieves a ExDoppler.ProjectRole
๐ท๏ธ Params
- identifier - identifier for role - e.g
"collaborator"
or"admin"
or"viewer"
or"no_access"
โคต๏ธ Returns
โ On Success
{:ok, %ExDoppler.ProjectRole{...}}
โ On Failure
{:err, err}
๐ป Examples
iex> alias ExDoppler.ProjectRoles
iex> {:ok, [role | _]}= ProjectRoles.list_project_roles()
iex> {:ok, _role} = ProjectRoles.get_project_role(role.identifier)
๐ Resources
- ๐ Doppler API docs
- ๐ฌ Contact the maintainer (he's happy to help!)
Same as get_project_role/1
but won't wrap a successful response in {:ok, response}
Lists ExDoppler.ProjectRole
โคต๏ธ Returns
โ On Success
{:ok, [%ExDoppler.ProjectRole{...} ...]}
โ On Failure
{:err, err}
๐ป Examples
iex> alias ExDoppler.ProjectRoles
iex> {:ok, _roles} = ProjectRoles.list_project_roles()
๐ Resources
- ๐ Doppler API docs
- ๐ฌ Contact the maintainer (he's happy to help!)
Same as list_project_roles/1
but won't wrap a successful response in {:ok, response}