Class: Google::Cloud::Dialogflow::V2::Tool::Authentication::OAuthConfig
- Inherits:
-
Object
- Object
- Google::Cloud::Dialogflow::V2::Tool::Authentication::OAuthConfig
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/dialogflow/v2/tool.rb
Overview
Config for authentication with OAuth.
Defined Under Namespace
Modules: OauthGrantType
Instance Attribute Summary collapse
-
#client_id ⇒ ::String
Required.
-
#client_secret ⇒ ::String
Optional.
-
#oauth_grant_type ⇒ ::Google::Cloud::Dialogflow::V2::Tool::Authentication::OAuthConfig::OauthGrantType
Required.
-
#scopes ⇒ ::Array<::String>
Optional.
-
#secret_version_for_client_secret ⇒ ::String
Optional.
-
#token_endpoint ⇒ ::String
Required.
Instance Attribute Details
#client_id ⇒ ::String
Returns Required. The client ID from the OAuth provider.
374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 |
# File 'proto_docs/google/cloud/dialogflow/v2/tool.rb', line 374 class OAuthConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # OAuth grant types. Only [client credential # grant](https://oauth.net/2/grant-types/client-credentials) is # supported. module OauthGrantType # Default value. This value is unused. OAUTH_GRANT_TYPE_UNSPECIFIED = 0 # Represents the [client credential # flow](https://oauth.net/2/grant-types/client-credentials). CLIENT_CREDENTIAL = 1 end end |
#client_secret ⇒ ::String
Returns Optional. The client secret from the OAuth provider. If the
secret_version_for_client_secret field is set, this field will be
ignored.
374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 |
# File 'proto_docs/google/cloud/dialogflow/v2/tool.rb', line 374 class OAuthConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # OAuth grant types. Only [client credential # grant](https://oauth.net/2/grant-types/client-credentials) is # supported. module OauthGrantType # Default value. This value is unused. OAUTH_GRANT_TYPE_UNSPECIFIED = 0 # Represents the [client credential # flow](https://oauth.net/2/grant-types/client-credentials). CLIENT_CREDENTIAL = 1 end end |
#oauth_grant_type ⇒ ::Google::Cloud::Dialogflow::V2::Tool::Authentication::OAuthConfig::OauthGrantType
Returns Required. OAuth grant types.
374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 |
# File 'proto_docs/google/cloud/dialogflow/v2/tool.rb', line 374 class OAuthConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # OAuth grant types. Only [client credential # grant](https://oauth.net/2/grant-types/client-credentials) is # supported. module OauthGrantType # Default value. This value is unused. OAUTH_GRANT_TYPE_UNSPECIFIED = 0 # Represents the [client credential # flow](https://oauth.net/2/grant-types/client-credentials). CLIENT_CREDENTIAL = 1 end end |
#scopes ⇒ ::Array<::String>
Returns Optional. The OAuth scopes to grant.
374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 |
# File 'proto_docs/google/cloud/dialogflow/v2/tool.rb', line 374 class OAuthConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # OAuth grant types. Only [client credential # grant](https://oauth.net/2/grant-types/client-credentials) is # supported. module OauthGrantType # Default value. This value is unused. OAUTH_GRANT_TYPE_UNSPECIFIED = 0 # Represents the [client credential # flow](https://oauth.net/2/grant-types/client-credentials). CLIENT_CREDENTIAL = 1 end end |
#secret_version_for_client_secret ⇒ ::String
Returns Optional. The name of the SecretManager secret version resource storing
the client secret. If this field is set, the client_secret field will
be ignored. Format:
projects/{project}/secrets/{secret}/versions/{version}.
374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 |
# File 'proto_docs/google/cloud/dialogflow/v2/tool.rb', line 374 class OAuthConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # OAuth grant types. Only [client credential # grant](https://oauth.net/2/grant-types/client-credentials) is # supported. module OauthGrantType # Default value. This value is unused. OAUTH_GRANT_TYPE_UNSPECIFIED = 0 # Represents the [client credential # flow](https://oauth.net/2/grant-types/client-credentials). CLIENT_CREDENTIAL = 1 end end |
#token_endpoint ⇒ ::String
Returns Required. The token endpoint in the OAuth provider to exchange for an access token.
374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 |
# File 'proto_docs/google/cloud/dialogflow/v2/tool.rb', line 374 class OAuthConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # OAuth grant types. Only [client credential # grant](https://oauth.net/2/grant-types/client-credentials) is # supported. module OauthGrantType # Default value. This value is unused. OAUTH_GRANT_TYPE_UNSPECIFIED = 0 # Represents the [client credential # flow](https://oauth.net/2/grant-types/client-credentials). CLIENT_CREDENTIAL = 1 end end |