@ptkl/sdk - v0.9.9
Preparing search index...
APIUser
Class APIUser
Hierarchy
default
APIUser
Index
Constructors
constructor
Properties
client
env
host
token
Methods
auth
edit
get
list
new
Secret
revoke
Secret
set
Client
Constructors
constructor
new
APIUser
(
options
?:
{
env
?:
string
;
host
?:
string
;
token
?:
string
}
)
:
APIUser
Parameters
Optional
options
:
{
env
?:
string
;
host
?:
string
;
token
?:
string
}
Returns
APIUser
Properties
client
client
:
AxiosInstance
Protected
env
env
:
null
|
string
= null
Protected
host
host
:
null
|
string
= null
Protected
token
token
:
null
|
string
= null
Methods
auth
auth
(
username
:
string
,
password
:
string
,
project
:
string
,
)
:
Promise
<
AxiosResponse
<
any
,
any
>
>
Parameters
username
:
string
password
:
string
project
:
string
Returns
Promise
<
AxiosResponse
<
any
,
any
>
>
edit
edit
(
uuid
:
string
,
roles
:
string
[]
)
:
Promise
<
AxiosResponse
<
any
,
any
>
>
Parameters
uuid
:
string
roles
:
string
[]
Returns
Promise
<
AxiosResponse
<
any
,
any
>
>
get
get
(
uuid
:
string
)
:
Promise
<
AxiosResponse
<
any
,
any
>
>
Parameters
uuid
:
string
Returns
Promise
<
AxiosResponse
<
any
,
any
>
>
list
list
()
:
Promise
<
any
>
Returns
Promise
<
any
>
new
Secret
newSecret
(
uuid
:
string
)
:
Promise
<
AxiosResponse
<
any
,
any
>
>
Parameters
uuid
:
string
Returns
Promise
<
AxiosResponse
<
any
,
any
>
>
revoke
Secret
revokeSecret
(
uuid
:
string
)
:
Promise
<
AxiosResponse
<
any
,
any
>
>
Parameters
uuid
:
string
Returns
Promise
<
AxiosResponse
<
any
,
any
>
>
set
Client
setClient
(
client
:
AxiosInstance
)
:
APIUser
Parameters
client
:
AxiosInstance
Returns
APIUser
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
client
env
host
token
Methods
auth
edit
get
list
new
Secret
revoke
Secret
set
Client
@ptkl/sdk - v0.9.9
Loading...