ApiKey
class ApiKey extends BaseResource
ApiKey class.
Properties
protected ApiKey | $sys | ||
protected Client|null | $client | from BaseResource | |
protected string | $name | ||
protected string|null | $description | ||
protected string|null | $accessToken | ||
protected Link[] | $environments |
Methods
getSystemProperties()
{@inheritdoc}
string
getName()
No description
string|null
getDescription()
No description
setDescription(string $description)
No description
string|null
getAccessToken()
No description
jsonSerialize()
{@inheritdoc}
setEnvironments(array $environments)
No description
Link[]
getEnvironments()
No description
addEnvironment(Link $environment)
No description
Details
in BaseResource at line 37
getId()
{@inheritdoc}
in BaseResource at line 45
getType()
{@inheritdoc}
in BaseResource at line 53
asLink()
{@inheritdoc}
in BaseResource at line 61
mixed
asRequestBody()
Returns the resource in the form of request body.
This can differ from regular serialization, as some fields may not be present in the request payload.
in BaseResource at line 79
BaseResource
setClient(Client $client)
Sets the current Client object instance.
This is done automatically when performing API calls, so it shouldn't be used manually.
at line 50
getSystemProperties()
{@inheritdoc}
at line 58
string
getName()
at line 68
ApiKey
setName(string $name)
at line 78
string|null
getDescription()
at line 88
ApiKey
setDescription(string $description)
at line 98
string|null
getAccessToken()
at line 106
jsonSerialize()
{@inheritdoc}