Class CredentialConfig
- Namespace
- GenerativeAI.Types
- Assembly
- GenerativeAI.dll
The body of POST /credentials (create, Id required) and PATCH /credentials/{id}
(update, Id not sent), discriminated by type (see CredentialTypes).
For updates, only the fields that are set are sent; combine with an update_mask to clear fields.
[JsonConverter(typeof(CredentialConfigConverter))]
public abstract class CredentialConfig
- Inheritance
-
CredentialConfig
- Derived
- Inherited Members
- Extension Methods
Constructors
CredentialConfig(string)
Initializes a new configuration with the given discriminator.
protected CredentialConfig(string type)
Parameters
typestringThe
typediscriminator.
Properties
ExtensionData
Additional body fields to send (for API features this SDK does not model yet).
[JsonExtensionData]
public Dictionary<string, JsonElement>? ExtensionData { get; set; }
Property Value
Id
The credential ID. Required on creation; ignored on update (the ID is part of the URL).
[JsonPropertyName("id")]
public string? Id { get; set; }
Property Value
Type
The credential type.
[JsonPropertyName("type")]
public string Type { get; }