class Credential extends OperatorResource implements Creatable, Updateable, Retrievable, Listable, Deletable

Traits

Properties

$blob string
$id string
$links
$projectId string
$type string
$userId string

Methods

create (array $data) : Creatable

Create a new resource according to the configuration set in the options.

retrieve () : void

Retrieve details of the current resource from the remote API.

update () : void

Update the current resource with the configuration set out in the user options.

delete () : void

Permanently delete this resource.

Details

create(array $data)

Create a new resource according to the configuration set in the options.

Parameters

$data array

Return value

Creatable

Example code

$creatable = $credential->create($data);

retrieve()

Retrieve details of the current resource from the remote API.

Return value

void

Example code

$credential->retrieve();

update()

Update the current resource with the configuration set out in the user options.

Return value

void

Example code

$credential->update();

delete()

Permanently delete this resource.

Return value

void

Example code

$credential->delete();