Class ApiAuth
The generic reusable api auth config. Deprecated. Please use AuthConfig (google/cloud/aiplatform/master/auth.proto) instead. This data type is not supported in Gemini API.
public record ApiAuth : IEquatable<ApiAuth>
- Inheritance
-
ApiAuth
- Implements
- Inherited Members
Properties
ApiKeyConfig
The API secret.
[JsonPropertyName("apiKeyConfig")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public ApiAuthApiKeyConfig? ApiKeyConfig { get; set; }
Property Value
Methods
FromJson(string, JsonSerializerOptions?)
Deserializes a JSON string to a ApiAuth object.
public static ApiAuth? FromJson(string jsonString, JsonSerializerOptions? options = null)
Parameters
jsonStringstringThe JSON string to deserialize.
optionsJsonSerializerOptionsOptional JsonSerializerOptions.
Returns
- ApiAuth
The deserialized ApiAuth object, or null if deserialization fails.