Class Credential
- Namespace
- GenerativeAI.Types
- Assembly
- GenerativeAI.dll
A stored credential (/credentials) that agent environments can use without exposing the secret (e.g. as
an environment variable or a bearer token injected into allow-listed egress requests). Secrets are write-only and
never returned.
public sealed class Credential
- Inheritance
-
Credential
- Inherited Members
- Extension Methods
Properties
CreateTime
Creation time (RFC 3339).
[JsonPropertyName("create_time")]
public string? CreateTime { get; set; }
Property Value
ExtensionData
Fields this SDK does not model yet.
[JsonExtensionData]
public Dictionary<string, JsonElement>? ExtensionData { get; set; }
Property Value
Id
The credential ID.
[JsonPropertyName("id")]
public string? Id { get; set; }
Property Value
Status
The credential status (see CredentialStatuses).
[JsonPropertyName("status")]
public string? Status { get; set; }
Property Value
Type
The credential type (see CredentialTypes).
[JsonPropertyName("type")]
public string? Type { get; set; }
Property Value
UpdateTime
Last update time (RFC 3339).
[JsonPropertyName("update_time")]
public string? UpdateTime { get; set; }