Reference documentation and code samples for the Gemini Enterprise for Customer Experience V1 API class Google::Cloud::Ces::V1::OAuthConfig.
Configurations for authentication with OAuth.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#client_id
def client_id() -> ::String- (::String) — Required. The client ID from the OAuth provider.
#client_id=
def client_id=(value) -> ::String- value (::String) — Required. The client ID from the OAuth provider.
- (::String) — Required. The client ID from the OAuth provider.
#client_secret_version
def client_secret_version() -> ::String-
(::String) — 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.secretAccessorrole to the CES service agentservice-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com.
#client_secret_version=
def client_secret_version=(value) -> ::String-
value (::String) — 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.secretAccessorrole to the CES service agentservice-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com.
-
(::String) — 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.secretAccessorrole to the CES service agentservice-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com.
#oauth_grant_type
def oauth_grant_type() -> ::Google::Cloud::Ces::V1::OAuthConfig::OauthGrantType- (::Google::Cloud::Ces::V1::OAuthConfig::OauthGrantType) — Required. OAuth grant types.
#oauth_grant_type=
def oauth_grant_type=(value) -> ::Google::Cloud::Ces::V1::OAuthConfig::OauthGrantType- value (::Google::Cloud::Ces::V1::OAuthConfig::OauthGrantType) — Required. OAuth grant types.
- (::Google::Cloud::Ces::V1::OAuthConfig::OauthGrantType) — Required. OAuth grant types.
#scopes
def scopes() -> ::Array<::String>- (::Array<::String>) — Optional. The OAuth scopes to grant.
#scopes=
def scopes=(value) -> ::Array<::String>- value (::Array<::String>) — Optional. The OAuth scopes to grant.
- (::Array<::String>) — Optional. The OAuth scopes to grant.
#token_endpoint
def token_endpoint() -> ::String- (::String) — Required. The token endpoint in the OAuth provider to exchange for an access token.
#token_endpoint=
def token_endpoint=(value) -> ::String- value (::String) — Required. The token endpoint in the OAuth provider to exchange for an access token.
- (::String) — Required. The token endpoint in the OAuth provider to exchange for an access token.