Table of Contents

Class EnvironmentVariableCredentialConfig

Namespace
GenerativeAI.Types
Assembly
GenerativeAI.dll

A secret exposed to the environment as a variable (environment_variable).

public sealed class EnvironmentVariableCredentialConfig : CredentialConfig
Inheritance
EnvironmentVariableCredentialConfig
Inherited Members
Extension Methods

Constructors

EnvironmentVariableCredentialConfig()

Initializes a new instance of the EnvironmentVariableCredentialConfig class.

public EnvironmentVariableCredentialConfig()

Properties

InjectionLocation

Where the secret may be injected into outgoing requests (see CredentialInjectionLocations). Required on creation. The API accepts a single value or a list; a list is always sent.

[JsonPropertyName("injection_location")]
[JsonConverter(typeof(StringOrStringListConverter))]
public List<string>? InjectionLocation { get; set; }

Property Value

List<string>

TrustedDomains

The domains the secret may be sent to.

[JsonPropertyName("trusted_domains")]
public List<string>? TrustedDomains { get; set; }

Property Value

List<string>

Value

The secret value. Required on creation.

[JsonPropertyName("value")]
public string? Value { get; set; }

Property Value

string