Gemini Enterprise for Customer Experience v1 API - Class OAuthConfig (1.0.0-beta01)

public sealed class OAuthConfig : IMessage<OAuthConfig>, IEquatable<OAuthConfig>, IDeepCloneable<OAuthConfig>, IBufferMessage, IMessage

Reference documentation and code samples for the Gemini Enterprise for Customer Experience v1 API class OAuthConfig.

Configurations for authentication with OAuth.

Inheritance

object > OAuthConfig

Namespace

Google.Cloud.Ces.V1

Assembly

Google.Cloud.Ces.V1.dll

Constructors

OAuthConfig()

public OAuthConfig()

OAuthConfig(OAuthConfig)

public OAuthConfig(OAuthConfig other)
Parameter
Name Description
other OAuthConfig

Properties

ClientId

public string ClientId { get; set; }

Required. The client ID from the OAuth provider.

Property Value
Type Description
string

ClientSecretVersion

public string ClientSecretVersion { get; set; }

Required. The name of the SecretManager secret version resource storing the client secret. Format: projects/{project}/secrets/{secret}/versions/{version}

Note: You should grant roles/secretmanager.secretAccessor role to the CES service agent service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com.

Property Value
Type Description
string

ClientSecretVersionAsSecretVersionName

public SecretVersionName ClientSecretVersionAsSecretVersionName { get; set; }

SecretVersionName-typed view over the ClientSecretVersion resource name property.

Property Value
Type Description
SecretVersionName

OauthGrantType

public OAuthConfig.Types.OauthGrantType OauthGrantType { get; set; }

Required. OAuth grant types.

Property Value
Type Description
OAuthConfigTypesOauthGrantType

Scopes

public RepeatedField<string> Scopes { get; }

Optional. The OAuth scopes to grant.

Property Value
Type Description
RepeatedFieldstring

TokenEndpoint

public string TokenEndpoint { get; set; }

Required. The token endpoint in the OAuth provider to exchange for an access token.

Property Value
Type Description
string