Reference documentation and code samples for the Dialogflow V2 API class Google::Cloud::Dialogflow::V2::Tool::Authentication::OAuthConfig.
Config for authentication with OAuth.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#client_id
def client_id() -> ::String
Returns
- (::String) — Required. The client ID from the OAuth provider.
#client_id=
def client_id=(value) -> ::String
Parameter
- value (::String) — Required. The client ID from the OAuth provider.
Returns
- (::String) — Required. The client ID from the OAuth provider.
#client_secret
def client_secret() -> ::String
Returns
-
(::String) — Optional. The client secret from the OAuth provider. If the
secret_version_for_client_secretfield is set, this field will be ignored.
#client_secret=
def client_secret=(value) -> ::String
Parameter
-
value (::String) — Optional. The client secret from the OAuth provider. If the
secret_version_for_client_secretfield is set, this field will be ignored.
Returns
-
(::String) — Optional. The client secret from the OAuth provider. If the
secret_version_for_client_secretfield is set, this field will be ignored.
#oauth_grant_type
def oauth_grant_type() -> ::Google::Cloud::Dialogflow::V2::Tool::Authentication::OAuthConfig::OauthGrantType
Returns
- (::Google::Cloud::Dialogflow::V2::Tool::Authentication::OAuthConfig::OauthGrantType) — Required. OAuth grant types.
#oauth_grant_type=
def oauth_grant_type=(value) -> ::Google::Cloud::Dialogflow::V2::Tool::Authentication::OAuthConfig::OauthGrantType
Parameter
- value (::Google::Cloud::Dialogflow::V2::Tool::Authentication::OAuthConfig::OauthGrantType) — Required. OAuth grant types.
Returns
- (::Google::Cloud::Dialogflow::V2::Tool::Authentication::OAuthConfig::OauthGrantType) — Required. OAuth grant types.
#scopes
def scopes() -> ::Array<::String>
Returns
- (::Array<::String>) — Optional. The OAuth scopes to grant.
#scopes=
def scopes=(value) -> ::Array<::String>
Parameter
- value (::Array<::String>) — Optional. The OAuth scopes to grant.
Returns
- (::Array<::String>) — Optional. The OAuth scopes to grant.
#secret_version_for_client_secret
def secret_version_for_client_secret() -> ::String
Returns
-
(::String) — Optional. The name of the SecretManager secret version resource storing
the client secret. If this field is set, the
client_secretfield will be ignored. Format:projects/{project}/secrets/{secret}/versions/{version}
#secret_version_for_client_secret=
def secret_version_for_client_secret=(value) -> ::String
Parameter
-
value (::String) — Optional. The name of the SecretManager secret version resource storing
the client secret. If this field is set, the
client_secretfield will be ignored. Format:projects/{project}/secrets/{secret}/versions/{version}
Returns
-
(::String) — Optional. The name of the SecretManager secret version resource storing
the client secret. If this field is set, the
client_secretfield will be ignored. Format:projects/{project}/secrets/{secret}/versions/{version}
#token_endpoint
def token_endpoint() -> ::String
Returns
- (::String) — Required. The token endpoint in the OAuth provider to exchange for an access token.
#token_endpoint=
def token_endpoint=(value) -> ::String
Parameter
- value (::String) — Required. The token endpoint in the OAuth provider to exchange for an access token.
Returns
- (::String) — Required. The token endpoint in the OAuth provider to exchange for an access token.