public sealed class AuthConfig.Types.OauthConfig : IMessage<AuthConfig.Types.OauthConfig>, IEquatable<AuthConfig.Types.OauthConfig>, IDeepCloneable<AuthConfig.Types.OauthConfig>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud AI Platform v1beta1 API class AuthConfig.Types.OauthConfig.
Config for user oauth.
Implements
IMessageAuthConfigTypesOauthConfig, IEquatableAuthConfigTypesOauthConfig, IDeepCloneableAuthConfigTypesOauthConfig, IBufferMessage, IMessageNamespace
Google.Cloud.AIPlatform.V1Beta1Assembly
Google.Cloud.AIPlatform.V1Beta1.dll
Constructors
OauthConfig()
public OauthConfig()
OauthConfig(OauthConfig)
public OauthConfig(AuthConfig.Types.OauthConfig other)
Parameter | |
---|---|
Name | Description |
other |
AuthConfigTypesOauthConfig |
Properties
AccessToken
public string AccessToken { get; set; }
Access token for extension endpoint. Only used to propagate token from [[ExecuteExtensionRequest.runtime_auth_config]] at request time.
Property Value | |
---|---|
Type | Description |
string |
HasAccessToken
public bool HasAccessToken { get; }
Gets whether the "access_token" field is set
Property Value | |
---|---|
Type | Description |
bool |
HasServiceAccount
public bool HasServiceAccount { get; }
Gets whether the "service_account" field is set
Property Value | |
---|---|
Type | Description |
bool |
OauthConfigCase
public AuthConfig.Types.OauthConfig.OauthConfigOneofCase OauthConfigCase { get; }
Property Value | |
---|---|
Type | Description |
AuthConfigTypesOauthConfigOauthConfigOneofCase |
ServiceAccount
public string ServiceAccount { get; set; }
The service account used to generate access tokens for executing the Extension.
- If the service account is specified,
the
iam.serviceAccounts.getAccessToken
permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the provided service account.
Property Value | |
---|---|
Type | Description |
string |