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

getId()

{@inheritdoc}

getType()

{@inheritdoc}

asLink()

{@inheritdoc}

mixed
asRequestBody()

Returns the resource in the form of request body.

setClient(Client $client)

Sets the current Client object instance.

getSystemProperties()

{@inheritdoc}

getName()

No description

setName(string $name)

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}

{@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.

Return Value

mixed

in BaseResource at line 77
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.

Parameters

Client $client

Return Value

BaseResource

at line 50
getSystemProperties()

{@inheritdoc}

at line 55
getName()

at line 63
ApiKey setName(string $name)

Parameters

string $name

Return Value

ApiKey

at line 73
string|null getDescription()

Return Value

string|null

at line 81
ApiKey setDescription(string $description)

Parameters

string $description

Return Value

ApiKey

at line 91
string|null getAccessToken()

Return Value

string|null

at line 99
jsonSerialize()

{@inheritdoc}

at line 115
ApiKey setEnvironments(array $environments)

Parameters

array $environments

Return Value

ApiKey

at line 125
Link[] getEnvironments()

Return Value

Link[]

at line 133
ApiKey addEnvironment(Link $environment)

Parameters

Link $environment

Return Value

ApiKey