Class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ToolAuthentication

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dialogflow_v3/classes.rb,
lib/google/apis/dialogflow_v3/representations.rb,
lib/google/apis/dialogflow_v3/representations.rb

Overview

Authentication information required for API calls

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowCxV3ToolAuthentication

Returns a new instance of GoogleCloudDialogflowCxV3ToolAuthentication.



9131
9132
9133
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 9131

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#api_key_configGoogle::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ToolAuthenticationApiKeyConfig

Config for authentication with API key. Corresponds to the JSON property apiKeyConfig



9108
9109
9110
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 9108

def api_key_config
  @api_key_config
end

#bearer_token_configGoogle::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ToolAuthenticationBearerTokenConfig

Config for authentication using bearer token. Corresponds to the JSON property bearerTokenConfig



9113
9114
9115
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 9113

def bearer_token_config
  @bearer_token_config
end

#oauth_configGoogle::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ToolAuthenticationOAuthConfig

Config for authentication with OAuth. Corresponds to the JSON property oauthConfig



9118
9119
9120
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 9118

def oauth_config
  @oauth_config
end

#service_account_auth_configGoogle::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ToolAuthenticationServiceAccountAuthConfig

Configuration for authentication using a service account. Corresponds to the JSON property serviceAccountAuthConfig



9123
9124
9125
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 9123

def 
  @service_account_auth_config
end

#service_agent_auth_configGoogle::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ToolAuthenticationServiceAgentAuthConfig

Config for auth using Diglogflow service agent. Corresponds to the JSON property serviceAgentAuthConfig



9129
9130
9131
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 9129

def service_agent_auth_config
  @service_agent_auth_config
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9136
9137
9138
9139
9140
9141
9142
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 9136

def update!(**args)
  @api_key_config = args[:api_key_config] if args.key?(:api_key_config)
  @bearer_token_config = args[:bearer_token_config] if args.key?(:bearer_token_config)
  @oauth_config = args[:oauth_config] if args.key?(:oauth_config)
  @service_account_auth_config = args[:service_account_auth_config] if args.key?(:service_account_auth_config)
  @service_agent_auth_config = args[:service_agent_auth_config] if args.key?(:service_agent_auth_config)
end