Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3beta1WebhookGenericWebServiceServiceAccountAuthConfig
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3beta1WebhookGenericWebServiceServiceAccountAuthConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dialogflow_v2/classes.rb,
lib/google/apis/dialogflow_v2/representations.rb,
lib/google/apis/dialogflow_v2/representations.rb
Overview
Configuration for authentication using a service account.
Instance Attribute Summary collapse
-
#service_account ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1WebhookGenericWebServiceServiceAccountAuthConfig
constructor
A new instance of GoogleCloudDialogflowCxV3beta1WebhookGenericWebServiceServiceAccountAuthConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1WebhookGenericWebServiceServiceAccountAuthConfig
Returns a new instance of GoogleCloudDialogflowCxV3beta1WebhookGenericWebServiceServiceAccountAuthConfig.
7598 7599 7600 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 7598 def initialize(**args) update!(**args) end |
Instance Attribute Details
#service_account ⇒ String
Required. The email address of the service account used to authenticate the
webhook call. Dialogflow uses this service account to exchange an access token
and the access token is then sent in the Authorization header of the webhook
request. The service account must have the roles/iam.
serviceAccountTokenCreator role granted to the Dialogflow service agent.
Corresponds to the JSON property serviceAccount
7596 7597 7598 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 7596 def service_account @service_account end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7603 7604 7605 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 7603 def update!(**args) @service_account = args[:service_account] if args.key?(:service_account) end |