-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCerebrasCredential.php
More file actions
84 lines (73 loc) · 2.11 KB
/
Copy pathCerebrasCredential.php
File metadata and controls
84 lines (73 loc) · 2.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<?php
namespace Vapi\Types;
use Vapi\Core\Json\JsonSerializableType;
use Vapi\Core\Json\JsonProperty;
use DateTime;
use Vapi\Core\Types\Date;
class CerebrasCredential extends JsonSerializableType
{
/**
* @var value-of<CerebrasCredentialProvider> $provider
*/
#[JsonProperty('provider')]
public string $provider;
/**
* @var ?string $apiKey This is not returned in the API.
*/
#[JsonProperty('apiKey')]
public ?string $apiKey;
/**
* @var string $id This is the unique identifier for the credential.
*/
#[JsonProperty('id')]
public string $id;
/**
* @var string $orgId This is the unique identifier for the org that this credential belongs to.
*/
#[JsonProperty('orgId')]
public string $orgId;
/**
* @var DateTime $createdAt This is the ISO 8601 date-time string of when the credential was created.
*/
#[JsonProperty('createdAt'), Date(Date::TYPE_DATETIME)]
public DateTime $createdAt;
/**
* @var DateTime $updatedAt This is the ISO 8601 date-time string of when the assistant was last updated.
*/
#[JsonProperty('updatedAt'), Date(Date::TYPE_DATETIME)]
public DateTime $updatedAt;
/**
* @var ?string $name This is the name of credential. This is just for your reference.
*/
#[JsonProperty('name')]
public ?string $name;
/**
* @param array{
* provider: value-of<CerebrasCredentialProvider>,
* apiKey?: ?string,
* id: string,
* orgId: string,
* createdAt: DateTime,
* updatedAt: DateTime,
* name?: ?string,
* } $values
*/
public function __construct(
array $values,
) {
$this->provider = $values['provider'];
$this->apiKey = $values['apiKey'] ?? null;
$this->id = $values['id'];
$this->orgId = $values['orgId'];
$this->createdAt = $values['createdAt'];
$this->updatedAt = $values['updatedAt'];
$this->name = $values['name'] ?? null;
}
/**
* @return string
*/
public function __toString(): string
{
return $this->toJson();
}
}